From e65f393557249d640320e058df7de593c0ff6a27 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 10 Jun 2026 04:26:10 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../PromptLayer.IPromptLayerClient.g.cs | 5 + ....ISmartTablesClient.AddTableSheetRows.g.cs | 6 +- ...tLayer.ISmartTablesClient.CreateTable.g.cs | 6 +- ...r.ISmartTablesClient.CreateTableSheet.g.cs | 6 +- ...ent.CreateTableSheetCellRecalculation.g.cs | 4 +- ...eateTableSheetCellRecalculationsBatch.g.cs | 6 +- ...rtTablesClient.CreateTableSheetColumn.g.cs | 6 +- ...omptLayer.ISmartTablesClient.GetTable.g.cs | 6 +- ...ayer.ISmartTablesClient.GetTableSheet.g.cs | 6 +- ....ISmartTablesClient.GetTableSheetCell.g.cs | 4 +- ...rtTablesClient.GetTableSheetOperation.g.cs | 8 +- ...artTablesClient.ListTableSheetColumns.g.cs | 4 +- ...ISmartTablesClient.ListTableSheetRows.g.cs | 4 +- ...er.ISmartTablesClient.ListTableSheets.g.cs | 4 +- ...ptLayer.ISmartTablesClient.ListTables.g.cs | 4 +- ...tLayer.ISmartTablesClient.UpdateTable.g.cs | 9 +- ...r.ISmartTablesClient.UpdateTableSheet.g.cs | 9 +- ...martTablesClient.UpdateTableSheetCell.g.cs | 6 +- ...rtTablesClient.UpdateTableSheetColumn.g.cs | 6 +- ...ablesClient.CancelTableSheetOperation.g.cs | 40 + ...TablesClient.ConfigureTableSheetScore.g.cs | 92 + ...blesClient.CreateTableSheetFileImport.g.cs | 68 + ...ablesClient.CreateTableSheetOperation.g.cs | 76 + ...ient.CreateTableSheetRequestLogImport.g.cs | 97 + ...ITablesClient.CreateTableSheetVersion.g.cs | 64 + ...esClient.GetTableSheetOperationStatus.g.cs | 40 + ...ayer.ITablesClient.GetTableSheetScore.g.cs | 36 + ...er.ITablesClient.GetTableSheetVersion.g.cs | 40 + ...ient.GetTableSheetVersionScoreHistory.g.cs | 60 + ...TablesClient.ListTableSheetOperations.g.cs | 36 + ....ITablesClient.ListTableSheetVersions.g.cs | 64 + ...blesClient.RecalculateTableSheetScore.g.cs | 36 + .../Generated/PromptLayer.ITablesClient.g.cs | 48 + ...SheetScoreRequestAssertionAggregation.g.cs | 53 + ...reRequestAssertionAggregationNullable.g.cs | 60 + ...ureTableSheetScoreRequestCodeLanguage.g.cs | 53 + ...SheetScoreRequestCodeLanguageNullable.g.cs | 60 + ...figureTableSheetScoreRequestScoreType.g.cs | 53 + ...bleSheetScoreRequestScoreTypeNullable.g.cs | 60 + ...SheetOperationQueuedResponseOperation.g.cs | 53 + ...rationQueuedResponseOperationNullable.g.cs | 60 + ...teTableSheetOperationRequestOperation.g.cs | 53 + ...heetOperationRequestOperationNullable.g.cs | 60 + ...eateTableSheetOperationRequestStatuse.g.cs | 53 + ...eSheetOperationRequestStatuseNullable.g.cs | 60 + ...ers.CreateTableSheetOperationResponse.g.cs | 201 + ...bleSheetRequestLogImportRequestSortBy.g.cs | 53 + ...RequestLogImportRequestSortByNullable.g.cs | 60 + ...SheetRequestLogImportRequestSortOrder.g.cs | 53 + ...uestLogImportRequestSortOrderNullable.g.cs | 60 + ...GetTableSheetVersionScoreHistoryRange.g.cs | 53 + ...SheetVersionScoreHistoryRangeNullable.g.cs | 60 + ...bleSheetVersionScoreHistoryResolution.g.cs | 53 + ...VersionScoreHistoryResolutionNullable.g.cs | 60 + ...onverters.ListTableSheetVersionsOrder.g.cs | 53 + ...s.ListTableSheetVersionsOrderNullable.g.cs | 60 + ...Converters.ListTableSheetVersionsSort.g.cs | 53 + ...rs.ListTableSheetVersionsSortNullable.g.cs | 60 + .../PromptLayer.JsonConverters.OneOf3.g.cs | 216 + ...alculateTableSheetScoreResponseStatus.g.cs | 53 + ...TableSheetScoreResponseStatusNullable.g.cs | 60 + ...tLayer.JsonConverters.TableCellStatus.g.cs | 53 + ...sonConverters.TableCellStatusNullable.g.cs | 60 + ...nverters.TableSheetOperationOperation.g.cs | 53 + ....TableSheetOperationOperationNullable.g.cs | 60 + ...leSheetScoreColumnResolvedScoringType.g.cs | 53 + ...coreColumnResolvedScoringTypeNullable.g.cs | 60 + ...TableSheetScoreConfigurationScoreType.g.cs | 53 + ...etScoreConfigurationScoreTypeNullable.g.cs | 60 + ...HistoryResponseScoreHistoryResolution.g.cs | 53 + ...esponseScoreHistoryResolutionNullable.g.cs | 60 + ...ters.TableSheetScoreResponseScoreType.g.cs | 53 + ...leSheetScoreResponseScoreTypeNullable.g.cs | 60 + ...rs.TableSheetScoreResponseScoringType.g.cs | 53 + ...SheetScoreResponseScoringTypeNullable.g.cs | 60 + ...verters.TableSheetScoreResponseStatus.g.cs | 53 + ...TableSheetScoreResponseStatusNullable.g.cs | 60 + .../PromptLayer.JsonSerializerContext.g.cs | 403 +- ...romptLayer.JsonSerializerContextTypes.g.cs | 706 +- ...ayer.Models.AddTableSheetRowsResponse.g.cs | 6 +- ...ancelTableSheetOperationResponse.Json.g.cs | 92 + ...els.CancelTableSheetOperationResponse.g.cs | 103 + .../Generated/PromptLayer.Models.Cell.g.cs | 35 +- .../Generated/PromptLayer.Models.Column.g.cs | 6 +- ....ConfigureTableSheetScoreRequest.Json.g.cs | 92 + ...odels.ConfigureTableSheetScoreRequest.g.cs | 137 + ...SheetScoreRequestAssertionAggregation.g.cs | 57 + ...ureTableSheetScoreRequestCodeLanguage.g.cs | 51 + ...ableSheetScoreRequestScoreConfig.Json.g.cs | 92 + ...gureTableSheetScoreRequestScoreConfig.g.cs | 19 + ...figureTableSheetScoreRequestScoreType.g.cs | 63 + ...ConfigureTableSheetScoreResponse.Json.g.cs | 92 + ...dels.ConfigureTableSheetScoreResponse.g.cs | 98 + ...Models.CreateTableSheetColumnResponse.g.cs | 6 +- ...reateTableSheetFileImportRequest.Json.g.cs | 92 + ...els.CreateTableSheetFileImportRequest.g.cs | 70 + ...eetOperationConfirmationResponse.Json.g.cs | 92 + ...bleSheetOperationConfirmationResponse.g.cs | 85 + ...eTableSheetOperationNoopResponse.Json.g.cs | 92 + ...CreateTableSheetOperationNoopResponse.g.cs | 75 + ...ableSheetOperationQueuedResponse.Json.g.cs | 92 + ...eateTableSheetOperationQueuedResponse.g.cs | 135 + ...SheetOperationQueuedResponseOperation.g.cs | 45 + ...CreateTableSheetOperationRequest.Json.g.cs | 92 + ...dels.CreateTableSheetOperationRequest.g.cs | 91 + ...teTableSheetOperationRequestOperation.g.cs | 45 + ...eateTableSheetOperationRequestStatuse.g.cs | 75 + ...reateTableSheetOperationResponse.Json.g.cs | 92 + ...els.CreateTableSheetOperationResponse.g.cs | 378 + ...ableSheetRequestLogImportRequest.Json.g.cs | 92 + ...eateTableSheetRequestLogImportRequest.g.cs | 149 + ...bleSheetRequestLogImportRequestSortBy.g.cs | 75 + ...SheetRequestLogImportRequestSortOrder.g.cs | 51 + ...s.CreateTableSheetVersionRequest.Json.g.cs | 92 + ...Models.CreateTableSheetVersionRequest.g.cs | 57 + ...tLayer.Models.EmptyPublicFilters.Json.g.cs | 92 + ...PromptLayer.Models.EmptyPublicFilters.g.cs | 19 + ...Models.GetTableSheetOperationResponse.g.cs | 18 +- ....GetTableSheetOperationResponse2.Json.g.cs | 92 + ...odels.GetTableSheetOperationResponse2.g.cs | 55 + ...els.GetTableSheetVersionResponse.Json.g.cs | 92 + ...r.Models.GetTableSheetVersionResponse.g.cs | 55 + ...GetTableSheetVersionScoreHistoryRange.g.cs | 69 + ...bleSheetVersionScoreHistoryResolution.g.cs | 57 + ...ListTableSheetOperationsResponse.Json.g.cs | 92 + ...dels.ListTableSheetOperationsResponse.g.cs | 105 + ...etOperationsResponseStatusCounts.Json.g.cs | 92 + ...leSheetOperationsResponseStatusCounts.g.cs | 19 + ...yer.Models.ListTableSheetRowsResponse.g.cs | 6 +- ...er.Models.ListTableSheetVersionsOrder.g.cs | 51 + ...s.ListTableSheetVersionsResponse.Json.g.cs | 92 + ...Models.ListTableSheetVersionsResponse.g.cs | 93 + ...yer.Models.ListTableSheetVersionsSort.g.cs | 45 + ...ayer.Models.PublicListPagination.Json.g.cs | 92 + ...omptLayer.Models.PublicListPagination.g.cs | 81 + ...calculateTableSheetScoreResponse.Json.g.cs | 92 + ...ls.RecalculateTableSheetScoreResponse.g.cs | 65 + ...alculateTableSheetScoreResponseStatus.g.cs | 63 + .../Generated/PromptLayer.Models.Sheet.g.cs | 12 +- .../Generated/PromptLayer.Models.Table.g.cs | 6 +- .../PromptLayer.Models.TableCell.Json.g.cs | 92 + .../PromptLayer.Models.TableCell.g.cs | 148 + .../PromptLayer.Models.TableCellStatus.g.cs | 75 + ...ls.TableSheetImportStartResponse.Json.g.cs | 92 + ....Models.TableSheetImportStartResponse.g.cs | 87 + ...Layer.Models.TableSheetOperation.Json.g.cs | 92 + ...romptLayer.Models.TableSheetOperation.g.cs | 125 + ...r.Models.TableSheetOperationOperation.g.cs | 45 + ....TableSheetOperationStatusCounts.Json.g.cs | 92 + ...odels.TableSheetOperationStatusCounts.g.cs | 19 + ...Models.TableSheetScoreCellObject.Json.g.cs | 92 + ...ayer.Models.TableSheetScoreCellObject.g.cs | 53 + ...yer.Models.TableSheetScoreColumn.Json.g.cs | 92 + ...mptLayer.Models.TableSheetScoreColumn.g.cs | 94 + ...leSheetScoreColumnResolvedScoringType.g.cs | 63 + ...els.TableSheetScoreConfiguration.Json.g.cs | 92 + ...r.Models.TableSheetScoreConfiguration.g.cs | 56 + ...eetScoreConfigurationScoreConfig.Json.g.cs | 92 + ...bleSheetScoreConfigurationScoreConfig.g.cs | 19 + ...TableSheetScoreConfigurationScoreType.g.cs | 63 + ...s.TableSheetScoreHistoryResponse.Json.g.cs | 92 + ...Models.TableSheetScoreHistoryResponse.g.cs | 55 + ...ScoreHistoryResponseScoreHistory.Json.g.cs | 92 + ...SheetScoreHistoryResponseScoreHistory.g.cs | 106 + ...HistoryResponseScoreHistoryPoint.Json.g.cs | 92 + ...ScoreHistoryResponseScoreHistoryPoint.g.cs | 19 + ...HistoryResponseScoreHistoryResolution.g.cs | 57 + ...yer.Models.TableSheetScoreMetric.Json.g.cs | 92 + ...mptLayer.Models.TableSheetScoreMetric.g.cs | 64 + ...r.Models.TableSheetScoreResponse.Json.g.cs | 92 + ...tLayer.Models.TableSheetScoreResponse.g.cs | 229 + ...TableSheetScoreResponseAggregate.Json.g.cs | 92 + ...dels.TableSheetScoreResponseAggregate.g.cs | 19 + ...s.TableSheetScoreResponseDetails.Json.g.cs | 92 + ...Models.TableSheetScoreResponseDetails.g.cs | 19 + ...TableSheetScoreResponsePerColumn.Json.g.cs | 92 + ...dels.TableSheetScoreResponsePerColumn.g.cs | 19 + ...dels.TableSheetScoreResponseScoreType.g.cs | 63 + ...ls.TableSheetScoreResponseScoringType.g.cs | 63 + ....Models.TableSheetScoreResponseStatus.g.cs | 63 + ...ptLayer.Models.TableSheetVersion.Json.g.cs | 92 + .../PromptLayer.Models.TableSheetVersion.g.cs | 139 + ...er.Models.TableSheetVersionDelta.Json.g.cs | 92 + ...ptLayer.Models.TableSheetVersionDelta.g.cs | 19 + ...Models.TableSheetVersionMetadata.Json.g.cs | 92 + ...ayer.Models.TableSheetVersionMetadata.g.cs | 19 + ...er.Models.TableSheetVersionScore.Json.g.cs | 92 + ...ptLayer.Models.TableSheetVersionScore.g.cs | 19 + ...leSheetVersionScoreConfiguration.Json.g.cs | 92 + ...s.TableSheetVersionScoreConfiguration.g.cs | 19 + ...Models.TableSheetVersionSnapshot.Json.g.cs | 92 + ...ayer.Models.TableSheetVersionSnapshot.g.cs | 19 + ...r.Models.UpdateTableSheetCellResponse.g.cs | 6 +- ...Models.UpdateTableSheetColumnResponse.g.cs | 6 +- ...Layer.Models.UpdateTableSheetResponse.g.cs | 6 +- .../Generated/PromptLayer.OneOf.3.Json.g.cs | 92 + .../Generated/PromptLayer.OneOf.3.g.cs | 377 + .../PromptLayer.PromptLayerClient.g.cs | 9 + ...r.SmartTablesClient.AddTableSheetRows.g.cs | 6 +- ...ptLayer.SmartTablesClient.CreateTable.g.cs | 6 +- ...er.SmartTablesClient.CreateTableSheet.g.cs | 6 +- ...ent.CreateTableSheetCellRecalculation.g.cs | 4 +- ...eateTableSheetCellRecalculationsBatch.g.cs | 6 +- ...rtTablesClient.CreateTableSheetColumn.g.cs | 6 +- ...romptLayer.SmartTablesClient.GetTable.g.cs | 6 +- ...Layer.SmartTablesClient.GetTableSheet.g.cs | 6 +- ...r.SmartTablesClient.GetTableSheetCell.g.cs | 4 +- ...rtTablesClient.GetTableSheetOperation.g.cs | 16 +- ...artTablesClient.ListTableSheetColumns.g.cs | 4 +- ....SmartTablesClient.ListTableSheetRows.g.cs | 4 +- ...yer.SmartTablesClient.ListTableSheets.g.cs | 4 +- ...mptLayer.SmartTablesClient.ListTables.g.cs | 4 +- ...ptLayer.SmartTablesClient.UpdateTable.g.cs | 9 +- ...er.SmartTablesClient.UpdateTableSheet.g.cs | 9 +- ...martTablesClient.UpdateTableSheetCell.g.cs | 6 +- ...rtTablesClient.UpdateTableSheetColumn.g.cs | 6 +- ...ablesClient.CancelTableSheetOperation.g.cs | 518 ++ ...TablesClient.ConfigureTableSheetScore.g.cs | 674 ++ ...blesClient.CreateTableSheetFileImport.g.cs | 644 ++ ...ablesClient.CreateTableSheetOperation.g.cs | 617 ++ ...ient.CreateTableSheetRequestLogImport.g.cs | 643 ++ ....TablesClient.CreateTableSheetVersion.g.cs | 602 ++ ...esClient.GetTableSheetOperationStatus.g.cs | 518 ++ ...Layer.TablesClient.GetTableSheetScore.g.cs | 509 ++ ...yer.TablesClient.GetTableSheetVersion.g.cs | 518 ++ ...ient.GetTableSheetVersionScoreHistory.g.cs | 553 ++ ...TablesClient.ListTableSheetOperations.g.cs | 509 ++ ...r.TablesClient.ListTableSheetVersions.g.cs | 563 ++ ...blesClient.RecalculateTableSheetScore.g.cs | 546 ++ .../Generated/PromptLayer.TablesClient.g.cs | 136 + src/libs/PromptLayer/openapi.json | 7114 +++++++++++------ 231 files changed, 25714 insertions(+), 2815 deletions(-) create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.CancelTableSheetOperation.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.ConfigureTableSheetScore.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.CreateTableSheetFileImport.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.CreateTableSheetOperation.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.CreateTableSheetRequestLogImport.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.CreateTableSheetVersion.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.GetTableSheetOperationStatus.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.GetTableSheetScore.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.GetTableSheetVersion.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.GetTableSheetVersionScoreHistory.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.ListTableSheetOperations.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.ListTableSheetVersions.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.RecalculateTableSheetScore.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.ConfigureTableSheetScoreRequestAssertionAggregation.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.ConfigureTableSheetScoreRequestAssertionAggregationNullable.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.ConfigureTableSheetScoreRequestCodeLanguage.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.ConfigureTableSheetScoreRequestCodeLanguageNullable.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.ConfigureTableSheetScoreRequestScoreType.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.ConfigureTableSheetScoreRequestScoreTypeNullable.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateTableSheetOperationQueuedResponseOperation.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateTableSheetOperationQueuedResponseOperationNullable.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateTableSheetOperationRequestOperation.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateTableSheetOperationRequestOperationNullable.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateTableSheetOperationRequestStatuse.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateTableSheetOperationRequestStatuseNullable.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateTableSheetOperationResponse.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateTableSheetRequestLogImportRequestSortBy.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateTableSheetRequestLogImportRequestSortByNullable.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateTableSheetRequestLogImportRequestSortOrder.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateTableSheetRequestLogImportRequestSortOrderNullable.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.GetTableSheetVersionScoreHistoryRange.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.GetTableSheetVersionScoreHistoryRangeNullable.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.GetTableSheetVersionScoreHistoryResolution.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.GetTableSheetVersionScoreHistoryResolutionNullable.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.ListTableSheetVersionsOrder.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.ListTableSheetVersionsOrderNullable.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.ListTableSheetVersionsSort.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.ListTableSheetVersionsSortNullable.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.OneOf3.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.RecalculateTableSheetScoreResponseStatus.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.RecalculateTableSheetScoreResponseStatusNullable.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableCellStatus.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableCellStatusNullable.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetOperationOperation.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetOperationOperationNullable.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScoreColumnResolvedScoringType.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScoreColumnResolvedScoringTypeNullable.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScoreConfigurationScoreType.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScoreConfigurationScoreTypeNullable.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScoreHistoryResponseScoreHistoryResolution.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScoreHistoryResponseScoreHistoryResolutionNullable.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScoreResponseScoreType.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScoreResponseScoreTypeNullable.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScoreResponseScoringType.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScoreResponseScoringTypeNullable.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScoreResponseStatus.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScoreResponseStatusNullable.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.CancelTableSheetOperationResponse.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.CancelTableSheetOperationResponse.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScoreRequest.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScoreRequest.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScoreRequestAssertionAggregation.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScoreRequestCodeLanguage.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScoreRequestScoreConfig.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScoreRequestScoreConfig.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScoreRequestScoreType.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScoreResponse.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScoreResponse.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetFileImportRequest.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetFileImportRequest.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationConfirmationResponse.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationConfirmationResponse.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationNoopResponse.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationNoopResponse.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationQueuedResponse.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationQueuedResponse.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationQueuedResponseOperation.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationRequest.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationRequest.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationRequestOperation.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationRequestStatuse.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationResponse.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationResponse.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetRequestLogImportRequest.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetRequestLogImportRequest.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetRequestLogImportRequestSortBy.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetRequestLogImportRequestSortOrder.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetVersionRequest.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetVersionRequest.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.EmptyPublicFilters.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.EmptyPublicFilters.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetOperationResponse2.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetOperationResponse2.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetVersionResponse.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetVersionResponse.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetVersionScoreHistoryRange.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetVersionScoreHistoryResolution.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.ListTableSheetOperationsResponse.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.ListTableSheetOperationsResponse.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.ListTableSheetOperationsResponseStatusCounts.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.ListTableSheetOperationsResponseStatusCounts.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.ListTableSheetVersionsOrder.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.ListTableSheetVersionsResponse.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.ListTableSheetVersionsResponse.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.ListTableSheetVersionsSort.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.PublicListPagination.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.PublicListPagination.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.RecalculateTableSheetScoreResponse.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.RecalculateTableSheetScoreResponse.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.RecalculateTableSheetScoreResponseStatus.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableCell.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableCell.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableCellStatus.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetImportStartResponse.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetImportStartResponse.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetOperation.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetOperation.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetOperationOperation.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetOperationStatusCounts.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetOperationStatusCounts.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreCellObject.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreCellObject.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreColumn.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreColumn.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreColumnResolvedScoringType.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreConfiguration.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreConfiguration.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreConfigurationScoreConfig.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreConfigurationScoreConfig.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreConfigurationScoreType.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreHistoryResponse.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreHistoryResponse.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreHistoryResponseScoreHistory.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreHistoryResponseScoreHistory.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreHistoryResponseScoreHistoryPoint.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreHistoryResponseScoreHistoryPoint.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreHistoryResponseScoreHistoryResolution.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreMetric.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreMetric.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreResponse.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreResponse.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreResponseAggregate.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreResponseAggregate.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreResponseDetails.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreResponseDetails.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreResponsePerColumn.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreResponsePerColumn.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreResponseScoreType.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreResponseScoringType.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreResponseStatus.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetVersion.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetVersion.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetVersionDelta.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetVersionDelta.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetVersionMetadata.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetVersionMetadata.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetVersionScore.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetVersionScore.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetVersionScoreConfiguration.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetVersionScoreConfiguration.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetVersionSnapshot.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetVersionSnapshot.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.OneOf.3.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.OneOf.3.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.TablesClient.CancelTableSheetOperation.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.TablesClient.ConfigureTableSheetScore.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.TablesClient.CreateTableSheetFileImport.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.TablesClient.CreateTableSheetOperation.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.TablesClient.CreateTableSheetRequestLogImport.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.TablesClient.CreateTableSheetVersion.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.TablesClient.GetTableSheetOperationStatus.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.TablesClient.GetTableSheetScore.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.TablesClient.GetTableSheetVersion.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.TablesClient.GetTableSheetVersionScoreHistory.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.TablesClient.ListTableSheetOperations.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.TablesClient.ListTableSheetVersions.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.TablesClient.RecalculateTableSheetScore.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.TablesClient.g.cs diff --git a/src/libs/PromptLayer/Generated/PromptLayer.IPromptLayerClient.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.IPromptLayerClient.g.cs index cd0d9b6..c707cb1 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.IPromptLayerClient.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.IPromptLayerClient.g.cs @@ -134,6 +134,11 @@ public partial interface IPromptLayerClient : global::System.IDisposable /// public SpansClient Spans { get; } + /// + /// + /// + public TablesClient Tables { get; } + /// /// /// diff --git a/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.AddTableSheetRows.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.AddTableSheetRows.g.cs index 840eba6..30ab588 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.AddTableSheetRows.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.AddTableSheetRows.g.cs @@ -6,7 +6,7 @@ public partial interface ISmartTablesClient { /// /// Add Rows
- /// Append one or more rows to a sheet. Text column values can be set immediately; non-text column cells are created with `stale` status and must be triggered via a recalculation. + /// Append one or more rows to a sheet. Text column values can be set immediately; non-text column cells are created with `stale` status and must be triggered via a recalculation. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// @@ -23,7 +23,7 @@ public partial interface ISmartTablesClient global::System.Threading.CancellationToken cancellationToken = default); /// /// Add Rows
- /// Append one or more rows to a sheet. Text column values can be set immediately; non-text column cells are created with `stale` status and must be triggered via a recalculation. + /// Append one or more rows to a sheet. Text column values can be set immediately; non-text column cells are created with `stale` status and must be triggered via a recalculation. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// @@ -40,7 +40,7 @@ public partial interface ISmartTablesClient global::System.Threading.CancellationToken cancellationToken = default); /// /// Add Rows
- /// Append one or more rows to a sheet. Text column values can be set immediately; non-text column cells are created with `stale` status and must be triggered via a recalculation. + /// Append one or more rows to a sheet. Text column values can be set immediately; non-text column cells are created with `stale` status and must be triggered via a recalculation. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// diff --git a/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.CreateTable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.CreateTable.g.cs index 6e62ff0..018287b 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.CreateTable.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.CreateTable.g.cs @@ -6,7 +6,7 @@ public partial interface ISmartTablesClient { /// /// Create Table
- /// Create a new Table. A default sheet with one text column is created automatically. + /// Create a new Table. A default sheet with one text column is created automatically. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -19,7 +19,7 @@ public partial interface ISmartTablesClient global::System.Threading.CancellationToken cancellationToken = default); /// /// Create Table
- /// Create a new Table. A default sheet with one text column is created automatically. + /// Create a new Table. A default sheet with one text column is created automatically. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -32,7 +32,7 @@ public partial interface ISmartTablesClient global::System.Threading.CancellationToken cancellationToken = default); /// /// Create Table
- /// Create a new Table. A default sheet with one text column is created automatically. + /// Create a new Table. A default sheet with one text column is created automatically. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// Table title. Defaults to a unique 'Untitled Table' name if omitted. diff --git a/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.CreateTableSheet.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.CreateTableSheet.g.cs index 5f778b3..b84a98d 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.CreateTableSheet.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.CreateTableSheet.g.cs @@ -6,7 +6,7 @@ public partial interface ISmartTablesClient { /// /// Create Sheet
- /// Create a new sheet in a table by importing data from a file (CSV or JSON, base64-encoded) or from request log history. + /// Create a new sheet in a table by importing data from a file (CSV or JSON, base64-encoded) or from request log history. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// @@ -21,7 +21,7 @@ public partial interface ISmartTablesClient global::System.Threading.CancellationToken cancellationToken = default); /// /// Create Sheet
- /// Create a new sheet in a table by importing data from a file (CSV or JSON, base64-encoded) or from request log history. + /// Create a new sheet in a table by importing data from a file (CSV or JSON, base64-encoded) or from request log history. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// @@ -36,7 +36,7 @@ public partial interface ISmartTablesClient global::System.Threading.CancellationToken cancellationToken = default); /// /// Create Sheet
- /// Create a new sheet in a table by importing data from a file (CSV or JSON, base64-encoded) or from request log history. + /// Create a new sheet in a table by importing data from a file (CSV or JSON, base64-encoded) or from request log history. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// diff --git a/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.CreateTableSheetCellRecalculation.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.CreateTableSheetCellRecalculation.g.cs index 4f4bedb..1cb1fee 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.CreateTableSheetCellRecalculation.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.CreateTableSheetCellRecalculation.g.cs @@ -6,7 +6,7 @@ public partial interface ISmartTablesClient { /// /// Recalculate Cell
- /// Trigger recalculation for a single cell. + /// Trigger recalculation for a single cell. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// @@ -22,7 +22,7 @@ public partial interface ISmartTablesClient global::System.Threading.CancellationToken cancellationToken = default); /// /// Recalculate Cell
- /// Trigger recalculation for a single cell. + /// Trigger recalculation for a single cell. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// diff --git a/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.CreateTableSheetCellRecalculationsBatch.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.CreateTableSheetCellRecalculationsBatch.g.cs index c975ed2..425b98e 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.CreateTableSheetCellRecalculationsBatch.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.CreateTableSheetCellRecalculationsBatch.g.cs @@ -6,7 +6,7 @@ public partial interface ISmartTablesClient { /// /// Recalculate Cells (Batch)
- /// Trigger recalculation for a batch of cells identified by ID. + /// Trigger recalculation for a batch of cells identified by ID. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// @@ -23,7 +23,7 @@ public partial interface ISmartTablesClient global::System.Threading.CancellationToken cancellationToken = default); /// /// Recalculate Cells (Batch)
- /// Trigger recalculation for a batch of cells identified by ID. + /// Trigger recalculation for a batch of cells identified by ID. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// @@ -40,7 +40,7 @@ public partial interface ISmartTablesClient global::System.Threading.CancellationToken cancellationToken = default); /// /// Recalculate Cells (Batch)
- /// Trigger recalculation for a batch of cells identified by ID. + /// Trigger recalculation for a batch of cells identified by ID. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// diff --git a/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.CreateTableSheetColumn.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.CreateTableSheetColumn.g.cs index b5cfdc7..c0f947b 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.CreateTableSheetColumn.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.CreateTableSheetColumn.g.cs @@ -6,7 +6,7 @@ public partial interface ISmartTablesClient { /// /// Create Column
- /// Add a new column to a sheet. Non-text columns will generate cells for all existing rows. + /// Add a new column to a sheet. Non-text columns will generate cells for all existing rows. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// @@ -23,7 +23,7 @@ public partial interface ISmartTablesClient global::System.Threading.CancellationToken cancellationToken = default); /// /// Create Column
- /// Add a new column to a sheet. Non-text columns will generate cells for all existing rows. + /// Add a new column to a sheet. Non-text columns will generate cells for all existing rows. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// @@ -40,7 +40,7 @@ public partial interface ISmartTablesClient global::System.Threading.CancellationToken cancellationToken = default); /// /// Create Column
- /// Add a new column to a sheet. Non-text columns will generate cells for all existing rows. + /// Add a new column to a sheet. Non-text columns will generate cells for all existing rows. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// diff --git a/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.GetTable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.GetTable.g.cs index 38a27f6..c9003b8 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.GetTable.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.GetTable.g.cs @@ -5,7 +5,8 @@ namespace PromptLayer public partial interface ISmartTablesClient { /// - /// Get Table + /// Get Table
+ /// Get Table. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -16,7 +17,8 @@ public partial interface ISmartTablesClient global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Get Table + /// Get Table
+ /// Get Table. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. diff --git a/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.GetTableSheet.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.GetTableSheet.g.cs index c555cd6..52fdf1d 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.GetTableSheet.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.GetTableSheet.g.cs @@ -5,7 +5,8 @@ namespace PromptLayer public partial interface ISmartTablesClient { /// - /// Get Sheet + /// Get Sheet
+ /// Get Sheet. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// @@ -18,7 +19,8 @@ public partial interface ISmartTablesClient global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Get Sheet + /// Get Sheet
+ /// Get Sheet. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// diff --git a/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.GetTableSheetCell.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.GetTableSheetCell.g.cs index 6664138..68bfbc6 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.GetTableSheetCell.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.GetTableSheetCell.g.cs @@ -6,7 +6,7 @@ public partial interface ISmartTablesClient { /// /// Get Cell
- /// Retrieve a single cell by ID. For prompt-template column cells, the response includes a `request_metrics` object with price, latency, and token usage when available. + /// Retrieve a single cell by ID. For prompt-template column cells, the response includes a `request_metrics` object with price, latency, and token usage when available. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// @@ -22,7 +22,7 @@ public partial interface ISmartTablesClient global::System.Threading.CancellationToken cancellationToken = default); /// /// Get Cell
- /// Retrieve a single cell by ID. For prompt-template column cells, the response includes a `request_metrics` object with price, latency, and token usage when available. + /// Retrieve a single cell by ID. For prompt-template column cells, the response includes a `request_metrics` object with price, latency, and token usage when available. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// diff --git a/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.GetTableSheetOperation.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.GetTableSheetOperation.g.cs index e99934c..0872ec3 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.GetTableSheetOperation.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.GetTableSheetOperation.g.cs @@ -6,28 +6,28 @@ public partial interface ISmartTablesClient { /// /// Get Sheet Import Operation
- /// Poll the status of an asynchronous sheet import operation. + /// Poll the status of an asynchronous sheet import operation. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task GetTableSheetOperationAsync( + global::System.Threading.Tasks.Task GetTableSheetOperationAsync( global::System.Guid tableId, string operationId, global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// /// Get Sheet Import Operation
- /// Poll the status of an asynchronous sheet import operation. + /// Poll the status of an asynchronous sheet import operation. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> GetTableSheetOperationAsResponseAsync( + global::System.Threading.Tasks.Task> GetTableSheetOperationAsResponseAsync( global::System.Guid tableId, string operationId, global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, diff --git a/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.ListTableSheetColumns.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.ListTableSheetColumns.g.cs index 59735de..f377e96 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.ListTableSheetColumns.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.ListTableSheetColumns.g.cs @@ -6,7 +6,7 @@ public partial interface ISmartTablesClient { /// /// List Columns
- /// List columns in a sheet, ordered by position rank. By default, system-managed metadata columns such as price and latency columns are excluded; pass `include_system_columns=true` to include them. + /// List columns in a sheet, ordered by position rank. By default, system-managed metadata columns such as price and latency columns are excluded; pass `include_system_columns=true` to include them. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// @@ -30,7 +30,7 @@ public partial interface ISmartTablesClient global::System.Threading.CancellationToken cancellationToken = default); /// /// List Columns
- /// List columns in a sheet, ordered by position rank. By default, system-managed metadata columns such as price and latency columns are excluded; pass `include_system_columns=true` to include them. + /// List columns in a sheet, ordered by position rank. By default, system-managed metadata columns such as price and latency columns are excluded; pass `include_system_columns=true` to include them. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// diff --git a/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.ListTableSheetRows.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.ListTableSheetRows.g.cs index 36b44e6..d6a08bc 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.ListTableSheetRows.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.ListTableSheetRows.g.cs @@ -6,7 +6,7 @@ public partial interface ISmartTablesClient { /// /// List Rows
- /// List rows in a sheet, each containing a map of column_id to cell. For prompt-template column cells, each cell can include a `request_metrics` object with price, latency, and token usage when available. Pass `include_columns=true` on the first page to receive column metadata alongside rows. + /// List rows in a sheet, each containing a map of column_id to cell. For prompt-template column cells, each cell can include a `request_metrics` object with price, latency, and token usage when available. Pass `include_columns=true` on the first page to receive column metadata alongside rows. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// @@ -46,7 +46,7 @@ public partial interface ISmartTablesClient global::System.Threading.CancellationToken cancellationToken = default); /// /// List Rows
- /// List rows in a sheet, each containing a map of column_id to cell. For prompt-template column cells, each cell can include a `request_metrics` object with price, latency, and token usage when available. Pass `include_columns=true` on the first page to receive column metadata alongside rows. + /// List rows in a sheet, each containing a map of column_id to cell. For prompt-template column cells, each cell can include a `request_metrics` object with price, latency, and token usage when available. Pass `include_columns=true` on the first page to receive column metadata alongside rows. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// diff --git a/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.ListTableSheets.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.ListTableSheets.g.cs index f79e978..7c95b54 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.ListTableSheets.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.ListTableSheets.g.cs @@ -6,7 +6,7 @@ public partial interface ISmartTablesClient { /// /// List Sheets
- /// List all sheets in a table, ordered by their index. + /// List all sheets in a table, ordered by their index. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// @@ -34,7 +34,7 @@ public partial interface ISmartTablesClient global::System.Threading.CancellationToken cancellationToken = default); /// /// List Sheets
- /// List all sheets in a table, ordered by their index. + /// List all sheets in a table, ordered by their index. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// diff --git a/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.ListTables.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.ListTables.g.cs index 4ba1594..033e39b 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.ListTables.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.ListTables.g.cs @@ -6,7 +6,7 @@ public partial interface ISmartTablesClient { /// /// List Tables
- /// List Tables in the workspace. Supports cursor-based pagination and optional filtering by folder or prompt column. + /// List Tables in the workspace. Supports cursor-based pagination and optional filtering by folder or prompt column. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// Filter by folder ID. @@ -44,7 +44,7 @@ public partial interface ISmartTablesClient global::System.Threading.CancellationToken cancellationToken = default); /// /// List Tables
- /// List Tables in the workspace. Supports cursor-based pagination and optional filtering by folder or prompt column. + /// List Tables in the workspace. Supports cursor-based pagination and optional filtering by folder or prompt column. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// Filter by folder ID. diff --git a/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.UpdateTable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.UpdateTable.g.cs index 4a904a6..27984d9 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.UpdateTable.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.UpdateTable.g.cs @@ -5,7 +5,8 @@ namespace PromptLayer public partial interface ISmartTablesClient { /// - /// Update Table + /// Update Table
+ /// Update Table. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// @@ -19,7 +20,8 @@ public partial interface ISmartTablesClient global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Update Table + /// Update Table
+ /// Update Table. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// @@ -33,7 +35,8 @@ public partial interface ISmartTablesClient global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Update Table + /// Update Table
+ /// Update Table. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// diff --git a/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.UpdateTableSheet.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.UpdateTableSheet.g.cs index e988ec2..1e1e2f2 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.UpdateTableSheet.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.UpdateTableSheet.g.cs @@ -5,7 +5,8 @@ namespace PromptLayer public partial interface ISmartTablesClient { /// - /// Update Sheet + /// Update Sheet
+ /// Update Sheet. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// @@ -21,7 +22,8 @@ public partial interface ISmartTablesClient global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Update Sheet + /// Update Sheet
+ /// Update Sheet. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// @@ -37,7 +39,8 @@ public partial interface ISmartTablesClient global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Update Sheet + /// Update Sheet
+ /// Update Sheet. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// diff --git a/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.UpdateTableSheetCell.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.UpdateTableSheetCell.g.cs index 258ad92..b755e62 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.UpdateTableSheetCell.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.UpdateTableSheetCell.g.cs @@ -6,7 +6,7 @@ public partial interface ISmartTablesClient { /// /// Update Cell
- /// Edit the value of a text column cell. Only cells in `text` type columns can be edited directly; computed cells are recalculated automatically. + /// Edit the value of a text column cell. Only cells in `text` type columns can be edited directly; computed cells are recalculated automatically. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// @@ -25,7 +25,7 @@ public partial interface ISmartTablesClient global::System.Threading.CancellationToken cancellationToken = default); /// /// Update Cell
- /// Edit the value of a text column cell. Only cells in `text` type columns can be edited directly; computed cells are recalculated automatically. + /// Edit the value of a text column cell. Only cells in `text` type columns can be edited directly; computed cells are recalculated automatically. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// @@ -44,7 +44,7 @@ public partial interface ISmartTablesClient global::System.Threading.CancellationToken cancellationToken = default); /// /// Update Cell
- /// Edit the value of a text column cell. Only cells in `text` type columns can be edited directly; computed cells are recalculated automatically. + /// Edit the value of a text column cell. Only cells in `text` type columns can be edited directly; computed cells are recalculated automatically. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// diff --git a/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.UpdateTableSheetColumn.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.UpdateTableSheetColumn.g.cs index 93e1af4..f97fe55 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.UpdateTableSheetColumn.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.ISmartTablesClient.UpdateTableSheetColumn.g.cs @@ -6,7 +6,7 @@ public partial interface ISmartTablesClient { /// /// Update Column
- /// Update a column's title, config, or dependencies. Returns `requires_recalculation: true` when the change invalidates existing cell values. + /// Update a column's title, config, or dependencies. Returns `requires_recalculation: true` when the change invalidates existing cell values. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// @@ -25,7 +25,7 @@ public partial interface ISmartTablesClient global::System.Threading.CancellationToken cancellationToken = default); /// /// Update Column
- /// Update a column's title, config, or dependencies. Returns `requires_recalculation: true` when the change invalidates existing cell values. + /// Update a column's title, config, or dependencies. Returns `requires_recalculation: true` when the change invalidates existing cell values. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// @@ -44,7 +44,7 @@ public partial interface ISmartTablesClient global::System.Threading.CancellationToken cancellationToken = default); /// /// Update Column
- /// Update a column's title, config, or dependencies. Returns `requires_recalculation: true` when the change invalidates existing cell values. + /// Update a column's title, config, or dependencies. Returns `requires_recalculation: true` when the change invalidates existing cell values. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// diff --git a/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.CancelTableSheetOperation.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.CancelTableSheetOperation.g.cs new file mode 100644 index 0000000..de13e18 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.CancelTableSheetOperation.g.cs @@ -0,0 +1,40 @@ +#nullable enable + +namespace PromptLayer +{ + public partial interface ITablesClient + { + /// + /// Cancel Table Sheet Operation
+ /// Cancel an active Table sheet recalculation operation. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task CancelTableSheetOperationAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + string operationId, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Cancel Table Sheet Operation
+ /// Cancel an active Table sheet recalculation operation. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> CancelTableSheetOperationAsResponseAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + string operationId, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.ConfigureTableSheetScore.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.ConfigureTableSheetScore.g.cs new file mode 100644 index 0000000..98b9b20 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.ConfigureTableSheetScore.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public partial interface ITablesClient + { + /// + /// Configure Table Sheet Score
+ /// Configure scoring for a Table sheet. This endpoint updates the configuration and returns whether recalculation is required; it does not queue score calculation. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task ConfigureTableSheetScoreAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + + global::PromptLayer.ConfigureTableSheetScoreRequest request, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Configure Table Sheet Score
+ /// Configure scoring for a Table sheet. This endpoint updates the configuration and returns whether recalculation is required; it does not queue score calculation. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> ConfigureTableSheetScoreAsResponseAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + + global::PromptLayer.ConfigureTableSheetScoreRequest request, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Configure Table Sheet Score
+ /// Configure scoring for a Table sheet. This endpoint updates the configuration and returns whether recalculation is required; it does not queue score calculation. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// Scoring mode. Required when score_config is provided. + /// + /// + /// Explicit score configuration. + /// + /// + /// Column IDs to score. + /// + /// + /// Column titles to score. Titles must be unique in the sheet. + /// + /// + /// Custom scoring code. + /// + /// + /// Default Value: PYTHON + /// + /// + /// Values treated as true for boolean scoring. + /// + /// + /// Values treated as false for boolean scoring. + /// + /// + /// Aggregation mode for assertion-style boolean scoring. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task ConfigureTableSheetScoreAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + global::PromptLayer.ConfigureTableSheetScoreRequestScoreType? scoreType = default, + object? scoreConfig = default, + global::System.Collections.Generic.IList? columnIds = default, + global::System.Collections.Generic.IList? columnNames = default, + string? code = default, + global::PromptLayer.ConfigureTableSheetScoreRequestCodeLanguage? codeLanguage = default, + global::System.Collections.Generic.IList? trueValues = default, + global::System.Collections.Generic.IList? falseValues = default, + global::PromptLayer.ConfigureTableSheetScoreRequestAssertionAggregation? assertionAggregation = default, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.CreateTableSheetFileImport.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.CreateTableSheetFileImport.g.cs new file mode 100644 index 0000000..77d8fe5 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.CreateTableSheetFileImport.g.cs @@ -0,0 +1,68 @@ +#nullable enable + +namespace PromptLayer +{ + public partial interface ITablesClient + { + /// + /// Import File Into Table Sheet
+ /// Start an asynchronous CSV import into an existing Table sheet. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task CreateTableSheetFileImportAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + + global::PromptLayer.CreateTableSheetFileImportRequest request, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Import File Into Table Sheet
+ /// Start an asynchronous CSV import into an existing Table sheet. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> CreateTableSheetFileImportAsResponseAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + + global::PromptLayer.CreateTableSheetFileImportRequest request, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Import File Into Table Sheet
+ /// Start an asynchronous CSV import into an existing Table sheet. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// Optional client-provided operation ID. A UUID is generated when omitted. + /// + /// + /// CSV file name. Must end with .csv. + /// + /// + /// Base64-encoded CSV file content. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task CreateTableSheetFileImportAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + string fileName, + string fileContentBase64, + string? operationId = default, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.CreateTableSheetOperation.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.CreateTableSheetOperation.g.cs new file mode 100644 index 0000000..96b9c1d --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.CreateTableSheetOperation.g.cs @@ -0,0 +1,76 @@ +#nullable enable + +namespace PromptLayer +{ + public partial interface ITablesClient + { + /// + /// Create Table Sheet Operation
+ /// Queue a recalculation operation for selected columns, rows, and cell statuses. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task CreateTableSheetOperationAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + + global::PromptLayer.CreateTableSheetOperationRequest request, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Create Table Sheet Operation
+ /// Queue a recalculation operation for selected columns, rows, and cell statuses. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> CreateTableSheetOperationAsResponseAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + + global::PromptLayer.CreateTableSheetOperationRequest request, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Create Table Sheet Operation
+ /// Queue a recalculation operation for selected columns, rows, and cell statuses. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// Default Value: recalculate + /// + /// + /// Columns to recalculate. Text columns cannot be recalculated. + /// + /// + /// Zero-based row indices to recalculate. If omitted, matching cells across all rows are considered. + /// + /// + /// Cell statuses to include. Defaults to stale cells. Pass an empty array to include all statuses. + /// + /// + /// Confirmation token returned when the operation exceeds the confirmation threshold. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task CreateTableSheetOperationAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + global::PromptLayer.CreateTableSheetOperationRequestOperation? operation = default, + global::System.Collections.Generic.IList? columnIds = default, + global::System.Collections.Generic.IList? rowIds = default, + global::System.Collections.Generic.IList? statuses = default, + string? confirmationToken = default, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.CreateTableSheetRequestLogImport.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.CreateTableSheetRequestLogImport.g.cs new file mode 100644 index 0000000..ab009da --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.CreateTableSheetRequestLogImport.g.cs @@ -0,0 +1,97 @@ +#nullable enable + +namespace PromptLayer +{ + public partial interface ITablesClient + { + /// + /// Import Request Logs Into Table Sheet
+ /// Start an asynchronous request-history import into an existing Table sheet. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task CreateTableSheetRequestLogImportAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + + global::PromptLayer.CreateTableSheetRequestLogImportRequest request, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Import Request Logs Into Table Sheet
+ /// Start an asynchronous request-history import into an existing Table sheet. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> CreateTableSheetRequestLogImportAsResponseAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + + global::PromptLayer.CreateTableSheetRequestLogImportRequest request, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Import Request Logs Into Table Sheet
+ /// Start an asynchronous request-history import into an existing Table sheet. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// Nested filter group with AND/OR logic. Use this for complex queries. + /// + /// + /// Free-text request-log search query applied with filter_group. + /// + /// + /// Field to sort matching request logs before import. + /// + /// + /// Sort direction. Must be provided together with sort_by. + /// + /// + /// Request-log query metadata key used by shared request-log query payloads. + /// + /// + /// Optional client-provided operation ID. A UUID is generated when omitted. + /// + /// + /// Specific request log IDs to import. + /// + /// + /// Input variable names to parse from matching request logs.
+ /// Default Value: [] + /// + /// + /// Additional request log fields to include as columns. + /// + /// + /// Maximum number of matching request logs to import. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task CreateTableSheetRequestLogImportAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + global::PromptLayer.StructuredFilterGroup? filterGroup = default, + string? q = default, + global::PromptLayer.CreateTableSheetRequestLogImportRequestSortBy? sortBy = default, + global::PromptLayer.CreateTableSheetRequestLogImportRequestSortOrder? sortOrder = default, + string? metadataCostBreakdownKey = default, + string? operationId = default, + global::System.Collections.Generic.IList? requestLogIds = default, + global::System.Collections.Generic.IList? variablesToParse = default, + global::System.Collections.Generic.IList? includeFields = default, + int? limit = default, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.CreateTableSheetVersion.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.CreateTableSheetVersion.g.cs new file mode 100644 index 0000000..e8ae8dd --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.CreateTableSheetVersion.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +namespace PromptLayer +{ + public partial interface ITablesClient + { + /// + /// Create Table Sheet Version
+ /// Create a named Table sheet version, or restore from an existing version while creating a new version. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task CreateTableSheetVersionAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + + global::PromptLayer.CreateTableSheetVersionRequest request, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Create Table Sheet Version
+ /// Create a named Table sheet version, or restore from an existing version while creating a new version. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> CreateTableSheetVersionAsResponseAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + + global::PromptLayer.CreateTableSheetVersionRequest request, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Create Table Sheet Version
+ /// Create a named Table sheet version, or restore from an existing version while creating a new version. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// Version name. Required when source_version_id is omitted. + /// + /// + /// Existing version to restore from while creating a new version. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task CreateTableSheetVersionAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + string? name = default, + global::System.Guid? sourceVersionId = default, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.GetTableSheetOperationStatus.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.GetTableSheetOperationStatus.g.cs new file mode 100644 index 0000000..bb3b458 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.GetTableSheetOperationStatus.g.cs @@ -0,0 +1,40 @@ +#nullable enable + +namespace PromptLayer +{ + public partial interface ITablesClient + { + /// + /// Get Table Sheet Operation
+ /// Poll a Table sheet recalculation operation by operation ID. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task GetTableSheetOperationStatusAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + string operationId, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Get Table Sheet Operation
+ /// Poll a Table sheet recalculation operation by operation ID. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> GetTableSheetOperationStatusAsResponseAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + string operationId, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.GetTableSheetScore.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.GetTableSheetScore.g.cs new file mode 100644 index 0000000..4f7eed1 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.GetTableSheetScore.g.cs @@ -0,0 +1,36 @@ +#nullable enable + +namespace PromptLayer +{ + public partial interface ITablesClient + { + /// + /// Get Table Sheet Score
+ /// Retrieve the current score payload for a Table sheet. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task GetTableSheetScoreAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Get Table Sheet Score
+ /// Retrieve the current score payload for a Table sheet. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> GetTableSheetScoreAsResponseAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.GetTableSheetVersion.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.GetTableSheetVersion.g.cs new file mode 100644 index 0000000..dff9d3a --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.GetTableSheetVersion.g.cs @@ -0,0 +1,40 @@ +#nullable enable + +namespace PromptLayer +{ + public partial interface ITablesClient + { + /// + /// Get Table Sheet Version
+ /// Retrieve one Table sheet version, including its snapshot. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task GetTableSheetVersionAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + global::System.Guid versionId, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Get Table Sheet Version
+ /// Retrieve one Table sheet version, including its snapshot. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> GetTableSheetVersionAsResponseAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + global::System.Guid versionId, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.GetTableSheetVersionScoreHistory.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.GetTableSheetVersionScoreHistory.g.cs new file mode 100644 index 0000000..0026907 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.GetTableSheetVersionScoreHistory.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer +{ + public partial interface ITablesClient + { + /// + /// Get Table Sheet Score History
+ /// Retrieve score-history points across Table sheet versions. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// Default Value: 1200 + /// + /// + /// Default Value: all + /// + /// + /// Default Value: auto + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task GetTableSheetVersionScoreHistoryAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + int? maxPoints = default, + global::PromptLayer.GetTableSheetVersionScoreHistoryRange? range = default, + global::PromptLayer.GetTableSheetVersionScoreHistoryResolution? resolution = default, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Get Table Sheet Score History
+ /// Retrieve score-history points across Table sheet versions. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// Default Value: 1200 + /// + /// + /// Default Value: all + /// + /// + /// Default Value: auto + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> GetTableSheetVersionScoreHistoryAsResponseAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + int? maxPoints = default, + global::PromptLayer.GetTableSheetVersionScoreHistoryRange? range = default, + global::PromptLayer.GetTableSheetVersionScoreHistoryResolution? resolution = default, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.ListTableSheetOperations.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.ListTableSheetOperations.g.cs new file mode 100644 index 0000000..46136a2 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.ListTableSheetOperations.g.cs @@ -0,0 +1,36 @@ +#nullable enable + +namespace PromptLayer +{ + public partial interface ITablesClient + { + /// + /// List Table Sheet Operations
+ /// List active recalculation operations and cell status counts for a Table sheet. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task ListTableSheetOperationsAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// List Table Sheet Operations
+ /// List active recalculation operations and cell status counts for a Table sheet. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> ListTableSheetOperationsAsResponseAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.ListTableSheetVersions.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.ListTableSheetVersions.g.cs new file mode 100644 index 0000000..76f06ef --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.ListTableSheetVersions.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +namespace PromptLayer +{ + public partial interface ITablesClient + { + /// + /// List Table Sheet Versions
+ /// List saved versions for a Table sheet. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// + /// Default Value: 20 + /// + /// + /// Default Value: version_number + /// + /// + /// Default Value: desc + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task ListTableSheetVersionsAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + string? cursor = default, + int? limit = default, + global::PromptLayer.ListTableSheetVersionsSort? sort = default, + global::PromptLayer.ListTableSheetVersionsOrder? order = default, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// List Table Sheet Versions
+ /// List saved versions for a Table sheet. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// + /// Default Value: 20 + /// + /// + /// Default Value: version_number + /// + /// + /// Default Value: desc + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> ListTableSheetVersionsAsResponseAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + string? cursor = default, + int? limit = default, + global::PromptLayer.ListTableSheetVersionsSort? sort = default, + global::PromptLayer.ListTableSheetVersionsOrder? order = default, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.RecalculateTableSheetScore.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.RecalculateTableSheetScore.g.cs new file mode 100644 index 0000000..02a3c1e --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.RecalculateTableSheetScore.g.cs @@ -0,0 +1,36 @@ +#nullable enable + +namespace PromptLayer +{ + public partial interface ITablesClient + { + /// + /// Recalculate Table Sheet Score
+ /// Queue recalculation for an existing Table sheet score configuration. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task RecalculateTableSheetScoreAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Recalculate Table Sheet Score
+ /// Queue recalculation for an existing Table sheet score configuration. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> RecalculateTableSheetScoreAsResponseAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.g.cs new file mode 100644 index 0000000..2c26a80 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.g.cs @@ -0,0 +1,48 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// If no httpClient is provided, a new one will be created.
+ /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + ///
+ public partial interface ITablesClient : global::System.IDisposable + { + /// + /// The HttpClient instance. + /// + public global::System.Net.Http.HttpClient HttpClient { get; } + + /// + /// The base URL for the API. + /// + public System.Uri? BaseUri { get; } + + /// + /// The authorizations to use for the requests. + /// + public global::System.Collections.Generic.List Authorizations { get; } + + /// + /// Gets or sets a value indicating whether the response content should be read as a string. + /// True by default in debug builds, false otherwise. + /// When false, successful responses are deserialized directly from the response stream for better performance. + /// Error responses are always read as strings regardless of this setting, + /// ensuring is populated. + /// + public bool ReadResponseAsString { get; set; } + /// + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// + public global::PromptLayer.AutoSDKClientOptions Options { get; } + + + /// + /// + /// + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.ConfigureTableSheetScoreRequestAssertionAggregation.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.ConfigureTableSheetScoreRequestAssertionAggregation.g.cs new file mode 100644 index 0000000..9623a3e --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.ConfigureTableSheetScoreRequestAssertionAggregation.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class ConfigureTableSheetScoreRequestAssertionAggregationJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.ConfigureTableSheetScoreRequestAssertionAggregation Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::PromptLayer.ConfigureTableSheetScoreRequestAssertionAggregationExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.ConfigureTableSheetScoreRequestAssertionAggregation)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.ConfigureTableSheetScoreRequestAssertionAggregation); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.ConfigureTableSheetScoreRequestAssertionAggregation value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.ConfigureTableSheetScoreRequestAssertionAggregationExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.ConfigureTableSheetScoreRequestAssertionAggregationNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.ConfigureTableSheetScoreRequestAssertionAggregationNullable.g.cs new file mode 100644 index 0000000..276d566 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.ConfigureTableSheetScoreRequestAssertionAggregationNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class ConfigureTableSheetScoreRequestAssertionAggregationNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.ConfigureTableSheetScoreRequestAssertionAggregation? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::PromptLayer.ConfigureTableSheetScoreRequestAssertionAggregationExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.ConfigureTableSheetScoreRequestAssertionAggregation)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.ConfigureTableSheetScoreRequestAssertionAggregation?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.ConfigureTableSheetScoreRequestAssertionAggregation? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::PromptLayer.ConfigureTableSheetScoreRequestAssertionAggregationExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.ConfigureTableSheetScoreRequestCodeLanguage.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.ConfigureTableSheetScoreRequestCodeLanguage.g.cs new file mode 100644 index 0000000..7488dd1 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.ConfigureTableSheetScoreRequestCodeLanguage.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class ConfigureTableSheetScoreRequestCodeLanguageJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.ConfigureTableSheetScoreRequestCodeLanguage Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::PromptLayer.ConfigureTableSheetScoreRequestCodeLanguageExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.ConfigureTableSheetScoreRequestCodeLanguage)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.ConfigureTableSheetScoreRequestCodeLanguage); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.ConfigureTableSheetScoreRequestCodeLanguage value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.ConfigureTableSheetScoreRequestCodeLanguageExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.ConfigureTableSheetScoreRequestCodeLanguageNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.ConfigureTableSheetScoreRequestCodeLanguageNullable.g.cs new file mode 100644 index 0000000..c5a14f1 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.ConfigureTableSheetScoreRequestCodeLanguageNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class ConfigureTableSheetScoreRequestCodeLanguageNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.ConfigureTableSheetScoreRequestCodeLanguage? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::PromptLayer.ConfigureTableSheetScoreRequestCodeLanguageExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.ConfigureTableSheetScoreRequestCodeLanguage)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.ConfigureTableSheetScoreRequestCodeLanguage?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.ConfigureTableSheetScoreRequestCodeLanguage? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::PromptLayer.ConfigureTableSheetScoreRequestCodeLanguageExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.ConfigureTableSheetScoreRequestScoreType.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.ConfigureTableSheetScoreRequestScoreType.g.cs new file mode 100644 index 0000000..1ce9aae --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.ConfigureTableSheetScoreRequestScoreType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class ConfigureTableSheetScoreRequestScoreTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.ConfigureTableSheetScoreRequestScoreType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::PromptLayer.ConfigureTableSheetScoreRequestScoreTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.ConfigureTableSheetScoreRequestScoreType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.ConfigureTableSheetScoreRequestScoreType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.ConfigureTableSheetScoreRequestScoreType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.ConfigureTableSheetScoreRequestScoreTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.ConfigureTableSheetScoreRequestScoreTypeNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.ConfigureTableSheetScoreRequestScoreTypeNullable.g.cs new file mode 100644 index 0000000..4abf765 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.ConfigureTableSheetScoreRequestScoreTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class ConfigureTableSheetScoreRequestScoreTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.ConfigureTableSheetScoreRequestScoreType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::PromptLayer.ConfigureTableSheetScoreRequestScoreTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.ConfigureTableSheetScoreRequestScoreType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.ConfigureTableSheetScoreRequestScoreType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.ConfigureTableSheetScoreRequestScoreType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::PromptLayer.ConfigureTableSheetScoreRequestScoreTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateTableSheetOperationQueuedResponseOperation.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateTableSheetOperationQueuedResponseOperation.g.cs new file mode 100644 index 0000000..77b9ff4 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateTableSheetOperationQueuedResponseOperation.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class CreateTableSheetOperationQueuedResponseOperationJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.CreateTableSheetOperationQueuedResponseOperation Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::PromptLayer.CreateTableSheetOperationQueuedResponseOperationExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.CreateTableSheetOperationQueuedResponseOperation)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.CreateTableSheetOperationQueuedResponseOperation); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.CreateTableSheetOperationQueuedResponseOperation value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.CreateTableSheetOperationQueuedResponseOperationExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateTableSheetOperationQueuedResponseOperationNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateTableSheetOperationQueuedResponseOperationNullable.g.cs new file mode 100644 index 0000000..5b677d4 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateTableSheetOperationQueuedResponseOperationNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class CreateTableSheetOperationQueuedResponseOperationNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.CreateTableSheetOperationQueuedResponseOperation? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::PromptLayer.CreateTableSheetOperationQueuedResponseOperationExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.CreateTableSheetOperationQueuedResponseOperation)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.CreateTableSheetOperationQueuedResponseOperation?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.CreateTableSheetOperationQueuedResponseOperation? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::PromptLayer.CreateTableSheetOperationQueuedResponseOperationExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateTableSheetOperationRequestOperation.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateTableSheetOperationRequestOperation.g.cs new file mode 100644 index 0000000..4d6aa58 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateTableSheetOperationRequestOperation.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class CreateTableSheetOperationRequestOperationJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.CreateTableSheetOperationRequestOperation Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::PromptLayer.CreateTableSheetOperationRequestOperationExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.CreateTableSheetOperationRequestOperation)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.CreateTableSheetOperationRequestOperation); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.CreateTableSheetOperationRequestOperation value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.CreateTableSheetOperationRequestOperationExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateTableSheetOperationRequestOperationNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateTableSheetOperationRequestOperationNullable.g.cs new file mode 100644 index 0000000..b5c2ec3 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateTableSheetOperationRequestOperationNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class CreateTableSheetOperationRequestOperationNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.CreateTableSheetOperationRequestOperation? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::PromptLayer.CreateTableSheetOperationRequestOperationExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.CreateTableSheetOperationRequestOperation)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.CreateTableSheetOperationRequestOperation?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.CreateTableSheetOperationRequestOperation? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::PromptLayer.CreateTableSheetOperationRequestOperationExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateTableSheetOperationRequestStatuse.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateTableSheetOperationRequestStatuse.g.cs new file mode 100644 index 0000000..f6c6101 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateTableSheetOperationRequestStatuse.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class CreateTableSheetOperationRequestStatuseJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.CreateTableSheetOperationRequestStatuse Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::PromptLayer.CreateTableSheetOperationRequestStatuseExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.CreateTableSheetOperationRequestStatuse)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.CreateTableSheetOperationRequestStatuse); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.CreateTableSheetOperationRequestStatuse value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.CreateTableSheetOperationRequestStatuseExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateTableSheetOperationRequestStatuseNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateTableSheetOperationRequestStatuseNullable.g.cs new file mode 100644 index 0000000..af56c94 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateTableSheetOperationRequestStatuseNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class CreateTableSheetOperationRequestStatuseNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.CreateTableSheetOperationRequestStatuse? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::PromptLayer.CreateTableSheetOperationRequestStatuseExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.CreateTableSheetOperationRequestStatuse)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.CreateTableSheetOperationRequestStatuse?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.CreateTableSheetOperationRequestStatuse? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::PromptLayer.CreateTableSheetOperationRequestStatuseExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateTableSheetOperationResponse.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateTableSheetOperationResponse.g.cs new file mode 100644 index 0000000..3c94c32 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateTableSheetOperationResponse.g.cs @@ -0,0 +1,201 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace PromptLayer.JsonConverters +{ + /// + public class CreateTableSheetOperationResponseJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.CreateTableSheetOperationResponse Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); + var __rawJson = __jsonDocument.RootElement.GetRawText(); + var __jsonProps = new global::System.Collections.Generic.HashSet(); + if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name); + + } + } + + var __score0 = 0; + if (__jsonProps.Contains("cell_count")) __score0++; + if (__jsonProps.Contains("cells")) __score0++; + if (__jsonProps.Contains("execution_id")) __score0++; + if (__jsonProps.Contains("execution_ids")) __score0++; + if (__jsonProps.Contains("operation")) __score0++; + if (__jsonProps.Contains("operation_id")) __score0++; + if (__jsonProps.Contains("status_url")) __score0++; + if (__jsonProps.Contains("success")) __score0++; + if (__jsonProps.Contains("version")) __score0++; + if (__jsonProps.Contains("virtual_cell_count")) __score0++; + var __score1 = 0; + if (__jsonProps.Contains("cell_count")) __score1++; + if (__jsonProps.Contains("cells")) __score1++; + if (__jsonProps.Contains("success")) __score1++; + if (__jsonProps.Contains("virtual_cell_count")) __score1++; + var __score2 = 0; + if (__jsonProps.Contains("affected_cell_count")) __score2++; + if (__jsonProps.Contains("confirmation_token")) __score2++; + if (__jsonProps.Contains("message")) __score2++; + if (__jsonProps.Contains("requires_confirmation")) __score2++; + if (__jsonProps.Contains("success")) __score2++; + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } + + global::PromptLayer.CreateTableSheetOperationQueuedResponse? createTableSheetOperationQueuedResponse = default; + global::PromptLayer.CreateTableSheetOperationNoopResponse? createTableSheetOperationNoopResponse = default; + global::PromptLayer.CreateTableSheetOperationConfirmationResponse? createTableSheetOperationConfirmationResponse = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::PromptLayer.CreateTableSheetOperationQueuedResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::PromptLayer.CreateTableSheetOperationQueuedResponse).Name}"); + createTableSheetOperationQueuedResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 1) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::PromptLayer.CreateTableSheetOperationNoopResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::PromptLayer.CreateTableSheetOperationNoopResponse).Name}"); + createTableSheetOperationNoopResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 2) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::PromptLayer.CreateTableSheetOperationConfirmationResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::PromptLayer.CreateTableSheetOperationConfirmationResponse).Name}"); + createTableSheetOperationConfirmationResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (createTableSheetOperationQueuedResponse == null && createTableSheetOperationNoopResponse == null && createTableSheetOperationConfirmationResponse == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::PromptLayer.CreateTableSheetOperationQueuedResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::PromptLayer.CreateTableSheetOperationQueuedResponse).Name}"); + createTableSheetOperationQueuedResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (createTableSheetOperationQueuedResponse == null && createTableSheetOperationNoopResponse == null && createTableSheetOperationConfirmationResponse == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::PromptLayer.CreateTableSheetOperationNoopResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::PromptLayer.CreateTableSheetOperationNoopResponse).Name}"); + createTableSheetOperationNoopResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (createTableSheetOperationQueuedResponse == null && createTableSheetOperationNoopResponse == null && createTableSheetOperationConfirmationResponse == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::PromptLayer.CreateTableSheetOperationConfirmationResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::PromptLayer.CreateTableSheetOperationConfirmationResponse).Name}"); + createTableSheetOperationConfirmationResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::PromptLayer.CreateTableSheetOperationResponse( + createTableSheetOperationQueuedResponse, + + createTableSheetOperationNoopResponse, + + createTableSheetOperationConfirmationResponse + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.CreateTableSheetOperationResponse value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsCreateTableSheetOperationQueuedResponse) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::PromptLayer.CreateTableSheetOperationQueuedResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::PromptLayer.CreateTableSheetOperationQueuedResponse).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CreateTableSheetOperationQueuedResponse!, typeInfo); + } + else if (value.IsCreateTableSheetOperationNoopResponse) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::PromptLayer.CreateTableSheetOperationNoopResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::PromptLayer.CreateTableSheetOperationNoopResponse).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CreateTableSheetOperationNoopResponse!, typeInfo); + } + else if (value.IsCreateTableSheetOperationConfirmationResponse) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::PromptLayer.CreateTableSheetOperationConfirmationResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::PromptLayer.CreateTableSheetOperationConfirmationResponse).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CreateTableSheetOperationConfirmationResponse!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateTableSheetRequestLogImportRequestSortBy.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateTableSheetRequestLogImportRequestSortBy.g.cs new file mode 100644 index 0000000..0b436c2 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateTableSheetRequestLogImportRequestSortBy.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class CreateTableSheetRequestLogImportRequestSortByJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.CreateTableSheetRequestLogImportRequestSortBy Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::PromptLayer.CreateTableSheetRequestLogImportRequestSortByExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.CreateTableSheetRequestLogImportRequestSortBy)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.CreateTableSheetRequestLogImportRequestSortBy); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.CreateTableSheetRequestLogImportRequestSortBy value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.CreateTableSheetRequestLogImportRequestSortByExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateTableSheetRequestLogImportRequestSortByNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateTableSheetRequestLogImportRequestSortByNullable.g.cs new file mode 100644 index 0000000..ccea87e --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateTableSheetRequestLogImportRequestSortByNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class CreateTableSheetRequestLogImportRequestSortByNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.CreateTableSheetRequestLogImportRequestSortBy? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::PromptLayer.CreateTableSheetRequestLogImportRequestSortByExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.CreateTableSheetRequestLogImportRequestSortBy)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.CreateTableSheetRequestLogImportRequestSortBy?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.CreateTableSheetRequestLogImportRequestSortBy? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::PromptLayer.CreateTableSheetRequestLogImportRequestSortByExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateTableSheetRequestLogImportRequestSortOrder.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateTableSheetRequestLogImportRequestSortOrder.g.cs new file mode 100644 index 0000000..0373c16 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateTableSheetRequestLogImportRequestSortOrder.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class CreateTableSheetRequestLogImportRequestSortOrderJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.CreateTableSheetRequestLogImportRequestSortOrder Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::PromptLayer.CreateTableSheetRequestLogImportRequestSortOrderExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.CreateTableSheetRequestLogImportRequestSortOrder)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.CreateTableSheetRequestLogImportRequestSortOrder); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.CreateTableSheetRequestLogImportRequestSortOrder value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.CreateTableSheetRequestLogImportRequestSortOrderExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateTableSheetRequestLogImportRequestSortOrderNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateTableSheetRequestLogImportRequestSortOrderNullable.g.cs new file mode 100644 index 0000000..e8c2924 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.CreateTableSheetRequestLogImportRequestSortOrderNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class CreateTableSheetRequestLogImportRequestSortOrderNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.CreateTableSheetRequestLogImportRequestSortOrder? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::PromptLayer.CreateTableSheetRequestLogImportRequestSortOrderExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.CreateTableSheetRequestLogImportRequestSortOrder)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.CreateTableSheetRequestLogImportRequestSortOrder?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.CreateTableSheetRequestLogImportRequestSortOrder? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::PromptLayer.CreateTableSheetRequestLogImportRequestSortOrderExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.GetTableSheetVersionScoreHistoryRange.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.GetTableSheetVersionScoreHistoryRange.g.cs new file mode 100644 index 0000000..2530005 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.GetTableSheetVersionScoreHistoryRange.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class GetTableSheetVersionScoreHistoryRangeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.GetTableSheetVersionScoreHistoryRange Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::PromptLayer.GetTableSheetVersionScoreHistoryRangeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.GetTableSheetVersionScoreHistoryRange)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.GetTableSheetVersionScoreHistoryRange); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.GetTableSheetVersionScoreHistoryRange value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.GetTableSheetVersionScoreHistoryRangeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.GetTableSheetVersionScoreHistoryRangeNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.GetTableSheetVersionScoreHistoryRangeNullable.g.cs new file mode 100644 index 0000000..44d207f --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.GetTableSheetVersionScoreHistoryRangeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class GetTableSheetVersionScoreHistoryRangeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.GetTableSheetVersionScoreHistoryRange? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::PromptLayer.GetTableSheetVersionScoreHistoryRangeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.GetTableSheetVersionScoreHistoryRange)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.GetTableSheetVersionScoreHistoryRange?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.GetTableSheetVersionScoreHistoryRange? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::PromptLayer.GetTableSheetVersionScoreHistoryRangeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.GetTableSheetVersionScoreHistoryResolution.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.GetTableSheetVersionScoreHistoryResolution.g.cs new file mode 100644 index 0000000..6460d9b --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.GetTableSheetVersionScoreHistoryResolution.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class GetTableSheetVersionScoreHistoryResolutionJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.GetTableSheetVersionScoreHistoryResolution Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::PromptLayer.GetTableSheetVersionScoreHistoryResolutionExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.GetTableSheetVersionScoreHistoryResolution)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.GetTableSheetVersionScoreHistoryResolution); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.GetTableSheetVersionScoreHistoryResolution value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.GetTableSheetVersionScoreHistoryResolutionExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.GetTableSheetVersionScoreHistoryResolutionNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.GetTableSheetVersionScoreHistoryResolutionNullable.g.cs new file mode 100644 index 0000000..8980ec7 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.GetTableSheetVersionScoreHistoryResolutionNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class GetTableSheetVersionScoreHistoryResolutionNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.GetTableSheetVersionScoreHistoryResolution? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::PromptLayer.GetTableSheetVersionScoreHistoryResolutionExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.GetTableSheetVersionScoreHistoryResolution)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.GetTableSheetVersionScoreHistoryResolution?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.GetTableSheetVersionScoreHistoryResolution? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::PromptLayer.GetTableSheetVersionScoreHistoryResolutionExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.ListTableSheetVersionsOrder.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.ListTableSheetVersionsOrder.g.cs new file mode 100644 index 0000000..b11ae60 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.ListTableSheetVersionsOrder.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class ListTableSheetVersionsOrderJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.ListTableSheetVersionsOrder Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::PromptLayer.ListTableSheetVersionsOrderExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.ListTableSheetVersionsOrder)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.ListTableSheetVersionsOrder); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.ListTableSheetVersionsOrder value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.ListTableSheetVersionsOrderExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.ListTableSheetVersionsOrderNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.ListTableSheetVersionsOrderNullable.g.cs new file mode 100644 index 0000000..5de5b7a --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.ListTableSheetVersionsOrderNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class ListTableSheetVersionsOrderNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.ListTableSheetVersionsOrder? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::PromptLayer.ListTableSheetVersionsOrderExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.ListTableSheetVersionsOrder)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.ListTableSheetVersionsOrder?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.ListTableSheetVersionsOrder? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::PromptLayer.ListTableSheetVersionsOrderExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.ListTableSheetVersionsSort.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.ListTableSheetVersionsSort.g.cs new file mode 100644 index 0000000..0b6ac33 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.ListTableSheetVersionsSort.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class ListTableSheetVersionsSortJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.ListTableSheetVersionsSort Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::PromptLayer.ListTableSheetVersionsSortExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.ListTableSheetVersionsSort)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.ListTableSheetVersionsSort); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.ListTableSheetVersionsSort value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.ListTableSheetVersionsSortExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.ListTableSheetVersionsSortNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.ListTableSheetVersionsSortNullable.g.cs new file mode 100644 index 0000000..a2743ad --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.ListTableSheetVersionsSortNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class ListTableSheetVersionsSortNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.ListTableSheetVersionsSort? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::PromptLayer.ListTableSheetVersionsSortExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.ListTableSheetVersionsSort)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.ListTableSheetVersionsSort?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.ListTableSheetVersionsSort? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::PromptLayer.ListTableSheetVersionsSortExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.OneOf3.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.OneOf3.g.cs new file mode 100644 index 0000000..40f7b07 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.OneOf3.g.cs @@ -0,0 +1,216 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public class OneOfJsonConverter : global::System.Text.Json.Serialization.JsonConverter> + { + /// + public override global::PromptLayer.OneOf Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + + using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); + var __rawJson = __jsonDocument.RootElement.GetRawText(); + var __jsonProps = new global::System.Collections.Generic.HashSet(); + if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name); + } + } + + var __score0 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(T1), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score0++; + } + } + } + var __score1 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(T2), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score1++; + } + } + } + var __score2 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(T3), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score2++; + } + } + } + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } + + T1? value1 = default; + T2? value2 = default; + T3? value3 = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + else if (__bestIndex == 1) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + else if (__bestIndex == 2) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); + value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (value1 == null && value2 == null && value3 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (value1 == null && value2 == null && value3 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (value1 == null && value2 == null && value3 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); + value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::PromptLayer.OneOf( + value1, + + value2, + + value3 + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.OneOf value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsValue1) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + } + else if (value.IsValue2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + } + else if (value.IsValue3) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.RecalculateTableSheetScoreResponseStatus.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.RecalculateTableSheetScoreResponseStatus.g.cs new file mode 100644 index 0000000..ac2f8ec --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.RecalculateTableSheetScoreResponseStatus.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class RecalculateTableSheetScoreResponseStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.RecalculateTableSheetScoreResponseStatus Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::PromptLayer.RecalculateTableSheetScoreResponseStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.RecalculateTableSheetScoreResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.RecalculateTableSheetScoreResponseStatus); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.RecalculateTableSheetScoreResponseStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.RecalculateTableSheetScoreResponseStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.RecalculateTableSheetScoreResponseStatusNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.RecalculateTableSheetScoreResponseStatusNullable.g.cs new file mode 100644 index 0000000..983f803 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.RecalculateTableSheetScoreResponseStatusNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class RecalculateTableSheetScoreResponseStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.RecalculateTableSheetScoreResponseStatus? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::PromptLayer.RecalculateTableSheetScoreResponseStatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.RecalculateTableSheetScoreResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.RecalculateTableSheetScoreResponseStatus?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.RecalculateTableSheetScoreResponseStatus? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::PromptLayer.RecalculateTableSheetScoreResponseStatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableCellStatus.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableCellStatus.g.cs new file mode 100644 index 0000000..3d86cb3 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableCellStatus.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class TableCellStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.TableCellStatus Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::PromptLayer.TableCellStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.TableCellStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.TableCellStatus); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.TableCellStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.TableCellStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableCellStatusNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableCellStatusNullable.g.cs new file mode 100644 index 0000000..4237d46 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableCellStatusNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class TableCellStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.TableCellStatus? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::PromptLayer.TableCellStatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.TableCellStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.TableCellStatus?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.TableCellStatus? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::PromptLayer.TableCellStatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetOperationOperation.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetOperationOperation.g.cs new file mode 100644 index 0000000..d8d44db --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetOperationOperation.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class TableSheetOperationOperationJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.TableSheetOperationOperation Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::PromptLayer.TableSheetOperationOperationExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.TableSheetOperationOperation)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.TableSheetOperationOperation); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.TableSheetOperationOperation value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.TableSheetOperationOperationExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetOperationOperationNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetOperationOperationNullable.g.cs new file mode 100644 index 0000000..da2e8b9 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetOperationOperationNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class TableSheetOperationOperationNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.TableSheetOperationOperation? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::PromptLayer.TableSheetOperationOperationExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.TableSheetOperationOperation)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.TableSheetOperationOperation?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.TableSheetOperationOperation? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::PromptLayer.TableSheetOperationOperationExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScoreColumnResolvedScoringType.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScoreColumnResolvedScoringType.g.cs new file mode 100644 index 0000000..030f177 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScoreColumnResolvedScoringType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class TableSheetScoreColumnResolvedScoringTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.TableSheetScoreColumnResolvedScoringType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::PromptLayer.TableSheetScoreColumnResolvedScoringTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.TableSheetScoreColumnResolvedScoringType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.TableSheetScoreColumnResolvedScoringType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.TableSheetScoreColumnResolvedScoringType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.TableSheetScoreColumnResolvedScoringTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScoreColumnResolvedScoringTypeNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScoreColumnResolvedScoringTypeNullable.g.cs new file mode 100644 index 0000000..b1789e5 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScoreColumnResolvedScoringTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class TableSheetScoreColumnResolvedScoringTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.TableSheetScoreColumnResolvedScoringType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::PromptLayer.TableSheetScoreColumnResolvedScoringTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.TableSheetScoreColumnResolvedScoringType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.TableSheetScoreColumnResolvedScoringType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.TableSheetScoreColumnResolvedScoringType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::PromptLayer.TableSheetScoreColumnResolvedScoringTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScoreConfigurationScoreType.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScoreConfigurationScoreType.g.cs new file mode 100644 index 0000000..314c5f3 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScoreConfigurationScoreType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class TableSheetScoreConfigurationScoreTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.TableSheetScoreConfigurationScoreType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::PromptLayer.TableSheetScoreConfigurationScoreTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.TableSheetScoreConfigurationScoreType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.TableSheetScoreConfigurationScoreType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.TableSheetScoreConfigurationScoreType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.TableSheetScoreConfigurationScoreTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScoreConfigurationScoreTypeNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScoreConfigurationScoreTypeNullable.g.cs new file mode 100644 index 0000000..a839d77 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScoreConfigurationScoreTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class TableSheetScoreConfigurationScoreTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.TableSheetScoreConfigurationScoreType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::PromptLayer.TableSheetScoreConfigurationScoreTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.TableSheetScoreConfigurationScoreType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.TableSheetScoreConfigurationScoreType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.TableSheetScoreConfigurationScoreType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::PromptLayer.TableSheetScoreConfigurationScoreTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScoreHistoryResponseScoreHistoryResolution.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScoreHistoryResponseScoreHistoryResolution.g.cs new file mode 100644 index 0000000..3e8bbbc --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScoreHistoryResponseScoreHistoryResolution.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class TableSheetScoreHistoryResponseScoreHistoryResolutionJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.TableSheetScoreHistoryResponseScoreHistoryResolution Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::PromptLayer.TableSheetScoreHistoryResponseScoreHistoryResolutionExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.TableSheetScoreHistoryResponseScoreHistoryResolution)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.TableSheetScoreHistoryResponseScoreHistoryResolution); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.TableSheetScoreHistoryResponseScoreHistoryResolution value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.TableSheetScoreHistoryResponseScoreHistoryResolutionExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScoreHistoryResponseScoreHistoryResolutionNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScoreHistoryResponseScoreHistoryResolutionNullable.g.cs new file mode 100644 index 0000000..0220fa1 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScoreHistoryResponseScoreHistoryResolutionNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class TableSheetScoreHistoryResponseScoreHistoryResolutionNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.TableSheetScoreHistoryResponseScoreHistoryResolution? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::PromptLayer.TableSheetScoreHistoryResponseScoreHistoryResolutionExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.TableSheetScoreHistoryResponseScoreHistoryResolution)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.TableSheetScoreHistoryResponseScoreHistoryResolution?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.TableSheetScoreHistoryResponseScoreHistoryResolution? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::PromptLayer.TableSheetScoreHistoryResponseScoreHistoryResolutionExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScoreResponseScoreType.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScoreResponseScoreType.g.cs new file mode 100644 index 0000000..5b0e2ca --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScoreResponseScoreType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class TableSheetScoreResponseScoreTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.TableSheetScoreResponseScoreType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::PromptLayer.TableSheetScoreResponseScoreTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.TableSheetScoreResponseScoreType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.TableSheetScoreResponseScoreType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.TableSheetScoreResponseScoreType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.TableSheetScoreResponseScoreTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScoreResponseScoreTypeNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScoreResponseScoreTypeNullable.g.cs new file mode 100644 index 0000000..04002dc --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScoreResponseScoreTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class TableSheetScoreResponseScoreTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.TableSheetScoreResponseScoreType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::PromptLayer.TableSheetScoreResponseScoreTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.TableSheetScoreResponseScoreType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.TableSheetScoreResponseScoreType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.TableSheetScoreResponseScoreType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::PromptLayer.TableSheetScoreResponseScoreTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScoreResponseScoringType.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScoreResponseScoringType.g.cs new file mode 100644 index 0000000..05b5e0e --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScoreResponseScoringType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class TableSheetScoreResponseScoringTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.TableSheetScoreResponseScoringType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::PromptLayer.TableSheetScoreResponseScoringTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.TableSheetScoreResponseScoringType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.TableSheetScoreResponseScoringType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.TableSheetScoreResponseScoringType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.TableSheetScoreResponseScoringTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScoreResponseScoringTypeNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScoreResponseScoringTypeNullable.g.cs new file mode 100644 index 0000000..fa38c9d --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScoreResponseScoringTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class TableSheetScoreResponseScoringTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.TableSheetScoreResponseScoringType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::PromptLayer.TableSheetScoreResponseScoringTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.TableSheetScoreResponseScoringType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.TableSheetScoreResponseScoringType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.TableSheetScoreResponseScoringType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::PromptLayer.TableSheetScoreResponseScoringTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScoreResponseStatus.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScoreResponseStatus.g.cs new file mode 100644 index 0000000..e9056c5 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScoreResponseStatus.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class TableSheetScoreResponseStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.TableSheetScoreResponseStatus Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::PromptLayer.TableSheetScoreResponseStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.TableSheetScoreResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.TableSheetScoreResponseStatus); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.TableSheetScoreResponseStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.TableSheetScoreResponseStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScoreResponseStatusNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScoreResponseStatusNullable.g.cs new file mode 100644 index 0000000..b76fa74 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScoreResponseStatusNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class TableSheetScoreResponseStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.TableSheetScoreResponseStatus? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::PromptLayer.TableSheetScoreResponseStatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.TableSheetScoreResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.TableSheetScoreResponseStatus?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.TableSheetScoreResponseStatus? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::PromptLayer.TableSheetScoreResponseStatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContext.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContext.g.cs index 10aabb8..2b07895 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContext.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContext.g.cs @@ -349,6 +349,74 @@ namespace PromptLayer typeof(global::PromptLayer.JsonConverters.ExecutionMetadataMetricAggregateMetricKeyNullableJsonConverter), + typeof(global::PromptLayer.JsonConverters.CreateTableSheetOperationRequestOperationJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CreateTableSheetOperationRequestOperationNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CreateTableSheetOperationRequestStatuseJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CreateTableSheetOperationRequestStatuseNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScoreResponseScoringTypeJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScoreResponseScoringTypeNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScoreResponseStatusJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScoreResponseStatusNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScoreResponseScoreTypeJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScoreResponseScoreTypeNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.ConfigureTableSheetScoreRequestScoreTypeJsonConverter), + + typeof(global::PromptLayer.JsonConverters.ConfigureTableSheetScoreRequestScoreTypeNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.ConfigureTableSheetScoreRequestCodeLanguageJsonConverter), + + typeof(global::PromptLayer.JsonConverters.ConfigureTableSheetScoreRequestCodeLanguageNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.ConfigureTableSheetScoreRequestAssertionAggregationJsonConverter), + + typeof(global::PromptLayer.JsonConverters.ConfigureTableSheetScoreRequestAssertionAggregationNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.RecalculateTableSheetScoreResponseStatusJsonConverter), + + typeof(global::PromptLayer.JsonConverters.RecalculateTableSheetScoreResponseStatusNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScoreHistoryResponseScoreHistoryResolutionJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScoreHistoryResponseScoreHistoryResolutionNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CreateTableSheetRequestLogImportRequestSortByJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CreateTableSheetRequestLogImportRequestSortByNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CreateTableSheetRequestLogImportRequestSortOrderJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CreateTableSheetRequestLogImportRequestSortOrderNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetOperationOperationJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetOperationOperationNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CreateTableSheetOperationQueuedResponseOperationJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CreateTableSheetOperationQueuedResponseOperationNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScoreColumnResolvedScoringTypeJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScoreColumnResolvedScoringTypeNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScoreConfigurationScoreTypeJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScoreConfigurationScoreTypeNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableCellStatusJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableCellStatusNullableJsonConverter), + typeof(global::PromptLayer.JsonConverters.AddReportColumnRequestColumnTypeJsonConverter), typeof(global::PromptLayer.JsonConverters.AddReportColumnRequestColumnTypeNullableJsonConverter), @@ -493,6 +561,22 @@ namespace PromptLayer typeof(global::PromptLayer.JsonConverters.ListTableSheetRowsOrderNullableJsonConverter), + typeof(global::PromptLayer.JsonConverters.ListTableSheetVersionsSortJsonConverter), + + typeof(global::PromptLayer.JsonConverters.ListTableSheetVersionsSortNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.ListTableSheetVersionsOrderJsonConverter), + + typeof(global::PromptLayer.JsonConverters.ListTableSheetVersionsOrderNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.GetTableSheetVersionScoreHistoryRangeJsonConverter), + + typeof(global::PromptLayer.JsonConverters.GetTableSheetVersionScoreHistoryRangeNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.GetTableSheetVersionScoreHistoryResolutionJsonConverter), + + typeof(global::PromptLayer.JsonConverters.GetTableSheetVersionScoreHistoryResolutionNullableJsonConverter), + typeof(global::PromptLayer.JsonConverters.GetReportResponseStatusJsonConverter), typeof(global::PromptLayer.JsonConverters.GetReportResponseStatusNullableJsonConverter), @@ -547,6 +631,8 @@ namespace PromptLayer typeof(global::PromptLayer.JsonConverters.PromptTemplate6JsonConverter), + typeof(global::PromptLayer.JsonConverters.CreateTableSheetOperationResponseJsonConverter), + typeof(global::PromptLayer.JsonConverters.OneOfJsonConverter), typeof(global::PromptLayer.JsonConverters.OneOfJsonConverter), @@ -593,6 +679,8 @@ namespace PromptLayer typeof(global::PromptLayer.JsonConverters.AnyOfJsonConverter), + typeof(global::PromptLayer.JsonConverters.OneOfJsonConverter), + typeof(global::PromptLayer.JsonConverters.OneOfJsonConverter), typeof(global::PromptLayer.JsonConverters.AnyOfJsonConverter>), @@ -1201,6 +1289,62 @@ namespace PromptLayer [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ExecutionMetadataAggregates))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ExecutionMetadataAggregatesSheet))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListTableSheetOperationsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TableSheetOperation))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateTableSheetOperationRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateTableSheetOperationRequestOperation), TypeInfoPropertyName = "CreateTableSheetOperationRequestOperation2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateTableSheetOperationRequestStatuse), TypeInfoPropertyName = "CreateTableSheetOperationRequestStatuse2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateTableSheetOperationResponse), TypeInfoPropertyName = "CreateTableSheetOperationResponse2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateTableSheetOperationQueuedResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateTableSheetOperationNoopResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateTableSheetOperationConfirmationResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.GetTableSheetOperationResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CancelTableSheetOperationResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TableSheetScoreResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TableSheetScoreResponseScoringType), TypeInfoPropertyName = "TableSheetScoreResponseScoringType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TableSheetScoreColumn))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.OneOf), TypeInfoPropertyName = "OneOfDoubleStringTableSheetScoreCellObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TableSheetScoreCellObject))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TableSheetScoreMetric))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TableSheetScoreResponseStatus), TypeInfoPropertyName = "TableSheetScoreResponseStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TableSheetScoreConfiguration))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TableSheetScoreResponseScoreType), TypeInfoPropertyName = "TableSheetScoreResponseScoreType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ConfigureTableSheetScoreRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ConfigureTableSheetScoreRequestScoreType), TypeInfoPropertyName = "ConfigureTableSheetScoreRequestScoreType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ConfigureTableSheetScoreRequestCodeLanguage), TypeInfoPropertyName = "ConfigureTableSheetScoreRequestCodeLanguage2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ConfigureTableSheetScoreRequestAssertionAggregation), TypeInfoPropertyName = "ConfigureTableSheetScoreRequestAssertionAggregation2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ConfigureTableSheetScoreResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.RecalculateTableSheetScoreResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.RecalculateTableSheetScoreResponseStatus), TypeInfoPropertyName = "RecalculateTableSheetScoreResponseStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListTableSheetVersionsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TableSheetVersion))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.PublicListPagination))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.EmptyPublicFilters))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateTableSheetVersionRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.GetTableSheetVersionResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TableSheetScoreHistoryResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TableSheetScoreHistoryResponseScoreHistory))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TableSheetScoreHistoryResponseScoreHistoryResolution), TypeInfoPropertyName = "TableSheetScoreHistoryResponseScoreHistoryResolution2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateTableSheetFileImportRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TableSheetImportStartResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateTableSheetRequestLogImportRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateTableSheetRequestLogImportRequestSortBy), TypeInfoPropertyName = "CreateTableSheetRequestLogImportRequestSortBy2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateTableSheetRequestLogImportRequestSortOrder), TypeInfoPropertyName = "CreateTableSheetRequestLogImportRequestSortOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TableSheetOperationOperation), TypeInfoPropertyName = "TableSheetOperationOperation2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateTableSheetOperationQueuedResponseOperation), TypeInfoPropertyName = "CreateTableSheetOperationQueuedResponseOperation2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TableCell))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TableSheetScoreColumnResolvedScoringType), TypeInfoPropertyName = "TableSheetScoreColumnResolvedScoringType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TableSheetScoreConfigurationScoreType), TypeInfoPropertyName = "TableSheetScoreConfigurationScoreType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TableCellStatus), TypeInfoPropertyName = "TableCellStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreatePromptLabelRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.PromptTemplatesLabelsPromptLabelIdPatchRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TrackGroupRequest))] @@ -1217,62 +1361,6 @@ namespace PromptLayer [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateTableSheetRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.OneOf), TypeInfoPropertyName = "OneOfCreateTableSheetRequestSourceFileSourceCreateTableSheetRequestSourceRequestLogsSource2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateTableSheetRequestSourceFileSource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateTableSheetRequestSourceFileSourceType), TypeInfoPropertyName = "CreateTableSheetRequestSourceFileSourceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateTableSheetRequestSourceRequestLogsSource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateTableSheetRequestSourceRequestLogsSourceType), TypeInfoPropertyName = "CreateTableSheetRequestSourceRequestLogsSourceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.UpdateTableSheetRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateTableSheetColumnRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateTableSheetColumnRequestType), TypeInfoPropertyName = "CreateTableSheetColumnRequestType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateTableSheetColumnRequestDependencie))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.UpdateTableSheetColumnRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.UpdateTableSheetColumnRequestDependencie))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.AddTableSheetRowsRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.UpdateTableSheetCellRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateTableSheetCellRecalculationsBatchRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateToolVersionRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateToolVersionRequestExecution))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateToolVersionRequestExecutionType), TypeInfoPropertyName = "CreateToolVersionRequestExecutionType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateToolVersionRequestExecutionLanguage), TypeInfoPropertyName = "CreateToolVersionRequestExecutionLanguage2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TestExecuteToolRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TestExecuteToolRequestExecution))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TestExecuteToolRequestExecutionType), TypeInfoPropertyName = "TestExecuteToolRequestExecutionType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TestExecuteToolRequestExecutionLanguage), TypeInfoPropertyName = "TestExecuteToolRequestExecutionLanguage2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateWorkspaceEnvVarRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.UpdateWorkspaceEnvVarRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateToolEnvVarRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.UpdateToolEnvVarRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListDatasetsStatus), TypeInfoPropertyName = "ListDatasetsStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListDatasetsSortBy), TypeInfoPropertyName = "ListDatasetsSortBy2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListDatasetsSortOrder), TypeInfoPropertyName = "ListDatasetsSortOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListEvaluationsStatus), TypeInfoPropertyName = "ListEvaluationsStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListEvaluationsSortBy), TypeInfoPropertyName = "ListEvaluationsSortBy2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListEvaluationsSortOrder), TypeInfoPropertyName = "ListEvaluationsSortOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.AnyOf>), TypeInfoPropertyName = "AnyOfStringIListString2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.GetAllPromptTemplatesGetStatus), TypeInfoPropertyName = "GetAllPromptTemplatesGetStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.GetAllPromptTemplatesGetSortBy), TypeInfoPropertyName = "GetAllPromptTemplatesGetSortBy2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.GetAllPromptTemplatesGetSortOrder), TypeInfoPropertyName = "GetAllPromptTemplatesGetSortOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(long))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListWorkflowsSortBy), TypeInfoPropertyName = "ListWorkflowsSortBy2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListWorkflowsSortOrder), TypeInfoPropertyName = "ListWorkflowsSortOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetFilterType2), TypeInfoPropertyName = "ListFolderEntitiesApiPublicV2FoldersEntitiesGetFilterType22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetFilterTypeItem), TypeInfoPropertyName = "ListFolderEntitiesApiPublicV2FoldersEntitiesGetFilterTypeItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetSortBy), TypeInfoPropertyName = "ListFolderEntitiesApiPublicV2FoldersEntitiesGetSortBy2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetSortOrder), TypeInfoPropertyName = "ListFolderEntitiesApiPublicV2FoldersEntitiesGetSortOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.OneOf>), TypeInfoPropertyName = "OneOfStringIListString2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.IngestOtlpTracesContentType), TypeInfoPropertyName = "IngestOtlpTracesContentType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.IngestOtlpTracesContentEncoding), TypeInfoPropertyName = "IngestOtlpTracesContentEncoding2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListSkillCollectionsPublicSortBy), TypeInfoPropertyName = "ListSkillCollectionsPublicSortBy2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListSkillCollectionsPublicSortOrder), TypeInfoPropertyName = "ListSkillCollectionsPublicSortOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.GetSkillCollectionPublicFormat), TypeInfoPropertyName = "GetSkillCollectionPublicFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.GetRequestSearchSuggestionsField), TypeInfoPropertyName = "GetRequestSearchSuggestionsField2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListToolRegistriesSortBy), TypeInfoPropertyName = "ListToolRegistriesSortBy2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListToolRegistriesSortOrder), TypeInfoPropertyName = "ListToolRegistriesSortOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListTablesOrder), TypeInfoPropertyName = "ListTablesOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListTableSheetsOrder), TypeInfoPropertyName = "ListTableSheetsOrder2")] internal sealed partial class SourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -1620,6 +1708,74 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::PromptLayer.JsonConverters.ExecutionMetadataMetricAggregateMetricKeyNullableJsonConverter), + typeof(global::PromptLayer.JsonConverters.CreateTableSheetOperationRequestOperationJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CreateTableSheetOperationRequestOperationNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CreateTableSheetOperationRequestStatuseJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CreateTableSheetOperationRequestStatuseNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScoreResponseScoringTypeJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScoreResponseScoringTypeNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScoreResponseStatusJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScoreResponseStatusNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScoreResponseScoreTypeJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScoreResponseScoreTypeNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.ConfigureTableSheetScoreRequestScoreTypeJsonConverter), + + typeof(global::PromptLayer.JsonConverters.ConfigureTableSheetScoreRequestScoreTypeNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.ConfigureTableSheetScoreRequestCodeLanguageJsonConverter), + + typeof(global::PromptLayer.JsonConverters.ConfigureTableSheetScoreRequestCodeLanguageNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.ConfigureTableSheetScoreRequestAssertionAggregationJsonConverter), + + typeof(global::PromptLayer.JsonConverters.ConfigureTableSheetScoreRequestAssertionAggregationNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.RecalculateTableSheetScoreResponseStatusJsonConverter), + + typeof(global::PromptLayer.JsonConverters.RecalculateTableSheetScoreResponseStatusNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScoreHistoryResponseScoreHistoryResolutionJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScoreHistoryResponseScoreHistoryResolutionNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CreateTableSheetRequestLogImportRequestSortByJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CreateTableSheetRequestLogImportRequestSortByNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CreateTableSheetRequestLogImportRequestSortOrderJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CreateTableSheetRequestLogImportRequestSortOrderNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetOperationOperationJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetOperationOperationNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CreateTableSheetOperationQueuedResponseOperationJsonConverter), + + typeof(global::PromptLayer.JsonConverters.CreateTableSheetOperationQueuedResponseOperationNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScoreColumnResolvedScoringTypeJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScoreColumnResolvedScoringTypeNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScoreConfigurationScoreTypeJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScoreConfigurationScoreTypeNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableCellStatusJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableCellStatusNullableJsonConverter), + typeof(global::PromptLayer.JsonConverters.AddReportColumnRequestColumnTypeJsonConverter), typeof(global::PromptLayer.JsonConverters.AddReportColumnRequestColumnTypeNullableJsonConverter), @@ -1764,6 +1920,22 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::PromptLayer.JsonConverters.ListTableSheetRowsOrderNullableJsonConverter), + typeof(global::PromptLayer.JsonConverters.ListTableSheetVersionsSortJsonConverter), + + typeof(global::PromptLayer.JsonConverters.ListTableSheetVersionsSortNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.ListTableSheetVersionsOrderJsonConverter), + + typeof(global::PromptLayer.JsonConverters.ListTableSheetVersionsOrderNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.GetTableSheetVersionScoreHistoryRangeJsonConverter), + + typeof(global::PromptLayer.JsonConverters.GetTableSheetVersionScoreHistoryRangeNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.GetTableSheetVersionScoreHistoryResolutionJsonConverter), + + typeof(global::PromptLayer.JsonConverters.GetTableSheetVersionScoreHistoryResolutionNullableJsonConverter), + typeof(global::PromptLayer.JsonConverters.GetReportResponseStatusJsonConverter), typeof(global::PromptLayer.JsonConverters.GetReportResponseStatusNullableJsonConverter), @@ -1818,6 +1990,8 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::PromptLayer.JsonConverters.PromptTemplate6JsonConverter), + typeof(global::PromptLayer.JsonConverters.CreateTableSheetOperationResponseJsonConverter), + typeof(global::PromptLayer.JsonConverters.OneOfJsonConverter), typeof(global::PromptLayer.JsonConverters.OneOfJsonConverter), @@ -1864,6 +2038,8 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::PromptLayer.JsonConverters.AnyOfJsonConverter), + typeof(global::PromptLayer.JsonConverters.OneOfJsonConverter), + typeof(global::PromptLayer.JsonConverters.OneOfJsonConverter), typeof(global::PromptLayer.JsonConverters.AnyOfJsonConverter>), @@ -2049,7 +2225,66 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.OneOf>?), TypeInfoPropertyName = "ListFolderEntitiesApiPublicV2FoldersEntitiesGetFilterTypeItem_47a8c666c2b64908")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.OneOf?), TypeInfoPropertyName = "GetReportScoreResponseScoreDetailsVariant4_819979ee8daaec57")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.OneOf>), TypeInfoPropertyName = "ListFolderEntitiesApiPublicV2FoldersEntitiesGetFilterTypeItem_13c51ceff6c2844e")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateTableSheetRequestSourceFileSourceType), TypeInfoPropertyName = "CreateTableSheetRequestSourceFileSourceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateTableSheetRequestSourceRequestLogsSource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateTableSheetRequestSourceRequestLogsSourceType), TypeInfoPropertyName = "CreateTableSheetRequestSourceRequestLogsSourceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.UpdateTableSheetRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateTableSheetColumnRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateTableSheetColumnRequestType), TypeInfoPropertyName = "CreateTableSheetColumnRequestType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateTableSheetColumnRequestDependencie))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.UpdateTableSheetColumnRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.UpdateTableSheetColumnRequestDependencie))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.AddTableSheetRowsRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.UpdateTableSheetCellRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateTableSheetCellRecalculationsBatchRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateToolVersionRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateToolVersionRequestExecution))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateToolVersionRequestExecutionType), TypeInfoPropertyName = "CreateToolVersionRequestExecutionType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateToolVersionRequestExecutionLanguage), TypeInfoPropertyName = "CreateToolVersionRequestExecutionLanguage2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TestExecuteToolRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TestExecuteToolRequestExecution))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TestExecuteToolRequestExecutionType), TypeInfoPropertyName = "TestExecuteToolRequestExecutionType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TestExecuteToolRequestExecutionLanguage), TypeInfoPropertyName = "TestExecuteToolRequestExecutionLanguage2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateWorkspaceEnvVarRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.UpdateWorkspaceEnvVarRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateToolEnvVarRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.UpdateToolEnvVarRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListDatasetsStatus), TypeInfoPropertyName = "ListDatasetsStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListDatasetsSortBy), TypeInfoPropertyName = "ListDatasetsSortBy2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListDatasetsSortOrder), TypeInfoPropertyName = "ListDatasetsSortOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListEvaluationsStatus), TypeInfoPropertyName = "ListEvaluationsStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListEvaluationsSortBy), TypeInfoPropertyName = "ListEvaluationsSortBy2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListEvaluationsSortOrder), TypeInfoPropertyName = "ListEvaluationsSortOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.AnyOf>), TypeInfoPropertyName = "AnyOfStringIListString2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.GetAllPromptTemplatesGetStatus), TypeInfoPropertyName = "GetAllPromptTemplatesGetStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.GetAllPromptTemplatesGetSortBy), TypeInfoPropertyName = "GetAllPromptTemplatesGetSortBy2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.GetAllPromptTemplatesGetSortOrder), TypeInfoPropertyName = "GetAllPromptTemplatesGetSortOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(long))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListWorkflowsSortBy), TypeInfoPropertyName = "ListWorkflowsSortBy2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListWorkflowsSortOrder), TypeInfoPropertyName = "ListWorkflowsSortOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetFilterType2), TypeInfoPropertyName = "ListFolderEntitiesApiPublicV2FoldersEntitiesGetFilterType22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetFilterTypeItem), TypeInfoPropertyName = "ListFolderEntitiesApiPublicV2FoldersEntitiesGetFilterTypeItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetSortBy), TypeInfoPropertyName = "ListFolderEntitiesApiPublicV2FoldersEntitiesGetSortBy2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetSortOrder), TypeInfoPropertyName = "ListFolderEntitiesApiPublicV2FoldersEntitiesGetSortOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.OneOf>), TypeInfoPropertyName = "OneOfStringIListString2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.IngestOtlpTracesContentType), TypeInfoPropertyName = "IngestOtlpTracesContentType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.IngestOtlpTracesContentEncoding), TypeInfoPropertyName = "IngestOtlpTracesContentEncoding2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListSkillCollectionsPublicSortBy), TypeInfoPropertyName = "ListSkillCollectionsPublicSortBy2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListSkillCollectionsPublicSortOrder), TypeInfoPropertyName = "ListSkillCollectionsPublicSortOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.GetSkillCollectionPublicFormat), TypeInfoPropertyName = "GetSkillCollectionPublicFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.GetRequestSearchSuggestionsField), TypeInfoPropertyName = "GetRequestSearchSuggestionsField2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListToolRegistriesSortBy), TypeInfoPropertyName = "ListToolRegistriesSortBy2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListToolRegistriesSortOrder), TypeInfoPropertyName = "ListToolRegistriesSortOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListTablesOrder), TypeInfoPropertyName = "ListTablesOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListTableSheetsOrder), TypeInfoPropertyName = "ListTableSheetsOrder2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListTableSheetRowsOrder), TypeInfoPropertyName = "ListTableSheetRowsOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListTableSheetVersionsSort), TypeInfoPropertyName = "ListTableSheetVersionsSort2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListTableSheetVersionsOrder), TypeInfoPropertyName = "ListTableSheetVersionsOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.GetTableSheetVersionScoreHistoryRange), TypeInfoPropertyName = "GetTableSheetVersionScoreHistoryRange2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.GetTableSheetVersionScoreHistoryResolution), TypeInfoPropertyName = "GetTableSheetVersionScoreHistoryResolution2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.OneOf), TypeInfoPropertyName = "OneOfHTTPValidationErrorErrorResponse2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreatePromptLabelResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.PromptTemplatesLabelsPromptLabelIdPatchResponse))] @@ -2122,7 +2357,7 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListTableSheetsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateTableSheetResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.GetTableSheetOperationResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.GetTableSheetOperationResponse2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.GetTableSheetResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.UpdateTableSheetResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListTableSheetColumnsResponse))] @@ -2236,9 +2471,17 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.AnyOf>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.OneOf>))] @@ -2469,6 +2712,40 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::PromptLayer.JsonConverters.TableImportOperationStatusNullableJsonConverter()); options.Converters.Add(new global::PromptLayer.JsonConverters.ExecutionMetadataMetricAggregateMetricKeyJsonConverter()); options.Converters.Add(new global::PromptLayer.JsonConverters.ExecutionMetadataMetricAggregateMetricKeyNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.CreateTableSheetOperationRequestOperationJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.CreateTableSheetOperationRequestOperationNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.CreateTableSheetOperationRequestStatuseJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.CreateTableSheetOperationRequestStatuseNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.TableSheetScoreResponseScoringTypeJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.TableSheetScoreResponseScoringTypeNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.TableSheetScoreResponseStatusJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.TableSheetScoreResponseStatusNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.TableSheetScoreResponseScoreTypeJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.TableSheetScoreResponseScoreTypeNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.ConfigureTableSheetScoreRequestScoreTypeJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.ConfigureTableSheetScoreRequestScoreTypeNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.ConfigureTableSheetScoreRequestCodeLanguageJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.ConfigureTableSheetScoreRequestCodeLanguageNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.ConfigureTableSheetScoreRequestAssertionAggregationJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.ConfigureTableSheetScoreRequestAssertionAggregationNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.RecalculateTableSheetScoreResponseStatusJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.RecalculateTableSheetScoreResponseStatusNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.TableSheetScoreHistoryResponseScoreHistoryResolutionJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.TableSheetScoreHistoryResponseScoreHistoryResolutionNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.CreateTableSheetRequestLogImportRequestSortByJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.CreateTableSheetRequestLogImportRequestSortByNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.CreateTableSheetRequestLogImportRequestSortOrderJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.CreateTableSheetRequestLogImportRequestSortOrderNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.TableSheetOperationOperationJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.TableSheetOperationOperationNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.CreateTableSheetOperationQueuedResponseOperationJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.CreateTableSheetOperationQueuedResponseOperationNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.TableSheetScoreColumnResolvedScoringTypeJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.TableSheetScoreColumnResolvedScoringTypeNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.TableSheetScoreConfigurationScoreTypeJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.TableSheetScoreConfigurationScoreTypeNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.TableCellStatusJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.TableCellStatusNullableJsonConverter()); options.Converters.Add(new global::PromptLayer.JsonConverters.AddReportColumnRequestColumnTypeJsonConverter()); options.Converters.Add(new global::PromptLayer.JsonConverters.AddReportColumnRequestColumnTypeNullableJsonConverter()); options.Converters.Add(new global::PromptLayer.JsonConverters.CreateToolRegistryRequestExecutionTypeJsonConverter()); @@ -2541,6 +2818,14 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::PromptLayer.JsonConverters.ListTableSheetsOrderNullableJsonConverter()); options.Converters.Add(new global::PromptLayer.JsonConverters.ListTableSheetRowsOrderJsonConverter()); options.Converters.Add(new global::PromptLayer.JsonConverters.ListTableSheetRowsOrderNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.ListTableSheetVersionsSortJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.ListTableSheetVersionsSortNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.ListTableSheetVersionsOrderJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.ListTableSheetVersionsOrderNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.GetTableSheetVersionScoreHistoryRangeJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.GetTableSheetVersionScoreHistoryRangeNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.GetTableSheetVersionScoreHistoryResolutionJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.GetTableSheetVersionScoreHistoryResolutionNullableJsonConverter()); options.Converters.Add(new global::PromptLayer.JsonConverters.GetReportResponseStatusJsonConverter()); options.Converters.Add(new global::PromptLayer.JsonConverters.GetReportResponseStatusNullableJsonConverter()); options.Converters.Add(new global::PromptLayer.JsonConverters.GetReportScoreResponseScoreScoreTypeJsonConverter()); @@ -2568,6 +2853,7 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::PromptLayer.JsonConverters.PromptTemplate5JsonConverter()); options.Converters.Add(new global::PromptLayer.JsonConverters.SearchRequestLogsRequestJsonConverter()); options.Converters.Add(new global::PromptLayer.JsonConverters.PromptTemplate6JsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.CreateTableSheetOperationResponseJsonConverter()); options.Converters.Add(new global::PromptLayer.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::PromptLayer.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::PromptLayer.JsonConverters.AnyOfJsonConverter()); @@ -2591,6 +2877,7 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::PromptLayer.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::PromptLayer.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::PromptLayer.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::PromptLayer.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::PromptLayer.JsonConverters.AnyOfJsonConverter>()); options.Converters.Add(new global::PromptLayer.JsonConverters.OneOfJsonConverter>()); diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContextTypes.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContextTypes.g.cs index 986b1ea..e981ae1 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContextTypes.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContextTypes.g.cs @@ -1716,787 +1716,1023 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::PromptLayer.CreatePromptLabelRequest? Type422 { get; set; } + public global::PromptLayer.ListTableSheetOperationsResponse? Type422 { get; set; } /// /// /// - public global::PromptLayer.PromptTemplatesLabelsPromptLabelIdPatchRequest? Type423 { get; set; } + public global::System.Collections.Generic.IList? Type423 { get; set; } /// /// /// - public global::PromptLayer.TrackGroupRequest? Type424 { get; set; } + public global::PromptLayer.TableSheetOperation? Type424 { get; set; } /// /// /// - public global::PromptLayer.TrackScoreRequest? Type425 { get; set; } + public global::PromptLayer.CreateTableSheetOperationRequest? Type425 { get; set; } /// /// /// - public global::PromptLayer.AddReportColumnRequest? Type426 { get; set; } + public global::PromptLayer.CreateTableSheetOperationRequestOperation? Type426 { get; set; } /// /// /// - public global::PromptLayer.AddReportColumnRequestColumnType? Type427 { get; set; } + public global::System.Collections.Generic.IList? Type427 { get; set; } /// /// /// - public global::PromptLayer.RunReportRequest? Type428 { get; set; } + public global::System.Collections.Generic.IList? Type428 { get; set; } /// /// /// - public global::PromptLayer.CreateToolRegistryRequest? Type429 { get; set; } + public global::PromptLayer.CreateTableSheetOperationRequestStatuse? Type429 { get; set; } /// /// /// - public global::PromptLayer.CreateToolRegistryRequestExecution? Type430 { get; set; } + public global::PromptLayer.CreateTableSheetOperationResponse? Type430 { get; set; } /// /// /// - public global::PromptLayer.CreateToolRegistryRequestExecutionType? Type431 { get; set; } + public global::PromptLayer.CreateTableSheetOperationQueuedResponse? Type431 { get; set; } /// /// /// - public global::PromptLayer.CreateToolRegistryRequestExecutionLanguage? Type432 { get; set; } + public global::PromptLayer.CreateTableSheetOperationNoopResponse? Type432 { get; set; } /// /// /// - public global::PromptLayer.CreateTableRequest? Type433 { get; set; } + public global::PromptLayer.CreateTableSheetOperationConfirmationResponse? Type433 { get; set; } /// /// /// - public global::PromptLayer.UpdateTableRequest? Type434 { get; set; } + public global::PromptLayer.GetTableSheetOperationResponse? Type434 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetRequest? Type435 { get; set; } + public global::PromptLayer.CancelTableSheetOperationResponse? Type435 { get; set; } /// /// /// - public global::PromptLayer.OneOf? Type436 { get; set; } + public global::PromptLayer.TableSheetScoreResponse? Type436 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetRequestSourceFileSource? Type437 { get; set; } + public global::PromptLayer.TableSheetScoreResponseScoringType? Type437 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetRequestSourceFileSourceType? Type438 { get; set; } + public global::System.Collections.Generic.IList? Type438 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetRequestSourceRequestLogsSource? Type439 { get; set; } + public global::PromptLayer.TableSheetScoreColumn? Type439 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetRequestSourceRequestLogsSourceType? Type440 { get; set; } + public global::System.Collections.Generic.IList>>? Type440 { get; set; } /// /// /// - public global::PromptLayer.UpdateTableSheetRequest? Type441 { get; set; } + public global::System.Collections.Generic.IList>? Type441 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetColumnRequest? Type442 { get; set; } + public global::PromptLayer.OneOf? Type442 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetColumnRequestType? Type443 { get; set; } + public global::PromptLayer.TableSheetScoreCellObject? Type443 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type444 { get; set; } + public global::System.Collections.Generic.IList? Type444 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetColumnRequestDependencie? Type445 { get; set; } + public global::PromptLayer.TableSheetScoreMetric? Type445 { get; set; } /// /// /// - public global::PromptLayer.UpdateTableSheetColumnRequest? Type446 { get; set; } + public global::PromptLayer.TableSheetScoreResponseStatus? Type446 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type447 { get; set; } + public global::PromptLayer.TableSheetScoreConfiguration? Type447 { get; set; } /// /// /// - public global::PromptLayer.UpdateTableSheetColumnRequestDependencie? Type448 { get; set; } + public global::PromptLayer.TableSheetScoreResponseScoreType? Type448 { get; set; } /// /// /// - public global::PromptLayer.AddTableSheetRowsRequest? Type449 { get; set; } + public global::PromptLayer.ConfigureTableSheetScoreRequest? Type449 { get; set; } /// /// /// - public global::PromptLayer.UpdateTableSheetCellRequest? Type450 { get; set; } + public global::PromptLayer.ConfigureTableSheetScoreRequestScoreType? Type450 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetCellRecalculationsBatchRequest? Type451 { get; set; } + public global::PromptLayer.ConfigureTableSheetScoreRequestCodeLanguage? Type451 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type452 { get; set; } + public global::PromptLayer.ConfigureTableSheetScoreRequestAssertionAggregation? Type452 { get; set; } /// /// /// - public global::PromptLayer.CreateToolVersionRequest? Type453 { get; set; } + public global::PromptLayer.ConfigureTableSheetScoreResponse? Type453 { get; set; } /// /// /// - public global::PromptLayer.CreateToolVersionRequestExecution? Type454 { get; set; } + public global::PromptLayer.RecalculateTableSheetScoreResponse? Type454 { get; set; } /// /// /// - public global::PromptLayer.CreateToolVersionRequestExecutionType? Type455 { get; set; } + public global::PromptLayer.RecalculateTableSheetScoreResponseStatus? Type455 { get; set; } /// /// /// - public global::PromptLayer.CreateToolVersionRequestExecutionLanguage? Type456 { get; set; } + public global::PromptLayer.ListTableSheetVersionsResponse? Type456 { get; set; } /// /// /// - public global::PromptLayer.TestExecuteToolRequest? Type457 { get; set; } + public global::System.Collections.Generic.IList? Type457 { get; set; } /// /// /// - public global::PromptLayer.TestExecuteToolRequestExecution? Type458 { get; set; } + public global::PromptLayer.TableSheetVersion? Type458 { get; set; } /// /// /// - public global::PromptLayer.TestExecuteToolRequestExecutionType? Type459 { get; set; } + public global::PromptLayer.PublicListPagination? Type459 { get; set; } /// /// /// - public global::PromptLayer.TestExecuteToolRequestExecutionLanguage? Type460 { get; set; } + public global::PromptLayer.EmptyPublicFilters? Type460 { get; set; } /// /// /// - public global::PromptLayer.CreateWorkspaceEnvVarRequest? Type461 { get; set; } + public global::PromptLayer.CreateTableSheetVersionRequest? Type461 { get; set; } /// /// /// - public global::PromptLayer.UpdateWorkspaceEnvVarRequest? Type462 { get; set; } + public global::PromptLayer.GetTableSheetVersionResponse? Type462 { get; set; } /// /// /// - public global::PromptLayer.CreateToolEnvVarRequest? Type463 { get; set; } + public global::PromptLayer.TableSheetScoreHistoryResponse? Type463 { get; set; } /// /// /// - public global::PromptLayer.UpdateToolEnvVarRequest? Type464 { get; set; } + public global::PromptLayer.TableSheetScoreHistoryResponseScoreHistory? Type464 { get; set; } /// /// /// - public global::PromptLayer.ListDatasetsStatus? Type465 { get; set; } + public global::PromptLayer.TableSheetScoreHistoryResponseScoreHistoryResolution? Type465 { get; set; } /// /// /// - public global::PromptLayer.ListDatasetsSortBy? Type466 { get; set; } + public global::PromptLayer.CreateTableSheetFileImportRequest? Type466 { get; set; } /// /// /// - public global::PromptLayer.ListDatasetsSortOrder? Type467 { get; set; } + public global::PromptLayer.TableSheetImportStartResponse? Type467 { get; set; } /// /// /// - public global::PromptLayer.ListEvaluationsStatus? Type468 { get; set; } + public global::PromptLayer.CreateTableSheetRequestLogImportRequest? Type468 { get; set; } /// /// /// - public global::PromptLayer.ListEvaluationsSortBy? Type469 { get; set; } + public global::PromptLayer.CreateTableSheetRequestLogImportRequestSortBy? Type469 { get; set; } /// /// /// - public global::PromptLayer.ListEvaluationsSortOrder? Type470 { get; set; } + public global::PromptLayer.CreateTableSheetRequestLogImportRequestSortOrder? Type470 { get; set; } /// /// /// - public global::PromptLayer.AnyOf>? Type471 { get; set; } + public global::PromptLayer.TableSheetOperationOperation? Type471 { get; set; } /// /// /// - public global::PromptLayer.GetAllPromptTemplatesGetStatus? Type472 { get; set; } + public global::PromptLayer.CreateTableSheetOperationQueuedResponseOperation? Type472 { get; set; } /// /// /// - public global::PromptLayer.GetAllPromptTemplatesGetSortBy? Type473 { get; set; } + public global::System.Collections.Generic.IList? Type473 { get; set; } /// /// /// - public global::PromptLayer.GetAllPromptTemplatesGetSortOrder? Type474 { get; set; } + public global::PromptLayer.TableCell? Type474 { get; set; } /// /// /// - public long? Type475 { get; set; } + public global::PromptLayer.TableSheetScoreColumnResolvedScoringType? Type475 { get; set; } /// /// /// - public global::PromptLayer.ListWorkflowsSortBy? Type476 { get; set; } + public global::PromptLayer.TableSheetScoreConfigurationScoreType? Type476 { get; set; } /// /// /// - public global::PromptLayer.ListWorkflowsSortOrder? Type477 { get; set; } + public global::PromptLayer.TableCellStatus? Type477 { get; set; } /// /// /// - public global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetFilterType2? Type478 { get; set; } + public global::PromptLayer.CreatePromptLabelRequest? Type478 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type479 { get; set; } + public global::PromptLayer.PromptTemplatesLabelsPromptLabelIdPatchRequest? Type479 { get; set; } /// /// /// - public global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetFilterTypeItem? Type480 { get; set; } + public global::PromptLayer.TrackGroupRequest? Type480 { get; set; } /// /// /// - public global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetSortBy? Type481 { get; set; } + public global::PromptLayer.TrackScoreRequest? Type481 { get; set; } /// /// /// - public global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetSortOrder? Type482 { get; set; } + public global::PromptLayer.AddReportColumnRequest? Type482 { get; set; } /// /// /// - public global::PromptLayer.OneOf>? Type483 { get; set; } + public global::PromptLayer.AddReportColumnRequestColumnType? Type483 { get; set; } /// /// /// - public global::PromptLayer.IngestOtlpTracesContentType? Type484 { get; set; } + public global::PromptLayer.RunReportRequest? Type484 { get; set; } /// /// /// - public global::PromptLayer.IngestOtlpTracesContentEncoding? Type485 { get; set; } + public global::PromptLayer.CreateToolRegistryRequest? Type485 { get; set; } /// /// /// - public global::PromptLayer.ListSkillCollectionsPublicSortBy? Type486 { get; set; } + public global::PromptLayer.CreateToolRegistryRequestExecution? Type486 { get; set; } /// /// /// - public global::PromptLayer.ListSkillCollectionsPublicSortOrder? Type487 { get; set; } + public global::PromptLayer.CreateToolRegistryRequestExecutionType? Type487 { get; set; } /// /// /// - public global::PromptLayer.GetSkillCollectionPublicFormat? Type488 { get; set; } + public global::PromptLayer.CreateToolRegistryRequestExecutionLanguage? Type488 { get; set; } /// /// /// - public global::PromptLayer.GetRequestSearchSuggestionsField? Type489 { get; set; } + public global::PromptLayer.CreateTableRequest? Type489 { get; set; } /// /// /// - public global::PromptLayer.ListToolRegistriesSortBy? Type490 { get; set; } + public global::PromptLayer.UpdateTableRequest? Type490 { get; set; } /// /// /// - public global::PromptLayer.ListToolRegistriesSortOrder? Type491 { get; set; } + public global::PromptLayer.CreateTableSheetRequest? Type491 { get; set; } /// /// /// - public global::PromptLayer.ListTablesOrder? Type492 { get; set; } + public global::PromptLayer.OneOf? Type492 { get; set; } /// /// /// - public global::PromptLayer.ListTableSheetsOrder? Type493 { get; set; } + public global::PromptLayer.CreateTableSheetRequestSourceFileSource? Type493 { get; set; } /// /// /// - public global::PromptLayer.ListTableSheetRowsOrder? Type494 { get; set; } + public global::PromptLayer.CreateTableSheetRequestSourceFileSourceType? Type494 { get; set; } /// /// /// - public global::PromptLayer.OneOf? Type495 { get; set; } + public global::PromptLayer.CreateTableSheetRequestSourceRequestLogsSource? Type495 { get; set; } /// /// /// - public global::PromptLayer.CreatePromptLabelResponse? Type496 { get; set; } + public global::PromptLayer.CreateTableSheetRequestSourceRequestLogsSourceType? Type496 { get; set; } /// /// /// - public global::PromptLayer.PromptTemplatesLabelsPromptLabelIdPatchResponse? Type497 { get; set; } + public global::PromptLayer.UpdateTableSheetRequest? Type497 { get; set; } /// /// /// - public global::PromptLayer.TrackGroupResponse? Type498 { get; set; } + public global::PromptLayer.CreateTableSheetColumnRequest? Type498 { get; set; } /// /// /// - public global::PromptLayer.TrackScoreResponse? Type499 { get; set; } + public global::PromptLayer.CreateTableSheetColumnRequestType? Type499 { get; set; } /// /// /// - public global::PromptLayer.DeleteReportsByNameResponse? Type500 { get; set; } + public global::System.Collections.Generic.IList? Type500 { get; set; } /// /// /// - public global::PromptLayer.CreateEvaluationPipelineResponse2? Type501 { get; set; } + public global::PromptLayer.CreateTableSheetColumnRequestDependencie? Type501 { get; set; } /// /// /// - public global::PromptLayer.AddReportColumnResponse? Type502 { get; set; } + public global::PromptLayer.UpdateTableSheetColumnRequest? Type502 { get; set; } /// /// /// - public global::PromptLayer.AddReportColumnResponse2? Type503 { get; set; } + public global::System.Collections.Generic.IList? Type503 { get; set; } /// /// /// - public global::PromptLayer.AddReportColumnResponse3? Type504 { get; set; } + public global::PromptLayer.UpdateTableSheetColumnRequestDependencie? Type504 { get; set; } /// /// /// - public global::PromptLayer.AddReportColumnResponse4? Type505 { get; set; } + public global::PromptLayer.AddTableSheetRowsRequest? Type505 { get; set; } /// /// /// - public global::PromptLayer.RunReportResponse? Type506 { get; set; } + public global::PromptLayer.UpdateTableSheetCellRequest? Type506 { get; set; } /// /// /// - public global::PromptLayer.RunReportResponse2? Type507 { get; set; } + public global::PromptLayer.CreateTableSheetCellRecalculationsBatchRequest? Type507 { get; set; } /// /// /// - public global::PromptLayer.RunReportResponse3? Type508 { get; set; } + public global::PromptLayer.CreateToolVersionRequest? Type508 { get; set; } /// /// /// - public global::PromptLayer.RunReportResponse4? Type509 { get; set; } + public global::PromptLayer.CreateToolVersionRequestExecution? Type509 { get; set; } /// /// /// - public global::PromptLayer.RunReportResponse5? Type510 { get; set; } + public global::PromptLayer.CreateToolVersionRequestExecutionType? Type510 { get; set; } /// /// /// - public global::PromptLayer.GetReportResponse? Type511 { get; set; } + public global::PromptLayer.CreateToolVersionRequestExecutionLanguage? Type511 { get; set; } /// /// /// - public global::PromptLayer.GetReportResponseReport? Type512 { get; set; } + public global::PromptLayer.TestExecuteToolRequest? Type512 { get; set; } /// /// /// - public global::PromptLayer.GetReportResponseStatus? Type513 { get; set; } + public global::PromptLayer.TestExecuteToolRequestExecution? Type513 { get; set; } /// /// /// - public global::PromptLayer.GetReportResponseStats? Type514 { get; set; } + public global::PromptLayer.TestExecuteToolRequestExecutionType? Type514 { get; set; } /// /// /// - public global::PromptLayer.GetReportResponseStatsStatusCounts? Type515 { get; set; } + public global::PromptLayer.TestExecuteToolRequestExecutionLanguage? Type515 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type516 { get; set; } + public global::PromptLayer.CreateWorkspaceEnvVarRequest? Type516 { get; set; } /// /// /// - public global::PromptLayer.GetReportResponseReportColumn? Type517 { get; set; } + public global::PromptLayer.UpdateWorkspaceEnvVarRequest? Type517 { get; set; } /// /// /// - public global::PromptLayer.GetReportScoreResponse? Type518 { get; set; } + public global::PromptLayer.CreateToolEnvVarRequest? Type518 { get; set; } /// /// /// - public global::PromptLayer.GetReportScoreResponseScore? Type519 { get; set; } + public global::PromptLayer.UpdateToolEnvVarRequest? Type519 { get; set; } /// /// /// - public global::PromptLayer.GetReportScoreResponseScoreScoreType? Type520 { get; set; } + public global::PromptLayer.ListDatasetsStatus? Type520 { get; set; } /// /// /// - public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant1? Type521 { get; set; } + public global::PromptLayer.ListDatasetsSortBy? Type521 { get; set; } /// /// /// - public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant2? Type522 { get; set; } + public global::PromptLayer.ListDatasetsSortOrder? Type522 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type523 { get; set; } + public global::PromptLayer.ListEvaluationsStatus? Type523 { get; set; } /// /// /// - public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant2Column? Type524 { get; set; } + public global::PromptLayer.ListEvaluationsSortBy? Type524 { get; set; } /// /// /// - public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant3? Type525 { get; set; } + public global::PromptLayer.ListEvaluationsSortOrder? Type525 { get; set; } /// /// /// - public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant4? Type526 { get; set; } + public global::PromptLayer.AnyOf>? Type526 { get; set; } /// /// /// - public global::PromptLayer.ListDatasetsResponse? Type527 { get; set; } + public global::PromptLayer.GetAllPromptTemplatesGetStatus? Type527 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type528 { get; set; } + public global::PromptLayer.GetAllPromptTemplatesGetSortBy? Type528 { get; set; } /// /// /// - public global::PromptLayer.ListEvaluationsResponse? Type529 { get; set; } + public global::PromptLayer.GetAllPromptTemplatesGetSortOrder? Type529 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type530 { get; set; } + public long? Type530 { get; set; } /// /// /// - public global::PromptLayer.AnyOf? Type531 { get; set; } + public global::PromptLayer.ListWorkflowsSortBy? Type531 { get; set; } /// /// /// - public global::PromptLayer.OneOf, object>? Type532 { get; set; } + public global::PromptLayer.ListWorkflowsSortOrder? Type532 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type533 { get; set; } + public global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetFilterType2? Type533 { get; set; } /// /// /// - public global::PromptLayer.GetWorkflowVersionExecutionResultsResponseVariant12? Type534 { get; set; } + public global::System.Collections.Generic.IList? Type534 { get; set; } /// /// /// - public global::PromptLayer.OneOf, object>? Type535 { get; set; } + public global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetFilterTypeItem? Type535 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type536 { get; set; } + public global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetSortBy? Type536 { get; set; } /// /// /// - public global::PromptLayer.GetWorkflowVersionExecutionResultsResponseVariant14? Type537 { get; set; } + public global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetSortOrder? Type537 { get; set; } /// /// /// - public global::PromptLayer.ListWorkflowsResponse? Type538 { get; set; } + public global::PromptLayer.OneOf>? Type538 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type539 { get; set; } + public global::PromptLayer.IngestOtlpTracesContentType? Type539 { get; set; } /// /// /// - public global::PromptLayer.ListWorkflowsResponseItem? Type540 { get; set; } + public global::PromptLayer.IngestOtlpTracesContentEncoding? Type540 { get; set; } /// /// /// - public global::PromptLayer.ListWorkflowsResponse2? Type541 { get; set; } + public global::PromptLayer.ListSkillCollectionsPublicSortBy? Type541 { get; set; } /// /// /// - public global::PromptLayer.ListWorkflowsResponse3? Type542 { get; set; } + public global::PromptLayer.ListSkillCollectionsPublicSortOrder? Type542 { get; set; } /// /// /// - public global::PromptLayer.GetWorkflowResponse? Type543 { get; set; } + public global::PromptLayer.GetSkillCollectionPublicFormat? Type543 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type544 { get; set; } + public global::PromptLayer.GetRequestSearchSuggestionsField? Type544 { get; set; } /// /// /// - public global::PromptLayer.GetWorkflowResponseNode? Type545 { get; set; } + public global::PromptLayer.ListToolRegistriesSortBy? Type545 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type546 { get; set; } + public global::PromptLayer.ListToolRegistriesSortOrder? Type546 { get; set; } /// /// /// - public global::PromptLayer.GetWorkflowResponseEdge? Type547 { get; set; } + public global::PromptLayer.ListTablesOrder? Type547 { get; set; } /// /// /// - public global::PromptLayer.GetWorkflowLabelsResponse? Type548 { get; set; } + public global::PromptLayer.ListTableSheetsOrder? Type548 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type549 { get; set; } + public global::PromptLayer.ListTableSheetRowsOrder? Type549 { get; set; } /// /// /// - public global::PromptLayer.GetWorkflowLabelsResponseReleaseLabel? Type550 { get; set; } + public global::PromptLayer.ListTableSheetVersionsSort? Type550 { get; set; } /// /// /// - public global::PromptLayer.AnyOf? Type551 { get; set; } + public global::PromptLayer.ListTableSheetVersionsOrder? Type551 { get; set; } /// /// /// - public global::PromptLayer.IngestOtlpTracesResponse2? Type552 { get; set; } + public global::PromptLayer.GetTableSheetVersionScoreHistoryRange? Type552 { get; set; } /// /// /// - public global::PromptLayer.ListToolRegistriesResponse? Type553 { get; set; } + public global::PromptLayer.GetTableSheetVersionScoreHistoryResolution? Type553 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type554 { get; set; } + public global::PromptLayer.OneOf? Type554 { get; set; } /// /// /// - public global::PromptLayer.ListToolRegistriesResponseToolRegistrie? Type555 { get; set; } + public global::PromptLayer.CreatePromptLabelResponse? Type555 { get; set; } /// /// /// - public global::PromptLayer.CreateToolRegistryResponse? Type556 { get; set; } + public global::PromptLayer.PromptTemplatesLabelsPromptLabelIdPatchResponse? Type556 { get; set; } /// /// /// - public global::PromptLayer.GetToolRegistryResponse? Type557 { get; set; } + public global::PromptLayer.TrackGroupResponse? Type557 { get; set; } /// /// /// - public global::PromptLayer.GetToolRegistryResponseToolRegistry? Type558 { get; set; } + public global::PromptLayer.TrackScoreResponse? Type558 { get; set; } /// /// /// - public global::PromptLayer.CreateTableResponse? Type559 { get; set; } + public global::PromptLayer.DeleteReportsByNameResponse? Type559 { get; set; } /// /// /// - public global::PromptLayer.ListTablesResponse? Type560 { get; set; } + public global::PromptLayer.CreateEvaluationPipelineResponse2? Type560 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type561 { get; set; } + public global::PromptLayer.AddReportColumnResponse? Type561 { get; set; } /// /// /// - public global::PromptLayer.GetTableResponse? Type562 { get; set; } + public global::PromptLayer.AddReportColumnResponse2? Type562 { get; set; } /// /// /// - public global::PromptLayer.UpdateTableResponse? Type563 { get; set; } + public global::PromptLayer.AddReportColumnResponse3? Type563 { get; set; } /// /// /// - public global::PromptLayer.ListTableSheetsResponse? Type564 { get; set; } + public global::PromptLayer.AddReportColumnResponse4? Type564 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type565 { get; set; } + public global::PromptLayer.RunReportResponse? Type565 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetResponse? Type566 { get; set; } + public global::PromptLayer.RunReportResponse2? Type566 { get; set; } /// /// /// - public global::PromptLayer.GetTableSheetOperationResponse? Type567 { get; set; } + public global::PromptLayer.RunReportResponse3? Type567 { get; set; } /// /// /// - public global::PromptLayer.GetTableSheetResponse? Type568 { get; set; } + public global::PromptLayer.RunReportResponse4? Type568 { get; set; } /// /// /// - public global::PromptLayer.UpdateTableSheetResponse? Type569 { get; set; } + public global::PromptLayer.RunReportResponse5? Type569 { get; set; } /// /// /// - public global::PromptLayer.ListTableSheetColumnsResponse? Type570 { get; set; } + public global::PromptLayer.GetReportResponse? Type570 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type571 { get; set; } + public global::PromptLayer.GetReportResponseReport? Type571 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetColumnResponse? Type572 { get; set; } + public global::PromptLayer.GetReportResponseStatus? Type572 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type573 { get; set; } + public global::PromptLayer.GetReportResponseStats? Type573 { get; set; } /// /// /// - public global::PromptLayer.UpdateTableSheetColumnResponse? Type574 { get; set; } + public global::PromptLayer.GetReportResponseStatsStatusCounts? Type574 { get; set; } /// /// /// - public global::PromptLayer.ListTableSheetRowsResponse? Type575 { get; set; } + public global::System.Collections.Generic.IList? Type575 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type576 { get; set; } + public global::PromptLayer.GetReportResponseReportColumn? Type576 { get; set; } /// /// /// - public global::PromptLayer.ListTableSheetRowsResponseDataItem? Type577 { get; set; } + public global::PromptLayer.GetReportScoreResponse? Type577 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type578 { get; set; } + public global::PromptLayer.GetReportScoreResponseScore? Type578 { get; set; } /// /// /// - public global::PromptLayer.AddTableSheetRowsResponse? Type579 { get; set; } + public global::PromptLayer.GetReportScoreResponseScoreScoreType? Type579 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type580 { get; set; } + public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant1? Type580 { get; set; } /// /// /// - public global::PromptLayer.AddTableSheetRowsResponseRow? Type581 { get; set; } + public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant2? Type581 { get; set; } /// /// /// - public global::PromptLayer.GetTableSheetCellResponse? Type582 { get; set; } + public global::System.Collections.Generic.IList? Type582 { get; set; } /// /// /// - public global::PromptLayer.UpdateTableSheetCellResponse? Type583 { get; set; } + public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant2Column? Type583 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetCellRecalculationsBatchResponse? Type584 { get; set; } + public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant3? Type584 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetCellRecalculationResponse? Type585 { get; set; } + public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant4? Type585 { get; set; } /// /// /// - public global::PromptLayer.CreateToolVersionResponse? Type586 { get; set; } + public global::PromptLayer.ListDatasetsResponse? Type586 { get; set; } /// /// /// - public global::PromptLayer.TestExecuteToolResponse? Type587 { get; set; } + public global::System.Collections.Generic.IList? Type587 { get; set; } /// /// /// - public global::PromptLayer.TestExecuteToolResponseResult? Type588 { get; set; } + public global::PromptLayer.ListEvaluationsResponse? Type588 { get; set; } /// /// /// - public global::PromptLayer.TestExecuteToolResponseResultStatus? Type589 { get; set; } + public global::System.Collections.Generic.IList? Type589 { get; set; } /// /// /// - public global::PromptLayer.CloseTraceResponse? Type590 { get; set; } + public global::PromptLayer.AnyOf? Type590 { get; set; } /// /// /// - public global::PromptLayer.CloseTraceResponseClosure? Type591 { get; set; } + public global::PromptLayer.OneOf, object>? Type591 { get; set; } /// /// /// - public global::PromptLayer.CloseTraceResponseClosureStatus? Type592 { get; set; } + public global::System.Collections.Generic.Dictionary? Type592 { get; set; } /// /// /// - public global::PromptLayer.CloseTraceResponse2? Type593 { get; set; } + public global::PromptLayer.GetWorkflowVersionExecutionResultsResponseVariant12? Type593 { get; set; } /// /// /// - public global::PromptLayer.ListWorkspaceEnvVarsResponse? Type594 { get; set; } + public global::PromptLayer.OneOf, object>? Type594 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type595 { get; set; } + public global::System.Collections.Generic.Dictionary? Type595 { get; set; } /// /// /// - public global::PromptLayer.ListWorkspaceEnvVarsResponseWorkspaceEnvVar? Type596 { get; set; } + public global::PromptLayer.GetWorkflowVersionExecutionResultsResponseVariant14? Type596 { get; set; } /// /// /// - public global::PromptLayer.CreateWorkspaceEnvVarResponse? Type597 { get; set; } + public global::PromptLayer.ListWorkflowsResponse? Type597 { get; set; } /// /// /// - public global::PromptLayer.CreateWorkspaceEnvVarResponseWorkspaceEnvVar? Type598 { get; set; } + public global::System.Collections.Generic.IList? Type598 { get; set; } /// /// /// - public global::PromptLayer.CreateWorkspaceEnvVarResponse2? Type599 { get; set; } + public global::PromptLayer.ListWorkflowsResponseItem? Type599 { get; set; } /// /// /// - public global::PromptLayer.UpdateWorkspaceEnvVarResponse? Type600 { get; set; } + public global::PromptLayer.ListWorkflowsResponse2? Type600 { get; set; } /// /// /// - public global::PromptLayer.UpdateWorkspaceEnvVarResponseWorkspaceEnvVar? Type601 { get; set; } + public global::PromptLayer.ListWorkflowsResponse3? Type601 { get; set; } /// /// /// - public global::PromptLayer.UpdateWorkspaceEnvVarResponse2? Type602 { get; set; } + public global::PromptLayer.GetWorkflowResponse? Type602 { get; set; } /// /// /// - public global::PromptLayer.DeleteWorkspaceEnvVarResponse? Type603 { get; set; } + public global::System.Collections.Generic.IList? Type603 { get; set; } /// /// /// - public global::PromptLayer.DeleteWorkspaceEnvVarResponse2? Type604 { get; set; } + public global::PromptLayer.GetWorkflowResponseNode? Type604 { get; set; } /// /// /// - public global::PromptLayer.ListToolEnvVarsResponse? Type605 { get; set; } + public global::System.Collections.Generic.IList? Type605 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type606 { get; set; } + public global::PromptLayer.GetWorkflowResponseEdge? Type606 { get; set; } /// /// /// - public global::PromptLayer.ListToolEnvVarsResponseToolEnvVar? Type607 { get; set; } + public global::PromptLayer.GetWorkflowLabelsResponse? Type607 { get; set; } /// /// /// - public global::PromptLayer.ListToolEnvVarsResponse2? Type608 { get; set; } + public global::System.Collections.Generic.IList? Type608 { get; set; } /// /// /// - public global::PromptLayer.CreateToolEnvVarResponse? Type609 { get; set; } + public global::PromptLayer.GetWorkflowLabelsResponseReleaseLabel? Type609 { get; set; } /// /// /// - public global::PromptLayer.CreateToolEnvVarResponseToolEnvVar? Type610 { get; set; } + public global::PromptLayer.AnyOf? Type610 { get; set; } /// /// /// - public global::PromptLayer.CreateToolEnvVarResponse2? Type611 { get; set; } + public global::PromptLayer.IngestOtlpTracesResponse2? Type611 { get; set; } /// /// /// - public global::PromptLayer.CreateToolEnvVarResponse3? Type612 { get; set; } + public global::PromptLayer.ListToolRegistriesResponse? Type612 { get; set; } /// /// /// - public global::PromptLayer.UpdateToolEnvVarResponse? Type613 { get; set; } + public global::System.Collections.Generic.IList? Type613 { get; set; } /// /// /// - public global::PromptLayer.UpdateToolEnvVarResponseToolEnvVar? Type614 { get; set; } + public global::PromptLayer.ListToolRegistriesResponseToolRegistrie? Type614 { get; set; } /// /// /// - public global::PromptLayer.UpdateToolEnvVarResponse2? Type615 { get; set; } + public global::PromptLayer.CreateToolRegistryResponse? Type615 { get; set; } /// /// /// - public global::PromptLayer.DeleteToolEnvVarResponse? Type616 { get; set; } + public global::PromptLayer.GetToolRegistryResponse? Type616 { get; set; } /// /// /// - public global::PromptLayer.DeleteToolEnvVarResponse2? Type617 { get; set; } + public global::PromptLayer.GetToolRegistryResponseToolRegistry? Type617 { get; set; } + /// + /// + /// + public global::PromptLayer.CreateTableResponse? Type618 { get; set; } + /// + /// + /// + public global::PromptLayer.ListTablesResponse? Type619 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type620 { get; set; } + /// + /// + /// + public global::PromptLayer.GetTableResponse? Type621 { get; set; } + /// + /// + /// + public global::PromptLayer.UpdateTableResponse? Type622 { get; set; } + /// + /// + /// + public global::PromptLayer.ListTableSheetsResponse? Type623 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type624 { get; set; } + /// + /// + /// + public global::PromptLayer.CreateTableSheetResponse? Type625 { get; set; } + /// + /// + /// + public global::PromptLayer.GetTableSheetOperationResponse2? Type626 { get; set; } + /// + /// + /// + public global::PromptLayer.GetTableSheetResponse? Type627 { get; set; } + /// + /// + /// + public global::PromptLayer.UpdateTableSheetResponse? Type628 { get; set; } + /// + /// + /// + public global::PromptLayer.ListTableSheetColumnsResponse? Type629 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type630 { get; set; } + /// + /// + /// + public global::PromptLayer.CreateTableSheetColumnResponse? Type631 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type632 { get; set; } + /// + /// + /// + public global::PromptLayer.UpdateTableSheetColumnResponse? Type633 { get; set; } + /// + /// + /// + public global::PromptLayer.ListTableSheetRowsResponse? Type634 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type635 { get; set; } + /// + /// + /// + public global::PromptLayer.ListTableSheetRowsResponseDataItem? Type636 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.Dictionary? Type637 { get; set; } + /// + /// + /// + public global::PromptLayer.AddTableSheetRowsResponse? Type638 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type639 { get; set; } + /// + /// + /// + public global::PromptLayer.AddTableSheetRowsResponseRow? Type640 { get; set; } + /// + /// + /// + public global::PromptLayer.GetTableSheetCellResponse? Type641 { get; set; } + /// + /// + /// + public global::PromptLayer.UpdateTableSheetCellResponse? Type642 { get; set; } + /// + /// + /// + public global::PromptLayer.CreateTableSheetCellRecalculationsBatchResponse? Type643 { get; set; } + /// + /// + /// + public global::PromptLayer.CreateTableSheetCellRecalculationResponse? Type644 { get; set; } + /// + /// + /// + public global::PromptLayer.CreateToolVersionResponse? Type645 { get; set; } + /// + /// + /// + public global::PromptLayer.TestExecuteToolResponse? Type646 { get; set; } + /// + /// + /// + public global::PromptLayer.TestExecuteToolResponseResult? Type647 { get; set; } + /// + /// + /// + public global::PromptLayer.TestExecuteToolResponseResultStatus? Type648 { get; set; } + /// + /// + /// + public global::PromptLayer.CloseTraceResponse? Type649 { get; set; } + /// + /// + /// + public global::PromptLayer.CloseTraceResponseClosure? Type650 { get; set; } + /// + /// + /// + public global::PromptLayer.CloseTraceResponseClosureStatus? Type651 { get; set; } + /// + /// + /// + public global::PromptLayer.CloseTraceResponse2? Type652 { get; set; } + /// + /// + /// + public global::PromptLayer.ListWorkspaceEnvVarsResponse? Type653 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type654 { get; set; } + /// + /// + /// + public global::PromptLayer.ListWorkspaceEnvVarsResponseWorkspaceEnvVar? Type655 { get; set; } + /// + /// + /// + public global::PromptLayer.CreateWorkspaceEnvVarResponse? Type656 { get; set; } + /// + /// + /// + public global::PromptLayer.CreateWorkspaceEnvVarResponseWorkspaceEnvVar? Type657 { get; set; } + /// + /// + /// + public global::PromptLayer.CreateWorkspaceEnvVarResponse2? Type658 { get; set; } + /// + /// + /// + public global::PromptLayer.UpdateWorkspaceEnvVarResponse? Type659 { get; set; } + /// + /// + /// + public global::PromptLayer.UpdateWorkspaceEnvVarResponseWorkspaceEnvVar? Type660 { get; set; } + /// + /// + /// + public global::PromptLayer.UpdateWorkspaceEnvVarResponse2? Type661 { get; set; } + /// + /// + /// + public global::PromptLayer.DeleteWorkspaceEnvVarResponse? Type662 { get; set; } + /// + /// + /// + public global::PromptLayer.DeleteWorkspaceEnvVarResponse2? Type663 { get; set; } + /// + /// + /// + public global::PromptLayer.ListToolEnvVarsResponse? Type664 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type665 { get; set; } + /// + /// + /// + public global::PromptLayer.ListToolEnvVarsResponseToolEnvVar? Type666 { get; set; } + /// + /// + /// + public global::PromptLayer.ListToolEnvVarsResponse2? Type667 { get; set; } + /// + /// + /// + public global::PromptLayer.CreateToolEnvVarResponse? Type668 { get; set; } + /// + /// + /// + public global::PromptLayer.CreateToolEnvVarResponseToolEnvVar? Type669 { get; set; } + /// + /// + /// + public global::PromptLayer.CreateToolEnvVarResponse2? Type670 { get; set; } + /// + /// + /// + public global::PromptLayer.CreateToolEnvVarResponse3? Type671 { get; set; } + /// + /// + /// + public global::PromptLayer.UpdateToolEnvVarResponse? Type672 { get; set; } + /// + /// + /// + public global::PromptLayer.UpdateToolEnvVarResponseToolEnvVar? Type673 { get; set; } + /// + /// + /// + public global::PromptLayer.UpdateToolEnvVarResponse2? Type674 { get; set; } + /// + /// + /// + public global::PromptLayer.DeleteToolEnvVarResponse? Type675 { get; set; } + /// + /// + /// + public global::PromptLayer.DeleteToolEnvVarResponse2? Type676 { get; set; } /// /// @@ -2753,94 +2989,126 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType63 { get; set; } + public global::System.Collections.Generic.List? ListType63 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType64 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType65 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType66 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List>>? ListType67 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List>? ListType68 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType69 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType70 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType71 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType64 { get; set; } + public global::System.Collections.Generic.List? ListType72 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType65 { get; set; } + public global::System.Collections.Generic.List? ListType73 { get; set; } /// /// /// - public global::PromptLayer.AnyOf>? ListType66 { get; set; } + public global::PromptLayer.AnyOf>? ListType74 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType67 { get; set; } + public global::System.Collections.Generic.List? ListType75 { get; set; } /// /// /// - public global::PromptLayer.OneOf>? ListType68 { get; set; } + public global::PromptLayer.OneOf>? ListType76 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType69 { get; set; } + public global::System.Collections.Generic.List? ListType77 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType70 { get; set; } + public global::System.Collections.Generic.List? ListType78 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType71 { get; set; } + public global::System.Collections.Generic.List? ListType79 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType72 { get; set; } + public global::System.Collections.Generic.List? ListType80 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType73 { get; set; } + public global::System.Collections.Generic.List? ListType81 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType74 { get; set; } + public global::System.Collections.Generic.List? ListType82 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType75 { get; set; } + public global::System.Collections.Generic.List? ListType83 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType76 { get; set; } + public global::System.Collections.Generic.List? ListType84 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType77 { get; set; } + public global::System.Collections.Generic.List? ListType85 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType78 { get; set; } + public global::System.Collections.Generic.List? ListType86 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType79 { get; set; } + public global::System.Collections.Generic.List? ListType87 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType80 { get; set; } + public global::System.Collections.Generic.List? ListType88 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType81 { get; set; } + public global::System.Collections.Generic.List? ListType89 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType82 { get; set; } + public global::System.Collections.Generic.List? ListType90 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType83 { get; set; } + public global::System.Collections.Generic.List? ListType91 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType84 { get; set; } + public global::System.Collections.Generic.List? ListType92 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType85 { get; set; } + public global::System.Collections.Generic.List? ListType93 { get; set; } } } \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.AddTableSheetRowsResponse.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.AddTableSheetRowsResponse.g.cs index 0c47283..3dccf9c 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.Models.AddTableSheetRowsResponse.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.AddTableSheetRowsResponse.g.cs @@ -51,7 +51,7 @@ public sealed partial class AddTableSheetRowsResponse public int? RowCount { get; set; } /// - /// + /// Current sheet version_count for this response. It matches the sheet's version_count after any committed changes. /// [global::System.Text.Json.Serialization.JsonPropertyName("version")] public int? Version { get; set; } @@ -72,7 +72,9 @@ public sealed partial class AddTableSheetRowsResponse /// /// /// - /// + /// + /// Current sheet version_count for this response. It matches the sheet's version_count after any committed changes. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CancelTableSheetOperationResponse.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CancelTableSheetOperationResponse.Json.g.cs new file mode 100644 index 0000000..ed48454 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CancelTableSheetOperationResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class CancelTableSheetOperationResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.CancelTableSheetOperationResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.CancelTableSheetOperationResponse), + jsonSerializerContext) as global::PromptLayer.CancelTableSheetOperationResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::PromptLayer.CancelTableSheetOperationResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::PromptLayer.CancelTableSheetOperationResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.CancelTableSheetOperationResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CancelTableSheetOperationResponse.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CancelTableSheetOperationResponse.g.cs new file mode 100644 index 0000000..e7d1e1b --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CancelTableSheetOperationResponse.g.cs @@ -0,0 +1,103 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class CancelTableSheetOperationResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("success")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Success { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Message { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("operation_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string OperationId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("execution_ids")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList ExecutionIds { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cancelled_cell_count")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int CancelledCellCount { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("not_started_reset_count")] + public int? NotStartedResetCount { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("running_invalidated_count")] + public int? RunningInvalidatedCount { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CancelTableSheetOperationResponse( + bool success, + string message, + string operationId, + global::System.Collections.Generic.IList executionIds, + int cancelledCellCount, + int? notStartedResetCount, + int? runningInvalidatedCount) + { + this.Success = success; + this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); + this.OperationId = operationId ?? throw new global::System.ArgumentNullException(nameof(operationId)); + this.ExecutionIds = executionIds ?? throw new global::System.ArgumentNullException(nameof(executionIds)); + this.CancelledCellCount = cancelledCellCount; + this.NotStartedResetCount = notStartedResetCount; + this.RunningInvalidatedCount = runningInvalidatedCount; + } + + /// + /// Initializes a new instance of the class. + /// + public CancelTableSheetOperationResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.Cell.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.Cell.g.cs index b727ddc..b33dd5e 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.Models.Cell.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.Cell.g.cs @@ -75,6 +75,24 @@ public sealed partial class Cell [global::System.Text.Json.Serialization.JsonPropertyName("request_metrics")] public global::PromptLayer.SmartTableRequestMetrics? RequestMetrics { get; set; } + /// + /// Execution ID associated with the current or most recent computed value, when available. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("execution_id")] + public global::System.Guid? ExecutionId { get; set; } + + /// + /// Sheet version_count when this cell was last computed. Null for text cells, virtual cells, or cells that have not completed computation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("last_computed_version")] + public int? LastComputedVersion { get; set; } + + /// + /// User-visible error message for failed computed cells, when available. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("error_message")] + public string? ErrorMessage { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -105,6 +123,15 @@ public sealed partial class Cell /// /// Execution metrics populated for prompt-template column cells. Present only when the cell has an associated request log. /// + /// + /// Execution ID associated with the current or most recent computed value, when available. + /// + /// + /// Sheet version_count when this cell was last computed. Null for text cells, virtual cells, or cells that have not completed computation. + /// + /// + /// User-visible error message for failed computed cells, when available. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -119,7 +146,10 @@ public Cell( string? error, string? inputHash, global::System.DateTime? updatedAt, - global::PromptLayer.SmartTableRequestMetrics? requestMetrics) + global::PromptLayer.SmartTableRequestMetrics? requestMetrics, + global::System.Guid? executionId, + int? lastComputedVersion, + string? errorMessage) { this.Id = id; this.SheetId = sheetId; @@ -132,6 +162,9 @@ public Cell( this.InputHash = inputHash; this.UpdatedAt = updatedAt; this.RequestMetrics = requestMetrics; + this.ExecutionId = executionId; + this.LastComputedVersion = lastComputedVersion; + this.ErrorMessage = errorMessage; } /// diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.Column.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.Column.g.cs index d8ccdf7..7fc7b9f 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.Models.Column.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.Column.g.cs @@ -21,7 +21,7 @@ public sealed partial class Column public global::System.Guid? SheetId { get; set; } /// - /// + /// Workspace that owns this resource; determined by the authenticated request scope. /// [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] public int? WorkspaceId { get; set; } @@ -70,7 +70,9 @@ public sealed partial class Column /// Unique identifier of the column. /// /// - /// + /// + /// Workspace that owns this resource; determined by the authenticated request scope. + /// /// /// Display title of the column. /// diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScoreRequest.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScoreRequest.Json.g.cs new file mode 100644 index 0000000..27f7996 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScoreRequest.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class ConfigureTableSheetScoreRequest + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.ConfigureTableSheetScoreRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.ConfigureTableSheetScoreRequest), + jsonSerializerContext) as global::PromptLayer.ConfigureTableSheetScoreRequest; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::PromptLayer.ConfigureTableSheetScoreRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::PromptLayer.ConfigureTableSheetScoreRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.ConfigureTableSheetScoreRequest; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScoreRequest.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScoreRequest.g.cs new file mode 100644 index 0000000..a61c25b --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScoreRequest.g.cs @@ -0,0 +1,137 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class ConfigureTableSheetScoreRequest + { + /// + /// Scoring mode. Required when score_config is provided. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("score_type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.ConfigureTableSheetScoreRequestScoreTypeJsonConverter))] + public global::PromptLayer.ConfigureTableSheetScoreRequestScoreType? ScoreType { get; set; } + + /// + /// Explicit score configuration. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("score_config")] + public object? ScoreConfig { get; set; } + + /// + /// Column IDs to score. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("column_ids")] + public global::System.Collections.Generic.IList? ColumnIds { get; set; } + + /// + /// Column titles to score. Titles must be unique in the sheet. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("column_names")] + public global::System.Collections.Generic.IList? ColumnNames { get; set; } + + /// + /// Custom scoring code. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("code")] + public string? Code { get; set; } + + /// + /// Default Value: PYTHON + /// + [global::System.Text.Json.Serialization.JsonPropertyName("code_language")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.ConfigureTableSheetScoreRequestCodeLanguageJsonConverter))] + public global::PromptLayer.ConfigureTableSheetScoreRequestCodeLanguage? CodeLanguage { get; set; } + + /// + /// Values treated as true for boolean scoring. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("true_values")] + public global::System.Collections.Generic.IList? TrueValues { get; set; } + + /// + /// Values treated as false for boolean scoring. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("false_values")] + public global::System.Collections.Generic.IList? FalseValues { get; set; } + + /// + /// Aggregation mode for assertion-style boolean scoring. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("assertion_aggregation")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.ConfigureTableSheetScoreRequestAssertionAggregationJsonConverter))] + public global::PromptLayer.ConfigureTableSheetScoreRequestAssertionAggregation? AssertionAggregation { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Scoring mode. Required when score_config is provided. + /// + /// + /// Explicit score configuration. + /// + /// + /// Column IDs to score. + /// + /// + /// Column titles to score. Titles must be unique in the sheet. + /// + /// + /// Custom scoring code. + /// + /// + /// Default Value: PYTHON + /// + /// + /// Values treated as true for boolean scoring. + /// + /// + /// Values treated as false for boolean scoring. + /// + /// + /// Aggregation mode for assertion-style boolean scoring. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ConfigureTableSheetScoreRequest( + global::PromptLayer.ConfigureTableSheetScoreRequestScoreType? scoreType, + object? scoreConfig, + global::System.Collections.Generic.IList? columnIds, + global::System.Collections.Generic.IList? columnNames, + string? code, + global::PromptLayer.ConfigureTableSheetScoreRequestCodeLanguage? codeLanguage, + global::System.Collections.Generic.IList? trueValues, + global::System.Collections.Generic.IList? falseValues, + global::PromptLayer.ConfigureTableSheetScoreRequestAssertionAggregation? assertionAggregation) + { + this.ScoreType = scoreType; + this.ScoreConfig = scoreConfig; + this.ColumnIds = columnIds; + this.ColumnNames = columnNames; + this.Code = code; + this.CodeLanguage = codeLanguage; + this.TrueValues = trueValues; + this.FalseValues = falseValues; + this.AssertionAggregation = assertionAggregation; + } + + /// + /// Initializes a new instance of the class. + /// + public ConfigureTableSheetScoreRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScoreRequestAssertionAggregation.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScoreRequestAssertionAggregation.g.cs new file mode 100644 index 0000000..8f5de61 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScoreRequestAssertionAggregation.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// Aggregation mode for assertion-style boolean scoring. + /// + public enum ConfigureTableSheetScoreRequestAssertionAggregation + { + /// + /// + /// + All, + /// + /// + /// + Any, + /// + /// + /// + Mean, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ConfigureTableSheetScoreRequestAssertionAggregationExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ConfigureTableSheetScoreRequestAssertionAggregation value) + { + return value switch + { + ConfigureTableSheetScoreRequestAssertionAggregation.All => "all", + ConfigureTableSheetScoreRequestAssertionAggregation.Any => "any", + ConfigureTableSheetScoreRequestAssertionAggregation.Mean => "mean", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ConfigureTableSheetScoreRequestAssertionAggregation? ToEnum(string value) + { + return value switch + { + "all" => ConfigureTableSheetScoreRequestAssertionAggregation.All, + "any" => ConfigureTableSheetScoreRequestAssertionAggregation.Any, + "mean" => ConfigureTableSheetScoreRequestAssertionAggregation.Mean, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScoreRequestCodeLanguage.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScoreRequestCodeLanguage.g.cs new file mode 100644 index 0000000..fb8b569 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScoreRequestCodeLanguage.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// Default Value: PYTHON + /// + public enum ConfigureTableSheetScoreRequestCodeLanguage + { + /// + /// + /// + Javascript, + /// + /// + /// + Python, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ConfigureTableSheetScoreRequestCodeLanguageExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ConfigureTableSheetScoreRequestCodeLanguage value) + { + return value switch + { + ConfigureTableSheetScoreRequestCodeLanguage.Javascript => "JAVASCRIPT", + ConfigureTableSheetScoreRequestCodeLanguage.Python => "PYTHON", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ConfigureTableSheetScoreRequestCodeLanguage? ToEnum(string value) + { + return value switch + { + "JAVASCRIPT" => ConfigureTableSheetScoreRequestCodeLanguage.Javascript, + "PYTHON" => ConfigureTableSheetScoreRequestCodeLanguage.Python, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScoreRequestScoreConfig.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScoreRequestScoreConfig.Json.g.cs new file mode 100644 index 0000000..6b0d9e2 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScoreRequestScoreConfig.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class ConfigureTableSheetScoreRequestScoreConfig + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.ConfigureTableSheetScoreRequestScoreConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.ConfigureTableSheetScoreRequestScoreConfig), + jsonSerializerContext) as global::PromptLayer.ConfigureTableSheetScoreRequestScoreConfig; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::PromptLayer.ConfigureTableSheetScoreRequestScoreConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::PromptLayer.ConfigureTableSheetScoreRequestScoreConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.ConfigureTableSheetScoreRequestScoreConfig; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScoreRequestScoreConfig.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScoreRequestScoreConfig.g.cs new file mode 100644 index 0000000..b6760d7 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScoreRequestScoreConfig.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// Explicit score configuration. + /// + public sealed partial class ConfigureTableSheetScoreRequestScoreConfig + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScoreRequestScoreType.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScoreRequestScoreType.g.cs new file mode 100644 index 0000000..7bc140f --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScoreRequestScoreType.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// Scoring mode. Required when score_config is provided. + /// + public enum ConfigureTableSheetScoreRequestScoreType + { + /// + /// + /// + Auto, + /// + /// + /// + Boolean, + /// + /// + /// + Custom, + /// + /// + /// + Numeric, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ConfigureTableSheetScoreRequestScoreTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ConfigureTableSheetScoreRequestScoreType value) + { + return value switch + { + ConfigureTableSheetScoreRequestScoreType.Auto => "auto", + ConfigureTableSheetScoreRequestScoreType.Boolean => "boolean", + ConfigureTableSheetScoreRequestScoreType.Custom => "custom", + ConfigureTableSheetScoreRequestScoreType.Numeric => "numeric", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ConfigureTableSheetScoreRequestScoreType? ToEnum(string value) + { + return value switch + { + "auto" => ConfigureTableSheetScoreRequestScoreType.Auto, + "boolean" => ConfigureTableSheetScoreRequestScoreType.Boolean, + "custom" => ConfigureTableSheetScoreRequestScoreType.Custom, + "numeric" => ConfigureTableSheetScoreRequestScoreType.Numeric, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScoreResponse.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScoreResponse.Json.g.cs new file mode 100644 index 0000000..be2868f --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScoreResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class ConfigureTableSheetScoreResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.ConfigureTableSheetScoreResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.ConfigureTableSheetScoreResponse), + jsonSerializerContext) as global::PromptLayer.ConfigureTableSheetScoreResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::PromptLayer.ConfigureTableSheetScoreResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::PromptLayer.ConfigureTableSheetScoreResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.ConfigureTableSheetScoreResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScoreResponse.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScoreResponse.g.cs new file mode 100644 index 0000000..69b9bb5 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScoreResponse.g.cs @@ -0,0 +1,98 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class ConfigureTableSheetScoreResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("success")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Success { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Message { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("score_configuration_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid ScoreConfigurationId { get; set; } + + /// + /// Returned as null by this endpoint. Use the recalculation endpoint to queue score calculation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + public string? Status { get; set; } + + /// + /// Always true after updating the score configuration. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("requires_recalculation")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool RequiresRecalculation { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("version")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int Version { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// + /// Always true after updating the score configuration. + /// + /// + /// + /// Returned as null by this endpoint. Use the recalculation endpoint to queue score calculation. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ConfigureTableSheetScoreResponse( + bool success, + string message, + global::System.Guid scoreConfigurationId, + bool requiresRecalculation, + int version, + string? status) + { + this.Success = success; + this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); + this.ScoreConfigurationId = scoreConfigurationId; + this.Status = status; + this.RequiresRecalculation = requiresRecalculation; + this.Version = version; + } + + /// + /// Initializes a new instance of the class. + /// + public ConfigureTableSheetScoreResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetColumnResponse.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetColumnResponse.g.cs index d38fb5a..32bb532 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetColumnResponse.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetColumnResponse.g.cs @@ -27,7 +27,7 @@ public sealed partial class CreateTableSheetColumnResponse public global::System.Collections.Generic.IList? Cells { get; set; } /// - /// + /// Current sheet version_count for this response. It matches the sheet's version_count after any committed changes. /// [global::System.Text.Json.Serialization.JsonPropertyName("version")] public int? Version { get; set; } @@ -46,7 +46,9 @@ public sealed partial class CreateTableSheetColumnResponse /// A column within a Table sheet. /// /// - /// + /// + /// Current sheet version_count for this response. It matches the sheet's version_count after any committed changes. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetFileImportRequest.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetFileImportRequest.Json.g.cs new file mode 100644 index 0000000..76263ce --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetFileImportRequest.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class CreateTableSheetFileImportRequest + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.CreateTableSheetFileImportRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.CreateTableSheetFileImportRequest), + jsonSerializerContext) as global::PromptLayer.CreateTableSheetFileImportRequest; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::PromptLayer.CreateTableSheetFileImportRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::PromptLayer.CreateTableSheetFileImportRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.CreateTableSheetFileImportRequest; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetFileImportRequest.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetFileImportRequest.g.cs new file mode 100644 index 0000000..510459a --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetFileImportRequest.g.cs @@ -0,0 +1,70 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class CreateTableSheetFileImportRequest + { + /// + /// Optional client-provided operation ID. A UUID is generated when omitted. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("operation_id")] + public string? OperationId { get; set; } + + /// + /// CSV file name. Must end with .csv. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("file_name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string FileName { get; set; } + + /// + /// Base64-encoded CSV file content. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("file_content_base64")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string FileContentBase64 { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// CSV file name. Must end with .csv. + /// + /// + /// Base64-encoded CSV file content. + /// + /// + /// Optional client-provided operation ID. A UUID is generated when omitted. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateTableSheetFileImportRequest( + string fileName, + string fileContentBase64, + string? operationId) + { + this.OperationId = operationId; + this.FileName = fileName ?? throw new global::System.ArgumentNullException(nameof(fileName)); + this.FileContentBase64 = fileContentBase64 ?? throw new global::System.ArgumentNullException(nameof(fileContentBase64)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateTableSheetFileImportRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationConfirmationResponse.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationConfirmationResponse.Json.g.cs new file mode 100644 index 0000000..1925865 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationConfirmationResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class CreateTableSheetOperationConfirmationResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.CreateTableSheetOperationConfirmationResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.CreateTableSheetOperationConfirmationResponse), + jsonSerializerContext) as global::PromptLayer.CreateTableSheetOperationConfirmationResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::PromptLayer.CreateTableSheetOperationConfirmationResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::PromptLayer.CreateTableSheetOperationConfirmationResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.CreateTableSheetOperationConfirmationResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationConfirmationResponse.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationConfirmationResponse.g.cs new file mode 100644 index 0000000..589323d --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationConfirmationResponse.g.cs @@ -0,0 +1,85 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class CreateTableSheetOperationConfirmationResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("success")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Success { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("requires_confirmation")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool RequiresConfirmation { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("confirmation_token")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ConfirmationToken { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("affected_cell_count")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int AffectedCellCount { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Message { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateTableSheetOperationConfirmationResponse( + bool success, + bool requiresConfirmation, + string confirmationToken, + int affectedCellCount, + string message) + { + this.Success = success; + this.RequiresConfirmation = requiresConfirmation; + this.ConfirmationToken = confirmationToken ?? throw new global::System.ArgumentNullException(nameof(confirmationToken)); + this.AffectedCellCount = affectedCellCount; + this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateTableSheetOperationConfirmationResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationNoopResponse.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationNoopResponse.Json.g.cs new file mode 100644 index 0000000..9d4a66a --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationNoopResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class CreateTableSheetOperationNoopResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.CreateTableSheetOperationNoopResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.CreateTableSheetOperationNoopResponse), + jsonSerializerContext) as global::PromptLayer.CreateTableSheetOperationNoopResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::PromptLayer.CreateTableSheetOperationNoopResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::PromptLayer.CreateTableSheetOperationNoopResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.CreateTableSheetOperationNoopResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationNoopResponse.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationNoopResponse.g.cs new file mode 100644 index 0000000..6037cb3 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationNoopResponse.g.cs @@ -0,0 +1,75 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class CreateTableSheetOperationNoopResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("success")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Success { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cell_count")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int CellCount { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("virtual_cell_count")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int VirtualCellCount { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cells")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Cells { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateTableSheetOperationNoopResponse( + bool success, + int cellCount, + int virtualCellCount, + global::System.Collections.Generic.IList cells) + { + this.Success = success; + this.CellCount = cellCount; + this.VirtualCellCount = virtualCellCount; + this.Cells = cells ?? throw new global::System.ArgumentNullException(nameof(cells)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateTableSheetOperationNoopResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationQueuedResponse.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationQueuedResponse.Json.g.cs new file mode 100644 index 0000000..9de1aea --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationQueuedResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class CreateTableSheetOperationQueuedResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.CreateTableSheetOperationQueuedResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.CreateTableSheetOperationQueuedResponse), + jsonSerializerContext) as global::PromptLayer.CreateTableSheetOperationQueuedResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::PromptLayer.CreateTableSheetOperationQueuedResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::PromptLayer.CreateTableSheetOperationQueuedResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.CreateTableSheetOperationQueuedResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationQueuedResponse.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationQueuedResponse.g.cs new file mode 100644 index 0000000..8241084 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationQueuedResponse.g.cs @@ -0,0 +1,135 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class CreateTableSheetOperationQueuedResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("success")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Success { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("operation")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.CreateTableSheetOperationQueuedResponseOperationJsonConverter))] + public global::PromptLayer.CreateTableSheetOperationQueuedResponseOperation Operation { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("operation_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string OperationId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("execution_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ExecutionId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("execution_ids")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList ExecutionIds { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cell_count")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int CellCount { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("version")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int Version { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status_url")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string StatusUrl { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("virtual_cell_count")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int VirtualCellCount { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cells")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Cells { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateTableSheetOperationQueuedResponse( + bool success, + string operationId, + string executionId, + global::System.Collections.Generic.IList executionIds, + int cellCount, + int version, + string statusUrl, + int virtualCellCount, + global::System.Collections.Generic.IList cells, + global::PromptLayer.CreateTableSheetOperationQueuedResponseOperation operation) + { + this.Success = success; + this.Operation = operation; + this.OperationId = operationId ?? throw new global::System.ArgumentNullException(nameof(operationId)); + this.ExecutionId = executionId ?? throw new global::System.ArgumentNullException(nameof(executionId)); + this.ExecutionIds = executionIds ?? throw new global::System.ArgumentNullException(nameof(executionIds)); + this.CellCount = cellCount; + this.Version = version; + this.StatusUrl = statusUrl ?? throw new global::System.ArgumentNullException(nameof(statusUrl)); + this.VirtualCellCount = virtualCellCount; + this.Cells = cells ?? throw new global::System.ArgumentNullException(nameof(cells)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateTableSheetOperationQueuedResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationQueuedResponseOperation.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationQueuedResponseOperation.g.cs new file mode 100644 index 0000000..b499bc3 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationQueuedResponseOperation.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public enum CreateTableSheetOperationQueuedResponseOperation + { + /// + /// + /// + Recalculate, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateTableSheetOperationQueuedResponseOperationExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateTableSheetOperationQueuedResponseOperation value) + { + return value switch + { + CreateTableSheetOperationQueuedResponseOperation.Recalculate => "recalculate", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateTableSheetOperationQueuedResponseOperation? ToEnum(string value) + { + return value switch + { + "recalculate" => CreateTableSheetOperationQueuedResponseOperation.Recalculate, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationRequest.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationRequest.Json.g.cs new file mode 100644 index 0000000..fe758fc --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationRequest.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class CreateTableSheetOperationRequest + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.CreateTableSheetOperationRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.CreateTableSheetOperationRequest), + jsonSerializerContext) as global::PromptLayer.CreateTableSheetOperationRequest; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::PromptLayer.CreateTableSheetOperationRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::PromptLayer.CreateTableSheetOperationRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.CreateTableSheetOperationRequest; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationRequest.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationRequest.g.cs new file mode 100644 index 0000000..625b0a5 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationRequest.g.cs @@ -0,0 +1,91 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class CreateTableSheetOperationRequest + { + /// + /// Default Value: recalculate + /// + [global::System.Text.Json.Serialization.JsonPropertyName("operation")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.CreateTableSheetOperationRequestOperationJsonConverter))] + public global::PromptLayer.CreateTableSheetOperationRequestOperation? Operation { get; set; } + + /// + /// Columns to recalculate. Text columns cannot be recalculated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("column_ids")] + public global::System.Collections.Generic.IList? ColumnIds { get; set; } + + /// + /// Zero-based row indices to recalculate. If omitted, matching cells across all rows are considered. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("row_ids")] + public global::System.Collections.Generic.IList? RowIds { get; set; } + + /// + /// Cell statuses to include. Defaults to stale cells. Pass an empty array to include all statuses. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("statuses")] + public global::System.Collections.Generic.IList? Statuses { get; set; } + + /// + /// Confirmation token returned when the operation exceeds the confirmation threshold. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("confirmation_token")] + public string? ConfirmationToken { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Default Value: recalculate + /// + /// + /// Columns to recalculate. Text columns cannot be recalculated. + /// + /// + /// Zero-based row indices to recalculate. If omitted, matching cells across all rows are considered. + /// + /// + /// Cell statuses to include. Defaults to stale cells. Pass an empty array to include all statuses. + /// + /// + /// Confirmation token returned when the operation exceeds the confirmation threshold. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateTableSheetOperationRequest( + global::PromptLayer.CreateTableSheetOperationRequestOperation? operation, + global::System.Collections.Generic.IList? columnIds, + global::System.Collections.Generic.IList? rowIds, + global::System.Collections.Generic.IList? statuses, + string? confirmationToken) + { + this.Operation = operation; + this.ColumnIds = columnIds; + this.RowIds = rowIds; + this.Statuses = statuses; + this.ConfirmationToken = confirmationToken; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateTableSheetOperationRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationRequestOperation.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationRequestOperation.g.cs new file mode 100644 index 0000000..d7ffda5 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationRequestOperation.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// Default Value: recalculate + /// + public enum CreateTableSheetOperationRequestOperation + { + /// + /// + /// + Recalculate, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateTableSheetOperationRequestOperationExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateTableSheetOperationRequestOperation value) + { + return value switch + { + CreateTableSheetOperationRequestOperation.Recalculate => "recalculate", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateTableSheetOperationRequestOperation? ToEnum(string value) + { + return value switch + { + "recalculate" => CreateTableSheetOperationRequestOperation.Recalculate, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationRequestStatuse.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationRequestStatuse.g.cs new file mode 100644 index 0000000..c764503 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationRequestStatuse.g.cs @@ -0,0 +1,75 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public enum CreateTableSheetOperationRequestStatuse + { + /// + /// + /// + Completed, + /// + /// + /// + Dispatched, + /// + /// + /// + Failed, + /// + /// + /// + Queued, + /// + /// + /// + Running, + /// + /// + /// + Stale, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateTableSheetOperationRequestStatuseExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateTableSheetOperationRequestStatuse value) + { + return value switch + { + CreateTableSheetOperationRequestStatuse.Completed => "COMPLETED", + CreateTableSheetOperationRequestStatuse.Dispatched => "DISPATCHED", + CreateTableSheetOperationRequestStatuse.Failed => "FAILED", + CreateTableSheetOperationRequestStatuse.Queued => "QUEUED", + CreateTableSheetOperationRequestStatuse.Running => "RUNNING", + CreateTableSheetOperationRequestStatuse.Stale => "STALE", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateTableSheetOperationRequestStatuse? ToEnum(string value) + { + return value switch + { + "COMPLETED" => CreateTableSheetOperationRequestStatuse.Completed, + "DISPATCHED" => CreateTableSheetOperationRequestStatuse.Dispatched, + "FAILED" => CreateTableSheetOperationRequestStatuse.Failed, + "QUEUED" => CreateTableSheetOperationRequestStatuse.Queued, + "RUNNING" => CreateTableSheetOperationRequestStatuse.Running, + "STALE" => CreateTableSheetOperationRequestStatuse.Stale, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationResponse.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationResponse.Json.g.cs new file mode 100644 index 0000000..066f5cc --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public readonly partial struct CreateTableSheetOperationResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.CreateTableSheetOperationResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.CreateTableSheetOperationResponse), + jsonSerializerContext) as global::PromptLayer.CreateTableSheetOperationResponse?; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::PromptLayer.CreateTableSheetOperationResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::PromptLayer.CreateTableSheetOperationResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.CreateTableSheetOperationResponse?; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationResponse.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationResponse.g.cs new file mode 100644 index 0000000..81c5563 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetOperationResponse.g.cs @@ -0,0 +1,378 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public readonly partial struct CreateTableSheetOperationResponse : global::System.IEquatable + { + /// + /// + /// +#if NET6_0_OR_GREATER + public global::PromptLayer.CreateTableSheetOperationQueuedResponse? CreateTableSheetOperationQueuedResponse { get; init; } +#else + public global::PromptLayer.CreateTableSheetOperationQueuedResponse? CreateTableSheetOperationQueuedResponse { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CreateTableSheetOperationQueuedResponse))] +#endif + public bool IsCreateTableSheetOperationQueuedResponse => CreateTableSheetOperationQueuedResponse != null; + + /// + /// + /// + public bool TryPickCreateTableSheetOperationQueuedResponse( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::PromptLayer.CreateTableSheetOperationQueuedResponse? value) + { + value = CreateTableSheetOperationQueuedResponse; + return IsCreateTableSheetOperationQueuedResponse; + } + + /// + /// + /// + public global::PromptLayer.CreateTableSheetOperationQueuedResponse PickCreateTableSheetOperationQueuedResponse() => IsCreateTableSheetOperationQueuedResponse + ? CreateTableSheetOperationQueuedResponse! + : throw new global::System.InvalidOperationException($"Expected union variant 'CreateTableSheetOperationQueuedResponse' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::PromptLayer.CreateTableSheetOperationNoopResponse? CreateTableSheetOperationNoopResponse { get; init; } +#else + public global::PromptLayer.CreateTableSheetOperationNoopResponse? CreateTableSheetOperationNoopResponse { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CreateTableSheetOperationNoopResponse))] +#endif + public bool IsCreateTableSheetOperationNoopResponse => CreateTableSheetOperationNoopResponse != null; + + /// + /// + /// + public bool TryPickCreateTableSheetOperationNoopResponse( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::PromptLayer.CreateTableSheetOperationNoopResponse? value) + { + value = CreateTableSheetOperationNoopResponse; + return IsCreateTableSheetOperationNoopResponse; + } + + /// + /// + /// + public global::PromptLayer.CreateTableSheetOperationNoopResponse PickCreateTableSheetOperationNoopResponse() => IsCreateTableSheetOperationNoopResponse + ? CreateTableSheetOperationNoopResponse! + : throw new global::System.InvalidOperationException($"Expected union variant 'CreateTableSheetOperationNoopResponse' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::PromptLayer.CreateTableSheetOperationConfirmationResponse? CreateTableSheetOperationConfirmationResponse { get; init; } +#else + public global::PromptLayer.CreateTableSheetOperationConfirmationResponse? CreateTableSheetOperationConfirmationResponse { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CreateTableSheetOperationConfirmationResponse))] +#endif + public bool IsCreateTableSheetOperationConfirmationResponse => CreateTableSheetOperationConfirmationResponse != null; + + /// + /// + /// + public bool TryPickCreateTableSheetOperationConfirmationResponse( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::PromptLayer.CreateTableSheetOperationConfirmationResponse? value) + { + value = CreateTableSheetOperationConfirmationResponse; + return IsCreateTableSheetOperationConfirmationResponse; + } + + /// + /// + /// + public global::PromptLayer.CreateTableSheetOperationConfirmationResponse PickCreateTableSheetOperationConfirmationResponse() => IsCreateTableSheetOperationConfirmationResponse + ? CreateTableSheetOperationConfirmationResponse! + : throw new global::System.InvalidOperationException($"Expected union variant 'CreateTableSheetOperationConfirmationResponse' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator CreateTableSheetOperationResponse(global::PromptLayer.CreateTableSheetOperationQueuedResponse value) => new CreateTableSheetOperationResponse((global::PromptLayer.CreateTableSheetOperationQueuedResponse?)value); + + /// + /// + /// + public static implicit operator global::PromptLayer.CreateTableSheetOperationQueuedResponse?(CreateTableSheetOperationResponse @this) => @this.CreateTableSheetOperationQueuedResponse; + + /// + /// + /// + public CreateTableSheetOperationResponse(global::PromptLayer.CreateTableSheetOperationQueuedResponse? value) + { + CreateTableSheetOperationQueuedResponse = value; + } + + /// + /// + /// + public static CreateTableSheetOperationResponse FromCreateTableSheetOperationQueuedResponse(global::PromptLayer.CreateTableSheetOperationQueuedResponse? value) => new CreateTableSheetOperationResponse(value); + + /// + /// + /// + public static implicit operator CreateTableSheetOperationResponse(global::PromptLayer.CreateTableSheetOperationNoopResponse value) => new CreateTableSheetOperationResponse((global::PromptLayer.CreateTableSheetOperationNoopResponse?)value); + + /// + /// + /// + public static implicit operator global::PromptLayer.CreateTableSheetOperationNoopResponse?(CreateTableSheetOperationResponse @this) => @this.CreateTableSheetOperationNoopResponse; + + /// + /// + /// + public CreateTableSheetOperationResponse(global::PromptLayer.CreateTableSheetOperationNoopResponse? value) + { + CreateTableSheetOperationNoopResponse = value; + } + + /// + /// + /// + public static CreateTableSheetOperationResponse FromCreateTableSheetOperationNoopResponse(global::PromptLayer.CreateTableSheetOperationNoopResponse? value) => new CreateTableSheetOperationResponse(value); + + /// + /// + /// + public static implicit operator CreateTableSheetOperationResponse(global::PromptLayer.CreateTableSheetOperationConfirmationResponse value) => new CreateTableSheetOperationResponse((global::PromptLayer.CreateTableSheetOperationConfirmationResponse?)value); + + /// + /// + /// + public static implicit operator global::PromptLayer.CreateTableSheetOperationConfirmationResponse?(CreateTableSheetOperationResponse @this) => @this.CreateTableSheetOperationConfirmationResponse; + + /// + /// + /// + public CreateTableSheetOperationResponse(global::PromptLayer.CreateTableSheetOperationConfirmationResponse? value) + { + CreateTableSheetOperationConfirmationResponse = value; + } + + /// + /// + /// + public static CreateTableSheetOperationResponse FromCreateTableSheetOperationConfirmationResponse(global::PromptLayer.CreateTableSheetOperationConfirmationResponse? value) => new CreateTableSheetOperationResponse(value); + + /// + /// + /// + public CreateTableSheetOperationResponse( + global::PromptLayer.CreateTableSheetOperationQueuedResponse? createTableSheetOperationQueuedResponse, + global::PromptLayer.CreateTableSheetOperationNoopResponse? createTableSheetOperationNoopResponse, + global::PromptLayer.CreateTableSheetOperationConfirmationResponse? createTableSheetOperationConfirmationResponse + ) + { + CreateTableSheetOperationQueuedResponse = createTableSheetOperationQueuedResponse; + CreateTableSheetOperationNoopResponse = createTableSheetOperationNoopResponse; + CreateTableSheetOperationConfirmationResponse = createTableSheetOperationConfirmationResponse; + } + + /// + /// + /// + public object? Object => + CreateTableSheetOperationConfirmationResponse as object ?? + CreateTableSheetOperationNoopResponse as object ?? + CreateTableSheetOperationQueuedResponse as object + ; + + /// + /// + /// + public override string? ToString() => + CreateTableSheetOperationQueuedResponse?.ToString() ?? + CreateTableSheetOperationNoopResponse?.ToString() ?? + CreateTableSheetOperationConfirmationResponse?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsCreateTableSheetOperationQueuedResponse && !IsCreateTableSheetOperationNoopResponse && !IsCreateTableSheetOperationConfirmationResponse || !IsCreateTableSheetOperationQueuedResponse && IsCreateTableSheetOperationNoopResponse && !IsCreateTableSheetOperationConfirmationResponse || !IsCreateTableSheetOperationQueuedResponse && !IsCreateTableSheetOperationNoopResponse && IsCreateTableSheetOperationConfirmationResponse; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? createTableSheetOperationQueuedResponse = null, + global::System.Func? createTableSheetOperationNoopResponse = null, + global::System.Func? createTableSheetOperationConfirmationResponse = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsCreateTableSheetOperationQueuedResponse && createTableSheetOperationQueuedResponse != null) + { + return createTableSheetOperationQueuedResponse(CreateTableSheetOperationQueuedResponse!); + } + else if (IsCreateTableSheetOperationNoopResponse && createTableSheetOperationNoopResponse != null) + { + return createTableSheetOperationNoopResponse(CreateTableSheetOperationNoopResponse!); + } + else if (IsCreateTableSheetOperationConfirmationResponse && createTableSheetOperationConfirmationResponse != null) + { + return createTableSheetOperationConfirmationResponse(CreateTableSheetOperationConfirmationResponse!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? createTableSheetOperationQueuedResponse = null, + + global::System.Action? createTableSheetOperationNoopResponse = null, + + global::System.Action? createTableSheetOperationConfirmationResponse = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsCreateTableSheetOperationQueuedResponse) + { + createTableSheetOperationQueuedResponse?.Invoke(CreateTableSheetOperationQueuedResponse!); + } + else if (IsCreateTableSheetOperationNoopResponse) + { + createTableSheetOperationNoopResponse?.Invoke(CreateTableSheetOperationNoopResponse!); + } + else if (IsCreateTableSheetOperationConfirmationResponse) + { + createTableSheetOperationConfirmationResponse?.Invoke(CreateTableSheetOperationConfirmationResponse!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? createTableSheetOperationQueuedResponse = null, + global::System.Action? createTableSheetOperationNoopResponse = null, + global::System.Action? createTableSheetOperationConfirmationResponse = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsCreateTableSheetOperationQueuedResponse) + { + createTableSheetOperationQueuedResponse?.Invoke(CreateTableSheetOperationQueuedResponse!); + } + else if (IsCreateTableSheetOperationNoopResponse) + { + createTableSheetOperationNoopResponse?.Invoke(CreateTableSheetOperationNoopResponse!); + } + else if (IsCreateTableSheetOperationConfirmationResponse) + { + createTableSheetOperationConfirmationResponse?.Invoke(CreateTableSheetOperationConfirmationResponse!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + CreateTableSheetOperationQueuedResponse, + typeof(global::PromptLayer.CreateTableSheetOperationQueuedResponse), + CreateTableSheetOperationNoopResponse, + typeof(global::PromptLayer.CreateTableSheetOperationNoopResponse), + CreateTableSheetOperationConfirmationResponse, + typeof(global::PromptLayer.CreateTableSheetOperationConfirmationResponse), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(CreateTableSheetOperationResponse other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(CreateTableSheetOperationQueuedResponse, other.CreateTableSheetOperationQueuedResponse) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(CreateTableSheetOperationNoopResponse, other.CreateTableSheetOperationNoopResponse) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(CreateTableSheetOperationConfirmationResponse, other.CreateTableSheetOperationConfirmationResponse) + ; + } + + /// + /// + /// + public static bool operator ==(CreateTableSheetOperationResponse obj1, CreateTableSheetOperationResponse obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(CreateTableSheetOperationResponse obj1, CreateTableSheetOperationResponse obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is CreateTableSheetOperationResponse o && Equals(o); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetRequestLogImportRequest.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetRequestLogImportRequest.Json.g.cs new file mode 100644 index 0000000..08e9002 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetRequestLogImportRequest.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class CreateTableSheetRequestLogImportRequest + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.CreateTableSheetRequestLogImportRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.CreateTableSheetRequestLogImportRequest), + jsonSerializerContext) as global::PromptLayer.CreateTableSheetRequestLogImportRequest; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::PromptLayer.CreateTableSheetRequestLogImportRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::PromptLayer.CreateTableSheetRequestLogImportRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.CreateTableSheetRequestLogImportRequest; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetRequestLogImportRequest.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetRequestLogImportRequest.g.cs new file mode 100644 index 0000000..b094c1d --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetRequestLogImportRequest.g.cs @@ -0,0 +1,149 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// Import request history into an existing Table sheet. Provide either request_log_ids or filter_group. + /// + public sealed partial class CreateTableSheetRequestLogImportRequest + { + /// + /// Nested filter group with AND/OR logic. Use this for complex queries. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_group")] + public global::PromptLayer.StructuredFilterGroup? FilterGroup { get; set; } + + /// + /// Free-text request-log search query applied with filter_group. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("q")] + public string? Q { get; set; } + + /// + /// Field to sort matching request logs before import. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sort_by")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.CreateTableSheetRequestLogImportRequestSortByJsonConverter))] + public global::PromptLayer.CreateTableSheetRequestLogImportRequestSortBy? SortBy { get; set; } + + /// + /// Sort direction. Must be provided together with sort_by. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sort_order")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.CreateTableSheetRequestLogImportRequestSortOrderJsonConverter))] + public global::PromptLayer.CreateTableSheetRequestLogImportRequestSortOrder? SortOrder { get; set; } + + /// + /// Request-log query metadata key used by shared request-log query payloads. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("metadata_cost_breakdown_key")] + public string? MetadataCostBreakdownKey { get; set; } + + /// + /// Optional client-provided operation ID. A UUID is generated when omitted. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("operation_id")] + public string? OperationId { get; set; } + + /// + /// Specific request log IDs to import. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("request_log_ids")] + public global::System.Collections.Generic.IList? RequestLogIds { get; set; } + + /// + /// Input variable names to parse from matching request logs.
+ /// Default Value: [] + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("variables_to_parse")] + public global::System.Collections.Generic.IList? VariablesToParse { get; set; } + + /// + /// Additional request log fields to include as columns. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("include_fields")] + public global::System.Collections.Generic.IList? IncludeFields { get; set; } + + /// + /// Maximum number of matching request logs to import. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("limit")] + public int? Limit { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Nested filter group with AND/OR logic. Use this for complex queries. + /// + /// + /// Free-text request-log search query applied with filter_group. + /// + /// + /// Field to sort matching request logs before import. + /// + /// + /// Sort direction. Must be provided together with sort_by. + /// + /// + /// Request-log query metadata key used by shared request-log query payloads. + /// + /// + /// Optional client-provided operation ID. A UUID is generated when omitted. + /// + /// + /// Specific request log IDs to import. + /// + /// + /// Input variable names to parse from matching request logs.
+ /// Default Value: [] + /// + /// + /// Additional request log fields to include as columns. + /// + /// + /// Maximum number of matching request logs to import. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateTableSheetRequestLogImportRequest( + global::PromptLayer.StructuredFilterGroup? filterGroup, + string? q, + global::PromptLayer.CreateTableSheetRequestLogImportRequestSortBy? sortBy, + global::PromptLayer.CreateTableSheetRequestLogImportRequestSortOrder? sortOrder, + string? metadataCostBreakdownKey, + string? operationId, + global::System.Collections.Generic.IList? requestLogIds, + global::System.Collections.Generic.IList? variablesToParse, + global::System.Collections.Generic.IList? includeFields, + int? limit) + { + this.FilterGroup = filterGroup; + this.Q = q; + this.SortBy = sortBy; + this.SortOrder = sortOrder; + this.MetadataCostBreakdownKey = metadataCostBreakdownKey; + this.OperationId = operationId; + this.RequestLogIds = requestLogIds; + this.VariablesToParse = variablesToParse; + this.IncludeFields = includeFields; + this.Limit = limit; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateTableSheetRequestLogImportRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetRequestLogImportRequestSortBy.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetRequestLogImportRequestSortBy.g.cs new file mode 100644 index 0000000..67fe930 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetRequestLogImportRequestSortBy.g.cs @@ -0,0 +1,75 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// Field to sort matching request logs before import. + /// + public enum CreateTableSheetRequestLogImportRequestSortBy + { + /// + /// + /// + Cost, + /// + /// + /// + InputTokens, + /// + /// + /// + LatencyMs, + /// + /// + /// + OutputTokens, + /// + /// + /// + RequestStartTime, + /// + /// + /// + Status, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateTableSheetRequestLogImportRequestSortByExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateTableSheetRequestLogImportRequestSortBy value) + { + return value switch + { + CreateTableSheetRequestLogImportRequestSortBy.Cost => "cost", + CreateTableSheetRequestLogImportRequestSortBy.InputTokens => "input_tokens", + CreateTableSheetRequestLogImportRequestSortBy.LatencyMs => "latency_ms", + CreateTableSheetRequestLogImportRequestSortBy.OutputTokens => "output_tokens", + CreateTableSheetRequestLogImportRequestSortBy.RequestStartTime => "request_start_time", + CreateTableSheetRequestLogImportRequestSortBy.Status => "status", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateTableSheetRequestLogImportRequestSortBy? ToEnum(string value) + { + return value switch + { + "cost" => CreateTableSheetRequestLogImportRequestSortBy.Cost, + "input_tokens" => CreateTableSheetRequestLogImportRequestSortBy.InputTokens, + "latency_ms" => CreateTableSheetRequestLogImportRequestSortBy.LatencyMs, + "output_tokens" => CreateTableSheetRequestLogImportRequestSortBy.OutputTokens, + "request_start_time" => CreateTableSheetRequestLogImportRequestSortBy.RequestStartTime, + "status" => CreateTableSheetRequestLogImportRequestSortBy.Status, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetRequestLogImportRequestSortOrder.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetRequestLogImportRequestSortOrder.g.cs new file mode 100644 index 0000000..655ae66 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetRequestLogImportRequestSortOrder.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// Sort direction. Must be provided together with sort_by. + /// + public enum CreateTableSheetRequestLogImportRequestSortOrder + { + /// + /// + /// + Asc, + /// + /// + /// + Desc, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateTableSheetRequestLogImportRequestSortOrderExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateTableSheetRequestLogImportRequestSortOrder value) + { + return value switch + { + CreateTableSheetRequestLogImportRequestSortOrder.Asc => "asc", + CreateTableSheetRequestLogImportRequestSortOrder.Desc => "desc", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateTableSheetRequestLogImportRequestSortOrder? ToEnum(string value) + { + return value switch + { + "asc" => CreateTableSheetRequestLogImportRequestSortOrder.Asc, + "desc" => CreateTableSheetRequestLogImportRequestSortOrder.Desc, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetVersionRequest.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetVersionRequest.Json.g.cs new file mode 100644 index 0000000..3c0378b --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetVersionRequest.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class CreateTableSheetVersionRequest + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.CreateTableSheetVersionRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.CreateTableSheetVersionRequest), + jsonSerializerContext) as global::PromptLayer.CreateTableSheetVersionRequest; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::PromptLayer.CreateTableSheetVersionRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::PromptLayer.CreateTableSheetVersionRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.CreateTableSheetVersionRequest; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetVersionRequest.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetVersionRequest.g.cs new file mode 100644 index 0000000..c1dd13d --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateTableSheetVersionRequest.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class CreateTableSheetVersionRequest + { + /// + /// Version name. Required when source_version_id is omitted. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// Existing version to restore from while creating a new version. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("source_version_id")] + public global::System.Guid? SourceVersionId { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Version name. Required when source_version_id is omitted. + /// + /// + /// Existing version to restore from while creating a new version. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateTableSheetVersionRequest( + string? name, + global::System.Guid? sourceVersionId) + { + this.Name = name; + this.SourceVersionId = sourceVersionId; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateTableSheetVersionRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.EmptyPublicFilters.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.EmptyPublicFilters.Json.g.cs new file mode 100644 index 0000000..269eea4 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.EmptyPublicFilters.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class EmptyPublicFilters + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.EmptyPublicFilters? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.EmptyPublicFilters), + jsonSerializerContext) as global::PromptLayer.EmptyPublicFilters; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::PromptLayer.EmptyPublicFilters? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::PromptLayer.EmptyPublicFilters), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.EmptyPublicFilters; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.EmptyPublicFilters.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.EmptyPublicFilters.g.cs new file mode 100644 index 0000000..ae6b98e --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.EmptyPublicFilters.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// This endpoint does not echo any filter fields. + /// + public sealed partial class EmptyPublicFilters + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetOperationResponse.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetOperationResponse.g.cs index e221dfd..c2d92cd 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetOperationResponse.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetOperationResponse.g.cs @@ -12,13 +12,15 @@ public sealed partial class GetTableSheetOperationResponse /// ///
[global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Success { get; set; } /// - /// Status of an asynchronous sheet import operation. + /// /// [global::System.Text.Json.Serialization.JsonPropertyName("operation")] - public global::PromptLayer.TableImportOperation? Operation { get; set; } + [global::System.Text.Json.Serialization.JsonRequired] + public required global::PromptLayer.TableSheetOperation Operation { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -30,18 +32,16 @@ public sealed partial class GetTableSheetOperationResponse /// Initializes a new instance of the class. /// /// - /// - /// Status of an asynchronous sheet import operation. - /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GetTableSheetOperationResponse( - bool? success, - global::PromptLayer.TableImportOperation? operation) + bool success, + global::PromptLayer.TableSheetOperation operation) { this.Success = success; - this.Operation = operation; + this.Operation = operation ?? throw new global::System.ArgumentNullException(nameof(operation)); } /// diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetOperationResponse2.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetOperationResponse2.Json.g.cs new file mode 100644 index 0000000..ac98752 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetOperationResponse2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class GetTableSheetOperationResponse2 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.GetTableSheetOperationResponse2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.GetTableSheetOperationResponse2), + jsonSerializerContext) as global::PromptLayer.GetTableSheetOperationResponse2; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::PromptLayer.GetTableSheetOperationResponse2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::PromptLayer.GetTableSheetOperationResponse2), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.GetTableSheetOperationResponse2; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetOperationResponse2.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetOperationResponse2.g.cs new file mode 100644 index 0000000..4c9679b --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetOperationResponse2.g.cs @@ -0,0 +1,55 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class GetTableSheetOperationResponse2 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("success")] + public bool? Success { get; set; } + + /// + /// Status of an asynchronous sheet import operation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("operation")] + public global::PromptLayer.TableImportOperation? Operation { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// Status of an asynchronous sheet import operation. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetTableSheetOperationResponse2( + bool? success, + global::PromptLayer.TableImportOperation? operation) + { + this.Success = success; + this.Operation = operation; + } + + /// + /// Initializes a new instance of the class. + /// + public GetTableSheetOperationResponse2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetVersionResponse.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetVersionResponse.Json.g.cs new file mode 100644 index 0000000..4fdc5c0 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetVersionResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class GetTableSheetVersionResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.GetTableSheetVersionResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.GetTableSheetVersionResponse), + jsonSerializerContext) as global::PromptLayer.GetTableSheetVersionResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::PromptLayer.GetTableSheetVersionResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::PromptLayer.GetTableSheetVersionResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.GetTableSheetVersionResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetVersionResponse.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetVersionResponse.g.cs new file mode 100644 index 0000000..ebdd8d5 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetVersionResponse.g.cs @@ -0,0 +1,55 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class GetTableSheetVersionResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("success")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Success { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("version")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::PromptLayer.TableSheetVersion Version { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetTableSheetVersionResponse( + bool success, + global::PromptLayer.TableSheetVersion version) + { + this.Success = success; + this.Version = version ?? throw new global::System.ArgumentNullException(nameof(version)); + } + + /// + /// Initializes a new instance of the class. + /// + public GetTableSheetVersionResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetVersionScoreHistoryRange.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetVersionScoreHistoryRange.g.cs new file mode 100644 index 0000000..e47f1af --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetVersionScoreHistoryRange.g.cs @@ -0,0 +1,69 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// Default Value: all + /// + public enum GetTableSheetVersionScoreHistoryRange + { + /// + /// + /// + All, + /// + /// + /// + Last100, + /// + /// + /// + Last25, + /// + /// + /// + Last250, + /// + /// + /// + Last50, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetTableSheetVersionScoreHistoryRangeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetTableSheetVersionScoreHistoryRange value) + { + return value switch + { + GetTableSheetVersionScoreHistoryRange.All => "all", + GetTableSheetVersionScoreHistoryRange.Last100 => "last_100", + GetTableSheetVersionScoreHistoryRange.Last25 => "last_25", + GetTableSheetVersionScoreHistoryRange.Last250 => "last_250", + GetTableSheetVersionScoreHistoryRange.Last50 => "last_50", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetTableSheetVersionScoreHistoryRange? ToEnum(string value) + { + return value switch + { + "all" => GetTableSheetVersionScoreHistoryRange.All, + "last_100" => GetTableSheetVersionScoreHistoryRange.Last100, + "last_25" => GetTableSheetVersionScoreHistoryRange.Last25, + "last_250" => GetTableSheetVersionScoreHistoryRange.Last250, + "last_50" => GetTableSheetVersionScoreHistoryRange.Last50, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetVersionScoreHistoryResolution.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetVersionScoreHistoryResolution.g.cs new file mode 100644 index 0000000..7d05514 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetVersionScoreHistoryResolution.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// Default Value: auto + /// + public enum GetTableSheetVersionScoreHistoryResolution + { + /// + /// + /// + Auto, + /// + /// + /// + MinMaxBucket, + /// + /// + /// + Raw, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetTableSheetVersionScoreHistoryResolutionExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetTableSheetVersionScoreHistoryResolution value) + { + return value switch + { + GetTableSheetVersionScoreHistoryResolution.Auto => "auto", + GetTableSheetVersionScoreHistoryResolution.MinMaxBucket => "min_max_bucket", + GetTableSheetVersionScoreHistoryResolution.Raw => "raw", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetTableSheetVersionScoreHistoryResolution? ToEnum(string value) + { + return value switch + { + "auto" => GetTableSheetVersionScoreHistoryResolution.Auto, + "min_max_bucket" => GetTableSheetVersionScoreHistoryResolution.MinMaxBucket, + "raw" => GetTableSheetVersionScoreHistoryResolution.Raw, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.ListTableSheetOperationsResponse.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.ListTableSheetOperationsResponse.Json.g.cs new file mode 100644 index 0000000..c1fcbc0 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.ListTableSheetOperationsResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class ListTableSheetOperationsResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.ListTableSheetOperationsResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.ListTableSheetOperationsResponse), + jsonSerializerContext) as global::PromptLayer.ListTableSheetOperationsResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::PromptLayer.ListTableSheetOperationsResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::PromptLayer.ListTableSheetOperationsResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.ListTableSheetOperationsResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.ListTableSheetOperationsResponse.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.ListTableSheetOperationsResponse.g.cs new file mode 100644 index 0000000..4516d25 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.ListTableSheetOperationsResponse.g.cs @@ -0,0 +1,105 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class ListTableSheetOperationsResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("success")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Success { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sheet_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid SheetId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("version")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int Version { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("total_cells")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int TotalCells { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status_counts")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.Dictionary StatusCounts { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("pending_count")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int PendingCount { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("active_operations")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList ActiveOperations { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ListTableSheetOperationsResponse( + bool success, + global::System.Guid sheetId, + int version, + int totalCells, + global::System.Collections.Generic.Dictionary statusCounts, + int pendingCount, + global::System.Collections.Generic.IList activeOperations) + { + this.Success = success; + this.SheetId = sheetId; + this.Version = version; + this.TotalCells = totalCells; + this.StatusCounts = statusCounts ?? throw new global::System.ArgumentNullException(nameof(statusCounts)); + this.PendingCount = pendingCount; + this.ActiveOperations = activeOperations ?? throw new global::System.ArgumentNullException(nameof(activeOperations)); + } + + /// + /// Initializes a new instance of the class. + /// + public ListTableSheetOperationsResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.ListTableSheetOperationsResponseStatusCounts.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.ListTableSheetOperationsResponseStatusCounts.Json.g.cs new file mode 100644 index 0000000..f20120f --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.ListTableSheetOperationsResponseStatusCounts.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class ListTableSheetOperationsResponseStatusCounts + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.ListTableSheetOperationsResponseStatusCounts? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.ListTableSheetOperationsResponseStatusCounts), + jsonSerializerContext) as global::PromptLayer.ListTableSheetOperationsResponseStatusCounts; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::PromptLayer.ListTableSheetOperationsResponseStatusCounts? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::PromptLayer.ListTableSheetOperationsResponseStatusCounts), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.ListTableSheetOperationsResponseStatusCounts; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.ListTableSheetOperationsResponseStatusCounts.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.ListTableSheetOperationsResponseStatusCounts.g.cs new file mode 100644 index 0000000..7b5d048 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.ListTableSheetOperationsResponseStatusCounts.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class ListTableSheetOperationsResponseStatusCounts + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.ListTableSheetRowsResponse.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.ListTableSheetRowsResponse.g.cs index 776ce4a..1138bc6 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.Models.ListTableSheetRowsResponse.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.ListTableSheetRowsResponse.g.cs @@ -39,7 +39,7 @@ public sealed partial class ListTableSheetRowsResponse public global::System.Collections.Generic.IList? Columns { get; set; } /// - /// + /// Current sheet version_count for this response. It matches the sheet's version_count after any committed changes. /// [global::System.Text.Json.Serialization.JsonPropertyName("version")] public int? Version { get; set; } @@ -66,7 +66,9 @@ public sealed partial class ListTableSheetRowsResponse /// /// /// - /// + /// + /// Current sheet version_count for this response. It matches the sheet's version_count after any committed changes. + /// /// /// Sheet-level and per-column aggregates for price and latency metrics. Only present when `include_execution_metadata_aggregates=true`. /// diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.ListTableSheetVersionsOrder.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.ListTableSheetVersionsOrder.g.cs new file mode 100644 index 0000000..2a891e4 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.ListTableSheetVersionsOrder.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// Default Value: desc + /// + public enum ListTableSheetVersionsOrder + { + /// + /// + /// + Asc, + /// + /// + /// + Desc, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ListTableSheetVersionsOrderExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ListTableSheetVersionsOrder value) + { + return value switch + { + ListTableSheetVersionsOrder.Asc => "asc", + ListTableSheetVersionsOrder.Desc => "desc", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ListTableSheetVersionsOrder? ToEnum(string value) + { + return value switch + { + "asc" => ListTableSheetVersionsOrder.Asc, + "desc" => ListTableSheetVersionsOrder.Desc, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.ListTableSheetVersionsResponse.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.ListTableSheetVersionsResponse.Json.g.cs new file mode 100644 index 0000000..72cfa9d --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.ListTableSheetVersionsResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class ListTableSheetVersionsResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.ListTableSheetVersionsResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.ListTableSheetVersionsResponse), + jsonSerializerContext) as global::PromptLayer.ListTableSheetVersionsResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::PromptLayer.ListTableSheetVersionsResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::PromptLayer.ListTableSheetVersionsResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.ListTableSheetVersionsResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.ListTableSheetVersionsResponse.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.ListTableSheetVersionsResponse.g.cs new file mode 100644 index 0000000..df98bb8 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.ListTableSheetVersionsResponse.g.cs @@ -0,0 +1,93 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class ListTableSheetVersionsResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("success")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Success { get; set; } + + /// + /// Items returned on this page. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Data { get; set; } + + /// + /// Cursor pagination metadata for public table list endpoints. Cursors are opaque and include the active sort, order, cursor value, and a hash of the active filter set. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("pagination")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::PromptLayer.PublicListPagination Pagination { get; set; } + + /// + /// Filters applied to this page. The cursor includes a hash of this filter set, so changing filters while reusing a cursor returns an invalid cursor error. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filters")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::PromptLayer.EmptyPublicFilters Filters { get; set; } + + /// + /// Number of items returned on this page. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("count")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int Count { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// Items returned on this page. + /// + /// + /// Cursor pagination metadata for public table list endpoints. Cursors are opaque and include the active sort, order, cursor value, and a hash of the active filter set. + /// + /// + /// Filters applied to this page. The cursor includes a hash of this filter set, so changing filters while reusing a cursor returns an invalid cursor error. + /// + /// + /// Number of items returned on this page. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ListTableSheetVersionsResponse( + bool success, + global::System.Collections.Generic.IList data, + global::PromptLayer.PublicListPagination pagination, + global::PromptLayer.EmptyPublicFilters filters, + int count) + { + this.Success = success; + this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); + this.Pagination = pagination ?? throw new global::System.ArgumentNullException(nameof(pagination)); + this.Filters = filters ?? throw new global::System.ArgumentNullException(nameof(filters)); + this.Count = count; + } + + /// + /// Initializes a new instance of the class. + /// + public ListTableSheetVersionsResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.ListTableSheetVersionsSort.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.ListTableSheetVersionsSort.g.cs new file mode 100644 index 0000000..2b6d9b1 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.ListTableSheetVersionsSort.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// Default Value: version_number + /// + public enum ListTableSheetVersionsSort + { + /// + /// + /// + VersionNumber, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ListTableSheetVersionsSortExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ListTableSheetVersionsSort value) + { + return value switch + { + ListTableSheetVersionsSort.VersionNumber => "version_number", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ListTableSheetVersionsSort? ToEnum(string value) + { + return value switch + { + "version_number" => ListTableSheetVersionsSort.VersionNumber, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.PublicListPagination.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.PublicListPagination.Json.g.cs new file mode 100644 index 0000000..089c1f3 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.PublicListPagination.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class PublicListPagination + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.PublicListPagination? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.PublicListPagination), + jsonSerializerContext) as global::PromptLayer.PublicListPagination; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::PromptLayer.PublicListPagination? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::PromptLayer.PublicListPagination), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.PublicListPagination; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.PublicListPagination.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.PublicListPagination.g.cs new file mode 100644 index 0000000..5f7a80b --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.PublicListPagination.g.cs @@ -0,0 +1,81 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// Cursor pagination metadata for public table list endpoints. Cursors are opaque and include the active sort, order, cursor value, and a hash of the active filter set. + /// + public sealed partial class PublicListPagination + { + /// + /// Opaque cursor to pass as cursor for the next page, or null when there is no next page. The cursor is valid only with the same sort, order, and filter parameters used to produce it. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("next_cursor")] + public string? NextCursor { get; set; } + + /// + /// Reserved for previous-page cursors. Public table list endpoints currently return null. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("prev_cursor")] + public string? PrevCursor { get; set; } + + /// + /// Whether another page is available. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("has_more")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool HasMore { get; set; } + + /// + /// Requested page size. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("limit")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int Limit { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Whether another page is available. + /// + /// + /// Requested page size. + /// + /// + /// Opaque cursor to pass as cursor for the next page, or null when there is no next page. The cursor is valid only with the same sort, order, and filter parameters used to produce it. + /// + /// + /// Reserved for previous-page cursors. Public table list endpoints currently return null. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public PublicListPagination( + bool hasMore, + int limit, + string? nextCursor, + string? prevCursor) + { + this.NextCursor = nextCursor; + this.PrevCursor = prevCursor; + this.HasMore = hasMore; + this.Limit = limit; + } + + /// + /// Initializes a new instance of the class. + /// + public PublicListPagination() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.RecalculateTableSheetScoreResponse.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.RecalculateTableSheetScoreResponse.Json.g.cs new file mode 100644 index 0000000..ffeb4b7 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.RecalculateTableSheetScoreResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class RecalculateTableSheetScoreResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.RecalculateTableSheetScoreResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.RecalculateTableSheetScoreResponse), + jsonSerializerContext) as global::PromptLayer.RecalculateTableSheetScoreResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::PromptLayer.RecalculateTableSheetScoreResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::PromptLayer.RecalculateTableSheetScoreResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.RecalculateTableSheetScoreResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.RecalculateTableSheetScoreResponse.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.RecalculateTableSheetScoreResponse.g.cs new file mode 100644 index 0000000..79b7e46 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.RecalculateTableSheetScoreResponse.g.cs @@ -0,0 +1,65 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class RecalculateTableSheetScoreResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("success")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Success { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("score_configuration_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid ScoreConfigurationId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.RecalculateTableSheetScoreResponseStatusJsonConverter))] + public global::PromptLayer.RecalculateTableSheetScoreResponseStatus? Status { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RecalculateTableSheetScoreResponse( + bool success, + global::System.Guid scoreConfigurationId, + global::PromptLayer.RecalculateTableSheetScoreResponseStatus? status) + { + this.Success = success; + this.ScoreConfigurationId = scoreConfigurationId; + this.Status = status; + } + + /// + /// Initializes a new instance of the class. + /// + public RecalculateTableSheetScoreResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.RecalculateTableSheetScoreResponseStatus.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.RecalculateTableSheetScoreResponseStatus.g.cs new file mode 100644 index 0000000..8d1b51c --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.RecalculateTableSheetScoreResponseStatus.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public enum RecalculateTableSheetScoreResponseStatus + { + /// + /// + /// + Completed, + /// + /// + /// + Failed, + /// + /// + /// + Queued, + /// + /// + /// + Running, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RecalculateTableSheetScoreResponseStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RecalculateTableSheetScoreResponseStatus value) + { + return value switch + { + RecalculateTableSheetScoreResponseStatus.Completed => "completed", + RecalculateTableSheetScoreResponseStatus.Failed => "failed", + RecalculateTableSheetScoreResponseStatus.Queued => "queued", + RecalculateTableSheetScoreResponseStatus.Running => "running", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RecalculateTableSheetScoreResponseStatus? ToEnum(string value) + { + return value switch + { + "completed" => RecalculateTableSheetScoreResponseStatus.Completed, + "failed" => RecalculateTableSheetScoreResponseStatus.Failed, + "queued" => RecalculateTableSheetScoreResponseStatus.Queued, + "running" => RecalculateTableSheetScoreResponseStatus.Running, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.Sheet.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.Sheet.g.cs index e2f3b82..ebf62a1 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.Models.Sheet.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.Sheet.g.cs @@ -21,7 +21,7 @@ public sealed partial class Sheet public global::System.Guid? TableId { get; set; } /// - /// + /// Workspace that owns this resource; determined by the authenticated request scope. /// [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] public int? WorkspaceId { get; set; } @@ -45,7 +45,7 @@ public sealed partial class Sheet public int? RowCount { get; set; } /// - /// + /// Current sheet version number. It increments when sheet data, layout, score configuration, imports, or execution output changes. /// [global::System.Text.Json.Serialization.JsonPropertyName("version_count")] public int? VersionCount { get; set; } @@ -73,13 +73,17 @@ public sealed partial class Sheet /// /// /// - /// + /// + /// Workspace that owns this resource; determined by the authenticated request scope. + /// /// /// /// Display order of the sheet within the table (0-based). /// /// - /// + /// + /// Current sheet version number. It increments when sheet data, layout, score configuration, imports, or execution output changes. + /// /// /// #if NET7_0_OR_GREATER diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.Table.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.Table.g.cs index a1154ee..a778df3 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.Models.Table.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.Table.g.cs @@ -15,7 +15,7 @@ public sealed partial class Table public global::System.Guid? Id { get; set; } /// - /// + /// Workspace that owns this resource; determined by the authenticated request scope. /// [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] public int? WorkspaceId { get; set; } @@ -62,7 +62,9 @@ public sealed partial class Table /// /// Unique table identifier. /// - /// + /// + /// Workspace that owns this resource; determined by the authenticated request scope. + /// /// /// /// diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableCell.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableCell.Json.g.cs new file mode 100644 index 0000000..e2901c8 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableCell.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class TableCell + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.TableCell? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.TableCell), + jsonSerializerContext) as global::PromptLayer.TableCell; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::PromptLayer.TableCell? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::PromptLayer.TableCell), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TableCell; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableCell.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableCell.g.cs new file mode 100644 index 0000000..835bb3d --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableCell.g.cs @@ -0,0 +1,148 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class TableCell + { + /// + /// Cell UUID, or a virtual cell ID for not-yet-computed output cells. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sheet_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid SheetId { get; set; } + + /// + /// Execution ID associated with the current or most recent computed value, when available. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("execution_id")] + public global::System.Guid? ExecutionId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("column_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid ColumnId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("row_index")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int RowIndex { get; set; } + + /// + /// Sheet version_count when this cell was last computed. Null for text cells, virtual cells, or cells that have not completed computation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("last_computed_version")] + public int? LastComputedVersion { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.TableCellStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::PromptLayer.TableCellStatus Status { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("display_value")] + public string? DisplayValue { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("input_hash")] + public string? InputHash { get; set; } + + /// + /// Structured cell value. Shape depends on the column type. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("value")] + public object? Value { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + public global::System.DateTime? UpdatedAt { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Cell UUID, or a virtual cell ID for not-yet-computed output cells. + /// + /// + /// + /// + /// + /// + /// Execution ID associated with the current or most recent computed value, when available. + /// + /// + /// Sheet version_count when this cell was last computed. Null for text cells, virtual cells, or cells that have not completed computation. + /// + /// + /// + /// + /// Structured cell value. Shape depends on the column type. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public TableCell( + string id, + global::System.Guid sheetId, + global::System.Guid columnId, + int rowIndex, + global::PromptLayer.TableCellStatus status, + global::System.Guid? executionId, + int? lastComputedVersion, + string? displayValue, + string? inputHash, + object? value, + global::System.DateTime? updatedAt) + { + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.SheetId = sheetId; + this.ExecutionId = executionId; + this.ColumnId = columnId; + this.RowIndex = rowIndex; + this.LastComputedVersion = lastComputedVersion; + this.Status = status; + this.DisplayValue = displayValue; + this.InputHash = inputHash; + this.Value = value; + this.UpdatedAt = updatedAt; + } + + /// + /// Initializes a new instance of the class. + /// + public TableCell() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableCellStatus.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableCellStatus.g.cs new file mode 100644 index 0000000..f099357 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableCellStatus.g.cs @@ -0,0 +1,75 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public enum TableCellStatus + { + /// + /// + /// + Completed, + /// + /// + /// + Dispatched, + /// + /// + /// + Failed, + /// + /// + /// + Queued, + /// + /// + /// + Running, + /// + /// + /// + Stale, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class TableCellStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this TableCellStatus value) + { + return value switch + { + TableCellStatus.Completed => "COMPLETED", + TableCellStatus.Dispatched => "DISPATCHED", + TableCellStatus.Failed => "FAILED", + TableCellStatus.Queued => "QUEUED", + TableCellStatus.Running => "RUNNING", + TableCellStatus.Stale => "STALE", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static TableCellStatus? ToEnum(string value) + { + return value switch + { + "COMPLETED" => TableCellStatus.Completed, + "DISPATCHED" => TableCellStatus.Dispatched, + "FAILED" => TableCellStatus.Failed, + "QUEUED" => TableCellStatus.Queued, + "RUNNING" => TableCellStatus.Running, + "STALE" => TableCellStatus.Stale, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetImportStartResponse.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetImportStartResponse.Json.g.cs new file mode 100644 index 0000000..2dc58ec --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetImportStartResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class TableSheetImportStartResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetImportStartResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.TableSheetImportStartResponse), + jsonSerializerContext) as global::PromptLayer.TableSheetImportStartResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::PromptLayer.TableSheetImportStartResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::PromptLayer.TableSheetImportStartResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TableSheetImportStartResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetImportStartResponse.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetImportStartResponse.g.cs new file mode 100644 index 0000000..4fc4dfd --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetImportStartResponse.g.cs @@ -0,0 +1,87 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class TableSheetImportStartResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("success")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Success { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Message { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("operation_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string OperationId { get; set; } + + /// + /// Status of an asynchronous sheet import operation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("operation")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::PromptLayer.TableImportOperation Operation { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status_url")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string StatusUrl { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// + /// Status of an asynchronous sheet import operation. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public TableSheetImportStartResponse( + bool success, + string message, + string operationId, + global::PromptLayer.TableImportOperation operation, + string statusUrl) + { + this.Success = success; + this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); + this.OperationId = operationId ?? throw new global::System.ArgumentNullException(nameof(operationId)); + this.Operation = operation ?? throw new global::System.ArgumentNullException(nameof(operation)); + this.StatusUrl = statusUrl ?? throw new global::System.ArgumentNullException(nameof(statusUrl)); + } + + /// + /// Initializes a new instance of the class. + /// + public TableSheetImportStartResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetOperation.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetOperation.Json.g.cs new file mode 100644 index 0000000..5802242 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetOperation.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class TableSheetOperation + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetOperation? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.TableSheetOperation), + jsonSerializerContext) as global::PromptLayer.TableSheetOperation; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::PromptLayer.TableSheetOperation? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::PromptLayer.TableSheetOperation), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TableSheetOperation; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetOperation.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetOperation.g.cs new file mode 100644 index 0000000..e2e22a0 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetOperation.g.cs @@ -0,0 +1,125 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class TableSheetOperation + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("operation_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string OperationId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("operation")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.TableSheetOperationOperationJsonConverter))] + public global::PromptLayer.TableSheetOperationOperation Operation { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Status { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status_counts")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.Dictionary StatusCounts { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cell_count")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int CellCount { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("completed_count")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int CompletedCount { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("failed_count")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int FailedCount { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("pending_count")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int PendingCount { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status_url")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string StatusUrl { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public TableSheetOperation( + string operationId, + string status, + global::System.Collections.Generic.Dictionary statusCounts, + int cellCount, + int completedCount, + int failedCount, + int pendingCount, + string statusUrl, + global::PromptLayer.TableSheetOperationOperation operation) + { + this.OperationId = operationId ?? throw new global::System.ArgumentNullException(nameof(operationId)); + this.Operation = operation; + this.Status = status ?? throw new global::System.ArgumentNullException(nameof(status)); + this.StatusCounts = statusCounts ?? throw new global::System.ArgumentNullException(nameof(statusCounts)); + this.CellCount = cellCount; + this.CompletedCount = completedCount; + this.FailedCount = failedCount; + this.PendingCount = pendingCount; + this.StatusUrl = statusUrl ?? throw new global::System.ArgumentNullException(nameof(statusUrl)); + } + + /// + /// Initializes a new instance of the class. + /// + public TableSheetOperation() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetOperationOperation.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetOperationOperation.g.cs new file mode 100644 index 0000000..ff229f5 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetOperationOperation.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public enum TableSheetOperationOperation + { + /// + /// + /// + Recalculate, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class TableSheetOperationOperationExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this TableSheetOperationOperation value) + { + return value switch + { + TableSheetOperationOperation.Recalculate => "recalculate", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static TableSheetOperationOperation? ToEnum(string value) + { + return value switch + { + "recalculate" => TableSheetOperationOperation.Recalculate, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetOperationStatusCounts.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetOperationStatusCounts.Json.g.cs new file mode 100644 index 0000000..8dd3ee0 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetOperationStatusCounts.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class TableSheetOperationStatusCounts + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetOperationStatusCounts? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.TableSheetOperationStatusCounts), + jsonSerializerContext) as global::PromptLayer.TableSheetOperationStatusCounts; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::PromptLayer.TableSheetOperationStatusCounts? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::PromptLayer.TableSheetOperationStatusCounts), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TableSheetOperationStatusCounts; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetOperationStatusCounts.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetOperationStatusCounts.g.cs new file mode 100644 index 0000000..7c70c09 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetOperationStatusCounts.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class TableSheetOperationStatusCounts + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreCellObject.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreCellObject.Json.g.cs new file mode 100644 index 0000000..18a42f2 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreCellObject.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class TableSheetScoreCellObject + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScoreCellObject? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.TableSheetScoreCellObject), + jsonSerializerContext) as global::PromptLayer.TableSheetScoreCellObject; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::PromptLayer.TableSheetScoreCellObject? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::PromptLayer.TableSheetScoreCellObject), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TableSheetScoreCellObject; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreCellObject.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreCellObject.g.cs new file mode 100644 index 0000000..60fef05 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreCellObject.g.cs @@ -0,0 +1,53 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class TableSheetScoreCellObject + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("value")] + public object? Value { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("positive_metric")] + public bool? PositiveMetric { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public TableSheetScoreCellObject( + object? value, + bool? positiveMetric) + { + this.Value = value; + this.PositiveMetric = positiveMetric; + } + + /// + /// Initializes a new instance of the class. + /// + public TableSheetScoreCellObject() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreColumn.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreColumn.Json.g.cs new file mode 100644 index 0000000..ce0cfef --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreColumn.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class TableSheetScoreColumn + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScoreColumn? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.TableSheetScoreColumn), + jsonSerializerContext) as global::PromptLayer.TableSheetScoreColumn; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::PromptLayer.TableSheetScoreColumn? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::PromptLayer.TableSheetScoreColumn), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TableSheetScoreColumn; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreColumn.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreColumn.g.cs new file mode 100644 index 0000000..19d8de8 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreColumn.g.cs @@ -0,0 +1,94 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class TableSheetScoreColumn + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("column_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid ColumnId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Title { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("score")] + public double? Score { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("included_count")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int IncludedCount { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("excluded_count")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int ExcludedCount { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("resolved_scoring_type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.TableSheetScoreColumnResolvedScoringTypeJsonConverter))] + public global::PromptLayer.TableSheetScoreColumnResolvedScoringType? ResolvedScoringType { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public TableSheetScoreColumn( + global::System.Guid columnId, + string title, + int includedCount, + int excludedCount, + double? score, + global::PromptLayer.TableSheetScoreColumnResolvedScoringType? resolvedScoringType) + { + this.ColumnId = columnId; + this.Title = title ?? throw new global::System.ArgumentNullException(nameof(title)); + this.Score = score; + this.IncludedCount = includedCount; + this.ExcludedCount = excludedCount; + this.ResolvedScoringType = resolvedScoringType; + } + + /// + /// Initializes a new instance of the class. + /// + public TableSheetScoreColumn() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreColumnResolvedScoringType.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreColumnResolvedScoringType.g.cs new file mode 100644 index 0000000..7777580 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreColumnResolvedScoringType.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public enum TableSheetScoreColumnResolvedScoringType + { + /// + /// + /// + Auto, + /// + /// + /// + Boolean, + /// + /// + /// + Custom, + /// + /// + /// + Numeric, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class TableSheetScoreColumnResolvedScoringTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this TableSheetScoreColumnResolvedScoringType value) + { + return value switch + { + TableSheetScoreColumnResolvedScoringType.Auto => "auto", + TableSheetScoreColumnResolvedScoringType.Boolean => "boolean", + TableSheetScoreColumnResolvedScoringType.Custom => "custom", + TableSheetScoreColumnResolvedScoringType.Numeric => "numeric", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static TableSheetScoreColumnResolvedScoringType? ToEnum(string value) + { + return value switch + { + "auto" => TableSheetScoreColumnResolvedScoringType.Auto, + "boolean" => TableSheetScoreColumnResolvedScoringType.Boolean, + "custom" => TableSheetScoreColumnResolvedScoringType.Custom, + "numeric" => TableSheetScoreColumnResolvedScoringType.Numeric, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreConfiguration.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreConfiguration.Json.g.cs new file mode 100644 index 0000000..6188db9 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreConfiguration.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class TableSheetScoreConfiguration + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScoreConfiguration? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.TableSheetScoreConfiguration), + jsonSerializerContext) as global::PromptLayer.TableSheetScoreConfiguration; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::PromptLayer.TableSheetScoreConfiguration? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::PromptLayer.TableSheetScoreConfiguration), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TableSheetScoreConfiguration; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreConfiguration.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreConfiguration.g.cs new file mode 100644 index 0000000..5736edc --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreConfiguration.g.cs @@ -0,0 +1,56 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class TableSheetScoreConfiguration + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("score_type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.TableSheetScoreConfigurationScoreTypeJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::PromptLayer.TableSheetScoreConfigurationScoreType ScoreType { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("score_config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object ScoreConfig { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public TableSheetScoreConfiguration( + global::PromptLayer.TableSheetScoreConfigurationScoreType scoreType, + object scoreConfig) + { + this.ScoreType = scoreType; + this.ScoreConfig = scoreConfig ?? throw new global::System.ArgumentNullException(nameof(scoreConfig)); + } + + /// + /// Initializes a new instance of the class. + /// + public TableSheetScoreConfiguration() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreConfigurationScoreConfig.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreConfigurationScoreConfig.Json.g.cs new file mode 100644 index 0000000..f9d246b --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreConfigurationScoreConfig.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class TableSheetScoreConfigurationScoreConfig + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScoreConfigurationScoreConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.TableSheetScoreConfigurationScoreConfig), + jsonSerializerContext) as global::PromptLayer.TableSheetScoreConfigurationScoreConfig; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::PromptLayer.TableSheetScoreConfigurationScoreConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::PromptLayer.TableSheetScoreConfigurationScoreConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TableSheetScoreConfigurationScoreConfig; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreConfigurationScoreConfig.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreConfigurationScoreConfig.g.cs new file mode 100644 index 0000000..dda8150 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreConfigurationScoreConfig.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class TableSheetScoreConfigurationScoreConfig + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreConfigurationScoreType.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreConfigurationScoreType.g.cs new file mode 100644 index 0000000..b04dd3e --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreConfigurationScoreType.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public enum TableSheetScoreConfigurationScoreType + { + /// + /// + /// + Auto, + /// + /// + /// + Boolean, + /// + /// + /// + Custom, + /// + /// + /// + Numeric, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class TableSheetScoreConfigurationScoreTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this TableSheetScoreConfigurationScoreType value) + { + return value switch + { + TableSheetScoreConfigurationScoreType.Auto => "auto", + TableSheetScoreConfigurationScoreType.Boolean => "boolean", + TableSheetScoreConfigurationScoreType.Custom => "custom", + TableSheetScoreConfigurationScoreType.Numeric => "numeric", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static TableSheetScoreConfigurationScoreType? ToEnum(string value) + { + return value switch + { + "auto" => TableSheetScoreConfigurationScoreType.Auto, + "boolean" => TableSheetScoreConfigurationScoreType.Boolean, + "custom" => TableSheetScoreConfigurationScoreType.Custom, + "numeric" => TableSheetScoreConfigurationScoreType.Numeric, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreHistoryResponse.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreHistoryResponse.Json.g.cs new file mode 100644 index 0000000..bb876c9 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreHistoryResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class TableSheetScoreHistoryResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScoreHistoryResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.TableSheetScoreHistoryResponse), + jsonSerializerContext) as global::PromptLayer.TableSheetScoreHistoryResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::PromptLayer.TableSheetScoreHistoryResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::PromptLayer.TableSheetScoreHistoryResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TableSheetScoreHistoryResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreHistoryResponse.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreHistoryResponse.g.cs new file mode 100644 index 0000000..dc0ed60 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreHistoryResponse.g.cs @@ -0,0 +1,55 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class TableSheetScoreHistoryResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("success")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Success { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("score_history")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::PromptLayer.TableSheetScoreHistoryResponseScoreHistory ScoreHistory { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public TableSheetScoreHistoryResponse( + bool success, + global::PromptLayer.TableSheetScoreHistoryResponseScoreHistory scoreHistory) + { + this.Success = success; + this.ScoreHistory = scoreHistory ?? throw new global::System.ArgumentNullException(nameof(scoreHistory)); + } + + /// + /// Initializes a new instance of the class. + /// + public TableSheetScoreHistoryResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreHistoryResponseScoreHistory.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreHistoryResponseScoreHistory.Json.g.cs new file mode 100644 index 0000000..bc96400 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreHistoryResponseScoreHistory.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class TableSheetScoreHistoryResponseScoreHistory + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScoreHistoryResponseScoreHistory? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.TableSheetScoreHistoryResponseScoreHistory), + jsonSerializerContext) as global::PromptLayer.TableSheetScoreHistoryResponseScoreHistory; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::PromptLayer.TableSheetScoreHistoryResponseScoreHistory? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::PromptLayer.TableSheetScoreHistoryResponseScoreHistory), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TableSheetScoreHistoryResponseScoreHistory; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreHistoryResponseScoreHistory.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreHistoryResponseScoreHistory.g.cs new file mode 100644 index 0000000..792af75 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreHistoryResponseScoreHistory.g.cs @@ -0,0 +1,106 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class TableSheetScoreHistoryResponseScoreHistory + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("points")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Points { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("total_points")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int TotalPoints { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("returned_points")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int ReturnedPoints { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("resolution")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.TableSheetScoreHistoryResponseScoreHistoryResolutionJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::PromptLayer.TableSheetScoreHistoryResponseScoreHistoryResolution Resolution { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("range")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Range { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("max_points")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int MaxPoints { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("is_sampled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool IsSampled { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public TableSheetScoreHistoryResponseScoreHistory( + global::System.Collections.Generic.IList points, + int totalPoints, + int returnedPoints, + global::PromptLayer.TableSheetScoreHistoryResponseScoreHistoryResolution resolution, + string range, + int maxPoints, + bool isSampled) + { + this.Points = points ?? throw new global::System.ArgumentNullException(nameof(points)); + this.TotalPoints = totalPoints; + this.ReturnedPoints = returnedPoints; + this.Resolution = resolution; + this.Range = range ?? throw new global::System.ArgumentNullException(nameof(range)); + this.MaxPoints = maxPoints; + this.IsSampled = isSampled; + } + + /// + /// Initializes a new instance of the class. + /// + public TableSheetScoreHistoryResponseScoreHistory() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreHistoryResponseScoreHistoryPoint.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreHistoryResponseScoreHistoryPoint.Json.g.cs new file mode 100644 index 0000000..8bf8d08 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreHistoryResponseScoreHistoryPoint.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class TableSheetScoreHistoryResponseScoreHistoryPoint + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScoreHistoryResponseScoreHistoryPoint? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.TableSheetScoreHistoryResponseScoreHistoryPoint), + jsonSerializerContext) as global::PromptLayer.TableSheetScoreHistoryResponseScoreHistoryPoint; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::PromptLayer.TableSheetScoreHistoryResponseScoreHistoryPoint? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::PromptLayer.TableSheetScoreHistoryResponseScoreHistoryPoint), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TableSheetScoreHistoryResponseScoreHistoryPoint; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreHistoryResponseScoreHistoryPoint.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreHistoryResponseScoreHistoryPoint.g.cs new file mode 100644 index 0000000..5fc2b53 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreHistoryResponseScoreHistoryPoint.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class TableSheetScoreHistoryResponseScoreHistoryPoint + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreHistoryResponseScoreHistoryResolution.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreHistoryResponseScoreHistoryResolution.g.cs new file mode 100644 index 0000000..b67f513 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreHistoryResponseScoreHistoryResolution.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public enum TableSheetScoreHistoryResponseScoreHistoryResolution + { + /// + /// + /// + Auto, + /// + /// + /// + MinMaxBucket, + /// + /// + /// + Raw, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class TableSheetScoreHistoryResponseScoreHistoryResolutionExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this TableSheetScoreHistoryResponseScoreHistoryResolution value) + { + return value switch + { + TableSheetScoreHistoryResponseScoreHistoryResolution.Auto => "auto", + TableSheetScoreHistoryResponseScoreHistoryResolution.MinMaxBucket => "min_max_bucket", + TableSheetScoreHistoryResponseScoreHistoryResolution.Raw => "raw", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static TableSheetScoreHistoryResponseScoreHistoryResolution? ToEnum(string value) + { + return value switch + { + "auto" => TableSheetScoreHistoryResponseScoreHistoryResolution.Auto, + "min_max_bucket" => TableSheetScoreHistoryResponseScoreHistoryResolution.MinMaxBucket, + "raw" => TableSheetScoreHistoryResponseScoreHistoryResolution.Raw, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreMetric.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreMetric.Json.g.cs new file mode 100644 index 0000000..73ff383 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreMetric.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class TableSheetScoreMetric + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScoreMetric? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.TableSheetScoreMetric), + jsonSerializerContext) as global::PromptLayer.TableSheetScoreMetric; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::PromptLayer.TableSheetScoreMetric? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::PromptLayer.TableSheetScoreMetric), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TableSheetScoreMetric; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreMetric.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreMetric.g.cs new file mode 100644 index 0000000..be0dae2 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreMetric.g.cs @@ -0,0 +1,64 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class TableSheetScoreMetric + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("key")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Key { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("label")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Label { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("positive_metric")] + public bool? PositiveMetric { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public TableSheetScoreMetric( + string key, + string label, + bool? positiveMetric) + { + this.Key = key ?? throw new global::System.ArgumentNullException(nameof(key)); + this.Label = label ?? throw new global::System.ArgumentNullException(nameof(label)); + this.PositiveMetric = positiveMetric; + } + + /// + /// Initializes a new instance of the class. + /// + public TableSheetScoreMetric() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreResponse.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreResponse.Json.g.cs new file mode 100644 index 0000000..b524e7b --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class TableSheetScoreResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScoreResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.TableSheetScoreResponse), + jsonSerializerContext) as global::PromptLayer.TableSheetScoreResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::PromptLayer.TableSheetScoreResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::PromptLayer.TableSheetScoreResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TableSheetScoreResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreResponse.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreResponse.g.cs new file mode 100644 index 0000000..68f3c66 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreResponse.g.cs @@ -0,0 +1,229 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class TableSheetScoreResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("success")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Success { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sheet_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid SheetId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("scoring_type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.TableSheetScoreResponseScoringTypeJsonConverter))] + public global::PromptLayer.TableSheetScoreResponseScoringType? ScoringType { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("columns")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Columns { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("aggregate_score")] + public double? AggregateScore { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("total_rows")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int TotalRows { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("scored_rows")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int ScoredRows { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("excluded_rows")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int ExcludedRows { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("calculated_at")] + public global::System.DateTime? CalculatedAt { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("score_matrix")] + public global::System.Collections.Generic.IList>>? ScoreMatrix { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("score_matrix_metrics")] + public global::System.Collections.Generic.IList? ScoreMatrixMetrics { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.TableSheetScoreResponseStatusJsonConverter))] + public global::PromptLayer.TableSheetScoreResponseStatus? Status { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("score_calculation_error")] + public string? ScoreCalculationError { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("has_custom_scoring")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool HasCustomScoring { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("score_configuration")] + public global::PromptLayer.TableSheetScoreConfiguration? ScoreConfiguration { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("score_type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.TableSheetScoreResponseScoreTypeJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::PromptLayer.TableSheetScoreResponseScoreType ScoreType { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("overall_score")] + public double? OverallScore { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("details")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Details { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("aggregate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Aggregate { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("per_column")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object PerColumn { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public TableSheetScoreResponse( + bool success, + global::System.Guid sheetId, + global::System.Collections.Generic.IList columns, + int totalRows, + int scoredRows, + int excludedRows, + bool hasCustomScoring, + global::PromptLayer.TableSheetScoreResponseScoreType scoreType, + object details, + object aggregate, + object perColumn, + global::PromptLayer.TableSheetScoreResponseScoringType? scoringType, + double? aggregateScore, + global::System.DateTime? calculatedAt, + global::System.Collections.Generic.IList>>? scoreMatrix, + global::System.Collections.Generic.IList? scoreMatrixMetrics, + global::PromptLayer.TableSheetScoreResponseStatus? status, + string? scoreCalculationError, + global::PromptLayer.TableSheetScoreConfiguration? scoreConfiguration, + double? overallScore) + { + this.Success = success; + this.SheetId = sheetId; + this.ScoringType = scoringType; + this.Columns = columns ?? throw new global::System.ArgumentNullException(nameof(columns)); + this.AggregateScore = aggregateScore; + this.TotalRows = totalRows; + this.ScoredRows = scoredRows; + this.ExcludedRows = excludedRows; + this.CalculatedAt = calculatedAt; + this.ScoreMatrix = scoreMatrix; + this.ScoreMatrixMetrics = scoreMatrixMetrics; + this.Status = status; + this.ScoreCalculationError = scoreCalculationError; + this.HasCustomScoring = hasCustomScoring; + this.ScoreConfiguration = scoreConfiguration; + this.ScoreType = scoreType; + this.OverallScore = overallScore; + this.Details = details ?? throw new global::System.ArgumentNullException(nameof(details)); + this.Aggregate = aggregate ?? throw new global::System.ArgumentNullException(nameof(aggregate)); + this.PerColumn = perColumn ?? throw new global::System.ArgumentNullException(nameof(perColumn)); + } + + /// + /// Initializes a new instance of the class. + /// + public TableSheetScoreResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreResponseAggregate.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreResponseAggregate.Json.g.cs new file mode 100644 index 0000000..0872d9d --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreResponseAggregate.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class TableSheetScoreResponseAggregate + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScoreResponseAggregate? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.TableSheetScoreResponseAggregate), + jsonSerializerContext) as global::PromptLayer.TableSheetScoreResponseAggregate; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::PromptLayer.TableSheetScoreResponseAggregate? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::PromptLayer.TableSheetScoreResponseAggregate), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TableSheetScoreResponseAggregate; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreResponseAggregate.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreResponseAggregate.g.cs new file mode 100644 index 0000000..fecc5f5 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreResponseAggregate.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class TableSheetScoreResponseAggregate + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreResponseDetails.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreResponseDetails.Json.g.cs new file mode 100644 index 0000000..87b8f8c --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreResponseDetails.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class TableSheetScoreResponseDetails + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScoreResponseDetails? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.TableSheetScoreResponseDetails), + jsonSerializerContext) as global::PromptLayer.TableSheetScoreResponseDetails; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::PromptLayer.TableSheetScoreResponseDetails? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::PromptLayer.TableSheetScoreResponseDetails), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TableSheetScoreResponseDetails; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreResponseDetails.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreResponseDetails.g.cs new file mode 100644 index 0000000..2cd9e4a --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreResponseDetails.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class TableSheetScoreResponseDetails + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreResponsePerColumn.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreResponsePerColumn.Json.g.cs new file mode 100644 index 0000000..3065321 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreResponsePerColumn.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class TableSheetScoreResponsePerColumn + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScoreResponsePerColumn? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.TableSheetScoreResponsePerColumn), + jsonSerializerContext) as global::PromptLayer.TableSheetScoreResponsePerColumn; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::PromptLayer.TableSheetScoreResponsePerColumn? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::PromptLayer.TableSheetScoreResponsePerColumn), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TableSheetScoreResponsePerColumn; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreResponsePerColumn.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreResponsePerColumn.g.cs new file mode 100644 index 0000000..5b962ea --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreResponsePerColumn.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class TableSheetScoreResponsePerColumn + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreResponseScoreType.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreResponseScoreType.g.cs new file mode 100644 index 0000000..0849759 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreResponseScoreType.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public enum TableSheetScoreResponseScoreType + { + /// + /// + /// + Custom, + /// + /// + /// + MultiColumn, + /// + /// + /// + None, + /// + /// + /// + SingleColumn, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class TableSheetScoreResponseScoreTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this TableSheetScoreResponseScoreType value) + { + return value switch + { + TableSheetScoreResponseScoreType.Custom => "custom", + TableSheetScoreResponseScoreType.MultiColumn => "multi_column", + TableSheetScoreResponseScoreType.None => "none", + TableSheetScoreResponseScoreType.SingleColumn => "single_column", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static TableSheetScoreResponseScoreType? ToEnum(string value) + { + return value switch + { + "custom" => TableSheetScoreResponseScoreType.Custom, + "multi_column" => TableSheetScoreResponseScoreType.MultiColumn, + "none" => TableSheetScoreResponseScoreType.None, + "single_column" => TableSheetScoreResponseScoreType.SingleColumn, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreResponseScoringType.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreResponseScoringType.g.cs new file mode 100644 index 0000000..d99b2fc --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreResponseScoringType.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public enum TableSheetScoreResponseScoringType + { + /// + /// + /// + Auto, + /// + /// + /// + Boolean, + /// + /// + /// + Custom, + /// + /// + /// + Numeric, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class TableSheetScoreResponseScoringTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this TableSheetScoreResponseScoringType value) + { + return value switch + { + TableSheetScoreResponseScoringType.Auto => "auto", + TableSheetScoreResponseScoringType.Boolean => "boolean", + TableSheetScoreResponseScoringType.Custom => "custom", + TableSheetScoreResponseScoringType.Numeric => "numeric", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static TableSheetScoreResponseScoringType? ToEnum(string value) + { + return value switch + { + "auto" => TableSheetScoreResponseScoringType.Auto, + "boolean" => TableSheetScoreResponseScoringType.Boolean, + "custom" => TableSheetScoreResponseScoringType.Custom, + "numeric" => TableSheetScoreResponseScoringType.Numeric, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreResponseStatus.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreResponseStatus.g.cs new file mode 100644 index 0000000..042af56 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScoreResponseStatus.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public enum TableSheetScoreResponseStatus + { + /// + /// + /// + Completed, + /// + /// + /// + Failed, + /// + /// + /// + Queued, + /// + /// + /// + Running, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class TableSheetScoreResponseStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this TableSheetScoreResponseStatus value) + { + return value switch + { + TableSheetScoreResponseStatus.Completed => "completed", + TableSheetScoreResponseStatus.Failed => "failed", + TableSheetScoreResponseStatus.Queued => "queued", + TableSheetScoreResponseStatus.Running => "running", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static TableSheetScoreResponseStatus? ToEnum(string value) + { + return value switch + { + "completed" => TableSheetScoreResponseStatus.Completed, + "failed" => TableSheetScoreResponseStatus.Failed, + "queued" => TableSheetScoreResponseStatus.Queued, + "running" => TableSheetScoreResponseStatus.Running, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetVersion.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetVersion.Json.g.cs new file mode 100644 index 0000000..a4b1d3e --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetVersion.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class TableSheetVersion + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetVersion? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.TableSheetVersion), + jsonSerializerContext) as global::PromptLayer.TableSheetVersion; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::PromptLayer.TableSheetVersion? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::PromptLayer.TableSheetVersion), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TableSheetVersion; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetVersion.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetVersion.g.cs new file mode 100644 index 0000000..1fba61d --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetVersion.g.cs @@ -0,0 +1,139 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class TableSheetVersion + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sheet_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid SheetId { get; set; } + + /// + /// Sequential saved version number for this sheet. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("version_number")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int VersionNumber { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_by")] + public string? CreatedBy { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + public global::System.DateTime? CreatedAt { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("metadata")] + public object? Metadata { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("deltas")] + public global::System.Collections.Generic.IList? Deltas { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("snapshot")] + public object? Snapshot { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("score")] + public object? Score { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("score_configuration")] + public object? ScoreConfiguration { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// Sequential saved version number for this sheet. + /// + /// + /// + /// + /// + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public TableSheetVersion( + global::System.Guid id, + global::System.Guid sheetId, + int versionNumber, + string? name, + string? createdBy, + global::System.DateTime? createdAt, + object? metadata, + global::System.Collections.Generic.IList? deltas, + object? snapshot, + object? score, + object? scoreConfiguration) + { + this.Id = id; + this.SheetId = sheetId; + this.VersionNumber = versionNumber; + this.Name = name; + this.CreatedBy = createdBy; + this.CreatedAt = createdAt; + this.Metadata = metadata; + this.Deltas = deltas; + this.Snapshot = snapshot; + this.Score = score; + this.ScoreConfiguration = scoreConfiguration; + } + + /// + /// Initializes a new instance of the class. + /// + public TableSheetVersion() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetVersionDelta.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetVersionDelta.Json.g.cs new file mode 100644 index 0000000..8fc43e4 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetVersionDelta.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class TableSheetVersionDelta + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetVersionDelta? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.TableSheetVersionDelta), + jsonSerializerContext) as global::PromptLayer.TableSheetVersionDelta; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::PromptLayer.TableSheetVersionDelta? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::PromptLayer.TableSheetVersionDelta), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TableSheetVersionDelta; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetVersionDelta.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetVersionDelta.g.cs new file mode 100644 index 0000000..6e72f0c --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetVersionDelta.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class TableSheetVersionDelta + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetVersionMetadata.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetVersionMetadata.Json.g.cs new file mode 100644 index 0000000..245eb92 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetVersionMetadata.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class TableSheetVersionMetadata + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetVersionMetadata? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.TableSheetVersionMetadata), + jsonSerializerContext) as global::PromptLayer.TableSheetVersionMetadata; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::PromptLayer.TableSheetVersionMetadata? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::PromptLayer.TableSheetVersionMetadata), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TableSheetVersionMetadata; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetVersionMetadata.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetVersionMetadata.g.cs new file mode 100644 index 0000000..14c391f --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetVersionMetadata.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class TableSheetVersionMetadata + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetVersionScore.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetVersionScore.Json.g.cs new file mode 100644 index 0000000..1942430 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetVersionScore.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class TableSheetVersionScore + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetVersionScore? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.TableSheetVersionScore), + jsonSerializerContext) as global::PromptLayer.TableSheetVersionScore; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::PromptLayer.TableSheetVersionScore? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::PromptLayer.TableSheetVersionScore), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TableSheetVersionScore; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetVersionScore.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetVersionScore.g.cs new file mode 100644 index 0000000..841d9aa --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetVersionScore.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class TableSheetVersionScore + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetVersionScoreConfiguration.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetVersionScoreConfiguration.Json.g.cs new file mode 100644 index 0000000..731a589 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetVersionScoreConfiguration.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class TableSheetVersionScoreConfiguration + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetVersionScoreConfiguration? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.TableSheetVersionScoreConfiguration), + jsonSerializerContext) as global::PromptLayer.TableSheetVersionScoreConfiguration; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::PromptLayer.TableSheetVersionScoreConfiguration? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::PromptLayer.TableSheetVersionScoreConfiguration), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TableSheetVersionScoreConfiguration; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetVersionScoreConfiguration.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetVersionScoreConfiguration.g.cs new file mode 100644 index 0000000..1716d69 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetVersionScoreConfiguration.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class TableSheetVersionScoreConfiguration + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetVersionSnapshot.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetVersionSnapshot.Json.g.cs new file mode 100644 index 0000000..91055f1 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetVersionSnapshot.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class TableSheetVersionSnapshot + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetVersionSnapshot? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.TableSheetVersionSnapshot), + jsonSerializerContext) as global::PromptLayer.TableSheetVersionSnapshot; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::PromptLayer.TableSheetVersionSnapshot? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::PromptLayer.TableSheetVersionSnapshot), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TableSheetVersionSnapshot; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetVersionSnapshot.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetVersionSnapshot.g.cs new file mode 100644 index 0000000..2ca526d --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetVersionSnapshot.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class TableSheetVersionSnapshot + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.UpdateTableSheetCellResponse.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.UpdateTableSheetCellResponse.g.cs index 1defc42..224e666 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.Models.UpdateTableSheetCellResponse.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.UpdateTableSheetCellResponse.g.cs @@ -21,7 +21,7 @@ public sealed partial class UpdateTableSheetCellResponse public global::PromptLayer.Cell? Cell { get; set; } /// - /// + /// Current sheet version_count for this response. It matches the sheet's version_count after any committed changes. /// [global::System.Text.Json.Serialization.JsonPropertyName("version")] public int? Version { get; set; } @@ -45,7 +45,9 @@ public sealed partial class UpdateTableSheetCellResponse /// /// A single cell at the intersection of a column and a row. /// - /// + /// + /// Current sheet version_count for this response. It matches the sheet's version_count after any committed changes. + /// /// /// Number of downstream cells marked stale due to this edit. /// diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.UpdateTableSheetColumnResponse.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.UpdateTableSheetColumnResponse.g.cs index a41bfdd..802b388 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.Models.UpdateTableSheetColumnResponse.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.UpdateTableSheetColumnResponse.g.cs @@ -33,7 +33,7 @@ public sealed partial class UpdateTableSheetColumnResponse public global::System.Collections.Generic.IList? AffectedColumnIds { get; set; } /// - /// + /// Current sheet version_count for this response. It matches the sheet's version_count after any committed changes. /// [global::System.Text.Json.Serialization.JsonPropertyName("version")] public int? Version { get; set; } @@ -53,7 +53,9 @@ public sealed partial class UpdateTableSheetColumnResponse /// /// /// - /// + /// + /// Current sheet version_count for this response. It matches the sheet's version_count after any committed changes. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.UpdateTableSheetResponse.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.UpdateTableSheetResponse.g.cs index b6f44cb..d77d83b 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.Models.UpdateTableSheetResponse.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.UpdateTableSheetResponse.g.cs @@ -21,7 +21,7 @@ public sealed partial class UpdateTableSheetResponse public global::PromptLayer.Sheet? Sheet { get; set; } /// - /// + /// Current sheet version_count for this response. It matches the sheet's version_count after any committed changes. /// [global::System.Text.Json.Serialization.JsonPropertyName("version")] public int? Version { get; set; } @@ -39,7 +39,9 @@ public sealed partial class UpdateTableSheetResponse /// /// A sheet within a Table. /// - /// + /// + /// Current sheet version_count for this response. It matches the sheet's version_count after any committed changes. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif diff --git a/src/libs/PromptLayer/Generated/PromptLayer.OneOf.3.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.OneOf.3.Json.g.cs new file mode 100644 index 0000000..921787f --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.OneOf.3.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public readonly partial struct OneOf + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.OneOf? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.OneOf), + jsonSerializerContext) as global::PromptLayer.OneOf?; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::PromptLayer.OneOf? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize>( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask?> FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::PromptLayer.OneOf), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.OneOf?; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask?> FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync?>( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.OneOf.3.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.OneOf.3.g.cs new file mode 100644 index 0000000..dd8e1c4 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.OneOf.3.g.cs @@ -0,0 +1,377 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public readonly partial struct OneOf : global::System.IEquatable> + { + /// + /// + /// +#if NET6_0_OR_GREATER + public T1? Value1 { get; init; } +#else + public T1? Value1 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] +#endif + public bool IsValue1 => Value1 != null; + + /// + /// + /// + public bool TryPickValue1( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out T1? value) + { + value = Value1; + return IsValue1; + } + + /// + /// + /// + public T1 PickValue1() => IsValue1 + ? Value1! + : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public T2? Value2 { get; init; } +#else + public T2? Value2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] +#endif + public bool IsValue2 => Value2 != null; + + /// + /// + /// + public bool TryPickValue2( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out T2? value) + { + value = Value2; + return IsValue2; + } + + /// + /// + /// + public T2 PickValue2() => IsValue2 + ? Value2! + : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public T3? Value3 { get; init; } +#else + public T3? Value3 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value3))] +#endif + public bool IsValue3 => Value3 != null; + + /// + /// + /// + public bool TryPickValue3( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out T3? value) + { + value = Value3; + return IsValue3; + } + + /// + /// + /// + public T3 PickValue3() => IsValue3 + ? Value3! + : throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator OneOf(T1 value) => new OneOf((T1?)value); + + /// + /// + /// + public static implicit operator T1?(OneOf @this) => @this.Value1; + + /// + /// + /// + public OneOf(T1? value) + { + Value1 = value; + } + + /// + /// + /// + public static OneOf FromValue1(T1? value) => new OneOf(value); + + /// + /// + /// + public static implicit operator OneOf(T2 value) => new OneOf((T2?)value); + + /// + /// + /// + public static implicit operator T2?(OneOf @this) => @this.Value2; + + /// + /// + /// + public OneOf(T2? value) + { + Value2 = value; + } + + /// + /// + /// + public static OneOf FromValue2(T2? value) => new OneOf(value); + + /// + /// + /// + public static implicit operator OneOf(T3 value) => new OneOf((T3?)value); + + /// + /// + /// + public static implicit operator T3?(OneOf @this) => @this.Value3; + + /// + /// + /// + public OneOf(T3? value) + { + Value3 = value; + } + + /// + /// + /// + public static OneOf FromValue3(T3? value) => new OneOf(value); + + /// + /// + /// + public OneOf( + T1? value1, + T2? value2, + T3? value3 + ) + { + Value1 = value1; + Value2 = value2; + Value3 = value3; + } + + /// + /// + /// + public object? Object => + Value3 as object ?? + Value2 as object ?? + Value1 as object + ; + + /// + /// + /// + public override string? ToString() => + Value1?.ToString() ?? + Value2?.ToString() ?? + Value3?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsValue1 && !IsValue2 && !IsValue3 || !IsValue1 && IsValue2 && !IsValue3 || !IsValue1 && !IsValue2 && IsValue3; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? value1 = null, + global::System.Func? value2 = null, + global::System.Func? value3 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsValue1 && value1 != null) + { + return value1(Value1!); + } + else if (IsValue2 && value2 != null) + { + return value2(Value2!); + } + else if (IsValue3 && value3 != null) + { + return value3(Value3!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? value1 = null, + + global::System.Action? value2 = null, + + global::System.Action? value3 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsValue1) + { + value1?.Invoke(Value1!); + } + else if (IsValue2) + { + value2?.Invoke(Value2!); + } + else if (IsValue3) + { + value3?.Invoke(Value3!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? value1 = null, + global::System.Action? value2 = null, + global::System.Action? value3 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsValue1) + { + value1?.Invoke(Value1!); + } + else if (IsValue2) + { + value2?.Invoke(Value2!); + } + else if (IsValue3) + { + value3?.Invoke(Value3!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Value1, + typeof(T1), + Value2, + typeof(T2), + Value3, + typeof(T3), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(OneOf other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Value3, other.Value3) + ; + } + + /// + /// + /// + public static bool operator ==(OneOf obj1, OneOf obj2) + { + return global::System.Collections.Generic.EqualityComparer>.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(OneOf obj1, OneOf obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is OneOf o && Equals(o); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.PromptLayerClient.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.PromptLayerClient.g.cs index f2c1cc2..44dc1c9 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.PromptLayerClient.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.PromptLayerClient.g.cs @@ -201,6 +201,15 @@ public sealed partial class PromptLayerClient : global::PromptLayer.IPromptLayer JsonSerializerContext = JsonSerializerContext, }; + /// + /// + /// + public TablesClient Tables => new TablesClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) + { + ReadResponseAsString = ReadResponseAsString, + JsonSerializerContext = JsonSerializerContext, + }; + /// /// /// diff --git a/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.AddTableSheetRows.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.AddTableSheetRows.g.cs index b72aecb..e87e9ea 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.AddTableSheetRows.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.AddTableSheetRows.g.cs @@ -47,7 +47,7 @@ partial void ProcessAddTableSheetRowsResponseContent( /// /// Add Rows
- /// Append one or more rows to a sheet. Text column values can be set immediately; non-text column cells are created with `stale` status and must be triggered via a recalculation. + /// Append one or more rows to a sheet. Text column values can be set immediately; non-text column cells are created with `stale` status and must be triggered via a recalculation. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// @@ -76,7 +76,7 @@ partial void ProcessAddTableSheetRowsResponseContent( } /// /// Add Rows
- /// Append one or more rows to a sheet. Text column values can be set immediately; non-text column cells are created with `stale` status and must be triggered via a recalculation. + /// Append one or more rows to a sheet. Text column values can be set immediately; non-text column cells are created with `stale` status and must be triggered via a recalculation. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// @@ -601,7 +601,7 @@ partial void ProcessAddTableSheetRowsResponseContent( } /// /// Add Rows
- /// Append one or more rows to a sheet. Text column values can be set immediately; non-text column cells are created with `stale` status and must be triggered via a recalculation. + /// Append one or more rows to a sheet. Text column values can be set immediately; non-text column cells are created with `stale` status and must be triggered via a recalculation. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// diff --git a/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.CreateTable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.CreateTable.g.cs index 5d89757..9f654ec 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.CreateTable.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.CreateTable.g.cs @@ -43,7 +43,7 @@ partial void ProcessCreateTableResponseContent( /// /// Create Table
- /// Create a new Table. A default sheet with one text column is created automatically. + /// Create a new Table. A default sheet with one text column is created automatically. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -66,7 +66,7 @@ partial void ProcessCreateTableResponseContent( } /// /// Create Table
- /// Create a new Table. A default sheet with one text column is created automatically. + /// Create a new Table. A default sheet with one text column is created automatically. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -583,7 +583,7 @@ partial void ProcessCreateTableResponseContent( } /// /// Create Table
- /// Create a new Table. A default sheet with one text column is created automatically. + /// Create a new Table. A default sheet with one text column is created automatically. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// Table title. Defaults to a unique 'Untitled Table' name if omitted. diff --git a/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.CreateTableSheet.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.CreateTableSheet.g.cs index 6886e1c..0342b19 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.CreateTableSheet.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.CreateTableSheet.g.cs @@ -45,7 +45,7 @@ partial void ProcessCreateTableSheetResponseContent( /// /// Create Sheet
- /// Create a new sheet in a table by importing data from a file (CSV or JSON, base64-encoded) or from request log history. + /// Create a new sheet in a table by importing data from a file (CSV or JSON, base64-encoded) or from request log history. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// @@ -71,7 +71,7 @@ partial void ProcessCreateTableSheetResponseContent( } /// /// Create Sheet
- /// Create a new sheet in a table by importing data from a file (CSV or JSON, base64-encoded) or from request log history. + /// Create a new sheet in a table by importing data from a file (CSV or JSON, base64-encoded) or from request log history. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// @@ -592,7 +592,7 @@ partial void ProcessCreateTableSheetResponseContent( } /// /// Create Sheet
- /// Create a new sheet in a table by importing data from a file (CSV or JSON, base64-encoded) or from request log history. + /// Create a new sheet in a table by importing data from a file (CSV or JSON, base64-encoded) or from request log history. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// diff --git a/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.CreateTableSheetCellRecalculation.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.CreateTableSheetCellRecalculation.g.cs index 0d7808d..348f57a 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.CreateTableSheetCellRecalculation.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.CreateTableSheetCellRecalculation.g.cs @@ -47,7 +47,7 @@ partial void ProcessCreateTableSheetCellRecalculationResponseContent( /// /// Recalculate Cell
- /// Trigger recalculation for a single cell. + /// Trigger recalculation for a single cell. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// @@ -74,7 +74,7 @@ partial void ProcessCreateTableSheetCellRecalculationResponseContent( } /// /// Recalculate Cell
- /// Trigger recalculation for a single cell. + /// Trigger recalculation for a single cell. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// diff --git a/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.CreateTableSheetCellRecalculationsBatch.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.CreateTableSheetCellRecalculationsBatch.g.cs index 6565529..28cbd37 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.CreateTableSheetCellRecalculationsBatch.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.CreateTableSheetCellRecalculationsBatch.g.cs @@ -47,7 +47,7 @@ partial void ProcessCreateTableSheetCellRecalculationsBatchResponseContent( /// /// Recalculate Cells (Batch)
- /// Trigger recalculation for a batch of cells identified by ID. + /// Trigger recalculation for a batch of cells identified by ID. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// @@ -76,7 +76,7 @@ partial void ProcessCreateTableSheetCellRecalculationsBatchResponseContent( } /// /// Recalculate Cells (Batch)
- /// Trigger recalculation for a batch of cells identified by ID. + /// Trigger recalculation for a batch of cells identified by ID. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// @@ -564,7 +564,7 @@ partial void ProcessCreateTableSheetCellRecalculationsBatchResponseContent( } /// /// Recalculate Cells (Batch)
- /// Trigger recalculation for a batch of cells identified by ID. + /// Trigger recalculation for a batch of cells identified by ID. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// diff --git a/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.CreateTableSheetColumn.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.CreateTableSheetColumn.g.cs index 17b375e..547f257 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.CreateTableSheetColumn.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.CreateTableSheetColumn.g.cs @@ -47,7 +47,7 @@ partial void ProcessCreateTableSheetColumnResponseContent( /// /// Create Column
- /// Add a new column to a sheet. Non-text columns will generate cells for all existing rows. + /// Add a new column to a sheet. Non-text columns will generate cells for all existing rows. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// @@ -76,7 +76,7 @@ partial void ProcessCreateTableSheetColumnResponseContent( } /// /// Create Column
- /// Add a new column to a sheet. Non-text columns will generate cells for all existing rows. + /// Add a new column to a sheet. Non-text columns will generate cells for all existing rows. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// @@ -601,7 +601,7 @@ partial void ProcessCreateTableSheetColumnResponseContent( } /// /// Create Column
- /// Add a new column to a sheet. Non-text columns will generate cells for all existing rows. + /// Add a new column to a sheet. Non-text columns will generate cells for all existing rows. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// diff --git a/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.GetTable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.GetTable.g.cs index 9104806..2c0c3d1 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.GetTable.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.GetTable.g.cs @@ -42,7 +42,8 @@ partial void ProcessGetTableResponseContent( ref string content); /// - /// Get Table + /// Get Table
+ /// Get Table. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -62,7 +63,8 @@ partial void ProcessGetTableResponseContent( return __response.Body; } /// - /// Get Table + /// Get Table
+ /// Get Table. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. diff --git a/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.GetTableSheet.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.GetTableSheet.g.cs index b14a4da..2a828d6 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.GetTableSheet.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.GetTableSheet.g.cs @@ -44,7 +44,8 @@ partial void ProcessGetTableSheetResponseContent( ref string content); /// - /// Get Sheet + /// Get Sheet
+ /// Get Sheet. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// @@ -67,7 +68,8 @@ partial void ProcessGetTableSheetResponseContent( return __response.Body; } /// - /// Get Sheet + /// Get Sheet
+ /// Get Sheet. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// diff --git a/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.GetTableSheetCell.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.GetTableSheetCell.g.cs index c1b43f7..19382b7 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.GetTableSheetCell.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.GetTableSheetCell.g.cs @@ -47,7 +47,7 @@ partial void ProcessGetTableSheetCellResponseContent( /// /// Get Cell
- /// Retrieve a single cell by ID. For prompt-template column cells, the response includes a `request_metrics` object with price, latency, and token usage when available. + /// Retrieve a single cell by ID. For prompt-template column cells, the response includes a `request_metrics` object with price, latency, and token usage when available. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// @@ -74,7 +74,7 @@ partial void ProcessGetTableSheetCellResponseContent( } /// /// Get Cell
- /// Retrieve a single cell by ID. For prompt-template column cells, the response includes a `request_metrics` object with price, latency, and token usage when available. + /// Retrieve a single cell by ID. For prompt-template column cells, the response includes a `request_metrics` object with price, latency, and token usage when available. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// diff --git a/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.GetTableSheetOperation.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.GetTableSheetOperation.g.cs index 82e3cf1..9e4bff4 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.GetTableSheetOperation.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.GetTableSheetOperation.g.cs @@ -45,14 +45,14 @@ partial void ProcessGetTableSheetOperationResponseContent( /// /// Get Sheet Import Operation
- /// Poll the status of an asynchronous sheet import operation. + /// Poll the status of an asynchronous sheet import operation. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task GetTableSheetOperationAsync( + public async global::System.Threading.Tasks.Task GetTableSheetOperationAsync( global::System.Guid tableId, string operationId, global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, @@ -69,14 +69,14 @@ partial void ProcessGetTableSheetOperationResponseContent( } /// /// Get Sheet Import Operation
- /// Poll the status of an asynchronous sheet import operation. + /// Poll the status of an asynchronous sheet import operation. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> GetTableSheetOperationAsResponseAsync( + public async global::System.Threading.Tasks.Task> GetTableSheetOperationAsResponseAsync( global::System.Guid tableId, string operationId, global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, @@ -431,9 +431,9 @@ partial void ProcessGetTableSheetOperationResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::PromptLayer.GetTableSheetOperationResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::PromptLayer.GetTableSheetOperationResponse2.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::PromptLayer.AutoSDKHttpResponse( + return new global::PromptLayer.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::PromptLayer.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -463,9 +463,9 @@ partial void ProcessGetTableSheetOperationResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::PromptLayer.GetTableSheetOperationResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::PromptLayer.GetTableSheetOperationResponse2.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::PromptLayer.AutoSDKHttpResponse( + return new global::PromptLayer.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::PromptLayer.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.ListTableSheetColumns.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.ListTableSheetColumns.g.cs index d5ebc97..3d35c26 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.ListTableSheetColumns.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.ListTableSheetColumns.g.cs @@ -51,7 +51,7 @@ partial void ProcessListTableSheetColumnsResponseContent( /// /// List Columns
- /// List columns in a sheet, ordered by position rank. By default, system-managed metadata columns such as price and latency columns are excluded; pass `include_system_columns=true` to include them. + /// List columns in a sheet, ordered by position rank. By default, system-managed metadata columns such as price and latency columns are excluded; pass `include_system_columns=true` to include them. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// @@ -88,7 +88,7 @@ partial void ProcessListTableSheetColumnsResponseContent( } /// /// List Columns
- /// List columns in a sheet, ordered by position rank. By default, system-managed metadata columns such as price and latency columns are excluded; pass `include_system_columns=true` to include them. + /// List columns in a sheet, ordered by position rank. By default, system-managed metadata columns such as price and latency columns are excluded; pass `include_system_columns=true` to include them. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// diff --git a/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.ListTableSheetRows.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.ListTableSheetRows.g.cs index 793d39e..91fc6d9 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.ListTableSheetRows.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.ListTableSheetRows.g.cs @@ -59,7 +59,7 @@ partial void ProcessListTableSheetRowsResponseContent( /// /// List Rows
- /// List rows in a sheet, each containing a map of column_id to cell. For prompt-template column cells, each cell can include a `request_metrics` object with price, latency, and token usage when available. Pass `include_columns=true` on the first page to receive column metadata alongside rows. + /// List rows in a sheet, each containing a map of column_id to cell. For prompt-template column cells, each cell can include a `request_metrics` object with price, latency, and token usage when available. Pass `include_columns=true` on the first page to receive column metadata alongside rows. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// @@ -116,7 +116,7 @@ partial void ProcessListTableSheetRowsResponseContent( } /// /// List Rows
- /// List rows in a sheet, each containing a map of column_id to cell. For prompt-template column cells, each cell can include a `request_metrics` object with price, latency, and token usage when available. Pass `include_columns=true` on the first page to receive column metadata alongside rows. + /// List rows in a sheet, each containing a map of column_id to cell. For prompt-template column cells, each cell can include a `request_metrics` object with price, latency, and token usage when available. Pass `include_columns=true` on the first page to receive column metadata alongside rows. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// diff --git a/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.ListTableSheets.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.ListTableSheets.g.cs index 05ecefa..57b5335 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.ListTableSheets.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.ListTableSheets.g.cs @@ -55,7 +55,7 @@ partial void ProcessListTableSheetsResponseContent( /// /// List Sheets
- /// List all sheets in a table, ordered by their index. + /// List all sheets in a table, ordered by their index. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// @@ -98,7 +98,7 @@ partial void ProcessListTableSheetsResponseContent( } /// /// List Sheets
- /// List all sheets in a table, ordered by their index. + /// List all sheets in a table, ordered by their index. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// diff --git a/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.ListTables.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.ListTables.g.cs index 60dc2e4..d393061 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.ListTables.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.ListTables.g.cs @@ -57,7 +57,7 @@ partial void ProcessListTablesResponseContent( /// /// List Tables
- /// List Tables in the workspace. Supports cursor-based pagination and optional filtering by folder or prompt column. + /// List Tables in the workspace. Supports cursor-based pagination and optional filtering by folder or prompt column. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// Filter by folder ID. @@ -111,7 +111,7 @@ partial void ProcessListTablesResponseContent( } /// /// List Tables
- /// List Tables in the workspace. Supports cursor-based pagination and optional filtering by folder or prompt column. + /// List Tables in the workspace. Supports cursor-based pagination and optional filtering by folder or prompt column. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// Filter by folder ID. diff --git a/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.UpdateTable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.UpdateTable.g.cs index 8bbe864..0d8013c 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.UpdateTable.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.UpdateTable.g.cs @@ -44,7 +44,8 @@ partial void ProcessUpdateTableResponseContent( ref string content); /// - /// Update Table + /// Update Table
+ /// Update Table. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// @@ -69,7 +70,8 @@ partial void ProcessUpdateTableResponseContent( return __response.Body; } /// - /// Update Table + /// Update Table
+ /// Update Table. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// @@ -552,7 +554,8 @@ partial void ProcessUpdateTableResponseContent( } } /// - /// Update Table + /// Update Table
+ /// Update Table. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// diff --git a/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.UpdateTableSheet.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.UpdateTableSheet.g.cs index 434124b..ba13183 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.UpdateTableSheet.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.UpdateTableSheet.g.cs @@ -46,7 +46,8 @@ partial void ProcessUpdateTableSheetResponseContent( ref string content); /// - /// Update Sheet + /// Update Sheet
+ /// Update Sheet. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// @@ -74,7 +75,8 @@ partial void ProcessUpdateTableSheetResponseContent( return __response.Body; } /// - /// Update Sheet + /// Update Sheet
+ /// Update Sheet. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// @@ -524,7 +526,8 @@ partial void ProcessUpdateTableSheetResponseContent( } } /// - /// Update Sheet + /// Update Sheet
+ /// Update Sheet. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// diff --git a/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.UpdateTableSheetCell.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.UpdateTableSheetCell.g.cs index 8e13072..91e51ef 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.UpdateTableSheetCell.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.UpdateTableSheetCell.g.cs @@ -49,7 +49,7 @@ partial void ProcessUpdateTableSheetCellResponseContent( /// /// Update Cell
- /// Edit the value of a text column cell. Only cells in `text` type columns can be edited directly; computed cells are recalculated automatically. + /// Edit the value of a text column cell. Only cells in `text` type columns can be edited directly; computed cells are recalculated automatically. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// @@ -81,7 +81,7 @@ partial void ProcessUpdateTableSheetCellResponseContent( } /// /// Update Cell
- /// Edit the value of a text column cell. Only cells in `text` type columns can be edited directly; computed cells are recalculated automatically. + /// Edit the value of a text column cell. Only cells in `text` type columns can be edited directly; computed cells are recalculated automatically. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// @@ -573,7 +573,7 @@ partial void ProcessUpdateTableSheetCellResponseContent( } /// /// Update Cell
- /// Edit the value of a text column cell. Only cells in `text` type columns can be edited directly; computed cells are recalculated automatically. + /// Edit the value of a text column cell. Only cells in `text` type columns can be edited directly; computed cells are recalculated automatically. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// diff --git a/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.UpdateTableSheetColumn.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.UpdateTableSheetColumn.g.cs index 40f2839..d8e1663 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.UpdateTableSheetColumn.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.SmartTablesClient.UpdateTableSheetColumn.g.cs @@ -49,7 +49,7 @@ partial void ProcessUpdateTableSheetColumnResponseContent( /// /// Update Column
- /// Update a column's title, config, or dependencies. Returns `requires_recalculation: true` when the change invalidates existing cell values. + /// Update a column's title, config, or dependencies. Returns `requires_recalculation: true` when the change invalidates existing cell values. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// @@ -81,7 +81,7 @@ partial void ProcessUpdateTableSheetColumnResponseContent( } /// /// Update Column
- /// Update a column's title, config, or dependencies. Returns `requires_recalculation: true` when the change invalidates existing cell values. + /// Update a column's title, config, or dependencies. Returns `requires_recalculation: true` when the change invalidates existing cell values. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// @@ -573,7 +573,7 @@ partial void ProcessUpdateTableSheetColumnResponseContent( } /// /// Update Column
- /// Update a column's title, config, or dependencies. Returns `requires_recalculation: true` when the change invalidates existing cell values. + /// Update a column's title, config, or dependencies. Returns `requires_recalculation: true` when the change invalidates existing cell values. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. ///
/// /// diff --git a/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.CancelTableSheetOperation.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.CancelTableSheetOperation.g.cs new file mode 100644 index 0000000..19abcc2 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.CancelTableSheetOperation.g.cs @@ -0,0 +1,518 @@ + +#nullable enable + +namespace PromptLayer +{ + public partial class TablesClient + { + + + private static readonly global::PromptLayer.EndPointSecurityRequirement s_CancelTableSheetOperationSecurityRequirement0 = + new global::PromptLayer.EndPointSecurityRequirement + { + Authorizations = new global::PromptLayer.EndPointAuthorizationRequirement[] + { new global::PromptLayer.EndPointAuthorizationRequirement + { + Type = "ApiKey", + SchemeId = "ApikeyXApiKey", + Location = "Header", + Name = "X-API-KEY", + FriendlyName = "ApiKeyInHeader", + }, + }, + }; + private static readonly global::PromptLayer.EndPointSecurityRequirement[] s_CancelTableSheetOperationSecurityRequirements = + new global::PromptLayer.EndPointSecurityRequirement[] + { s_CancelTableSheetOperationSecurityRequirement0, + }; + partial void PrepareCancelTableSheetOperationArguments( + global::System.Net.Http.HttpClient httpClient, + ref global::System.Guid tableId, + ref global::System.Guid sheetId, + ref string operationId); + partial void PrepareCancelTableSheetOperationRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::System.Guid tableId, + global::System.Guid sheetId, + string operationId); + partial void ProcessCancelTableSheetOperationResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessCancelTableSheetOperationResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Cancel Table Sheet Operation
+ /// Cancel an active Table sheet recalculation operation. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task CancelTableSheetOperationAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + string operationId, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await CancelTableSheetOperationAsResponseAsync( + tableId: tableId, + sheetId: sheetId, + operationId: operationId, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Cancel Table Sheet Operation
+ /// Cancel an active Table sheet recalculation operation. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> CancelTableSheetOperationAsResponseAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + string operationId, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareCancelTableSheetOperationArguments( + httpClient: HttpClient, + tableId: ref tableId, + sheetId: ref sheetId, + operationId: ref operationId); + + + var __authorizations = global::PromptLayer.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CancelTableSheetOperationSecurityRequirements, + operationName: "CancelTableSheetOperationAsync"); + + using var __timeoutCancellationTokenSource = global::PromptLayer.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::PromptLayer.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::PromptLayer.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::PromptLayer.PathBuilder( + path: $"/api/public/v2/tables/{tableId}/sheets/{sheetId}/operations/{operationId}", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::PromptLayer.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Delete, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::PromptLayer.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareCancelTableSheetOperationRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + tableId: tableId!, + sheetId: sheetId!, + operationId: operationId!); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CancelTableSheetOperation", + methodName: "CancelTableSheetOperationAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/operations/{operationId}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::PromptLayer.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CancelTableSheetOperation", + methodName: "CancelTableSheetOperationAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/operations/{operationId}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::PromptLayer.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::PromptLayer.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::PromptLayer.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CancelTableSheetOperation", + methodName: "CancelTableSheetOperationAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/operations/{operationId}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::PromptLayer.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessCancelTableSheetOperationResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CancelTableSheetOperation", + methodName: "CancelTableSheetOperationAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/operations/{operationId}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CancelTableSheetOperation", + methodName: "CancelTableSheetOperationAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/operations/{operationId}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Invalid workspace context. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::PromptLayer.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::PromptLayer.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::PromptLayer.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Table or sheet not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::PromptLayer.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::PromptLayer.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::PromptLayer.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessCancelTableSheetOperationResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::PromptLayer.CancelTableSheetOperationResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::PromptLayer.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::PromptLayer.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::PromptLayer.CancelTableSheetOperationResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::PromptLayer.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::PromptLayer.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.ConfigureTableSheetScore.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.ConfigureTableSheetScore.g.cs new file mode 100644 index 0000000..05e62d9 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.ConfigureTableSheetScore.g.cs @@ -0,0 +1,674 @@ + +#nullable enable + +namespace PromptLayer +{ + public partial class TablesClient + { + + + private static readonly global::PromptLayer.EndPointSecurityRequirement s_ConfigureTableSheetScoreSecurityRequirement0 = + new global::PromptLayer.EndPointSecurityRequirement + { + Authorizations = new global::PromptLayer.EndPointAuthorizationRequirement[] + { new global::PromptLayer.EndPointAuthorizationRequirement + { + Type = "ApiKey", + SchemeId = "ApikeyXApiKey", + Location = "Header", + Name = "X-API-KEY", + FriendlyName = "ApiKeyInHeader", + }, + }, + }; + private static readonly global::PromptLayer.EndPointSecurityRequirement[] s_ConfigureTableSheetScoreSecurityRequirements = + new global::PromptLayer.EndPointSecurityRequirement[] + { s_ConfigureTableSheetScoreSecurityRequirement0, + }; + partial void PrepareConfigureTableSheetScoreArguments( + global::System.Net.Http.HttpClient httpClient, + ref global::System.Guid tableId, + ref global::System.Guid sheetId, + global::PromptLayer.ConfigureTableSheetScoreRequest request); + partial void PrepareConfigureTableSheetScoreRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::System.Guid tableId, + global::System.Guid sheetId, + global::PromptLayer.ConfigureTableSheetScoreRequest request); + partial void ProcessConfigureTableSheetScoreResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessConfigureTableSheetScoreResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Configure Table Sheet Score
+ /// Configure scoring for a Table sheet. This endpoint updates the configuration and returns whether recalculation is required; it does not queue score calculation. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task ConfigureTableSheetScoreAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + + global::PromptLayer.ConfigureTableSheetScoreRequest request, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await ConfigureTableSheetScoreAsResponseAsync( + tableId: tableId, + sheetId: sheetId, + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Configure Table Sheet Score
+ /// Configure scoring for a Table sheet. This endpoint updates the configuration and returns whether recalculation is required; it does not queue score calculation. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> ConfigureTableSheetScoreAsResponseAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + + global::PromptLayer.ConfigureTableSheetScoreRequest request, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareConfigureTableSheetScoreArguments( + httpClient: HttpClient, + tableId: ref tableId, + sheetId: ref sheetId, + request: request); + + + var __authorizations = global::PromptLayer.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ConfigureTableSheetScoreSecurityRequirements, + operationName: "ConfigureTableSheetScoreAsync"); + + using var __timeoutCancellationTokenSource = global::PromptLayer.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::PromptLayer.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::PromptLayer.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::PromptLayer.PathBuilder( + path: $"/api/public/v2/tables/{tableId}/sheets/{sheetId}/score", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::PromptLayer.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: new global::System.Net.Http.HttpMethod("PATCH"), + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::PromptLayer.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareConfigureTableSheetScoreRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + tableId: tableId!, + sheetId: sheetId!, + request: request); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ConfigureTableSheetScore", + methodName: "ConfigureTableSheetScoreAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/score\"", + httpMethod: "PATCH", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::PromptLayer.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ConfigureTableSheetScore", + methodName: "ConfigureTableSheetScoreAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/score\"", + httpMethod: "PATCH", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::PromptLayer.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::PromptLayer.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::PromptLayer.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ConfigureTableSheetScore", + methodName: "ConfigureTableSheetScoreAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/score\"", + httpMethod: "PATCH", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::PromptLayer.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessConfigureTableSheetScoreResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ConfigureTableSheetScore", + methodName: "ConfigureTableSheetScoreAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/score\"", + httpMethod: "PATCH", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ConfigureTableSheetScore", + methodName: "ConfigureTableSheetScoreAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/score\"", + httpMethod: "PATCH", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Invalid score configuration or workspace context. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::PromptLayer.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::PromptLayer.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::PromptLayer.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Authentication required. + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::PromptLayer.ErrorResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::PromptLayer.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::PromptLayer.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Table, sheet, or score column not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::PromptLayer.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::PromptLayer.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::PromptLayer.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Failed to update score configuration. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::PromptLayer.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::PromptLayer.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::PromptLayer.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessConfigureTableSheetScoreResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::PromptLayer.ConfigureTableSheetScoreResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::PromptLayer.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::PromptLayer.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::PromptLayer.ConfigureTableSheetScoreResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::PromptLayer.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::PromptLayer.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Configure Table Sheet Score
+ /// Configure scoring for a Table sheet. This endpoint updates the configuration and returns whether recalculation is required; it does not queue score calculation. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// Scoring mode. Required when score_config is provided. + /// + /// + /// Explicit score configuration. + /// + /// + /// Column IDs to score. + /// + /// + /// Column titles to score. Titles must be unique in the sheet. + /// + /// + /// Custom scoring code. + /// + /// + /// Default Value: PYTHON + /// + /// + /// Values treated as true for boolean scoring. + /// + /// + /// Values treated as false for boolean scoring. + /// + /// + /// Aggregation mode for assertion-style boolean scoring. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task ConfigureTableSheetScoreAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + global::PromptLayer.ConfigureTableSheetScoreRequestScoreType? scoreType = default, + object? scoreConfig = default, + global::System.Collections.Generic.IList? columnIds = default, + global::System.Collections.Generic.IList? columnNames = default, + string? code = default, + global::PromptLayer.ConfigureTableSheetScoreRequestCodeLanguage? codeLanguage = default, + global::System.Collections.Generic.IList? trueValues = default, + global::System.Collections.Generic.IList? falseValues = default, + global::PromptLayer.ConfigureTableSheetScoreRequestAssertionAggregation? assertionAggregation = default, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::PromptLayer.ConfigureTableSheetScoreRequest + { + ScoreType = scoreType, + ScoreConfig = scoreConfig, + ColumnIds = columnIds, + ColumnNames = columnNames, + Code = code, + CodeLanguage = codeLanguage, + TrueValues = trueValues, + FalseValues = falseValues, + AssertionAggregation = assertionAggregation, + }; + + return await ConfigureTableSheetScoreAsync( + tableId: tableId, + sheetId: sheetId, + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.CreateTableSheetFileImport.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.CreateTableSheetFileImport.g.cs new file mode 100644 index 0000000..a460e8c --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.CreateTableSheetFileImport.g.cs @@ -0,0 +1,644 @@ + +#nullable enable + +namespace PromptLayer +{ + public partial class TablesClient + { + + + private static readonly global::PromptLayer.EndPointSecurityRequirement s_CreateTableSheetFileImportSecurityRequirement0 = + new global::PromptLayer.EndPointSecurityRequirement + { + Authorizations = new global::PromptLayer.EndPointAuthorizationRequirement[] + { new global::PromptLayer.EndPointAuthorizationRequirement + { + Type = "ApiKey", + SchemeId = "ApikeyXApiKey", + Location = "Header", + Name = "X-API-KEY", + FriendlyName = "ApiKeyInHeader", + }, + }, + }; + private static readonly global::PromptLayer.EndPointSecurityRequirement[] s_CreateTableSheetFileImportSecurityRequirements = + new global::PromptLayer.EndPointSecurityRequirement[] + { s_CreateTableSheetFileImportSecurityRequirement0, + }; + partial void PrepareCreateTableSheetFileImportArguments( + global::System.Net.Http.HttpClient httpClient, + ref global::System.Guid tableId, + ref global::System.Guid sheetId, + global::PromptLayer.CreateTableSheetFileImportRequest request); + partial void PrepareCreateTableSheetFileImportRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::System.Guid tableId, + global::System.Guid sheetId, + global::PromptLayer.CreateTableSheetFileImportRequest request); + partial void ProcessCreateTableSheetFileImportResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessCreateTableSheetFileImportResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Import File Into Table Sheet
+ /// Start an asynchronous CSV import into an existing Table sheet. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task CreateTableSheetFileImportAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + + global::PromptLayer.CreateTableSheetFileImportRequest request, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await CreateTableSheetFileImportAsResponseAsync( + tableId: tableId, + sheetId: sheetId, + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Import File Into Table Sheet
+ /// Start an asynchronous CSV import into an existing Table sheet. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> CreateTableSheetFileImportAsResponseAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + + global::PromptLayer.CreateTableSheetFileImportRequest request, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareCreateTableSheetFileImportArguments( + httpClient: HttpClient, + tableId: ref tableId, + sheetId: ref sheetId, + request: request); + + + var __authorizations = global::PromptLayer.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateTableSheetFileImportSecurityRequirements, + operationName: "CreateTableSheetFileImportAsync"); + + using var __timeoutCancellationTokenSource = global::PromptLayer.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::PromptLayer.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::PromptLayer.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::PromptLayer.PathBuilder( + path: $"/api/public/v2/tables/{tableId}/sheets/{sheetId}/imports/file", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::PromptLayer.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::PromptLayer.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareCreateTableSheetFileImportRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + tableId: tableId!, + sheetId: sheetId!, + request: request); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateTableSheetFileImport", + methodName: "CreateTableSheetFileImportAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/imports/file\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::PromptLayer.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateTableSheetFileImport", + methodName: "CreateTableSheetFileImportAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/imports/file\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::PromptLayer.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::PromptLayer.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::PromptLayer.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateTableSheetFileImport", + methodName: "CreateTableSheetFileImportAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/imports/file\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::PromptLayer.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessCreateTableSheetFileImportResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateTableSheetFileImport", + methodName: "CreateTableSheetFileImportAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/imports/file\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateTableSheetFileImport", + methodName: "CreateTableSheetFileImportAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/imports/file\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Invalid request body, file, or workspace context. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::PromptLayer.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::PromptLayer.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::PromptLayer.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Authentication required. + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::PromptLayer.ErrorResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::PromptLayer.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::PromptLayer.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Table or sheet not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::PromptLayer.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::PromptLayer.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::PromptLayer.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Failed to upload file. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::PromptLayer.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::PromptLayer.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::PromptLayer.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessCreateTableSheetFileImportResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::PromptLayer.TableSheetImportStartResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::PromptLayer.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::PromptLayer.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::PromptLayer.TableSheetImportStartResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::PromptLayer.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::PromptLayer.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Import File Into Table Sheet
+ /// Start an asynchronous CSV import into an existing Table sheet. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// Optional client-provided operation ID. A UUID is generated when omitted. + /// + /// + /// CSV file name. Must end with .csv. + /// + /// + /// Base64-encoded CSV file content. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task CreateTableSheetFileImportAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + string fileName, + string fileContentBase64, + string? operationId = default, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::PromptLayer.CreateTableSheetFileImportRequest + { + OperationId = operationId, + FileName = fileName, + FileContentBase64 = fileContentBase64, + }; + + return await CreateTableSheetFileImportAsync( + tableId: tableId, + sheetId: sheetId, + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.CreateTableSheetOperation.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.CreateTableSheetOperation.g.cs new file mode 100644 index 0000000..960a237 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.CreateTableSheetOperation.g.cs @@ -0,0 +1,617 @@ + +#nullable enable + +namespace PromptLayer +{ + public partial class TablesClient + { + + + private static readonly global::PromptLayer.EndPointSecurityRequirement s_CreateTableSheetOperationSecurityRequirement0 = + new global::PromptLayer.EndPointSecurityRequirement + { + Authorizations = new global::PromptLayer.EndPointAuthorizationRequirement[] + { new global::PromptLayer.EndPointAuthorizationRequirement + { + Type = "ApiKey", + SchemeId = "ApikeyXApiKey", + Location = "Header", + Name = "X-API-KEY", + FriendlyName = "ApiKeyInHeader", + }, + }, + }; + private static readonly global::PromptLayer.EndPointSecurityRequirement[] s_CreateTableSheetOperationSecurityRequirements = + new global::PromptLayer.EndPointSecurityRequirement[] + { s_CreateTableSheetOperationSecurityRequirement0, + }; + partial void PrepareCreateTableSheetOperationArguments( + global::System.Net.Http.HttpClient httpClient, + ref global::System.Guid tableId, + ref global::System.Guid sheetId, + global::PromptLayer.CreateTableSheetOperationRequest request); + partial void PrepareCreateTableSheetOperationRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::System.Guid tableId, + global::System.Guid sheetId, + global::PromptLayer.CreateTableSheetOperationRequest request); + partial void ProcessCreateTableSheetOperationResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessCreateTableSheetOperationResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Create Table Sheet Operation
+ /// Queue a recalculation operation for selected columns, rows, and cell statuses. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task CreateTableSheetOperationAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + + global::PromptLayer.CreateTableSheetOperationRequest request, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await CreateTableSheetOperationAsResponseAsync( + tableId: tableId, + sheetId: sheetId, + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Create Table Sheet Operation
+ /// Queue a recalculation operation for selected columns, rows, and cell statuses. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> CreateTableSheetOperationAsResponseAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + + global::PromptLayer.CreateTableSheetOperationRequest request, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareCreateTableSheetOperationArguments( + httpClient: HttpClient, + tableId: ref tableId, + sheetId: ref sheetId, + request: request); + + + var __authorizations = global::PromptLayer.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateTableSheetOperationSecurityRequirements, + operationName: "CreateTableSheetOperationAsync"); + + using var __timeoutCancellationTokenSource = global::PromptLayer.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::PromptLayer.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::PromptLayer.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::PromptLayer.PathBuilder( + path: $"/api/public/v2/tables/{tableId}/sheets/{sheetId}/operations", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::PromptLayer.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::PromptLayer.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareCreateTableSheetOperationRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + tableId: tableId!, + sheetId: sheetId!, + request: request); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateTableSheetOperation", + methodName: "CreateTableSheetOperationAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/operations\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::PromptLayer.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateTableSheetOperation", + methodName: "CreateTableSheetOperationAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/operations\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::PromptLayer.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::PromptLayer.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::PromptLayer.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateTableSheetOperation", + methodName: "CreateTableSheetOperationAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/operations\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::PromptLayer.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessCreateTableSheetOperationResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateTableSheetOperation", + methodName: "CreateTableSheetOperationAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/operations\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateTableSheetOperation", + methodName: "CreateTableSheetOperationAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/operations\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Invalid request, query parameter, or workspace context. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::PromptLayer.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::PromptLayer.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::PromptLayer.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Authentication required. + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::PromptLayer.ErrorResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::PromptLayer.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::PromptLayer.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Table, sheet, or column not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::PromptLayer.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::PromptLayer.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::PromptLayer.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessCreateTableSheetOperationResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::PromptLayer.CreateTableSheetOperationResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::PromptLayer.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::PromptLayer.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::PromptLayer.CreateTableSheetOperationResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::PromptLayer.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::PromptLayer.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Create Table Sheet Operation
+ /// Queue a recalculation operation for selected columns, rows, and cell statuses. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// Default Value: recalculate + /// + /// + /// Columns to recalculate. Text columns cannot be recalculated. + /// + /// + /// Zero-based row indices to recalculate. If omitted, matching cells across all rows are considered. + /// + /// + /// Cell statuses to include. Defaults to stale cells. Pass an empty array to include all statuses. + /// + /// + /// Confirmation token returned when the operation exceeds the confirmation threshold. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task CreateTableSheetOperationAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + global::PromptLayer.CreateTableSheetOperationRequestOperation? operation = default, + global::System.Collections.Generic.IList? columnIds = default, + global::System.Collections.Generic.IList? rowIds = default, + global::System.Collections.Generic.IList? statuses = default, + string? confirmationToken = default, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::PromptLayer.CreateTableSheetOperationRequest + { + Operation = operation, + ColumnIds = columnIds, + RowIds = rowIds, + Statuses = statuses, + ConfirmationToken = confirmationToken, + }; + + return await CreateTableSheetOperationAsync( + tableId: tableId, + sheetId: sheetId, + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.CreateTableSheetRequestLogImport.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.CreateTableSheetRequestLogImport.g.cs new file mode 100644 index 0000000..205e108 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.CreateTableSheetRequestLogImport.g.cs @@ -0,0 +1,643 @@ + +#nullable enable + +namespace PromptLayer +{ + public partial class TablesClient + { + + + private static readonly global::PromptLayer.EndPointSecurityRequirement s_CreateTableSheetRequestLogImportSecurityRequirement0 = + new global::PromptLayer.EndPointSecurityRequirement + { + Authorizations = new global::PromptLayer.EndPointAuthorizationRequirement[] + { new global::PromptLayer.EndPointAuthorizationRequirement + { + Type = "ApiKey", + SchemeId = "ApikeyXApiKey", + Location = "Header", + Name = "X-API-KEY", + FriendlyName = "ApiKeyInHeader", + }, + }, + }; + private static readonly global::PromptLayer.EndPointSecurityRequirement[] s_CreateTableSheetRequestLogImportSecurityRequirements = + new global::PromptLayer.EndPointSecurityRequirement[] + { s_CreateTableSheetRequestLogImportSecurityRequirement0, + }; + partial void PrepareCreateTableSheetRequestLogImportArguments( + global::System.Net.Http.HttpClient httpClient, + ref global::System.Guid tableId, + ref global::System.Guid sheetId, + global::PromptLayer.CreateTableSheetRequestLogImportRequest request); + partial void PrepareCreateTableSheetRequestLogImportRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::System.Guid tableId, + global::System.Guid sheetId, + global::PromptLayer.CreateTableSheetRequestLogImportRequest request); + partial void ProcessCreateTableSheetRequestLogImportResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessCreateTableSheetRequestLogImportResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Import Request Logs Into Table Sheet
+ /// Start an asynchronous request-history import into an existing Table sheet. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task CreateTableSheetRequestLogImportAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + + global::PromptLayer.CreateTableSheetRequestLogImportRequest request, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await CreateTableSheetRequestLogImportAsResponseAsync( + tableId: tableId, + sheetId: sheetId, + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Import Request Logs Into Table Sheet
+ /// Start an asynchronous request-history import into an existing Table sheet. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> CreateTableSheetRequestLogImportAsResponseAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + + global::PromptLayer.CreateTableSheetRequestLogImportRequest request, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareCreateTableSheetRequestLogImportArguments( + httpClient: HttpClient, + tableId: ref tableId, + sheetId: ref sheetId, + request: request); + + + var __authorizations = global::PromptLayer.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateTableSheetRequestLogImportSecurityRequirements, + operationName: "CreateTableSheetRequestLogImportAsync"); + + using var __timeoutCancellationTokenSource = global::PromptLayer.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::PromptLayer.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::PromptLayer.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::PromptLayer.PathBuilder( + path: $"/api/public/v2/tables/{tableId}/sheets/{sheetId}/imports/request-logs", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::PromptLayer.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::PromptLayer.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareCreateTableSheetRequestLogImportRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + tableId: tableId!, + sheetId: sheetId!, + request: request); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateTableSheetRequestLogImport", + methodName: "CreateTableSheetRequestLogImportAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/imports/request-logs\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::PromptLayer.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateTableSheetRequestLogImport", + methodName: "CreateTableSheetRequestLogImportAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/imports/request-logs\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::PromptLayer.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::PromptLayer.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::PromptLayer.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateTableSheetRequestLogImport", + methodName: "CreateTableSheetRequestLogImportAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/imports/request-logs\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::PromptLayer.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessCreateTableSheetRequestLogImportResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateTableSheetRequestLogImport", + methodName: "CreateTableSheetRequestLogImportAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/imports/request-logs\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateTableSheetRequestLogImport", + methodName: "CreateTableSheetRequestLogImportAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/imports/request-logs\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Invalid request body, request logs, or workspace context. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::PromptLayer.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::PromptLayer.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::PromptLayer.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Authentication required. + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::PromptLayer.ErrorResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::PromptLayer.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::PromptLayer.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Table or sheet not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::PromptLayer.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::PromptLayer.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::PromptLayer.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessCreateTableSheetRequestLogImportResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::PromptLayer.TableSheetImportStartResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::PromptLayer.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::PromptLayer.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::PromptLayer.TableSheetImportStartResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::PromptLayer.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::PromptLayer.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Import Request Logs Into Table Sheet
+ /// Start an asynchronous request-history import into an existing Table sheet. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// Nested filter group with AND/OR logic. Use this for complex queries. + /// + /// + /// Free-text request-log search query applied with filter_group. + /// + /// + /// Field to sort matching request logs before import. + /// + /// + /// Sort direction. Must be provided together with sort_by. + /// + /// + /// Request-log query metadata key used by shared request-log query payloads. + /// + /// + /// Optional client-provided operation ID. A UUID is generated when omitted. + /// + /// + /// Specific request log IDs to import. + /// + /// + /// Input variable names to parse from matching request logs.
+ /// Default Value: [] + /// + /// + /// Additional request log fields to include as columns. + /// + /// + /// Maximum number of matching request logs to import. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task CreateTableSheetRequestLogImportAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + global::PromptLayer.StructuredFilterGroup? filterGroup = default, + string? q = default, + global::PromptLayer.CreateTableSheetRequestLogImportRequestSortBy? sortBy = default, + global::PromptLayer.CreateTableSheetRequestLogImportRequestSortOrder? sortOrder = default, + string? metadataCostBreakdownKey = default, + string? operationId = default, + global::System.Collections.Generic.IList? requestLogIds = default, + global::System.Collections.Generic.IList? variablesToParse = default, + global::System.Collections.Generic.IList? includeFields = default, + int? limit = default, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::PromptLayer.CreateTableSheetRequestLogImportRequest + { + FilterGroup = filterGroup, + Q = q, + SortBy = sortBy, + SortOrder = sortOrder, + MetadataCostBreakdownKey = metadataCostBreakdownKey, + OperationId = operationId, + RequestLogIds = requestLogIds, + VariablesToParse = variablesToParse, + IncludeFields = includeFields, + Limit = limit, + }; + + return await CreateTableSheetRequestLogImportAsync( + tableId: tableId, + sheetId: sheetId, + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.CreateTableSheetVersion.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.CreateTableSheetVersion.g.cs new file mode 100644 index 0000000..290c20b --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.CreateTableSheetVersion.g.cs @@ -0,0 +1,602 @@ + +#nullable enable + +namespace PromptLayer +{ + public partial class TablesClient + { + + + private static readonly global::PromptLayer.EndPointSecurityRequirement s_CreateTableSheetVersionSecurityRequirement0 = + new global::PromptLayer.EndPointSecurityRequirement + { + Authorizations = new global::PromptLayer.EndPointAuthorizationRequirement[] + { new global::PromptLayer.EndPointAuthorizationRequirement + { + Type = "ApiKey", + SchemeId = "ApikeyXApiKey", + Location = "Header", + Name = "X-API-KEY", + FriendlyName = "ApiKeyInHeader", + }, + }, + }; + private static readonly global::PromptLayer.EndPointSecurityRequirement[] s_CreateTableSheetVersionSecurityRequirements = + new global::PromptLayer.EndPointSecurityRequirement[] + { s_CreateTableSheetVersionSecurityRequirement0, + }; + partial void PrepareCreateTableSheetVersionArguments( + global::System.Net.Http.HttpClient httpClient, + ref global::System.Guid tableId, + ref global::System.Guid sheetId, + global::PromptLayer.CreateTableSheetVersionRequest request); + partial void PrepareCreateTableSheetVersionRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::System.Guid tableId, + global::System.Guid sheetId, + global::PromptLayer.CreateTableSheetVersionRequest request); + partial void ProcessCreateTableSheetVersionResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessCreateTableSheetVersionResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Create Table Sheet Version
+ /// Create a named Table sheet version, or restore from an existing version while creating a new version. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task CreateTableSheetVersionAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + + global::PromptLayer.CreateTableSheetVersionRequest request, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await CreateTableSheetVersionAsResponseAsync( + tableId: tableId, + sheetId: sheetId, + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Create Table Sheet Version
+ /// Create a named Table sheet version, or restore from an existing version while creating a new version. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> CreateTableSheetVersionAsResponseAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + + global::PromptLayer.CreateTableSheetVersionRequest request, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareCreateTableSheetVersionArguments( + httpClient: HttpClient, + tableId: ref tableId, + sheetId: ref sheetId, + request: request); + + + var __authorizations = global::PromptLayer.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateTableSheetVersionSecurityRequirements, + operationName: "CreateTableSheetVersionAsync"); + + using var __timeoutCancellationTokenSource = global::PromptLayer.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::PromptLayer.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::PromptLayer.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::PromptLayer.PathBuilder( + path: $"/api/public/v2/tables/{tableId}/sheets/{sheetId}/versions", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::PromptLayer.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::PromptLayer.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareCreateTableSheetVersionRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + tableId: tableId!, + sheetId: sheetId!, + request: request); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateTableSheetVersion", + methodName: "CreateTableSheetVersionAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/versions\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::PromptLayer.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateTableSheetVersion", + methodName: "CreateTableSheetVersionAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/versions\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::PromptLayer.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::PromptLayer.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::PromptLayer.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateTableSheetVersion", + methodName: "CreateTableSheetVersionAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/versions\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::PromptLayer.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessCreateTableSheetVersionResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateTableSheetVersion", + methodName: "CreateTableSheetVersionAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/versions\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateTableSheetVersion", + methodName: "CreateTableSheetVersionAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/versions\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Invalid request body or workspace context. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::PromptLayer.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::PromptLayer.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::PromptLayer.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Authentication required. + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::PromptLayer.ErrorResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::PromptLayer.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::PromptLayer.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Table, sheet, or source version not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::PromptLayer.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::PromptLayer.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::PromptLayer.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessCreateTableSheetVersionResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::PromptLayer.GetTableSheetVersionResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::PromptLayer.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::PromptLayer.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::PromptLayer.GetTableSheetVersionResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::PromptLayer.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::PromptLayer.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Create Table Sheet Version
+ /// Create a named Table sheet version, or restore from an existing version while creating a new version. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// Version name. Required when source_version_id is omitted. + /// + /// + /// Existing version to restore from while creating a new version. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task CreateTableSheetVersionAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + string? name = default, + global::System.Guid? sourceVersionId = default, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::PromptLayer.CreateTableSheetVersionRequest + { + Name = name, + SourceVersionId = sourceVersionId, + }; + + return await CreateTableSheetVersionAsync( + tableId: tableId, + sheetId: sheetId, + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.GetTableSheetOperationStatus.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.GetTableSheetOperationStatus.g.cs new file mode 100644 index 0000000..2a841ca --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.GetTableSheetOperationStatus.g.cs @@ -0,0 +1,518 @@ + +#nullable enable + +namespace PromptLayer +{ + public partial class TablesClient + { + + + private static readonly global::PromptLayer.EndPointSecurityRequirement s_GetTableSheetOperationStatusSecurityRequirement0 = + new global::PromptLayer.EndPointSecurityRequirement + { + Authorizations = new global::PromptLayer.EndPointAuthorizationRequirement[] + { new global::PromptLayer.EndPointAuthorizationRequirement + { + Type = "ApiKey", + SchemeId = "ApikeyXApiKey", + Location = "Header", + Name = "X-API-KEY", + FriendlyName = "ApiKeyInHeader", + }, + }, + }; + private static readonly global::PromptLayer.EndPointSecurityRequirement[] s_GetTableSheetOperationStatusSecurityRequirements = + new global::PromptLayer.EndPointSecurityRequirement[] + { s_GetTableSheetOperationStatusSecurityRequirement0, + }; + partial void PrepareGetTableSheetOperationStatusArguments( + global::System.Net.Http.HttpClient httpClient, + ref global::System.Guid tableId, + ref global::System.Guid sheetId, + ref string operationId); + partial void PrepareGetTableSheetOperationStatusRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::System.Guid tableId, + global::System.Guid sheetId, + string operationId); + partial void ProcessGetTableSheetOperationStatusResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetTableSheetOperationStatusResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get Table Sheet Operation
+ /// Poll a Table sheet recalculation operation by operation ID. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task GetTableSheetOperationStatusAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + string operationId, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await GetTableSheetOperationStatusAsResponseAsync( + tableId: tableId, + sheetId: sheetId, + operationId: operationId, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Get Table Sheet Operation
+ /// Poll a Table sheet recalculation operation by operation ID. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> GetTableSheetOperationStatusAsResponseAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + string operationId, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetTableSheetOperationStatusArguments( + httpClient: HttpClient, + tableId: ref tableId, + sheetId: ref sheetId, + operationId: ref operationId); + + + var __authorizations = global::PromptLayer.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetTableSheetOperationStatusSecurityRequirements, + operationName: "GetTableSheetOperationStatusAsync"); + + using var __timeoutCancellationTokenSource = global::PromptLayer.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::PromptLayer.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::PromptLayer.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::PromptLayer.PathBuilder( + path: $"/api/public/v2/tables/{tableId}/sheets/{sheetId}/operations/{operationId}", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::PromptLayer.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::PromptLayer.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGetTableSheetOperationStatusRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + tableId: tableId!, + sheetId: sheetId!, + operationId: operationId!); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetTableSheetOperationStatus", + methodName: "GetTableSheetOperationStatusAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/operations/{operationId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::PromptLayer.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetTableSheetOperationStatus", + methodName: "GetTableSheetOperationStatusAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/operations/{operationId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::PromptLayer.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::PromptLayer.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::PromptLayer.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetTableSheetOperationStatus", + methodName: "GetTableSheetOperationStatusAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/operations/{operationId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::PromptLayer.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessGetTableSheetOperationStatusResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetTableSheetOperationStatus", + methodName: "GetTableSheetOperationStatusAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/operations/{operationId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetTableSheetOperationStatus", + methodName: "GetTableSheetOperationStatusAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/operations/{operationId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Invalid workspace context. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::PromptLayer.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::PromptLayer.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::PromptLayer.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Table, sheet, or operation not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::PromptLayer.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::PromptLayer.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::PromptLayer.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetTableSheetOperationStatusResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::PromptLayer.GetTableSheetOperationResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::PromptLayer.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::PromptLayer.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::PromptLayer.GetTableSheetOperationResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::PromptLayer.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::PromptLayer.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.GetTableSheetScore.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.GetTableSheetScore.g.cs new file mode 100644 index 0000000..fe83a8a --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.GetTableSheetScore.g.cs @@ -0,0 +1,509 @@ + +#nullable enable + +namespace PromptLayer +{ + public partial class TablesClient + { + + + private static readonly global::PromptLayer.EndPointSecurityRequirement s_GetTableSheetScoreSecurityRequirement0 = + new global::PromptLayer.EndPointSecurityRequirement + { + Authorizations = new global::PromptLayer.EndPointAuthorizationRequirement[] + { new global::PromptLayer.EndPointAuthorizationRequirement + { + Type = "ApiKey", + SchemeId = "ApikeyXApiKey", + Location = "Header", + Name = "X-API-KEY", + FriendlyName = "ApiKeyInHeader", + }, + }, + }; + private static readonly global::PromptLayer.EndPointSecurityRequirement[] s_GetTableSheetScoreSecurityRequirements = + new global::PromptLayer.EndPointSecurityRequirement[] + { s_GetTableSheetScoreSecurityRequirement0, + }; + partial void PrepareGetTableSheetScoreArguments( + global::System.Net.Http.HttpClient httpClient, + ref global::System.Guid tableId, + ref global::System.Guid sheetId); + partial void PrepareGetTableSheetScoreRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::System.Guid tableId, + global::System.Guid sheetId); + partial void ProcessGetTableSheetScoreResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetTableSheetScoreResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get Table Sheet Score
+ /// Retrieve the current score payload for a Table sheet. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task GetTableSheetScoreAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await GetTableSheetScoreAsResponseAsync( + tableId: tableId, + sheetId: sheetId, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Get Table Sheet Score
+ /// Retrieve the current score payload for a Table sheet. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> GetTableSheetScoreAsResponseAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetTableSheetScoreArguments( + httpClient: HttpClient, + tableId: ref tableId, + sheetId: ref sheetId); + + + var __authorizations = global::PromptLayer.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetTableSheetScoreSecurityRequirements, + operationName: "GetTableSheetScoreAsync"); + + using var __timeoutCancellationTokenSource = global::PromptLayer.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::PromptLayer.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::PromptLayer.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::PromptLayer.PathBuilder( + path: $"/api/public/v2/tables/{tableId}/sheets/{sheetId}/score", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::PromptLayer.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::PromptLayer.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGetTableSheetScoreRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + tableId: tableId!, + sheetId: sheetId!); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetTableSheetScore", + methodName: "GetTableSheetScoreAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/score\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::PromptLayer.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetTableSheetScore", + methodName: "GetTableSheetScoreAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/score\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::PromptLayer.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::PromptLayer.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::PromptLayer.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetTableSheetScore", + methodName: "GetTableSheetScoreAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/score\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::PromptLayer.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessGetTableSheetScoreResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetTableSheetScore", + methodName: "GetTableSheetScoreAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/score\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetTableSheetScore", + methodName: "GetTableSheetScoreAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/score\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Invalid workspace context. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::PromptLayer.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::PromptLayer.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::PromptLayer.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Table or sheet not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::PromptLayer.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::PromptLayer.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::PromptLayer.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetTableSheetScoreResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::PromptLayer.TableSheetScoreResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::PromptLayer.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::PromptLayer.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::PromptLayer.TableSheetScoreResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::PromptLayer.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::PromptLayer.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.GetTableSheetVersion.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.GetTableSheetVersion.g.cs new file mode 100644 index 0000000..74fb721 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.GetTableSheetVersion.g.cs @@ -0,0 +1,518 @@ + +#nullable enable + +namespace PromptLayer +{ + public partial class TablesClient + { + + + private static readonly global::PromptLayer.EndPointSecurityRequirement s_GetTableSheetVersionSecurityRequirement0 = + new global::PromptLayer.EndPointSecurityRequirement + { + Authorizations = new global::PromptLayer.EndPointAuthorizationRequirement[] + { new global::PromptLayer.EndPointAuthorizationRequirement + { + Type = "ApiKey", + SchemeId = "ApikeyXApiKey", + Location = "Header", + Name = "X-API-KEY", + FriendlyName = "ApiKeyInHeader", + }, + }, + }; + private static readonly global::PromptLayer.EndPointSecurityRequirement[] s_GetTableSheetVersionSecurityRequirements = + new global::PromptLayer.EndPointSecurityRequirement[] + { s_GetTableSheetVersionSecurityRequirement0, + }; + partial void PrepareGetTableSheetVersionArguments( + global::System.Net.Http.HttpClient httpClient, + ref global::System.Guid tableId, + ref global::System.Guid sheetId, + ref global::System.Guid versionId); + partial void PrepareGetTableSheetVersionRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::System.Guid tableId, + global::System.Guid sheetId, + global::System.Guid versionId); + partial void ProcessGetTableSheetVersionResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetTableSheetVersionResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get Table Sheet Version
+ /// Retrieve one Table sheet version, including its snapshot. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task GetTableSheetVersionAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + global::System.Guid versionId, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await GetTableSheetVersionAsResponseAsync( + tableId: tableId, + sheetId: sheetId, + versionId: versionId, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Get Table Sheet Version
+ /// Retrieve one Table sheet version, including its snapshot. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> GetTableSheetVersionAsResponseAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + global::System.Guid versionId, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetTableSheetVersionArguments( + httpClient: HttpClient, + tableId: ref tableId, + sheetId: ref sheetId, + versionId: ref versionId); + + + var __authorizations = global::PromptLayer.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetTableSheetVersionSecurityRequirements, + operationName: "GetTableSheetVersionAsync"); + + using var __timeoutCancellationTokenSource = global::PromptLayer.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::PromptLayer.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::PromptLayer.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::PromptLayer.PathBuilder( + path: $"/api/public/v2/tables/{tableId}/sheets/{sheetId}/versions/{versionId}", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::PromptLayer.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::PromptLayer.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGetTableSheetVersionRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + tableId: tableId!, + sheetId: sheetId!, + versionId: versionId!); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetTableSheetVersion", + methodName: "GetTableSheetVersionAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/versions/{versionId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::PromptLayer.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetTableSheetVersion", + methodName: "GetTableSheetVersionAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/versions/{versionId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::PromptLayer.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::PromptLayer.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::PromptLayer.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetTableSheetVersion", + methodName: "GetTableSheetVersionAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/versions/{versionId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::PromptLayer.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessGetTableSheetVersionResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetTableSheetVersion", + methodName: "GetTableSheetVersionAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/versions/{versionId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetTableSheetVersion", + methodName: "GetTableSheetVersionAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/versions/{versionId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Invalid workspace context. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::PromptLayer.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::PromptLayer.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::PromptLayer.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Table, sheet, or version not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::PromptLayer.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::PromptLayer.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::PromptLayer.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetTableSheetVersionResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::PromptLayer.GetTableSheetVersionResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::PromptLayer.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::PromptLayer.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::PromptLayer.GetTableSheetVersionResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::PromptLayer.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::PromptLayer.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.GetTableSheetVersionScoreHistory.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.GetTableSheetVersionScoreHistory.g.cs new file mode 100644 index 0000000..ef9e479 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.GetTableSheetVersionScoreHistory.g.cs @@ -0,0 +1,553 @@ + +#nullable enable + +namespace PromptLayer +{ + public partial class TablesClient + { + + + private static readonly global::PromptLayer.EndPointSecurityRequirement s_GetTableSheetVersionScoreHistorySecurityRequirement0 = + new global::PromptLayer.EndPointSecurityRequirement + { + Authorizations = new global::PromptLayer.EndPointAuthorizationRequirement[] + { new global::PromptLayer.EndPointAuthorizationRequirement + { + Type = "ApiKey", + SchemeId = "ApikeyXApiKey", + Location = "Header", + Name = "X-API-KEY", + FriendlyName = "ApiKeyInHeader", + }, + }, + }; + private static readonly global::PromptLayer.EndPointSecurityRequirement[] s_GetTableSheetVersionScoreHistorySecurityRequirements = + new global::PromptLayer.EndPointSecurityRequirement[] + { s_GetTableSheetVersionScoreHistorySecurityRequirement0, + }; + partial void PrepareGetTableSheetVersionScoreHistoryArguments( + global::System.Net.Http.HttpClient httpClient, + ref global::System.Guid tableId, + ref global::System.Guid sheetId, + ref int? maxPoints, + ref global::PromptLayer.GetTableSheetVersionScoreHistoryRange? range, + ref global::PromptLayer.GetTableSheetVersionScoreHistoryResolution? resolution); + partial void PrepareGetTableSheetVersionScoreHistoryRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::System.Guid tableId, + global::System.Guid sheetId, + int? maxPoints, + global::PromptLayer.GetTableSheetVersionScoreHistoryRange? range, + global::PromptLayer.GetTableSheetVersionScoreHistoryResolution? resolution); + partial void ProcessGetTableSheetVersionScoreHistoryResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetTableSheetVersionScoreHistoryResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get Table Sheet Score History
+ /// Retrieve score-history points across Table sheet versions. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// Default Value: 1200 + /// + /// + /// Default Value: all + /// + /// + /// Default Value: auto + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task GetTableSheetVersionScoreHistoryAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + int? maxPoints = default, + global::PromptLayer.GetTableSheetVersionScoreHistoryRange? range = default, + global::PromptLayer.GetTableSheetVersionScoreHistoryResolution? resolution = default, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await GetTableSheetVersionScoreHistoryAsResponseAsync( + tableId: tableId, + sheetId: sheetId, + maxPoints: maxPoints, + range: range, + resolution: resolution, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Get Table Sheet Score History
+ /// Retrieve score-history points across Table sheet versions. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// Default Value: 1200 + /// + /// + /// Default Value: all + /// + /// + /// Default Value: auto + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> GetTableSheetVersionScoreHistoryAsResponseAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + int? maxPoints = default, + global::PromptLayer.GetTableSheetVersionScoreHistoryRange? range = default, + global::PromptLayer.GetTableSheetVersionScoreHistoryResolution? resolution = default, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetTableSheetVersionScoreHistoryArguments( + httpClient: HttpClient, + tableId: ref tableId, + sheetId: ref sheetId, + maxPoints: ref maxPoints, + range: ref range, + resolution: ref resolution); + + + var __authorizations = global::PromptLayer.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetTableSheetVersionScoreHistorySecurityRequirements, + operationName: "GetTableSheetVersionScoreHistoryAsync"); + + using var __timeoutCancellationTokenSource = global::PromptLayer.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::PromptLayer.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::PromptLayer.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::PromptLayer.PathBuilder( + path: $"/api/public/v2/tables/{tableId}/sheets/{sheetId}/versions/score-history", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("max_points", maxPoints?.ToString()) + .AddOptionalParameter("range", range?.ToValueString()) + .AddOptionalParameter("resolution", resolution?.ToValueString()) + ; + var __path = __pathBuilder.ToString(); + __path = global::PromptLayer.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::PromptLayer.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGetTableSheetVersionScoreHistoryRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + tableId: tableId!, + sheetId: sheetId!, + maxPoints: maxPoints, + range: range, + resolution: resolution); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetTableSheetVersionScoreHistory", + methodName: "GetTableSheetVersionScoreHistoryAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/versions/score-history\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::PromptLayer.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetTableSheetVersionScoreHistory", + methodName: "GetTableSheetVersionScoreHistoryAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/versions/score-history\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::PromptLayer.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::PromptLayer.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::PromptLayer.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetTableSheetVersionScoreHistory", + methodName: "GetTableSheetVersionScoreHistoryAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/versions/score-history\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::PromptLayer.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessGetTableSheetVersionScoreHistoryResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetTableSheetVersionScoreHistory", + methodName: "GetTableSheetVersionScoreHistoryAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/versions/score-history\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetTableSheetVersionScoreHistory", + methodName: "GetTableSheetVersionScoreHistoryAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/versions/score-history\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Invalid query parameter or workspace context. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::PromptLayer.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::PromptLayer.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::PromptLayer.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Table or sheet not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::PromptLayer.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::PromptLayer.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::PromptLayer.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetTableSheetVersionScoreHistoryResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::PromptLayer.TableSheetScoreHistoryResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::PromptLayer.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::PromptLayer.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::PromptLayer.TableSheetScoreHistoryResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::PromptLayer.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::PromptLayer.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.ListTableSheetOperations.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.ListTableSheetOperations.g.cs new file mode 100644 index 0000000..a622835 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.ListTableSheetOperations.g.cs @@ -0,0 +1,509 @@ + +#nullable enable + +namespace PromptLayer +{ + public partial class TablesClient + { + + + private static readonly global::PromptLayer.EndPointSecurityRequirement s_ListTableSheetOperationsSecurityRequirement0 = + new global::PromptLayer.EndPointSecurityRequirement + { + Authorizations = new global::PromptLayer.EndPointAuthorizationRequirement[] + { new global::PromptLayer.EndPointAuthorizationRequirement + { + Type = "ApiKey", + SchemeId = "ApikeyXApiKey", + Location = "Header", + Name = "X-API-KEY", + FriendlyName = "ApiKeyInHeader", + }, + }, + }; + private static readonly global::PromptLayer.EndPointSecurityRequirement[] s_ListTableSheetOperationsSecurityRequirements = + new global::PromptLayer.EndPointSecurityRequirement[] + { s_ListTableSheetOperationsSecurityRequirement0, + }; + partial void PrepareListTableSheetOperationsArguments( + global::System.Net.Http.HttpClient httpClient, + ref global::System.Guid tableId, + ref global::System.Guid sheetId); + partial void PrepareListTableSheetOperationsRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::System.Guid tableId, + global::System.Guid sheetId); + partial void ProcessListTableSheetOperationsResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessListTableSheetOperationsResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// List Table Sheet Operations
+ /// List active recalculation operations and cell status counts for a Table sheet. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task ListTableSheetOperationsAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await ListTableSheetOperationsAsResponseAsync( + tableId: tableId, + sheetId: sheetId, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// List Table Sheet Operations
+ /// List active recalculation operations and cell status counts for a Table sheet. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> ListTableSheetOperationsAsResponseAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareListTableSheetOperationsArguments( + httpClient: HttpClient, + tableId: ref tableId, + sheetId: ref sheetId); + + + var __authorizations = global::PromptLayer.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListTableSheetOperationsSecurityRequirements, + operationName: "ListTableSheetOperationsAsync"); + + using var __timeoutCancellationTokenSource = global::PromptLayer.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::PromptLayer.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::PromptLayer.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::PromptLayer.PathBuilder( + path: $"/api/public/v2/tables/{tableId}/sheets/{sheetId}/operations", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::PromptLayer.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::PromptLayer.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareListTableSheetOperationsRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + tableId: tableId!, + sheetId: sheetId!); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListTableSheetOperations", + methodName: "ListTableSheetOperationsAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/operations\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::PromptLayer.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListTableSheetOperations", + methodName: "ListTableSheetOperationsAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/operations\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::PromptLayer.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::PromptLayer.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::PromptLayer.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListTableSheetOperations", + methodName: "ListTableSheetOperationsAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/operations\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::PromptLayer.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessListTableSheetOperationsResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListTableSheetOperations", + methodName: "ListTableSheetOperationsAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/operations\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListTableSheetOperations", + methodName: "ListTableSheetOperationsAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/operations\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Invalid workspace context. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::PromptLayer.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::PromptLayer.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::PromptLayer.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Table or sheet not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::PromptLayer.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::PromptLayer.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::PromptLayer.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessListTableSheetOperationsResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::PromptLayer.ListTableSheetOperationsResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::PromptLayer.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::PromptLayer.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::PromptLayer.ListTableSheetOperationsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::PromptLayer.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::PromptLayer.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.ListTableSheetVersions.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.ListTableSheetVersions.g.cs new file mode 100644 index 0000000..8e7bfa8 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.ListTableSheetVersions.g.cs @@ -0,0 +1,563 @@ + +#nullable enable + +namespace PromptLayer +{ + public partial class TablesClient + { + + + private static readonly global::PromptLayer.EndPointSecurityRequirement s_ListTableSheetVersionsSecurityRequirement0 = + new global::PromptLayer.EndPointSecurityRequirement + { + Authorizations = new global::PromptLayer.EndPointAuthorizationRequirement[] + { new global::PromptLayer.EndPointAuthorizationRequirement + { + Type = "ApiKey", + SchemeId = "ApikeyXApiKey", + Location = "Header", + Name = "X-API-KEY", + FriendlyName = "ApiKeyInHeader", + }, + }, + }; + private static readonly global::PromptLayer.EndPointSecurityRequirement[] s_ListTableSheetVersionsSecurityRequirements = + new global::PromptLayer.EndPointSecurityRequirement[] + { s_ListTableSheetVersionsSecurityRequirement0, + }; + partial void PrepareListTableSheetVersionsArguments( + global::System.Net.Http.HttpClient httpClient, + ref global::System.Guid tableId, + ref global::System.Guid sheetId, + ref string? cursor, + ref int? limit, + ref global::PromptLayer.ListTableSheetVersionsSort? sort, + ref global::PromptLayer.ListTableSheetVersionsOrder? order); + partial void PrepareListTableSheetVersionsRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::System.Guid tableId, + global::System.Guid sheetId, + string? cursor, + int? limit, + global::PromptLayer.ListTableSheetVersionsSort? sort, + global::PromptLayer.ListTableSheetVersionsOrder? order); + partial void ProcessListTableSheetVersionsResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessListTableSheetVersionsResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// List Table Sheet Versions
+ /// List saved versions for a Table sheet. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// + /// Default Value: 20 + /// + /// + /// Default Value: version_number + /// + /// + /// Default Value: desc + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task ListTableSheetVersionsAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + string? cursor = default, + int? limit = default, + global::PromptLayer.ListTableSheetVersionsSort? sort = default, + global::PromptLayer.ListTableSheetVersionsOrder? order = default, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await ListTableSheetVersionsAsResponseAsync( + tableId: tableId, + sheetId: sheetId, + cursor: cursor, + limit: limit, + sort: sort, + order: order, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// List Table Sheet Versions
+ /// List saved versions for a Table sheet. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// + /// + /// Default Value: 20 + /// + /// + /// Default Value: version_number + /// + /// + /// Default Value: desc + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> ListTableSheetVersionsAsResponseAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + string? cursor = default, + int? limit = default, + global::PromptLayer.ListTableSheetVersionsSort? sort = default, + global::PromptLayer.ListTableSheetVersionsOrder? order = default, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareListTableSheetVersionsArguments( + httpClient: HttpClient, + tableId: ref tableId, + sheetId: ref sheetId, + cursor: ref cursor, + limit: ref limit, + sort: ref sort, + order: ref order); + + + var __authorizations = global::PromptLayer.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListTableSheetVersionsSecurityRequirements, + operationName: "ListTableSheetVersionsAsync"); + + using var __timeoutCancellationTokenSource = global::PromptLayer.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::PromptLayer.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::PromptLayer.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::PromptLayer.PathBuilder( + path: $"/api/public/v2/tables/{tableId}/sheets/{sheetId}/versions", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("cursor", cursor) + .AddOptionalParameter("limit", limit?.ToString()) + .AddOptionalParameter("sort", sort?.ToValueString()) + .AddOptionalParameter("order", order?.ToValueString()) + ; + var __path = __pathBuilder.ToString(); + __path = global::PromptLayer.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::PromptLayer.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareListTableSheetVersionsRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + tableId: tableId!, + sheetId: sheetId!, + cursor: cursor, + limit: limit, + sort: sort, + order: order); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListTableSheetVersions", + methodName: "ListTableSheetVersionsAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/versions\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::PromptLayer.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListTableSheetVersions", + methodName: "ListTableSheetVersionsAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/versions\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::PromptLayer.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::PromptLayer.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::PromptLayer.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListTableSheetVersions", + methodName: "ListTableSheetVersionsAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/versions\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::PromptLayer.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessListTableSheetVersionsResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListTableSheetVersions", + methodName: "ListTableSheetVersionsAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/versions\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListTableSheetVersions", + methodName: "ListTableSheetVersionsAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/versions\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Invalid cursor, query parameter, sort/order, filter set, or workspace context. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::PromptLayer.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::PromptLayer.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::PromptLayer.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Table or sheet not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::PromptLayer.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::PromptLayer.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::PromptLayer.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessListTableSheetVersionsResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::PromptLayer.ListTableSheetVersionsResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::PromptLayer.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::PromptLayer.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::PromptLayer.ListTableSheetVersionsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::PromptLayer.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::PromptLayer.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.RecalculateTableSheetScore.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.RecalculateTableSheetScore.g.cs new file mode 100644 index 0000000..959d466 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.RecalculateTableSheetScore.g.cs @@ -0,0 +1,546 @@ + +#nullable enable + +namespace PromptLayer +{ + public partial class TablesClient + { + + + private static readonly global::PromptLayer.EndPointSecurityRequirement s_RecalculateTableSheetScoreSecurityRequirement0 = + new global::PromptLayer.EndPointSecurityRequirement + { + Authorizations = new global::PromptLayer.EndPointAuthorizationRequirement[] + { new global::PromptLayer.EndPointAuthorizationRequirement + { + Type = "ApiKey", + SchemeId = "ApikeyXApiKey", + Location = "Header", + Name = "X-API-KEY", + FriendlyName = "ApiKeyInHeader", + }, + }, + }; + private static readonly global::PromptLayer.EndPointSecurityRequirement[] s_RecalculateTableSheetScoreSecurityRequirements = + new global::PromptLayer.EndPointSecurityRequirement[] + { s_RecalculateTableSheetScoreSecurityRequirement0, + }; + partial void PrepareRecalculateTableSheetScoreArguments( + global::System.Net.Http.HttpClient httpClient, + ref global::System.Guid tableId, + ref global::System.Guid sheetId); + partial void PrepareRecalculateTableSheetScoreRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::System.Guid tableId, + global::System.Guid sheetId); + partial void ProcessRecalculateTableSheetScoreResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessRecalculateTableSheetScoreResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Recalculate Table Sheet Score
+ /// Queue recalculation for an existing Table sheet score configuration. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task RecalculateTableSheetScoreAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await RecalculateTableSheetScoreAsResponseAsync( + tableId: tableId, + sheetId: sheetId, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Recalculate Table Sheet Score
+ /// Queue recalculation for an existing Table sheet score configuration. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace. + ///
+ /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> RecalculateTableSheetScoreAsResponseAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareRecalculateTableSheetScoreArguments( + httpClient: HttpClient, + tableId: ref tableId, + sheetId: ref sheetId); + + + var __authorizations = global::PromptLayer.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_RecalculateTableSheetScoreSecurityRequirements, + operationName: "RecalculateTableSheetScoreAsync"); + + using var __timeoutCancellationTokenSource = global::PromptLayer.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::PromptLayer.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::PromptLayer.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::PromptLayer.PathBuilder( + path: $"/api/public/v2/tables/{tableId}/sheets/{sheetId}/score", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::PromptLayer.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::PromptLayer.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareRecalculateTableSheetScoreRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + tableId: tableId!, + sheetId: sheetId!); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "RecalculateTableSheetScore", + methodName: "RecalculateTableSheetScoreAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/score\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::PromptLayer.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "RecalculateTableSheetScore", + methodName: "RecalculateTableSheetScoreAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/score\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::PromptLayer.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::PromptLayer.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::PromptLayer.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "RecalculateTableSheetScore", + methodName: "RecalculateTableSheetScoreAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/score\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::PromptLayer.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessRecalculateTableSheetScoreResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "RecalculateTableSheetScore", + methodName: "RecalculateTableSheetScoreAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/score\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "RecalculateTableSheetScore", + methodName: "RecalculateTableSheetScoreAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/score\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Score is not configured or score configuration is invalid. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::PromptLayer.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::PromptLayer.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::PromptLayer.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Table or sheet not found. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::PromptLayer.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::PromptLayer.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::PromptLayer.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Failed to queue score calculation. + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::PromptLayer.ErrorResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::PromptLayer.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::PromptLayer.ErrorResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessRecalculateTableSheetScoreResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::PromptLayer.RecalculateTableSheetScoreResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::PromptLayer.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::PromptLayer.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::PromptLayer.RecalculateTableSheetScoreResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::PromptLayer.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::PromptLayer.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.g.cs new file mode 100644 index 0000000..20b7b14 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.g.cs @@ -0,0 +1,136 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// If no httpClient is provided, a new one will be created.
+ /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + ///
+ public sealed partial class TablesClient : global::PromptLayer.ITablesClient, global::System.IDisposable + { + /// + /// + /// + public const string DefaultBaseUrl = "https://api.promptlayer.com/"; + + private bool _disposeHttpClient = true; + + /// + public global::System.Net.Http.HttpClient HttpClient { get; } + + /// + public System.Uri? BaseUri => HttpClient.BaseAddress; + + /// + public global::System.Collections.Generic.List Authorizations { get; } + + /// + public bool ReadResponseAsString { get; set; } +#if DEBUG + = true; +#endif + + /// + public global::PromptLayer.AutoSDKClientOptions Options { get; } + /// + /// + /// + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::PromptLayer.SourceGenerationContext.Default; + + + /// + /// Creates a new instance of the TablesClient. + /// If no httpClient is provided, a new one will be created. + /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. + /// The authorizations to use for the requests. + /// Dispose the HttpClient when the instance is disposed. True by default. + public TablesClient( + global::System.Net.Http.HttpClient? httpClient = null, + global::System.Uri? baseUri = null, + global::System.Collections.Generic.List? authorizations = null, + bool disposeHttpClient = true) : this( + httpClient, + baseUri, + authorizations, + options: null, + disposeHttpClient: disposeHttpClient) + { + } + + /// + /// Creates a new instance of the TablesClient with explicit options but no base URL override. + /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public TablesClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Collections.Generic.List? authorizations, + global::PromptLayer.AutoSDKClientOptions? options, + bool disposeHttpClient = true) : this( + httpClient, + baseUri: null, + authorizations, + options, + disposeHttpClient: disposeHttpClient) + { + } + + /// + /// Creates a new instance of the TablesClient. + /// If no httpClient is provided, a new one will be created. + /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public TablesClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Uri? baseUri, + global::System.Collections.Generic.List? authorizations, + global::PromptLayer.AutoSDKClientOptions? options, + bool disposeHttpClient = true) + { + + HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); + HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl); + Authorizations = authorizations ?? new global::System.Collections.Generic.List(); + Options = options ?? new global::PromptLayer.AutoSDKClientOptions(); + _disposeHttpClient = disposeHttpClient; + + Initialized(HttpClient); + } + + /// + public void Dispose() + { + if (_disposeHttpClient) + { + HttpClient.Dispose(); + } + } + + partial void Initialized( + global::System.Net.Http.HttpClient client); + partial void PrepareArguments( + global::System.Net.Http.HttpClient client); + partial void PrepareRequest( + global::System.Net.Http.HttpClient client, + global::System.Net.Http.HttpRequestMessage request); + partial void ProcessResponse( + global::System.Net.Http.HttpClient client, + global::System.Net.Http.HttpResponseMessage response); + partial void ProcessResponseContent( + global::System.Net.Http.HttpClient client, + global::System.Net.Http.HttpResponseMessage response, + ref string content); + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/openapi.json b/src/libs/PromptLayer/openapi.json index 48f399b..41e09d2 100644 --- a/src/libs/PromptLayer/openapi.json +++ b/src/libs/PromptLayer/openapi.json @@ -9787,7 +9787,7 @@ "smart-tables" ], "summary": "Create Table", - "description": "Create a new Table. A default sheet with one text column is created automatically.", + "description": "Create a new Table. A default sheet with one text column is created automatically. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace.", "operationId": "create_table", "requestBody": { "required": false, @@ -9866,7 +9866,7 @@ "smart-tables" ], "summary": "List Tables", - "description": "List Tables in the workspace. Supports cursor-based pagination and optional filtering by folder or prompt column.", + "description": "List Tables in the workspace. Supports cursor-based pagination and optional filtering by folder or prompt column. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace.", "operationId": "list_tables", "parameters": [ { @@ -10034,7 +10034,8 @@ "422": { "$ref": "#/components/responses/ValidationError" } - } + }, + "description": "Get Table. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace." }, "patch": { "tags": [ @@ -10108,7 +10109,8 @@ "422": { "$ref": "#/components/responses/ValidationError" } - } + }, + "description": "Update Table. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace." } }, "/api/public/v2/tables/{table_id}/sheets": { @@ -10117,7 +10119,7 @@ "smart-tables" ], "summary": "List Sheets", - "description": "List all sheets in a table, ordered by their index.", + "description": "List all sheets in a table, ordered by their index. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace.", "operationId": "list_table_sheets", "parameters": [ { @@ -10235,7 +10237,7 @@ "smart-tables" ], "summary": "Create Sheet", - "description": "Create a new sheet in a table by importing data from a file (CSV or JSON, base64-encoded) or from request log history.", + "description": "Create a new sheet in a table by importing data from a file (CSV or JSON, base64-encoded) or from request log history. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace.", "operationId": "create_table_sheet", "parameters": [ { @@ -10416,7 +10418,7 @@ "smart-tables" ], "summary": "Get Sheet Import Operation", - "description": "Poll the status of an asynchronous sheet import operation.", + "description": "Poll the status of an asynchronous sheet import operation. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace.", "operationId": "get_table_sheet_operation", "parameters": [ { @@ -10531,7 +10533,8 @@ } } } - } + }, + "description": "Get Sheet. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace." }, "patch": { "tags": [ @@ -10595,7 +10598,8 @@ "$ref": "#/components/schemas/Sheet" }, "version": { - "type": "integer" + "type": "integer", + "description": "Current sheet version_count for this response. It matches the sheet's version_count after any committed changes." } } } @@ -10615,7 +10619,8 @@ } } } - } + }, + "description": "Update Sheet. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace." } }, "/api/public/v2/tables/{table_id}/sheets/{sheet_id}/columns": { @@ -10624,7 +10629,7 @@ "smart-tables" ], "summary": "List Columns", - "description": "List columns in a sheet, ordered by position rank. By default, system-managed metadata columns such as price and latency columns are excluded; pass `include_system_columns=true` to include them.", + "description": "List columns in a sheet, ordered by position rank. By default, system-managed metadata columns such as price and latency columns are excluded; pass `include_system_columns=true` to include them. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace.", "operationId": "list_table_sheet_columns", "parameters": [ { @@ -10721,7 +10726,7 @@ "smart-tables" ], "summary": "Create Column", - "description": "Add a new column to a sheet. Non-text columns will generate cells for all existing rows.", + "description": "Add a new column to a sheet. Non-text columns will generate cells for all existing rows. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace.", "operationId": "create_table_sheet_column", "parameters": [ { @@ -10829,7 +10834,8 @@ } }, "version": { - "type": "integer" + "type": "integer", + "description": "Current sheet version_count for this response. It matches the sheet's version_count after any committed changes." } } } @@ -10871,7 +10877,7 @@ "smart-tables" ], "summary": "Update Column", - "description": "Update a column's title, config, or dependencies. Returns `requires_recalculation: true` when the change invalidates existing cell values.", + "description": "Update a column's title, config, or dependencies. Returns `requires_recalculation: true` when the change invalidates existing cell values. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace.", "operationId": "update_table_sheet_column", "parameters": [ { @@ -10975,7 +10981,8 @@ } }, "version": { - "type": "integer" + "type": "integer", + "description": "Current sheet version_count for this response. It matches the sheet's version_count after any committed changes." } } } @@ -11014,7 +11021,7 @@ "smart-tables" ], "summary": "List Rows", - "description": "List rows in a sheet, each containing a map of column_id to cell. For prompt-template column cells, each cell can include a `request_metrics` object with price, latency, and token usage when available. Pass `include_columns=true` on the first page to receive column metadata alongside rows.", + "description": "List rows in a sheet, each containing a map of column_id to cell. For prompt-template column cells, each cell can include a `request_metrics` object with price, latency, and token usage when available. Pass `include_columns=true` on the first page to receive column metadata alongside rows. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace.", "operationId": "list_table_sheet_rows", "parameters": [ { @@ -11150,7 +11157,8 @@ } }, "version": { - "type": "integer" + "type": "integer", + "description": "Current sheet version_count for this response. It matches the sheet's version_count after any committed changes." }, "execution_metadata_aggregates": { "allOf": [ @@ -11185,7 +11193,7 @@ "smart-tables" ], "summary": "Add Rows", - "description": "Append one or more rows to a sheet. Text column values can be set immediately; non-text column cells are created with `stale` status and must be triggered via a recalculation.", + "description": "Append one or more rows to a sheet. Text column values can be set immediately; non-text column cells are created with `stale` status and must be triggered via a recalculation. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace.", "operationId": "add_table_sheet_rows", "parameters": [ { @@ -11282,7 +11290,8 @@ "type": "integer" }, "version": { - "type": "integer" + "type": "integer", + "description": "Current sheet version_count for this response. It matches the sheet's version_count after any committed changes." } } } @@ -11387,14 +11396,14 @@ } } }, - "description": "Retrieve a single cell by ID. For prompt-template column cells, the response includes a `request_metrics` object with price, latency, and token usage when available." + "description": "Retrieve a single cell by ID. For prompt-template column cells, the response includes a `request_metrics` object with price, latency, and token usage when available. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace." }, "patch": { "tags": [ "smart-tables" ], "summary": "Update Cell", - "description": "Edit the value of a text column cell. Only cells in `text` type columns can be edited directly; computed cells are recalculated automatically.", + "description": "Edit the value of a text column cell. Only cells in `text` type columns can be edited directly; computed cells are recalculated automatically. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace.", "operationId": "update_table_sheet_cell", "parameters": [ { @@ -11460,7 +11469,8 @@ "$ref": "#/components/schemas/Cell" }, "version": { - "type": "integer" + "type": "integer", + "description": "Current sheet version_count for this response. It matches the sheet's version_count after any committed changes." }, "stale_count": { "type": "integer", @@ -11503,7 +11513,7 @@ "smart-tables" ], "summary": "Recalculate Cells (Batch)", - "description": "Trigger recalculation for a batch of cells identified by ID.", + "description": "Trigger recalculation for a batch of cells identified by ID. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace.", "operationId": "create_table_sheet_cell_recalculations_batch", "parameters": [ { @@ -11615,7 +11625,7 @@ "smart-tables" ], "summary": "Recalculate Cell", - "description": "Trigger recalculation for a single cell.", + "description": "Trigger recalculation for a single cell. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace.", "operationId": "create_table_sheet_cell_recalculation", "parameters": [ { @@ -11694,136 +11704,96 @@ } } }, - "/api/public/v2/tool-registry/{identifier}/versions": { - "post": { + "/api/public/v2/tables/{table_id}/sheets/{sheet_id}/operations": { + "get": { + "summary": "List Table Sheet Operations", + "description": "List active recalculation operations and cell status counts for a Table sheet. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace.", + "operationId": "listTableSheetOperations", "tags": [ - "tool-registry" + "tables" ], - "summary": "Create Tool Version", - "operationId": "create_tool_version", "parameters": [ { - "name": "identifier", + "name": "table_id", "in": "path", "required": true, "schema": { "type": "string", - "description": "Tool ID (numeric) or name" - } + "format": "uuid" + }, + "description": "Table ID." + }, + { + "name": "sheet_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "Table sheet ID." } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "tool_definition" - ], - "properties": { - "tool_definition": { - "type": "object", - "description": "Tool definition in OpenAI function-calling format" - }, - "execution": { - "type": "object", - "description": "Optional sandbox-executable body. When set, PromptLayer auto-runs the body between LLM turns whenever a prompt uses this version. See Auto Tool Execution.", - "nullable": true, - "required": [ - "type", - "language", - "code" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "code" - ] - }, - "language": { - "type": "string", - "enum": [ - "python", - "javascript" - ] - }, - "code": { - "type": "string", - "description": "The function BODY only — the signature `def (args):` (Python) or `function (args) { ... }` (JavaScript) is generated automatically. LLM arguments arrive as a single `args` object." - } - } - }, - "commit_message": { - "type": "string", - "description": "Commit message for the new version", - "nullable": true - } + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ListTableSheetOperationsResponse" } } } - } - }, - "responses": { - "201": { - "description": "Version created", + }, + "400": { + "description": "Invalid workspace context.", "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "version": { - "type": "object" - } - } + "$ref": "#/components/schemas/ErrorResponse" } } } }, "404": { - "description": "Tool not found" + "description": "Table or sheet not found.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } } } - } - }, - "/api/public/v2/tool-registry/{identifier}/test-execute": { + }, "post": { + "summary": "Create Table Sheet Operation", + "description": "Queue a recalculation operation for selected columns, rows, and cell statuses. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace.", + "operationId": "createTableSheetOperation", "tags": [ - "tool-registry" + "tables" ], - "summary": "Test Execute Tool", - "operationId": "test_execute_tool", "parameters": [ { - "name": "identifier", + "name": "table_id", "in": "path", "required": true, "schema": { "type": "string", - "description": "Tool ID (numeric) or name" - } - }, - { - "name": "label", - "in": "query", - "required": false, - "schema": { - "type": "string", - "description": "Resolve version by label name (e.g. production). Falls back to latest if neither label nor version supplied." - } + "format": "uuid" + }, + "description": "Table ID." }, { - "name": "version", - "in": "query", - "required": false, + "name": "sheet_id", + "in": "path", + "required": true, "schema": { "type": "string", - "description": "Resolve by specific version number" - } + "format": "uuid" + }, + "description": "Table sheet ID." } ], "requestBody": { @@ -11831,224 +11801,198 @@ "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "inputs": { - "type": "object", - "description": "Arguments passed to the tool body. Same shape the LLM would emit — keys match the tool's parameter names.", - "additionalProperties": true - }, - "execution": { - "type": "object", - "description": "In-flight override of the stored execution config. Lets you test unsaved code.", - "nullable": true, - "required": [ - "type", - "language", - "code" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "code" - ] - }, - "language": { - "type": "string", - "enum": [ - "python", - "javascript" - ] - }, - "code": { - "type": "string" - } - } - }, - "tool_definition": { - "type": "object", - "description": "In-flight override of the stored tool definition. Used to test against a different function name without saving.", - "nullable": true - } - } + "$ref": "#/components/schemas/CreateTableSheetOperationRequest" } } } }, "responses": { "200": { - "description": "Tool executed (success or user-code error). User-code errors return status=\"error\" inside the result object — they do NOT raise.", + "description": "No operation was queued or confirmation is required.", "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "message": { - "type": "string" - }, - "result": { - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "result": { - "description": "The tool body's return value (any JSON-serializable type). Present on status=\"success\".", - "nullable": true - }, - "stdout": { - "type": "string" - }, - "stderr": { - "type": "string" - }, - "duration_ms": { - "type": "integer" - }, - "error": { - "type": "object", - "nullable": true, - "description": "Present on status=\"error\". Includes `type` and `message`." - } - } - } - } + "$ref": "#/components/schemas/CreateTableSheetOperationResponse" } } } }, - "400": { - "description": "Missing execution config or function name" + "202": { + "description": "Operation queued.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateTableSheetOperationResponse" + } + } + } }, - "404": { - "description": "Tool or version not found" + "400": { + "description": "Invalid request, query parameter, or workspace context.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } }, - "502": { - "description": "Sandbox infrastructure failure" - } - } + "401": { + "description": "Authentication required.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Table, sheet, or column not found.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } } }, - "/api/public/v2/traces/{trace_id}/close": { - "post": { - "summary": "Close Trace", - "operationId": "closeTrace", + "/api/public/v2/tables/{table_id}/sheets/{sheet_id}/operations/{operation_id}": { + "get": { + "summary": "Get Table Sheet Operation", + "description": "Poll a Table sheet recalculation operation by operation ID. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace.", + "operationId": "getTableSheetOperationStatus", "tags": [ - "tracking" + "tables" ], - "description": "Marks a trace as closed, preventing any further span ingestion for that trace. Once closed, subsequent calls to `/spans-bulk` or `/v1/traces` that include spans for this trace will have those spans rejected.", "parameters": [ { - "name": "trace_id", + "name": "table_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "Table ID." + }, + { + "name": "sheet_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "Table sheet ID." + }, + { + "name": "operation_id", "in": "path", "required": true, "schema": { "type": "string" }, - "description": "The trace ID to close.", - "example": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6" + "description": "Operation ID." } ], "responses": { - "201": { - "description": "Trace successfully closed.", + "200": { + "description": "Successful response", "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "closure": { - "type": "object", - "properties": { - "id": { - "type": "string", - "format": "uuid" - }, - "workspace_id": { - "type": "integer" - }, - "trace_id": { - "type": "string" - }, - "status": { - "type": "string", - "enum": [ - "closed" - ] - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - } - } - } - } - }, - "examples": { - "closed": { - "summary": "Trace closed", - "value": { - "success": true, - "closure": { - "id": "550e8400-e29b-41d4-a716-446655440000", - "workspace_id": 1, - "trace_id": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6", - "status": "closed", - "created_at": "2026-06-06T18:00:00Z", - "updated_at": "2026-06-06T18:00:00Z" - } - } - } + "$ref": "#/components/schemas/GetTableSheetOperationResponse" } } } }, - "401": { - "$ref": "#/components/responses/UnauthorizedError" + "400": { + "description": "Invalid workspace context.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } }, "404": { - "$ref": "#/components/responses/NotFoundError" + "description": "Table, sheet, or operation not found.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "summary": "Cancel Table Sheet Operation", + "description": "Cancel an active Table sheet recalculation operation. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace.", + "operationId": "cancelTableSheetOperation", + "tags": [ + "tables" + ], + "parameters": [ + { + "name": "table_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "Table ID." }, - "409": { - "description": "Trace is already closed.", + { + "name": "sheet_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "Table sheet ID." + }, + { + "name": "operation_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "Operation ID." + } + ], + "responses": { + "200": { + "description": "Operation cancelled or no active operation found.", "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "success": { - "type": "boolean", - "example": false - }, - "message": { - "type": "string", - "example": "Trace already closed" - } - } + "$ref": "#/components/schemas/CancelTableSheetOperationResponse" } } } }, - "422": { - "$ref": "#/components/responses/ValidationError" + "400": { + "description": "Invalid workspace context.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } }, - "500": { - "description": "Internal server error.", + "404": { + "description": "Table or sheet not found.", "content": { "application/json": { "schema": { @@ -12060,200 +12004,96 @@ } } }, - "/api/public/v2/env-vars": { + "/api/public/v2/tables/{table_id}/sheets/{sheet_id}/score": { "get": { + "summary": "Get Table Sheet Score", + "description": "Retrieve the current score payload for a Table sheet. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace.", + "operationId": "getTableSheetScore", "tags": [ - "env-vars" + "tables" + ], + "parameters": [ + { + "name": "table_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "Table ID." + }, + { + "name": "sheet_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "Table sheet ID." + } ], - "summary": "List Workspace Env Vars", - "operationId": "list_workspace_env_vars", "responses": { "200": { - "description": "Successful Response", + "description": "Successful response", "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "workspace_env_vars": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "integer" - }, - "key": { - "type": "string" - }, - "value_suffix": { - "type": "string", - "nullable": true, - "description": "Last 4 characters of the stored value. Null or empty when the value is empty." - }, - "is_empty": { - "type": "boolean", - "description": "True when the value has not been set yet (placeholder created by the AI assistant)." - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "workspace_id": { - "type": "integer", - "description": "Present on workspace-scoped env vars." - }, - "tool_registry_id": { - "type": "integer", - "description": "Present on tool-scoped env vars." - } - } - } - } - } + "$ref": "#/components/schemas/TableSheetScoreResponse" } } } }, - "401": { - "$ref": "#/components/responses/UnauthorizedError" - }, - "422": { - "$ref": "#/components/responses/ValidationError" - } - } - }, - "post": { - "tags": [ - "env-vars" - ], - "summary": "Create Workspace Env Var", - "operationId": "create_workspace_env_var", - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "key" - ], - "properties": { - "key": { - "type": "string", - "minLength": 1, - "maxLength": 255, - "pattern": "^[A-Za-z_][A-Za-z0-9_]*$", - "description": "Environment variable name. Must start with a letter or underscore and contain only letters, digits, and underscores." - }, - "value": { - "type": "string", - "maxLength": 8192, - "description": "Value to store. May be empty to create a placeholder that the user will fill in later." - } - } - } - } - } - }, - "responses": { - "201": { - "description": "Successful Response", + "400": { + "description": "Invalid workspace context.", "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "workspace_env_var": { - "type": "object", - "properties": { - "id": { - "type": "integer" - }, - "key": { - "type": "string" - }, - "value_suffix": { - "type": "string", - "nullable": true, - "description": "Last 4 characters of the stored value. Null or empty when the value is empty." - }, - "is_empty": { - "type": "boolean", - "description": "True when the value has not been set yet (placeholder created by the AI assistant)." - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "workspace_id": { - "type": "integer", - "description": "Present on workspace-scoped env vars." - }, - "tool_registry_id": { - "type": "integer", - "description": "Present on tool-scoped env vars." - } - } - } - } + "$ref": "#/components/schemas/ErrorResponse" } } } }, - "409": { - "description": "An environment variable with that key already exists in this workspace.", + "404": { + "description": "Table or sheet not found.", "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - } + "$ref": "#/components/schemas/ErrorResponse" } } } - }, - "401": { - "$ref": "#/components/responses/UnauthorizedError" - }, - "422": { - "$ref": "#/components/responses/ValidationError" } } - } - }, - "/api/public/v2/env-vars/{var_id}": { + }, "patch": { + "summary": "Configure Table Sheet Score", + "description": "Configure scoring for a Table sheet. This endpoint updates the configuration and returns whether recalculation is required; it does not queue score calculation. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace.", + "operationId": "configureTableSheetScore", "tags": [ - "env-vars" + "tables" ], - "summary": "Update Workspace Env Var", - "operationId": "update_workspace_env_var", "parameters": [ { - "name": "var_id", + "name": "table_id", "in": "path", "required": true, "schema": { - "type": "integer" - } + "type": "string", + "format": "uuid" + }, + "description": "Table ID." + }, + { + "name": "sheet_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "Table sheet ID." } ], "requestBody": { @@ -12261,266 +12101,275 @@ "content": { "application/json": { "schema": { - "type": "object", - "required": [ - "value" - ], - "properties": { - "value": { - "type": "string", - "minLength": 1, - "maxLength": 8192, - "description": "New value for the environment variable. Must be non-empty." - } - } + "$ref": "#/components/schemas/ConfigureTableSheetScoreRequest" } } } }, "responses": { "200": { - "description": "Successful Response", + "description": "Score configuration updated.", "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "workspace_env_var": { - "type": "object", - "properties": { - "id": { - "type": "integer" - }, - "key": { - "type": "string" - }, - "value_suffix": { - "type": "string", - "nullable": true, - "description": "Last 4 characters of the stored value. Null or empty when the value is empty." - }, - "is_empty": { - "type": "boolean", - "description": "True when the value has not been set yet (placeholder created by the AI assistant)." - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "workspace_id": { - "type": "integer", - "description": "Present on workspace-scoped env vars." - }, - "tool_registry_id": { - "type": "integer", - "description": "Present on tool-scoped env vars." - } - } - } - } + "$ref": "#/components/schemas/ConfigureTableSheetScoreResponse" } } } }, - "404": { - "description": "Workspace env var not found.", + "400": { + "description": "Invalid score configuration or workspace context.", "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - } + "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { - "$ref": "#/components/responses/UnauthorizedError" + "description": "Authentication required.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } }, - "422": { - "$ref": "#/components/responses/ValidationError" + "404": { + "description": "Table, sheet, or score column not found.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "500": { + "description": "Failed to update score configuration.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } } } }, - "delete": { + "post": { + "summary": "Recalculate Table Sheet Score", + "description": "Queue recalculation for an existing Table sheet score configuration. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace.", + "operationId": "recalculateTableSheetScore", "tags": [ - "env-vars" + "tables" ], - "summary": "Delete Workspace Env Var", - "operationId": "delete_workspace_env_var", "parameters": [ { - "name": "var_id", + "name": "table_id", "in": "path", "required": true, "schema": { - "type": "integer" - } + "type": "string", + "format": "uuid" + }, + "description": "Table ID." + }, + { + "name": "sheet_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "Table sheet ID." } ], "responses": { - "200": { - "description": "Successful Response", + "202": { + "description": "Score recalculation queued.", "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - } - } + "$ref": "#/components/schemas/RecalculateTableSheetScoreResponse" } } } }, - "404": { - "description": "Workspace env var not found.", + "400": { + "description": "Score is not configured or score configuration is invalid.", "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - } + "$ref": "#/components/schemas/ErrorResponse" } } } }, - "401": { - "$ref": "#/components/responses/UnauthorizedError" + "404": { + "description": "Table or sheet not found.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } }, - "422": { - "$ref": "#/components/responses/ValidationError" + "500": { + "description": "Failed to queue score calculation.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } } } } }, - "/api/public/v2/tool-registry/{identifier}/env-vars": { + "/api/public/v2/tables/{table_id}/sheets/{sheet_id}/versions": { "get": { + "summary": "List Table Sheet Versions", + "description": "List saved versions for a Table sheet. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace.", + "operationId": "listTableSheetVersions", "tags": [ - "env-vars", - "tool-registry" + "tables" ], - "summary": "List Tool Env Vars", - "operationId": "list_tool_env_vars", "parameters": [ { - "name": "identifier", + "name": "table_id", "in": "path", "required": true, "schema": { "type": "string", - "description": "Tool ID (numeric) or name" - } + "format": "uuid" + }, + "description": "Table ID." + }, + { + "name": "sheet_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "Table sheet ID." + }, + { + "name": "cursor", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Cursor returned from the previous page. Public table cursors encode the current sort, order, cursor value, and a hash of the active filters; reuse the cursor with the same sort, order, and filter parameters from the previous request." + }, + { + "name": "limit", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "minimum": 1, + "maximum": 100, + "default": 20 + }, + "description": "Number of versions to return." + }, + { + "name": "sort", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": [ + "version_number" + ], + "default": "version_number" + }, + "description": "Sort field. Currently supports version_number." + }, + { + "name": "order", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": [ + "asc", + "desc" + ], + "default": "desc" + }, + "description": "Sort order." } ], "responses": { "200": { - "description": "Successful Response", + "description": "Successful response", "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "tool_env_vars": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "integer" - }, - "key": { - "type": "string" - }, - "value_suffix": { - "type": "string", - "nullable": true, - "description": "Last 4 characters of the stored value. Null or empty when the value is empty." - }, - "is_empty": { - "type": "boolean", - "description": "True when the value has not been set yet (placeholder created by the AI assistant)." - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "workspace_id": { - "type": "integer", - "description": "Present on workspace-scoped env vars." - }, - "tool_registry_id": { - "type": "integer", - "description": "Present on tool-scoped env vars." - } - } - } - } - } + "$ref": "#/components/schemas/ListTableSheetVersionsResponse" } } } }, - "404": { - "description": "Tool not found.", + "400": { + "description": "Invalid cursor, query parameter, sort/order, filter set, or workspace context.", "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - } + "$ref": "#/components/schemas/ErrorResponse" } } } }, - "401": { - "$ref": "#/components/responses/UnauthorizedError" - }, - "422": { - "$ref": "#/components/responses/ValidationError" + "404": { + "description": "Table or sheet not found.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } } } }, "post": { + "summary": "Create Table Sheet Version", + "description": "Create a named Table sheet version, or restore from an existing version while creating a new version. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace.", + "operationId": "createTableSheetVersion", "tags": [ - "env-vars", - "tool-registry" + "tables" ], - "summary": "Create Tool Env Var", - "operationId": "create_tool_env_var", "parameters": [ { - "name": "identifier", + "name": "table_id", "in": "path", "required": true, "schema": { "type": "string", - "description": "Tool ID (numeric) or name" - } + "format": "uuid" + }, + "description": "Table ID." + }, + { + "name": "sheet_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "Table sheet ID." } ], "requestBody": { @@ -12528,352 +12377,1595 @@ "content": { "application/json": { "schema": { - "type": "object", - "required": [ - "key" - ], - "properties": { - "key": { - "type": "string", - "minLength": 1, - "maxLength": 255, - "pattern": "^[A-Za-z_][A-Za-z0-9_]*$", - "description": "Environment variable name. Must start with a letter or underscore and contain only letters, digits, and underscores." - }, - "value": { - "type": "string", - "maxLength": 8192, - "description": "Value to store. May be empty to create a placeholder that the user will fill in later." - } - } + "$ref": "#/components/schemas/CreateTableSheetVersionRequest" } } } }, "responses": { "201": { - "description": "Successful Response", + "description": "Version created.", "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "tool_env_var": { - "type": "object", - "properties": { - "id": { - "type": "integer" - }, - "key": { - "type": "string" - }, - "value_suffix": { - "type": "string", - "nullable": true, - "description": "Last 4 characters of the stored value. Null or empty when the value is empty." - }, - "is_empty": { - "type": "boolean", - "description": "True when the value has not been set yet (placeholder created by the AI assistant)." - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "workspace_id": { - "type": "integer", - "description": "Present on workspace-scoped env vars." - }, - "tool_registry_id": { - "type": "integer", - "description": "Present on tool-scoped env vars." - } - } - } - } + "$ref": "#/components/schemas/GetTableSheetVersionResponse" } } } }, - "404": { - "description": "Tool not found.", + "400": { + "description": "Invalid request body or workspace context.", "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - } + "$ref": "#/components/schemas/ErrorResponse" } } } }, - "409": { - "description": "An environment variable with that key already exists on this tool.", + "401": { + "description": "Authentication required.", "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - } + "$ref": "#/components/schemas/ErrorResponse" } } } }, - "401": { - "$ref": "#/components/responses/UnauthorizedError" - }, - "422": { - "$ref": "#/components/responses/ValidationError" - } + "404": { + "description": "Table, sheet, or source version not found.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } } } }, - "/api/public/v2/tool-registry/{identifier}/env-vars/{var_id}": { - "patch": { + "/api/public/v2/tables/{table_id}/sheets/{sheet_id}/versions/{version_id}": { + "get": { + "summary": "Get Table Sheet Version", + "description": "Retrieve one Table sheet version, including its snapshot. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace.", + "operationId": "getTableSheetVersion", "tags": [ - "env-vars", - "tool-registry" + "tables" ], - "summary": "Update Tool Env Var", - "operationId": "update_tool_env_var", "parameters": [ { - "name": "identifier", + "name": "table_id", "in": "path", "required": true, "schema": { "type": "string", - "description": "Tool ID (numeric) or name" - } + "format": "uuid" + }, + "description": "Table ID." }, { - "name": "var_id", + "name": "sheet_id", "in": "path", "required": true, "schema": { - "type": "integer" - } + "type": "string", + "format": "uuid" + }, + "description": "Table sheet ID." + }, + { + "name": "version_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "Table sheet version ID." } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "value" - ], - "properties": { - "value": { - "type": "string", - "minLength": 1, - "maxLength": 8192, - "description": "New value for the environment variable. Must be non-empty." - } + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetTableSheetVersionResponse" } } } - } - }, - "responses": { - "200": { - "description": "Successful Response", + }, + "400": { + "description": "Invalid workspace context.", "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "tool_env_var": { - "type": "object", - "properties": { - "id": { - "type": "integer" - }, - "key": { - "type": "string" - }, - "value_suffix": { - "type": "string", - "nullable": true, - "description": "Last 4 characters of the stored value. Null or empty when the value is empty." - }, - "is_empty": { - "type": "boolean", - "description": "True when the value has not been set yet (placeholder created by the AI assistant)." - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "workspace_id": { - "type": "integer", - "description": "Present on workspace-scoped env vars." - }, - "tool_registry_id": { - "type": "integer", - "description": "Present on tool-scoped env vars." - } - } - } - } + "$ref": "#/components/schemas/ErrorResponse" } } } }, "404": { - "description": "Tool or env var not found.", + "description": "Table, sheet, or version not found.", "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - } + "$ref": "#/components/schemas/ErrorResponse" } } } - }, - "401": { - "$ref": "#/components/responses/UnauthorizedError" - }, - "422": { - "$ref": "#/components/responses/ValidationError" } } - }, - "delete": { + } + }, + "/api/public/v2/tables/{table_id}/sheets/{sheet_id}/versions/score-history": { + "get": { + "summary": "Get Table Sheet Score History", + "description": "Retrieve score-history points across Table sheet versions. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace.", + "operationId": "getTableSheetVersionScoreHistory", "tags": [ - "env-vars", - "tool-registry" + "tables" ], - "summary": "Delete Tool Env Var", - "operationId": "delete_tool_env_var", "parameters": [ { - "name": "identifier", + "name": "table_id", "in": "path", "required": true, "schema": { "type": "string", - "description": "Tool ID (numeric) or name" - } + "format": "uuid" + }, + "description": "Table ID." }, { - "name": "var_id", + "name": "sheet_id", "in": "path", "required": true, "schema": { - "type": "integer" - } + "type": "string", + "format": "uuid" + }, + "description": "Table sheet ID." + }, + { + "name": "max_points", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "minimum": 50, + "maximum": 5000, + "default": 1200 + }, + "description": "Maximum points to return." + }, + { + "name": "range", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": [ + "all", + "last_25", + "last_50", + "last_100", + "last_250" + ], + "default": "all" + }, + "description": "History range." + }, + { + "name": "resolution", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": [ + "auto", + "raw", + "min_max_bucket" + ], + "default": "auto" + }, + "description": "Point resolution." } ], "responses": { "200": { - "description": "Successful Response", + "description": "Successful response", "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - } - } + "$ref": "#/components/schemas/TableSheetScoreHistoryResponse" } } } }, - "404": { - "description": "Tool or env var not found.", + "400": { + "description": "Invalid query parameter or workspace context.", "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - } + "$ref": "#/components/schemas/ErrorResponse" } } } }, - "401": { - "$ref": "#/components/responses/UnauthorizedError" - }, - "422": { - "$ref": "#/components/responses/ValidationError" + "404": { + "description": "Table or sheet not found.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } } } } - } - }, - "components": { - "securitySchemes": { - "ApiKeyAuth": { - "type": "apiKey", - "in": "header", - "name": "X-API-KEY" - } }, - "schemas": { - "Evaluation": { - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "Unique identifier for the evaluation" - }, - "name": { - "type": "string", - "description": "Name of the evaluation" - }, - "comment": { - "type": "string", - "nullable": true, - "description": "Optional comment or description for the evaluation" - }, - "created_at": { - "type": "string", - "format": "date-time", - "description": "Timestamp when the evaluation was created" - }, - "updated_at": { - "type": "string", - "format": "date-time", - "description": "Timestamp when the evaluation was last updated" - }, - "workspace_id": { - "type": "integer", - "description": "ID of the workspace this evaluation belongs to" + "/api/public/v2/tables/{table_id}/sheets/{sheet_id}/imports/file": { + "post": { + "summary": "Import File Into Table Sheet", + "description": "Start an asynchronous CSV import into an existing Table sheet. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace.", + "operationId": "createTableSheetFileImport", + "tags": [ + "tables" + ], + "parameters": [ + { + "name": "table_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "Table ID." }, - "folder_id": { - "type": "integer", - "nullable": true, - "description": "ID of the folder containing this evaluation" + { + "name": "sheet_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "Table sheet ID." + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateTableSheetFileImportRequest" + } + } + } + }, + "responses": { + "202": { + "description": "File import queued.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TableSheetImportStartResponse" + } + } + } + }, + "400": { + "description": "Invalid request body, file, or workspace context.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Authentication required.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Table or sheet not found.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "500": { + "description": "Failed to upload file.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/api/public/v2/tables/{table_id}/sheets/{sheet_id}/imports/request-logs": { + "post": { + "summary": "Import Request Logs Into Table Sheet", + "description": "Start an asynchronous request-history import into an existing Table sheet. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace.", + "operationId": "createTableSheetRequestLogImport", + "tags": [ + "tables" + ], + "parameters": [ + { + "name": "table_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "Table ID." + }, + { + "name": "sheet_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "Table sheet ID." + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateTableSheetRequestLogImportRequest" + } + } + } + }, + "responses": { + "202": { + "description": "Request-history import queued.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TableSheetImportStartResponse" + } + } + } + }, + "400": { + "description": "Invalid request body, request logs, or workspace context.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Authentication required.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Table or sheet not found.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/api/public/v2/tool-registry/{identifier}/versions": { + "post": { + "tags": [ + "tool-registry" + ], + "summary": "Create Tool Version", + "operationId": "create_tool_version", + "parameters": [ + { + "name": "identifier", + "in": "path", + "required": true, + "schema": { + "type": "string", + "description": "Tool ID (numeric) or name" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "tool_definition" + ], + "properties": { + "tool_definition": { + "type": "object", + "description": "Tool definition in OpenAI function-calling format" + }, + "execution": { + "type": "object", + "description": "Optional sandbox-executable body. When set, PromptLayer auto-runs the body between LLM turns whenever a prompt uses this version. See Auto Tool Execution.", + "nullable": true, + "required": [ + "type", + "language", + "code" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "code" + ] + }, + "language": { + "type": "string", + "enum": [ + "python", + "javascript" + ] + }, + "code": { + "type": "string", + "description": "The function BODY only — the signature `def (args):` (Python) or `function (args) { ... }` (JavaScript) is generated automatically. LLM arguments arrive as a single `args` object." + } + } + }, + "commit_message": { + "type": "string", + "description": "Commit message for the new version", + "nullable": true + } + } + } + } + } + }, + "responses": { + "201": { + "description": "Version created", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "version": { + "type": "object" + } + } + } + } + } + }, + "404": { + "description": "Tool not found" + } + } + } + }, + "/api/public/v2/tool-registry/{identifier}/test-execute": { + "post": { + "tags": [ + "tool-registry" + ], + "summary": "Test Execute Tool", + "operationId": "test_execute_tool", + "parameters": [ + { + "name": "identifier", + "in": "path", + "required": true, + "schema": { + "type": "string", + "description": "Tool ID (numeric) or name" + } + }, + { + "name": "label", + "in": "query", + "required": false, + "schema": { + "type": "string", + "description": "Resolve version by label name (e.g. production). Falls back to latest if neither label nor version supplied." + } + }, + { + "name": "version", + "in": "query", + "required": false, + "schema": { + "type": "string", + "description": "Resolve by specific version number" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "inputs": { + "type": "object", + "description": "Arguments passed to the tool body. Same shape the LLM would emit — keys match the tool's parameter names.", + "additionalProperties": true + }, + "execution": { + "type": "object", + "description": "In-flight override of the stored execution config. Lets you test unsaved code.", + "nullable": true, + "required": [ + "type", + "language", + "code" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "code" + ] + }, + "language": { + "type": "string", + "enum": [ + "python", + "javascript" + ] + }, + "code": { + "type": "string" + } + } + }, + "tool_definition": { + "type": "object", + "description": "In-flight override of the stored tool definition. Used to test against a different function name without saving.", + "nullable": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Tool executed (success or user-code error). User-code errors return status=\"error\" inside the result object — they do NOT raise.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "message": { + "type": "string" + }, + "result": { + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "result": { + "description": "The tool body's return value (any JSON-serializable type). Present on status=\"success\".", + "nullable": true + }, + "stdout": { + "type": "string" + }, + "stderr": { + "type": "string" + }, + "duration_ms": { + "type": "integer" + }, + "error": { + "type": "object", + "nullable": true, + "description": "Present on status=\"error\". Includes `type` and `message`." + } + } + } + } + } + } + } + }, + "400": { + "description": "Missing execution config or function name" + }, + "404": { + "description": "Tool or version not found" + }, + "502": { + "description": "Sandbox infrastructure failure" + } + } + } + }, + "/api/public/v2/traces/{trace_id}/close": { + "post": { + "summary": "Close Trace", + "operationId": "closeTrace", + "tags": [ + "tracking" + ], + "description": "Marks a trace as closed, preventing any further span ingestion for that trace. Once closed, subsequent calls to `/spans-bulk` or `/v1/traces` that include spans for this trace will have those spans rejected.", + "parameters": [ + { + "name": "trace_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "The trace ID to close.", + "example": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6" + } + ], + "responses": { + "201": { + "description": "Trace successfully closed.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "closure": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "workspace_id": { + "type": "integer" + }, + "trace_id": { + "type": "string" + }, + "status": { + "type": "string", + "enum": [ + "closed" + ] + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + } + } + } + } + }, + "examples": { + "closed": { + "summary": "Trace closed", + "value": { + "success": true, + "closure": { + "id": "550e8400-e29b-41d4-a716-446655440000", + "workspace_id": 1, + "trace_id": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6", + "status": "closed", + "created_at": "2026-06-06T18:00:00Z", + "updated_at": "2026-06-06T18:00:00Z" + } + } + } + } + } + } + }, + "401": { + "$ref": "#/components/responses/UnauthorizedError" + }, + "404": { + "$ref": "#/components/responses/NotFoundError" + }, + "409": { + "description": "Trace is already closed.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "example": false + }, + "message": { + "type": "string", + "example": "Trace already closed" + } + } + } + } + } + }, + "422": { + "$ref": "#/components/responses/ValidationError" + }, + "500": { + "description": "Internal server error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/api/public/v2/env-vars": { + "get": { + "tags": [ + "env-vars" + ], + "summary": "List Workspace Env Vars", + "operationId": "list_workspace_env_vars", + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "workspace_env_vars": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "key": { + "type": "string" + }, + "value_suffix": { + "type": "string", + "nullable": true, + "description": "Last 4 characters of the stored value. Null or empty when the value is empty." + }, + "is_empty": { + "type": "boolean", + "description": "True when the value has not been set yet (placeholder created by the AI assistant)." + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "workspace_id": { + "type": "integer", + "description": "Present on workspace-scoped env vars." + }, + "tool_registry_id": { + "type": "integer", + "description": "Present on tool-scoped env vars." + } + } + } + } + } + } + } + } + }, + "401": { + "$ref": "#/components/responses/UnauthorizedError" + }, + "422": { + "$ref": "#/components/responses/ValidationError" + } + } + }, + "post": { + "tags": [ + "env-vars" + ], + "summary": "Create Workspace Env Var", + "operationId": "create_workspace_env_var", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "key" + ], + "properties": { + "key": { + "type": "string", + "minLength": 1, + "maxLength": 255, + "pattern": "^[A-Za-z_][A-Za-z0-9_]*$", + "description": "Environment variable name. Must start with a letter or underscore and contain only letters, digits, and underscores." + }, + "value": { + "type": "string", + "maxLength": 8192, + "description": "Value to store. May be empty to create a placeholder that the user will fill in later." + } + } + } + } + } + }, + "responses": { + "201": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "workspace_env_var": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "key": { + "type": "string" + }, + "value_suffix": { + "type": "string", + "nullable": true, + "description": "Last 4 characters of the stored value. Null or empty when the value is empty." + }, + "is_empty": { + "type": "boolean", + "description": "True when the value has not been set yet (placeholder created by the AI assistant)." + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "workspace_id": { + "type": "integer", + "description": "Present on workspace-scoped env vars." + }, + "tool_registry_id": { + "type": "integer", + "description": "Present on tool-scoped env vars." + } + } + } + } + } + } + } + }, + "409": { + "description": "An environment variable with that key already exists in this workspace.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + } + } + } + } + }, + "401": { + "$ref": "#/components/responses/UnauthorizedError" + }, + "422": { + "$ref": "#/components/responses/ValidationError" + } + } + } + }, + "/api/public/v2/env-vars/{var_id}": { + "patch": { + "tags": [ + "env-vars" + ], + "summary": "Update Workspace Env Var", + "operationId": "update_workspace_env_var", + "parameters": [ + { + "name": "var_id", + "in": "path", + "required": true, + "schema": { + "type": "integer" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string", + "minLength": 1, + "maxLength": 8192, + "description": "New value for the environment variable. Must be non-empty." + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "workspace_env_var": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "key": { + "type": "string" + }, + "value_suffix": { + "type": "string", + "nullable": true, + "description": "Last 4 characters of the stored value. Null or empty when the value is empty." + }, + "is_empty": { + "type": "boolean", + "description": "True when the value has not been set yet (placeholder created by the AI assistant)." + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "workspace_id": { + "type": "integer", + "description": "Present on workspace-scoped env vars." + }, + "tool_registry_id": { + "type": "integer", + "description": "Present on tool-scoped env vars." + } + } + } + } + } + } + } + }, + "404": { + "description": "Workspace env var not found.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + } + } + } + } + }, + "401": { + "$ref": "#/components/responses/UnauthorizedError" + }, + "422": { + "$ref": "#/components/responses/ValidationError" + } + } + }, + "delete": { + "tags": [ + "env-vars" + ], + "summary": "Delete Workspace Env Var", + "operationId": "delete_workspace_env_var", + "parameters": [ + { + "name": "var_id", + "in": "path", + "required": true, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + } + } + } + } + } + }, + "404": { + "description": "Workspace env var not found.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + } + } + } + } + }, + "401": { + "$ref": "#/components/responses/UnauthorizedError" + }, + "422": { + "$ref": "#/components/responses/ValidationError" + } + } + } + }, + "/api/public/v2/tool-registry/{identifier}/env-vars": { + "get": { + "tags": [ + "env-vars", + "tool-registry" + ], + "summary": "List Tool Env Vars", + "operationId": "list_tool_env_vars", + "parameters": [ + { + "name": "identifier", + "in": "path", + "required": true, + "schema": { + "type": "string", + "description": "Tool ID (numeric) or name" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "tool_env_vars": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "key": { + "type": "string" + }, + "value_suffix": { + "type": "string", + "nullable": true, + "description": "Last 4 characters of the stored value. Null or empty when the value is empty." + }, + "is_empty": { + "type": "boolean", + "description": "True when the value has not been set yet (placeholder created by the AI assistant)." + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "workspace_id": { + "type": "integer", + "description": "Present on workspace-scoped env vars." + }, + "tool_registry_id": { + "type": "integer", + "description": "Present on tool-scoped env vars." + } + } + } + } + } + } + } + } + }, + "404": { + "description": "Tool not found.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + } + } + } + } + }, + "401": { + "$ref": "#/components/responses/UnauthorizedError" + }, + "422": { + "$ref": "#/components/responses/ValidationError" + } + } + }, + "post": { + "tags": [ + "env-vars", + "tool-registry" + ], + "summary": "Create Tool Env Var", + "operationId": "create_tool_env_var", + "parameters": [ + { + "name": "identifier", + "in": "path", + "required": true, + "schema": { + "type": "string", + "description": "Tool ID (numeric) or name" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "key" + ], + "properties": { + "key": { + "type": "string", + "minLength": 1, + "maxLength": 255, + "pattern": "^[A-Za-z_][A-Za-z0-9_]*$", + "description": "Environment variable name. Must start with a letter or underscore and contain only letters, digits, and underscores." + }, + "value": { + "type": "string", + "maxLength": 8192, + "description": "Value to store. May be empty to create a placeholder that the user will fill in later." + } + } + } + } + } + }, + "responses": { + "201": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "tool_env_var": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "key": { + "type": "string" + }, + "value_suffix": { + "type": "string", + "nullable": true, + "description": "Last 4 characters of the stored value. Null or empty when the value is empty." + }, + "is_empty": { + "type": "boolean", + "description": "True when the value has not been set yet (placeholder created by the AI assistant)." + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "workspace_id": { + "type": "integer", + "description": "Present on workspace-scoped env vars." + }, + "tool_registry_id": { + "type": "integer", + "description": "Present on tool-scoped env vars." + } + } + } + } + } + } + } + }, + "404": { + "description": "Tool not found.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + } + } + } + } + }, + "409": { + "description": "An environment variable with that key already exists on this tool.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + } + } + } + } + }, + "401": { + "$ref": "#/components/responses/UnauthorizedError" + }, + "422": { + "$ref": "#/components/responses/ValidationError" + } + } + } + }, + "/api/public/v2/tool-registry/{identifier}/env-vars/{var_id}": { + "patch": { + "tags": [ + "env-vars", + "tool-registry" + ], + "summary": "Update Tool Env Var", + "operationId": "update_tool_env_var", + "parameters": [ + { + "name": "identifier", + "in": "path", + "required": true, + "schema": { + "type": "string", + "description": "Tool ID (numeric) or name" + } + }, + { + "name": "var_id", + "in": "path", + "required": true, + "schema": { + "type": "integer" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string", + "minLength": 1, + "maxLength": 8192, + "description": "New value for the environment variable. Must be non-empty." + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "tool_env_var": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "key": { + "type": "string" + }, + "value_suffix": { + "type": "string", + "nullable": true, + "description": "Last 4 characters of the stored value. Null or empty when the value is empty." + }, + "is_empty": { + "type": "boolean", + "description": "True when the value has not been set yet (placeholder created by the AI assistant)." + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "workspace_id": { + "type": "integer", + "description": "Present on workspace-scoped env vars." + }, + "tool_registry_id": { + "type": "integer", + "description": "Present on tool-scoped env vars." + } + } + } + } + } + } + } + }, + "404": { + "description": "Tool or env var not found.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + } + } + } + } + }, + "401": { + "$ref": "#/components/responses/UnauthorizedError" + }, + "422": { + "$ref": "#/components/responses/ValidationError" + } + } + }, + "delete": { + "tags": [ + "env-vars", + "tool-registry" + ], + "summary": "Delete Tool Env Var", + "operationId": "delete_tool_env_var", + "parameters": [ + { + "name": "identifier", + "in": "path", + "required": true, + "schema": { + "type": "string", + "description": "Tool ID (numeric) or name" + } + }, + { + "name": "var_id", + "in": "path", + "required": true, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + } + } + } + } + } + }, + "404": { + "description": "Tool or env var not found.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + } + } + } + } + }, + "401": { + "$ref": "#/components/responses/UnauthorizedError" + }, + "422": { + "$ref": "#/components/responses/ValidationError" + } + } + } + } + }, + "components": { + "securitySchemes": { + "ApiKeyAuth": { + "type": "apiKey", + "in": "header", + "name": "X-API-KEY" + } + }, + "schemas": { + "Evaluation": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "Unique identifier for the evaluation" + }, + "name": { + "type": "string", + "description": "Name of the evaluation" + }, + "comment": { + "type": "string", + "nullable": true, + "description": "Optional comment or description for the evaluation" + }, + "created_at": { + "type": "string", + "format": "date-time", + "description": "Timestamp when the evaluation was created" + }, + "updated_at": { + "type": "string", + "format": "date-time", + "description": "Timestamp when the evaluation was last updated" + }, + "workspace_id": { + "type": "integer", + "description": "ID of the workspace this evaluation belongs to" + }, + "folder_id": { + "type": "integer", + "nullable": true, + "description": "ID of the folder containing this evaluation" }, "user_id": { "type": "integer", @@ -19334,916 +20426,1484 @@ "totalThinkingTokens": { "type": "integer" }, - "cacheTokenRatio": { - "type": "number", - "nullable": true, - "description": "`totalCachedTokens / total_input_tokens`, or null when there are no input tokens." + "cacheTokenRatio": { + "type": "number", + "nullable": true, + "description": "`totalCachedTokens / total_input_tokens`, or null when there are no input tokens." + }, + "stats": { + "type": "array", + "description": "Per-bucket time-series.", + "items": { + "$ref": "#/components/schemas/RequestAnalyticsStat" + } + }, + "mostUsedModels": { + "type": "array", + "description": "List of `[modelName, requestCount]` pairs ordered by usage.", + "items": { + "type": "array", + "items": {} + } + }, + "modelRequestsByDay": { + "type": "object", + "description": "Map of model name → list of `[date, requestCount]` pairs.", + "additionalProperties": { + "type": "array", + "items": { + "type": "array", + "items": {} + } + } + }, + "mostUsedPromptTemplates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "promptId": { + "type": "string" + }, + "requests": { + "type": "integer" + }, + "promptName": { + "type": "string", + "nullable": true + } + } + } + }, + "promptTemplateRequestsByDay": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "array", + "items": {} + } + } + }, + "providerRequestsByDay": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "array", + "items": {} + } + } + }, + "latency": { + "$ref": "#/components/schemas/RequestAnalyticsLatencyByDay" + }, + "latencyByModelByDay": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/RequestAnalyticsDimensionLatency" + } + }, + "latencyByPromptTemplateByDay": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/RequestAnalyticsDimensionLatency" + } + }, + "latencyByProviderByDay": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/RequestAnalyticsDimensionLatency" + } + }, + "errorTypes": { + "type": "array", + "items": { + "type": "object", + "properties": { + "errorType": { + "type": "string" + }, + "requests": { + "type": "integer" + } + } + } + }, + "providerBreakdown": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RequestAnalyticsBreakdownEntry" + } }, - "stats": { + "promptBreakdown": { "type": "array", - "description": "Per-bucket time-series.", "items": { - "$ref": "#/components/schemas/RequestAnalyticsStat" + "$ref": "#/components/schemas/RequestAnalyticsBreakdownEntry" } }, - "mostUsedModels": { + "tagsBreakdown": { "type": "array", - "description": "List of `[modelName, requestCount]` pairs ordered by usage.", "items": { - "type": "array", - "items": {} + "$ref": "#/components/schemas/RequestAnalyticsBreakdownEntry" } }, - "modelRequestsByDay": { - "type": "object", - "description": "Map of model name → list of `[date, requestCount]` pairs.", - "additionalProperties": { - "type": "array", - "items": { - "type": "array", - "items": {} + "metadataKeysTop": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "requests": { + "type": "integer" + } } } }, - "mostUsedPromptTemplates": { + "outputKeysTop": { "type": "array", "items": { "type": "object", "properties": { - "promptId": { + "key": { "type": "string" }, "requests": { "type": "integer" + } + } + } + }, + "toolsLatency": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RequestAnalyticsToolLatency" + } + }, + "toolsUsageBars": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" }, - "promptName": { - "type": "string", - "nullable": true + "requests": { + "type": "integer" } } } }, - "promptTemplateRequestsByDay": { - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "array", - "items": {} + "metadataValueBreakdown": { + "type": "array", + "description": "Cost and request count breakdown by metadata key-value pairs. When `metadata_cost_breakdown_key` is set in the request, all entries share that key and the `label` equals the value. Otherwise entries span the top key-value combinations and `label` is `key = value`. Ordered by cost descending; up to 50 entries.", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "The metadata key." + }, + "value": { + "type": "string", + "description": "The metadata value." + }, + "label": { + "type": "string", + "description": "Display label. Equals `value` when filtered to a single key; equals `key = value` in the aggregate view." + }, + "requests": { + "type": "integer", + "description": "Number of requests with this key-value pair." + }, + "cost": { + "type": "number", + "description": "Total cost for requests with this key-value pair, in USD." + } } } + } + } + }, + "SearchRequestLogsRequest": { + "title": "SearchRequestLogsRequest", + "description": "Search and filter request logs with structured filters, free-text search, sorting, and pagination. Extends `RequestLogQuery` with pagination and `include_prompt_name`.", + "allOf": [ + { + "$ref": "#/components/schemas/RequestLogQuery" }, - "providerRequestsByDay": { + { "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "array", - "items": {} + "properties": { + "page": { + "type": "integer", + "minimum": 1, + "nullable": true, + "description": "Page number for pagination. Defaults to 1." + }, + "per_page": { + "type": "integer", + "minimum": 1, + "maximum": 25, + "nullable": true, + "description": "Number of results per page. Defaults to 10, maximum 25." + }, + "include_prompt_name": { + "type": "boolean", + "nullable": true, + "description": "When true, includes the prompt template name in each result item. Defaults to false." } } + } + ], + "example": { + "filter_group": { + "logic": "AND", + "filters": [ + { + "field": "cost", + "operator": "gte", + "value": 0.1 + } + ] }, - "latency": { - "$ref": "#/components/schemas/RequestAnalyticsLatencyByDay" + "page": 1, + "per_page": 25, + "sort_by": "cost", + "sort_order": "desc" + } + }, + "StructuredFilter": { + "type": "object", + "title": "StructuredFilter", + "description": "A single filter condition on a request log field.", + "required": [ + "field", + "operator" + ], + "properties": { + "field": { + "type": "string", + "description": "The request log field to filter on. Intent fields are virtual fields that classify request content by tone and do not require any additional logging configuration. `user_intent` classifies the user's message; valid values: `frustrated`, `satisfied`, `curious`. `agent_intent` classifies the agent's response; valid values: `apologetic`, `refusal`, `uncertain`. Intent fields support operators: `is`, `is_not`, `in`, `not_in`.", + "enum": [ + "pl_id", + "prompt_id", + "engine", + "provider_type", + "input_text", + "output_text", + "prompt_version_number", + "input_tokens", + "output_tokens", + "cost", + "latency_ms", + "request_start_time", + "request_end_time", + "status", + "is_json", + "is_tool_call", + "is_plain_text", + "tags", + "metadata_keys", + "metadata", + "tool_names", + "output", + "output_keys", + "input_variables", + "input_variable_keys", + "user_intent", + "agent_intent" + ] }, - "latencyByModelByDay": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/RequestAnalyticsDimensionLatency" - } + "operator": { + "type": "string", + "description": "The comparison operator.", + "enum": [ + "is", + "is_not", + "in", + "not_in", + "contains", + "not_contains", + "starts_with", + "ends_with", + "eq", + "neq", + "gt", + "gte", + "lt", + "lte", + "between", + "before", + "after", + "is_true", + "is_false", + "is_empty", + "is_not_empty", + "is_null", + "is_not_null", + "key_equals", + "key_not_equals", + "key_contains" + ] }, - "latencyByPromptTemplateByDay": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/RequestAnalyticsDimensionLatency" - } + "value": { + "description": "The value to compare against. Type depends on the field and operator.", + "oneOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "array" + }, + { + "type": "null" + } + ] }, - "latencyByProviderByDay": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/RequestAnalyticsDimensionLatency" - } + "nested_key": { + "type": "string", + "nullable": true, + "description": "Required for nested fields (metadata, output, input_variables). Specifies which key within the nested object to filter on." + } + } + }, + "StructuredFilterGroup": { + "type": "object", + "title": "StructuredFilterGroup", + "description": "A group of filters combined with AND or OR logic. Can be nested recursively.", + "required": [ + "filters" + ], + "properties": { + "logic": { + "type": "string", + "enum": [ + "AND", + "OR" + ], + "default": "AND", + "description": "How to combine the filters in this group." }, - "errorTypes": { + "filters": { "type": "array", + "description": "List of filters or nested filter groups.", "items": { - "type": "object", - "properties": { - "errorType": { - "type": "string" + "oneOf": [ + { + "$ref": "#/components/schemas/StructuredFilter" }, - "requests": { - "type": "integer" + { + "$ref": "#/components/schemas/StructuredFilterGroup" } - } + ] } + } + } + }, + "SearchRequestLogsResponse": { + "type": "object", + "title": "SearchRequestLogsResponse", + "description": "Paginated search results.", + "properties": { + "success": { + "type": "boolean", + "description": "Indicates the request was successful." }, - "providerBreakdown": { + "items": { "type": "array", + "description": "List of matching request log summaries.", "items": { - "$ref": "#/components/schemas/RequestAnalyticsBreakdownEntry" + "$ref": "#/components/schemas/RequestLogSearchResult" } }, - "promptBreakdown": { - "type": "array", - "items": { - "$ref": "#/components/schemas/RequestAnalyticsBreakdownEntry" - } + "page": { + "type": "integer", + "description": "Current page number." }, - "tagsBreakdown": { - "type": "array", - "items": { - "$ref": "#/components/schemas/RequestAnalyticsBreakdownEntry" - } + "pages": { + "type": "integer", + "description": "Total number of pages." }, - "metadataKeysTop": { - "type": "array", - "items": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "requests": { - "type": "integer" - } - } - } + "per_page": { + "type": "integer", + "description": "Number of results per page." }, - "outputKeysTop": { - "type": "array", - "items": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "requests": { - "type": "integer" - } - } - } + "total": { + "type": "integer", + "description": "Total number of matching results." }, - "toolsLatency": { - "type": "array", - "items": { - "$ref": "#/components/schemas/RequestAnalyticsToolLatency" - } + "has_next": { + "type": "boolean", + "description": "Whether there are more pages after the current one." }, - "toolsUsageBars": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "requests": { - "type": "integer" - } - } - } + "has_prev": { + "type": "boolean", + "description": "Whether there are pages before the current one." }, - "metadataValueBreakdown": { - "type": "array", - "description": "Cost and request count breakdown by metadata key-value pairs. When `metadata_cost_breakdown_key` is set in the request, all entries share that key and the `label` equals the value. Otherwise entries span the top key-value combinations and `label` is `key = value`. Ordered by cost descending; up to 50 entries.", - "items": { - "type": "object", - "properties": { - "key": { - "type": "string", - "description": "The metadata key." - }, - "value": { - "type": "string", - "description": "The metadata value." - }, - "label": { - "type": "string", - "description": "Display label. Equals `value` when filtered to a single key; equals `key = value` in the aggregate view." - }, - "requests": { - "type": "integer", - "description": "Number of requests with this key-value pair." - }, - "cost": { - "type": "number", - "description": "Total cost for requests with this key-value pair, in USD." - } - } - } + "next_num": { + "type": "integer", + "nullable": true, + "description": "Next page number, or null if on the last page." + }, + "prev_num": { + "type": "integer", + "nullable": true, + "description": "Previous page number, or null if on the first page." } } }, - "SearchRequestLogsRequest": { - "title": "SearchRequestLogsRequest", - "description": "Search and filter request logs with structured filters, free-text search, sorting, and pagination. Extends `RequestLogQuery` with pagination and `include_prompt_name`.", - "allOf": [ - { - "$ref": "#/components/schemas/RequestLogQuery" + "ExternalId": { + "properties": { + "source": { + "type": "string", + "maxLength": 128, + "minLength": 1, + "title": "Source", + "description": "The external system or namespace that owns the ID." }, - { - "type": "object", - "properties": { - "page": { - "type": "integer", - "minimum": 1, - "nullable": true, - "description": "Page number for pagination. Defaults to 1." - }, - "per_page": { - "type": "integer", - "minimum": 1, - "maximum": 25, - "nullable": true, - "description": "Number of results per page. Defaults to 10, maximum 25." - }, - "include_prompt_name": { - "type": "boolean", - "nullable": true, - "description": "When true, includes the prompt template name in each result item. Defaults to false." - } - } + "external_id": { + "type": "string", + "maxLength": 512, + "minLength": 1, + "title": "External Id", + "description": "The identifier for this entity in the external system." + } + }, + "type": "object", + "required": [ + "source", + "external_id" + ], + "additionalProperties": false, + "title": "ExternalId", + "description": "Customer-defined mapping between a PromptLayer entity and an external system identifier." + }, + "AttachExternalIdRequest": { + "properties": { + "source": { + "type": "string", + "maxLength": 128, + "minLength": 1, + "title": "Source", + "description": "The external system or namespace that owns the ID." + }, + "external_id": { + "type": "string", + "maxLength": 512, + "minLength": 1, + "title": "External Id", + "description": "The identifier for this entity in the external system." + } + }, + "type": "object", + "required": [ + "source", + "external_id" + ], + "additionalProperties": false, + "title": "AttachExternalIdRequest", + "description": "External ID mapping to attach to an entity." + }, + "ExternalIdAttachResponse": { + "properties": { + "success": { + "type": "boolean", + "const": true, + "default": true, + "title": "Success" + }, + "external_id": { + "$ref": "#/components/schemas/ExternalId" } + }, + "type": "object", + "required": [ + "success", + "external_id" ], - "example": { - "filter_group": { - "logic": "AND", - "filters": [ - { - "field": "cost", - "operator": "gte", - "value": 0.1 - } - ] + "title": "ExternalIdAttachResponse" + }, + "ExternalIdsListResponse": { + "properties": { + "success": { + "type": "boolean", + "const": true, + "default": true, + "title": "Success" }, - "page": 1, - "per_page": 25, - "sort_by": "cost", - "sort_order": "desc" - } + "external_ids": { + "items": { + "$ref": "#/components/schemas/ExternalId" + }, + "type": "array", + "title": "External Ids" + } + }, + "type": "object", + "required": [ + "success", + "external_ids" + ], + "title": "ExternalIdsListResponse" }, - "StructuredFilter": { + "ExternalIdDeleteResponse": { + "properties": { + "success": { + "type": "boolean", + "const": true, + "default": true, + "title": "Success" + } + }, "type": "object", - "title": "StructuredFilter", - "description": "A single filter condition on a request log field.", "required": [ - "field", - "operator" + "success" ], + "title": "ExternalIdDeleteResponse" + }, + "ExternalIdErrorResponse": { "properties": { - "field": { + "success": { + "type": "boolean", + "const": false, + "default": false, + "title": "Success" + }, + "message": { "type": "string", - "description": "The request log field to filter on. Intent fields are virtual fields that classify request content by tone and do not require any additional logging configuration. `user_intent` classifies the user's message; valid values: `frustrated`, `satisfied`, `curious`. `agent_intent` classifies the agent's response; valid values: `apologetic`, `refusal`, `uncertain`. Intent fields support operators: `is`, `is_not`, `in`, `not_in`.", - "enum": [ - "pl_id", - "prompt_id", - "engine", - "provider_type", - "input_text", - "output_text", - "prompt_version_number", - "input_tokens", - "output_tokens", - "cost", - "latency_ms", - "request_start_time", - "request_end_time", - "status", - "is_json", - "is_tool_call", - "is_plain_text", - "tags", - "metadata_keys", - "metadata", - "tool_names", - "output", - "output_keys", - "input_variables", - "input_variable_keys", - "user_intent", - "agent_intent" - ] + "title": "Message" + } + }, + "type": "object", + "required": [ + "message" + ], + "title": "ExternalIdErrorResponse" + }, + "ListPromptTemplateItem": { + "properties": { + "id": { + "type": "integer", + "title": "Id" }, - "operator": { + "prompt_name": { "type": "string", - "description": "The comparison operator.", - "enum": [ - "is", - "is_not", - "in", - "not_in", - "contains", - "not_contains", - "starts_with", - "ends_with", - "eq", - "neq", - "gt", - "gte", - "lt", - "lte", - "between", - "before", - "after", - "is_true", - "is_false", - "is_empty", - "is_not_empty", - "is_null", - "is_not_null", - "key_equals", - "key_not_equals", - "key_contains" - ] + "title": "Prompt Name" }, - "value": { - "description": "The value to compare against. Type depends on the field and operator.", + "prompt_template": { "oneOf": [ { - "type": "string" + "$ref": "#/components/schemas/CompletionPrompt" }, { - "type": "number" + "$ref": "#/components/schemas/ChatPrompt" + } + ], + "title": "Prompt Template", + "discriminator": { + "propertyName": "type", + "mapping": { + "chat": "#/components/schemas/ChatPrompt", + "completion": "#/components/schemas/CompletionPrompt" + } + } + }, + "metadata": { + "anyOf": [ + { + "$ref": "#/components/schemas/Metadata" }, { - "type": "boolean" + "type": "null" + } + ] + }, + "commit_message": { + "anyOf": [ + { + "type": "string" }, { - "type": "array" + "type": "null" + } + ], + "title": "Commit Message" + }, + "llm_kwargs": { + "anyOf": [ + { + "type": "object" }, { "type": "null" } + ], + "title": "Llm Kwargs", + "description": "When you optionally specify `provider` in the body, `llm_kwargs` will be returned for that specific provider and you can pass these kwargs to the provider's API directly. **Important:** This object's structure is provider-specific and may change without notice as LLM providers update their APIs. For stable, provider-agnostic prompt data, use `prompt_template` instead." + }, + "version": { + "type": "integer", + "title": "Version" + }, + "external_ids": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ExternalId" + }, + "description": "External ID mappings attached to the prompt template.", + "title": "External Ids" + }, + "is_snippet": { + "type": "boolean", + "title": "Is Snippet", + "description": "Whether this prompt template record is a snippet." + } + }, + "type": "object", + "required": [ + "id", + "prompt_name", + "prompt_template", + "external_ids" + ], + "title": "ListPromptTemplateItem" + }, + "RateLimitError": { + "type": "object", + "description": "Error returned when an endpoint rate limit is exceeded.", + "properties": { + "success": { + "type": "boolean", + "enum": [ + false ] }, - "nested_key": { + "message": { + "type": "string" + }, + "error": { + "type": "string", + "nullable": true + } + } + }, + "EvaluationColumnDefinition": { + "type": "object", + "title": "EvaluationColumnDefinition", + "description": "Definition for a column in an evaluation pipeline. The configuration schema depends on column_type.", + "required": [ + "column_type", + "name", + "configuration" + ], + "properties": { + "column_type": { + "type": "string", + "enum": [ + "PROMPT_TEMPLATE", + "CODE_EXECUTION", + "ENDPOINT", + "WORKFLOW", + "MCP", + "HUMAN", + "CONVERSATION_SIMULATOR", + "LLM_ASSERTION", + "AI_DATA_EXTRACTION", + "COMPARE", + "CONTAINS", + "REGEX", + "COSINE_SIMILARITY", + "ABSOLUTE_NUMERIC_DISTANCE", + "JSON_PATH", + "XML_PATH", + "REGEX_EXTRACTION", + "PARSE_VALUE", + "VARIABLE", + "ASSERT_VALID", + "COALESCE", + "COMBINE_COLUMNS", + "COUNT", + "MATH_OPERATOR", + "MIN_MAX" + ], + "description": "Type of evaluation column to create." + }, + "name": { "type": "string", + "description": "Display name for the column. Must be unique within the pipeline." + }, + "configuration": { + "type": "object", + "additionalProperties": true, + "description": "Column-type-specific configuration. See Node & Column Types for details." + }, + "position": { + "type": "integer", + "minimum": 1, "nullable": true, - "description": "Required for nested fields (metadata, output, input_variables). Specifies which key within the nested object to filter on." + "description": "1-based position in the pipeline. Auto-assigned if omitted." + }, + "is_part_of_score": { + "type": "boolean", + "default": false, + "description": "When true, PromptLayer includes this column in built-in scoring by averaging its values." } + }, + "example": { + "column_type": "LLM_ASSERTION", + "name": "Accuracy Check", + "configuration": { + "source": "response", + "prompt": "Is this response accurate?" + }, + "is_part_of_score": true } }, - "StructuredFilterGroup": { + "ScoreConfiguration": { "type": "object", - "title": "StructuredFilterGroup", - "description": "A group of filters combined with AND or OR logic. Can be nested recursively.", + "title": "ScoreConfiguration", + "description": "Custom scoring configuration. The code receives a data variable containing row dictionaries and must return an object with at least a score key from 0 to 100.", "required": [ - "filters" + "code" ], "properties": { - "logic": { + "code": { + "type": "string", + "description": "Python or JavaScript code used to calculate the score." + }, + "code_language": { "type": "string", "enum": [ - "AND", - "OR" + "PYTHON", + "JAVASCRIPT" ], - "default": "AND", - "description": "How to combine the filters in this group." + "default": "PYTHON", + "description": "Language used by the scoring code." + } + }, + "example": { + "code": "score = sum(1 for row in data if row.get(\"Accuracy Check\") is True) / len(data) * 100 if data else 0\nreturn {\"score\": score}", + "code_language": "PYTHON" + } + }, + "EvaluationPipelineSummary": { + "type": "object", + "title": "EvaluationPipelineSummary", + "additionalProperties": true, + "properties": { + "id": { + "type": "integer" }, - "filters": { + "name": { + "type": "string" + }, + "tags": { "type": "array", - "description": "List of filters or nested filter groups.", "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/StructuredFilter" - }, - { - "$ref": "#/components/schemas/StructuredFilterGroup" - } - ] + "type": "string" } + }, + "score_configuration": { + "anyOf": [ + { + "$ref": "#/components/schemas/ScoreConfiguration" + }, + { + "type": "null" + } + ] } } }, - "SearchRequestLogsResponse": { + "ReportColumnSummary": { "type": "object", - "title": "SearchRequestLogsResponse", - "description": "Paginated search results.", + "title": "ReportColumnSummary", + "additionalProperties": true, "properties": { - "success": { - "type": "boolean", - "description": "Indicates the request was successful." + "id": { + "type": "integer" }, - "items": { - "type": "array", - "description": "List of matching request log summaries.", - "items": { - "$ref": "#/components/schemas/RequestLogSearchResult" - } + "name": { + "type": "string" }, - "page": { - "type": "integer", - "description": "Current page number." + "column_type": { + "type": "string", + "enum": [ + "PROMPT_TEMPLATE", + "CODE_EXECUTION", + "ENDPOINT", + "WORKFLOW", + "MCP", + "HUMAN", + "CONVERSATION_SIMULATOR", + "LLM_ASSERTION", + "AI_DATA_EXTRACTION", + "COMPARE", + "CONTAINS", + "REGEX", + "COSINE_SIMILARITY", + "ABSOLUTE_NUMERIC_DISTANCE", + "JSON_PATH", + "XML_PATH", + "REGEX_EXTRACTION", + "PARSE_VALUE", + "VARIABLE", + "ASSERT_VALID", + "COALESCE", + "COMBINE_COLUMNS", + "COUNT", + "MATH_OPERATOR", + "MIN_MAX", + "DATASET" + ] }, - "pages": { + "position": { + "type": "integer" + }, + "configuration": { + "type": "object", + "additionalProperties": true + } + } + }, + "CreateEvaluationPipelineRequest": { + "type": "object", + "title": "CreateEvaluationPipelineRequest", + "required": [ + "dataset_group_id" + ], + "properties": { + "dataset_group_id": { "type": "integer", - "description": "Total number of pages." + "description": "ID of the dataset group to use." }, - "per_page": { + "name": { + "type": "string", + "nullable": true, + "description": "Name for the pipeline. Auto-generated if omitted." + }, + "folder_id": { "type": "integer", - "description": "Number of results per page." + "nullable": true, + "description": "Folder ID for organization." }, - "total": { + "dataset_version_number": { "type": "integer", - "description": "Total number of matching results." + "nullable": true, + "description": "Specific dataset version. Uses latest published version if omitted." }, - "has_next": { - "type": "boolean", - "description": "Whether there are more pages after the current one." + "columns": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/EvaluationColumnDefinition" + }, + "description": "Evaluation columns to add to the pipeline." }, - "has_prev": { + "score_configuration": { + "anyOf": [ + { + "$ref": "#/components/schemas/ScoreConfiguration" + }, + { + "type": "null" + } + ], + "description": "Optional custom scoring logic." + }, + "external_ids": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ExternalId" + }, + "description": "External ID mappings to attach to the pipeline." + } + } + }, + "CreateEvaluationPipelineResponse": { + "type": "object", + "title": "CreateEvaluationPipelineResponse", + "required": [ + "success", + "report_id", + "external_ids" + ], + "properties": { + "success": { "type": "boolean", - "description": "Whether there are pages before the current one." + "enum": [ + true + ] }, - "next_num": { + "report_id": { "type": "integer", - "nullable": true, - "description": "Next page number, or null if on the last page." + "description": "ID of the created evaluation pipeline." + }, + "report_columns": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ReportColumnSummary" + }, + "description": "Columns created on the pipeline." }, - "prev_num": { - "type": "integer", - "nullable": true, - "description": "Previous page number, or null if on the first page." + "external_ids": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ExternalId" + }, + "description": "External ID mappings attached to the pipeline." } } }, - "ExternalId": { + "UpdateReportScoreCardRequest": { + "type": "object", + "title": "UpdateReportScoreCardRequest", + "required": [ + "column_names" + ], "properties": { - "source": { + "column_names": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Column names to include in the score calculation." + }, + "code": { "type": "string", - "maxLength": 128, - "minLength": 1, - "title": "Source", - "description": "The external system or namespace that owns the ID." + "nullable": true, + "description": "Optional custom Python or JavaScript scoring code. The code receives data and must return an object with a score key." }, - "external_id": { + "code_language": { "type": "string", - "maxLength": 512, - "minLength": 1, - "title": "External Id", - "description": "The identifier for this entity in the external system." + "enum": [ + "PYTHON", + "JAVASCRIPT" + ], + "default": "PYTHON", + "description": "Language used by the custom scoring code." } - }, + } + }, + "UpdateReportScoreCardResponse": { "type": "object", + "title": "UpdateReportScoreCardResponse", "required": [ - "source", - "external_id" + "success", + "report" ], - "additionalProperties": false, - "title": "ExternalId", - "description": "Customer-defined mapping between a PromptLayer entity and an external system identifier." - }, - "AttachExternalIdRequest": { "properties": { - "source": { - "type": "string", - "maxLength": 128, - "minLength": 1, - "title": "Source", - "description": "The external system or namespace that owns the ID." + "success": { + "type": "boolean", + "enum": [ + true + ] }, - "external_id": { - "type": "string", - "maxLength": 512, - "minLength": 1, - "title": "External Id", - "description": "The identifier for this entity in the external system." + "report": { + "$ref": "#/components/schemas/EvaluationPipelineSummary" } - }, + } + }, + "EditReportColumnRequest": { "type": "object", + "title": "EditReportColumnRequest", "required": [ - "source", - "external_id" + "report_id", + "column_type" ], - "additionalProperties": false, - "title": "AttachExternalIdRequest", - "description": "External ID mapping to attach to an entity." - }, - "ExternalIdAttachResponse": { "properties": { - "success": { - "type": "boolean", - "const": true, - "default": true, - "title": "Success" + "report_id": { + "type": "integer", + "description": "Parent evaluation pipeline ID. Must match the column parent." }, - "external_id": { - "$ref": "#/components/schemas/ExternalId" + "column_type": { + "type": "string", + "enum": [ + "PROMPT_TEMPLATE", + "CODE_EXECUTION", + "ENDPOINT", + "WORKFLOW", + "MCP", + "HUMAN", + "CONVERSATION_SIMULATOR", + "LLM_ASSERTION", + "AI_DATA_EXTRACTION", + "COMPARE", + "CONTAINS", + "REGEX", + "COSINE_SIMILARITY", + "ABSOLUTE_NUMERIC_DISTANCE", + "JSON_PATH", + "XML_PATH", + "REGEX_EXTRACTION", + "PARSE_VALUE", + "VARIABLE", + "ASSERT_VALID", + "COALESCE", + "COMBINE_COLUMNS", + "COUNT", + "MATH_OPERATOR", + "MIN_MAX" + ], + "description": "Replacement column type. DATASET columns cannot be edited." + }, + "configuration": { + "type": "object", + "additionalProperties": true, + "nullable": true, + "description": "Replacement column configuration. Schema depends on column_type." + }, + "name": { + "type": "string", + "nullable": true, + "description": "New column name. Must be unique within the pipeline." + }, + "position": { + "type": "integer", + "minimum": 1, + "nullable": true, + "description": "New 1-based position. Cannot overwrite dataset columns." } - }, + } + }, + "EditReportColumnResponse": { "type": "object", + "title": "EditReportColumnResponse", "required": [ "success", - "external_id" + "report_column" ], - "title": "ExternalIdAttachResponse" - }, - "ExternalIdsListResponse": { "properties": { "success": { "type": "boolean", - "const": true, - "default": true, - "title": "Success" + "enum": [ + true + ] }, - "external_ids": { + "report_column": { + "$ref": "#/components/schemas/ReportColumnSummary" + } + } + }, + "RenameReportRequest": { + "type": "object", + "title": "RenameReportRequest", + "description": "Provide name, tags, or both. At least one field is required.", + "minProperties": 1, + "properties": { + "name": { + "type": "string", + "minLength": 1, + "maxLength": 255, + "nullable": true, + "description": "New pipeline name." + }, + "tags": { + "type": "array", "items": { - "$ref": "#/components/schemas/ExternalId" + "type": "string" }, - "type": "array", - "title": "External Ids" + "nullable": true, + "description": "Replacement tags. Pass an empty array to clear all tags." } - }, + } + }, + "RenameReportResponse": { "type": "object", + "title": "RenameReportResponse", "required": [ "success", - "external_ids" + "report" ], - "title": "ExternalIdsListResponse" - }, - "ExternalIdDeleteResponse": { "properties": { "success": { "type": "boolean", - "const": true, - "default": true, - "title": "Success" + "enum": [ + true + ] + }, + "report": { + "$ref": "#/components/schemas/EvaluationPipelineSummary" } - }, + } + }, + "DeleteReportResponse": { "type": "object", + "title": "DeleteReportResponse", "required": [ - "success" + "success", + "message" ], - "title": "ExternalIdDeleteResponse" - }, - "ExternalIdErrorResponse": { "properties": { "success": { "type": "boolean", - "const": false, - "default": false, - "title": "Success" + "enum": [ + true + ] }, "message": { + "type": "string" + } + } + }, + "CreateDatasetGroupRequest": { + "type": "object", + "title": "CreateDatasetGroupRequest", + "required": [ + "name" + ], + "properties": { + "name": { "type": "string", - "title": "Message" + "description": "Name for the dataset group. Must be unique within the workspace." + }, + "workspace_id": { + "type": "integer", + "nullable": true, + "description": "Workspace ID. Defaults to the workspace associated with the API key." + }, + "folder_id": { + "type": "integer", + "nullable": true, + "description": "Folder ID to create the dataset group in. Omit to create at the workspace root." + }, + "external_ids": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ExternalId" + }, + "description": "External ID mappings to attach to the dataset group." } - }, + } + }, + "CreateDatasetGroupResponse": { "type": "object", + "title": "CreateDatasetGroupResponse", "required": [ - "message" + "success", + "dataset_group", + "dataset", + "external_ids" ], - "title": "ExternalIdErrorResponse" - }, - "ListPromptTemplateItem": { "properties": { - "id": { - "type": "integer", - "title": "Id" - }, - "prompt_name": { - "type": "string", - "title": "Prompt Name" + "success": { + "type": "boolean", + "enum": [ + true + ] }, - "prompt_template": { - "oneOf": [ - { - "$ref": "#/components/schemas/CompletionPrompt" - }, - { - "$ref": "#/components/schemas/ChatPrompt" - } - ], - "title": "Prompt Template", - "discriminator": { - "propertyName": "type", - "mapping": { - "chat": "#/components/schemas/ChatPrompt", - "completion": "#/components/schemas/CompletionPrompt" - } - } + "message": { + "type": "string" }, - "metadata": { + "dataset_group": { "anyOf": [ { - "$ref": "#/components/schemas/Metadata" + "$ref": "#/components/schemas/DatasetGroup" }, { - "type": "null" + "type": "object", + "additionalProperties": true } ] }, - "commit_message": { + "dataset": { "anyOf": [ { - "type": "string" + "$ref": "#/components/schemas/Dataset" }, { - "type": "null" + "type": "object", + "additionalProperties": true } ], - "title": "Commit Message" + "description": "Initial draft dataset created with version_number = -1." }, - "llm_kwargs": { + "external_ids": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ExternalId" + } + } + } + }, + "CreateDatasetVersionFromFilterParamsRequest": { + "type": "object", + "title": "CreateDatasetVersionFromFilterParamsRequest", + "required": [ + "dataset_group_id" + ], + "properties": { + "dataset_group_id": { + "type": "integer", + "description": "Dataset group that will receive the generated dataset version." + }, + "request_log_ids": { + "type": "array", + "items": { + "type": "integer" + }, + "maxItems": 50000, + "nullable": true, + "description": "Explicit request log IDs to snapshot. When provided, this mode takes precedence over filter_group." + }, + "filter_group": { "anyOf": [ { - "type": "object" + "$ref": "#/components/schemas/StructuredFilterGroup" }, { "type": "null" } ], - "title": "Llm Kwargs", - "description": "When you optionally specify `provider` in the body, `llm_kwargs` will be returned for that specific provider and you can pass these kwargs to the provider's API directly. **Important:** This object's structure is provider-specific and may change without notice as LLM providers update their APIs. For stable, provider-agnostic prompt data, use `prompt_template` instead." + "description": "Structured request-log filters used to populate the dataset asynchronously." }, - "version": { - "type": "integer", - "title": "Version" + "q": { + "type": "string", + "nullable": true, + "description": "Free-text request-log search query applied with filter_group." }, - "external_ids": { + "sort_by": { + "type": "string", + "enum": [ + "request_start_time", + "input_tokens", + "output_tokens", + "cost", + "latency_ms", + "status" + ], + "nullable": true + }, + "sort_order": { + "type": "string", + "enum": [ + "asc", + "desc" + ], + "nullable": true + }, + "variables_to_parse": { "type": "array", "items": { - "$ref": "#/components/schemas/ExternalId" + "type": "string" }, - "description": "External ID mappings attached to the prompt template.", - "title": "External Ids" + "nullable": true, + "description": "Request fields or variables to parse into dataset columns." }, - "is_snippet": { - "type": "boolean", - "title": "Is Snippet", - "description": "Whether this prompt template record is a snippet." + "limit": { + "type": "integer", + "nullable": true, + "minimum": 1, + "description": "Maximum number of request logs to include. When set, only the first N matching rows (in the current sort order) are added to the dataset version." } - }, + } + }, + "CreateDatasetVersionFromFilterParamsResponse": { "type": "object", + "title": "CreateDatasetVersionFromFilterParamsResponse", "required": [ - "id", - "prompt_name", - "prompt_template", - "external_ids" + "success", + "dataset_id", + "dataset_group_id", + "version_number" ], - "title": "ListPromptTemplateItem" - }, - "RateLimitError": { - "type": "object", - "description": "Error returned when an endpoint rate limit is exceeded.", "properties": { "success": { "type": "boolean", "enum": [ - false + true ] }, "message": { "type": "string" }, - "error": { - "type": "string", - "nullable": true + "dataset_id": { + "type": "integer" + }, + "dataset_group_id": { + "type": "integer" + }, + "version_number": { + "type": "integer", + "description": "Version number of the draft or generated dataset version." } } }, - "EvaluationColumnDefinition": { + "DatasetRowCell": { "type": "object", - "title": "EvaluationColumnDefinition", - "description": "Definition for a column in an evaluation pipeline. The configuration schema depends on column_type.", + "title": "DatasetRowCell", "required": [ - "column_type", - "name", - "configuration" + "type", + "value" ], "properties": { - "column_type": { + "type": { "type": "string", "enum": [ - "PROMPT_TEMPLATE", - "CODE_EXECUTION", - "ENDPOINT", - "WORKFLOW", - "MCP", - "HUMAN", - "CONVERSATION_SIMULATOR", - "LLM_ASSERTION", - "AI_DATA_EXTRACTION", - "COMPARE", - "CONTAINS", - "REGEX", - "COSINE_SIMILARITY", - "ABSOLUTE_NUMERIC_DISTANCE", - "JSON_PATH", - "XML_PATH", - "REGEX_EXTRACTION", - "PARSE_VALUE", - "VARIABLE", - "ASSERT_VALID", - "COALESCE", - "COMBINE_COLUMNS", - "COUNT", - "MATH_OPERATOR", - "MIN_MAX" - ], - "description": "Type of evaluation column to create." - }, - "name": { - "type": "string", - "description": "Display name for the column. Must be unique within the pipeline." - }, - "configuration": { - "type": "object", - "additionalProperties": true, - "description": "Column-type-specific configuration. See Node & Column Types for details." - }, - "position": { - "type": "integer", - "minimum": 1, - "nullable": true, - "description": "1-based position in the pipeline. Auto-assigned if omitted." + "dataset" + ] }, - "is_part_of_score": { - "type": "boolean", - "default": false, - "description": "When true, PromptLayer includes this column in built-in scoring by averaging its values." + "value": { + "description": "Dataset cell value." } - }, - "example": { - "column_type": "LLM_ASSERTION", - "name": "Accuracy Check", - "configuration": { - "source": "response", - "prompt": "Is this response accurate?" - }, - "is_part_of_score": true } }, - "ScoreConfiguration": { + "EvaluationRowCell": { "type": "object", - "title": "ScoreConfiguration", - "description": "Custom scoring configuration. The code receives a data variable containing row dictionaries and must return an object with at least a score key from 0 to 100.", + "title": "EvaluationRowCell", "required": [ - "code" + "type", + "status" ], "properties": { - "code": { + "type": { + "type": "string", + "enum": [ + "eval" + ] + }, + "status": { "type": "string", - "description": "Python or JavaScript code used to calculate the score." + "description": "Evaluation cell status, such as PASSED, FAILED, RUNNING, or SKIPPED." }, - "code_language": { + "value": { + "nullable": true, + "description": "Evaluation result value." + }, + "error_message": { "type": "string", - "enum": [ - "PYTHON", - "JAVASCRIPT" - ], - "default": "PYTHON", - "description": "Language used by the scoring code." + "nullable": true, + "description": "Error details for failed cells." } - }, - "example": { - "code": "score = sum(1 for row in data if row.get(\"Accuracy Check\") is True) / len(data) * 100 if data else 0\nreturn {\"score\": score}", - "code_language": "PYTHON" } }, - "EvaluationPipelineSummary": { + "DatasetRowsResponse": { "type": "object", - "title": "EvaluationPipelineSummary", - "additionalProperties": true, + "title": "DatasetRowsResponse", + "required": [ + "success", + "columns", + "rows", + "page", + "per_page", + "pages", + "total" + ], "properties": { - "id": { - "type": "integer" + "success": { + "type": "boolean", + "enum": [ + true + ] }, - "name": { + "message": { "type": "string" }, - "tags": { + "columns": { "type": "array", "items": { "type": "string" } }, - "score_configuration": { - "anyOf": [ - { - "$ref": "#/components/schemas/ScoreConfiguration" - }, - { - "type": "null" - } - ] - } - } - }, - "ReportColumnSummary": { - "type": "object", - "title": "ReportColumnSummary", - "additionalProperties": true, - "properties": { - "id": { + "page": { "type": "integer" }, - "name": { - "type": "string" + "per_page": { + "type": "integer" }, - "column_type": { - "type": "string", - "enum": [ - "PROMPT_TEMPLATE", - "CODE_EXECUTION", - "ENDPOINT", - "WORKFLOW", - "MCP", - "HUMAN", - "CONVERSATION_SIMULATOR", - "LLM_ASSERTION", - "AI_DATA_EXTRACTION", - "COMPARE", - "CONTAINS", - "REGEX", - "COSINE_SIMILARITY", - "ABSOLUTE_NUMERIC_DISTANCE", - "JSON_PATH", - "XML_PATH", - "REGEX_EXTRACTION", - "PARSE_VALUE", - "VARIABLE", - "ASSERT_VALID", - "COALESCE", - "COMBINE_COLUMNS", - "COUNT", - "MATH_OPERATOR", - "MIN_MAX", - "DATASET" - ] + "pages": { + "type": "integer" }, - "position": { + "total": { "type": "integer" }, - "configuration": { - "type": "object", - "additionalProperties": true + "rows": { + "type": "array", + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/DatasetRowCell" + } + }, + "description": "Rows of dataset cells in the same order as columns." } } }, - "CreateEvaluationPipelineRequest": { + "EvaluationRowsResponse": { "type": "object", - "title": "CreateEvaluationPipelineRequest", + "title": "EvaluationRowsResponse", "required": [ - "dataset_group_id" + "success", + "columns", + "rows", + "page", + "per_page", + "pages", + "total" ], "properties": { - "dataset_group_id": { - "type": "integer", - "description": "ID of the dataset group to use." - }, - "name": { - "type": "string", - "nullable": true, - "description": "Name for the pipeline. Auto-generated if omitted." - }, - "folder_id": { - "type": "integer", - "nullable": true, - "description": "Folder ID for organization." + "success": { + "type": "boolean", + "enum": [ + true + ] }, - "dataset_version_number": { - "type": "integer", - "nullable": true, - "description": "Specific dataset version. Uses latest published version if omitted." + "message": { + "type": "string" }, "columns": { "type": "array", - "nullable": true, "items": { - "$ref": "#/components/schemas/EvaluationColumnDefinition" - }, - "description": "Evaluation columns to add to the pipeline." + "type": "string" + } }, - "score_configuration": { - "anyOf": [ - { - "$ref": "#/components/schemas/ScoreConfiguration" - }, - { - "type": "null" - } - ], - "description": "Optional custom scoring logic." + "page": { + "type": "integer" }, - "external_ids": { + "per_page": { + "type": "integer" + }, + "pages": { + "type": "integer" + }, + "total": { + "type": "integer" + }, + "rows": { "type": "array", "items": { - "$ref": "#/components/schemas/ExternalId" + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/DatasetRowCell" + }, + { + "$ref": "#/components/schemas/EvaluationRowCell" + } + ] + } }, - "description": "External ID mappings to attach to the pipeline." + "description": "Rows containing dataset cells followed by evaluation result cells." } } }, - "CreateEvaluationPipelineResponse": { + "RequestLogDetailResponse": { "type": "object", - "title": "CreateEvaluationPipelineResponse", + "title": "RequestLogDetailResponse", "required": [ "success", - "report_id", - "external_ids" + "prompt_blueprint", + "request_id" ], "properties": { "success": { @@ -20252,62 +21912,84 @@ true ] }, - "report_id": { - "type": "integer", - "description": "ID of the created evaluation pipeline." + "prompt_blueprint": { + "type": "object", + "additionalProperties": true, + "description": "Provider-agnostic prompt blueprint that can be replayed." }, - "report_columns": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ReportColumnSummary" - }, - "description": "Columns created on the pipeline." + "request_id": { + "type": "integer" }, - "external_ids": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ExternalId" - }, - "description": "External ID mappings attached to the pipeline." + "provider": { + "type": "string" + }, + "model": { + "type": "string" + }, + "input_tokens": { + "type": "integer" + }, + "output_tokens": { + "type": "integer" + }, + "tokens": { + "type": "integer" + }, + "price": { + "type": "number" + }, + "request_start_time": { + "type": "string", + "format": "date-time" + }, + "request_end_time": { + "type": "string", + "format": "date-time" + }, + "latency_ms": { + "type": "number" + }, + "trace_id": { + "type": "string", + "nullable": true, + "description": "Associated trace ID, if available." } } }, - "UpdateReportScoreCardRequest": { + "TraceDetailResponse": { "type": "object", - "title": "UpdateReportScoreCardRequest", + "title": "TraceDetailResponse", "required": [ - "column_names" + "success", + "trace_id", + "spans" ], "properties": { - "column_names": { + "success": { + "type": "boolean", + "enum": [ + true + ] + }, + "trace_id": { + "type": "string" + }, + "spans": { "type": "array", "items": { - "type": "string" + "type": "object", + "additionalProperties": true }, - "description": "Column names to include in the score calculation." - }, - "code": { - "type": "string", - "nullable": true, - "description": "Optional custom Python or JavaScript scoring code. The code receives data and must return an object with a score key." - }, - "code_language": { - "type": "string", - "enum": [ - "PYTHON", - "JAVASCRIPT" - ], - "default": "PYTHON", - "description": "Language used by the custom scoring code." + "description": "Spans in this trace. Spans that created request logs include request_log_id." } } }, - "UpdateReportScoreCardResponse": { + "SearchRequestSuggestionsResponse": { "type": "object", - "title": "UpdateReportScoreCardResponse", + "title": "SearchRequestSuggestionsResponse", "required": [ "success", - "report" + "values" ], "properties": { "success": { @@ -20316,140 +21998,200 @@ true ] }, - "report": { - "$ref": "#/components/schemas/EvaluationPipelineSummary" + "values": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Suggested values for the requested field." } } }, - "EditReportColumnRequest": { + "TrackPromptRequest": { "type": "object", - "title": "EditReportColumnRequest", + "title": "TrackPromptRequest", "required": [ - "report_id", - "column_type" + "prompt_name", + "request_id" ], "properties": { - "report_id": { - "type": "integer", - "description": "Parent evaluation pipeline ID. Must match the column parent." - }, - "column_type": { + "prompt_name": { "type": "string", - "enum": [ - "PROMPT_TEMPLATE", - "CODE_EXECUTION", - "ENDPOINT", - "WORKFLOW", - "MCP", - "HUMAN", - "CONVERSATION_SIMULATOR", - "LLM_ASSERTION", - "AI_DATA_EXTRACTION", - "COMPARE", - "CONTAINS", - "REGEX", - "COSINE_SIMILARITY", - "ABSOLUTE_NUMERIC_DISTANCE", - "JSON_PATH", - "XML_PATH", - "REGEX_EXTRACTION", - "PARSE_VALUE", - "VARIABLE", - "ASSERT_VALID", - "COALESCE", - "COMBINE_COLUMNS", - "COUNT", - "MATH_OPERATOR", - "MIN_MAX" - ], - "description": "Replacement column type. DATASET columns cannot be edited." + "description": "Prompt template name to associate with the request." }, - "configuration": { + "prompt_input_variables": { "type": "object", "additionalProperties": true, - "nullable": true, - "description": "Replacement column configuration. Schema depends on column_type." + "description": "Variables used to render the prompt." }, - "name": { + "request_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "description": "PromptLayer request ID to update." + }, + "version": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "Prompt template version to associate." + }, + "label": { "type": "string", "nullable": true, - "description": "New column name. Must be unique within the pipeline." + "description": "Release label to resolve to a prompt template version." + } + } + }, + "TrackMetadataRequest": { + "type": "object", + "title": "TrackMetadataRequest", + "required": [ + "request_id", + "metadata" + ], + "properties": { + "request_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "description": "PromptLayer request ID to update." }, - "position": { - "type": "integer", - "minimum": 1, - "nullable": true, - "description": "New 1-based position. Cannot overwrite dataset columns." + "metadata": { + "type": "object", + "additionalProperties": true, + "description": "Metadata dictionary to associate with the request." } } }, - "EditReportColumnResponse": { + "TrackResponse": { "type": "object", - "title": "EditReportColumnResponse", + "title": "TrackResponse", "required": [ "success", - "report_column" + "message" ], "properties": { "success": { - "type": "boolean", - "enum": [ - true - ] + "type": "boolean" }, - "report_column": { - "$ref": "#/components/schemas/ReportColumnSummary" + "message": { + "type": "string" } } }, - "RenameReportRequest": { + "RequestLogSearchResult": { "type": "object", - "title": "RenameReportRequest", - "description": "Provide name, tags, or both. At least one field is required.", - "minProperties": 1, + "title": "RequestLogSearchResult", + "additionalProperties": true, "properties": { - "name": { + "id": { + "type": "integer" + }, + "engine": { + "type": "string" + }, + "provider_type": { + "type": "string" + }, + "input_tokens": { + "type": "integer" + }, + "output_tokens": { + "type": "integer" + }, + "price": { + "type": "number" + }, + "request_start_time": { "type": "string", - "minLength": 1, - "maxLength": 255, - "nullable": true, - "description": "New pipeline name." + "format": "date-time" }, - "tags": { + "request_end_time": { + "type": "string", + "format": "date-time" + }, + "latency": { + "type": "number" + }, + "tags_array": { "type": "array", "items": { "type": "string" - }, - "nullable": true, - "description": "Replacement tags. Pass an empty array to clear all tags." + } + }, + "metadata": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": true + } + }, + "scores": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": true + } + }, + "prompt_name": { + "type": "string", + "nullable": true } } }, - "RenameReportResponse": { + "CreateDatasetVersionFromFileRequest": { "type": "object", - "title": "RenameReportResponse", + "title": "CreateDatasetVersionFromFileRequest", "required": [ - "success", - "report" - ], - "properties": { - "success": { - "type": "boolean", - "enum": [ - true - ] + "dataset_group_id", + "file_name", + "file_content_base64" + ], + "properties": { + "dataset_group_id": { + "type": "integer", + "minimum": 1, + "description": "ID of the dataset group where the new version will be created." }, - "report": { - "$ref": "#/components/schemas/EvaluationPipelineSummary" + "file_name": { + "type": "string", + "minLength": 1, + "maxLength": 255, + "description": "Name of the CSV or JSON file. Must end with .csv or .json." + }, + "file_content_base64": { + "type": "string", + "minLength": 1, + "description": "Base64-encoded file content. Maximum decoded file size is 100MB." } } }, - "DeleteReportResponse": { + "CreateDatasetVersionFromFileResponse": { "type": "object", - "title": "DeleteReportResponse", + "title": "CreateDatasetVersionFromFileResponse", "required": [ "success", - "message" + "message", + "dataset_id" ], "properties": { "success": { @@ -20460,47 +22202,40 @@ }, "message": { "type": "string" + }, + "dataset_id": { + "type": "integer", + "description": "ID of the draft dataset created for asynchronous processing." } } }, - "CreateDatasetGroupRequest": { + "CreateDraftDatasetVersionRequest": { "type": "object", - "title": "CreateDatasetGroupRequest", + "title": "CreateDraftDatasetVersionRequest", "required": [ - "name" + "dataset_group_id" ], "properties": { - "name": { - "type": "string", - "description": "Name for the dataset group. Must be unique within the workspace." - }, - "workspace_id": { + "dataset_group_id": { "type": "integer", - "nullable": true, - "description": "Workspace ID. Defaults to the workspace associated with the API key." + "minimum": 1, + "description": "ID of the dataset group to create a draft version for." }, - "folder_id": { + "source_dataset_id": { "type": "integer", + "minimum": 1, "nullable": true, - "description": "Folder ID to create the dataset group in. Omit to create at the workspace root." - }, - "external_ids": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ExternalId" - }, - "description": "External ID mappings to attach to the dataset group." + "description": "Optional existing dataset version to copy rows from. Must belong to the same dataset group." } } }, - "CreateDatasetGroupResponse": { + "DraftDatasetVersionResponse": { "type": "object", - "title": "CreateDatasetGroupResponse", + "title": "DraftDatasetVersionResponse", "required": [ "success", - "dataset_group", - "dataset", - "external_ids" + "message", + "draft_dataset_id" ], "properties": { "success": { @@ -20512,490 +22247,644 @@ "message": { "type": "string" }, - "dataset_group": { - "anyOf": [ - { - "$ref": "#/components/schemas/DatasetGroup" - }, - { - "type": "object", - "additionalProperties": true - } - ] - }, - "dataset": { - "anyOf": [ - { - "$ref": "#/components/schemas/Dataset" - }, - { - "type": "object", - "additionalProperties": true - } - ], - "description": "Initial draft dataset created with version_number = -1." + "draft_dataset_id": { + "type": "integer", + "description": "ID of the draft dataset." + } + } + }, + "AddRequestLogToDatasetRequest": { + "type": "object", + "title": "AddRequestLogToDatasetRequest", + "required": [ + "dataset_group_id", + "request_log_id" + ], + "properties": { + "dataset_group_id": { + "type": "integer", + "minimum": 1, + "description": "ID of the dataset group containing the draft." }, - "external_ids": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ExternalId" - } + "request_log_id": { + "type": "integer", + "minimum": 1, + "description": "ID of the request log to add as a dataset row." } } }, - "CreateDatasetVersionFromFilterParamsRequest": { + "SaveDraftDatasetVersionRequest": { "type": "object", - "title": "CreateDatasetVersionFromFilterParamsRequest", + "title": "SaveDraftDatasetVersionRequest", "required": [ "dataset_group_id" ], "properties": { "dataset_group_id": { "type": "integer", - "description": "Dataset group that will receive the generated dataset version." - }, - "request_log_ids": { - "type": "array", - "items": { - "type": "integer" - }, - "maxItems": 50000, - "nullable": true, - "description": "Explicit request log IDs to snapshot. When provided, this mode takes precedence over filter_group." - }, - "filter_group": { - "anyOf": [ - { - "$ref": "#/components/schemas/StructuredFilterGroup" - }, - { - "type": "null" - } - ], - "description": "Structured request-log filters used to populate the dataset asynchronously." + "minimum": 1, + "description": "ID of the dataset group containing the draft to save." + } + } + }, + "AddTraceToDatasetRequest": { + "type": "object", + "title": "AddTraceToDatasetRequest", + "required": [ + "dataset_group_id", + "trace_id" + ], + "properties": { + "dataset_group_id": { + "type": "integer", + "minimum": 1, + "description": "ID of the dataset group to add the trace row to." }, - "q": { + "trace_id": { "type": "string", - "nullable": true, - "description": "Free-text request-log search query applied with filter_group." + "minLength": 1, + "description": "ID of the trace to add as a dataset row." }, - "sort_by": { + "span_id": { "type": "string", + "minLength": 1, + "nullable": true, + "description": "Optional span ID. When omitted the row anchors on the trace's earliest root span (Trace export). When provided the row anchors on that span and its direct children become the columns (Span export)." + } + } + }, + "AddTraceToDatasetResponse": { + "type": "object", + "title": "AddTraceToDatasetResponse", + "properties": { + "success": { + "type": "boolean", "enum": [ - "request_start_time", - "input_tokens", - "output_tokens", - "cost", - "latency_ms", - "status" - ], - "nullable": true + true + ] }, - "sort_order": { + "draft_dataset_id": { + "type": "integer", + "description": "ID of the draft dataset the trace row was added to." + }, + "mode": { "type": "string", "enum": [ - "asc", - "desc" + "trace", + "span" ], - "nullable": true + "description": "Indicates whether the row was created from a full trace root (`trace`) or a specific span subtree (`span`)." + } + } + }, + "Table": { + "type": "object", + "description": "A Table — a versioned, multi-sheet table that can run LLM columns to generate or evaluate data at scale.", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "Unique table identifier." }, - "variables_to_parse": { - "type": "array", - "items": { - "type": "string" - }, - "nullable": true, - "description": "Request fields or variables to parse into dataset columns." + "workspace_id": { + "type": "integer", + "description": "Workspace that owns this resource; determined by the authenticated request scope." }, - "limit": { + "title": { + "type": "string" + }, + "folder_id": { "type": "integer", - "nullable": true, - "minimum": 1, - "description": "Maximum number of request logs to include. When set, only the first N matching rows (in the current sort order) are added to the dataset version." + "nullable": true + }, + "sheet_count": { + "type": "integer", + "description": "Number of active sheets." + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + } + } + }, + "TableDetail": { + "allOf": [ + { + "$ref": "#/components/schemas/Table" + } + ], + "type": "object", + "properties": { + "sheet_row_counts": { + "type": "object", + "description": "Map of sheet_id → row count.", + "additionalProperties": { + "type": "integer" + } } } }, - "CreateDatasetVersionFromFilterParamsResponse": { + "Sheet": { "type": "object", - "title": "CreateDatasetVersionFromFilterParamsResponse", - "required": [ - "success", - "dataset_id", - "dataset_group_id", - "version_number" - ], + "description": "A sheet within a Table.", "properties": { - "success": { - "type": "boolean", - "enum": [ - true - ] + "id": { + "type": "string", + "format": "uuid" }, - "message": { + "table_id": { + "type": "string", + "format": "uuid" + }, + "workspace_id": { + "type": "integer", + "description": "Workspace that owns this resource; determined by the authenticated request scope." + }, + "title": { "type": "string" }, - "dataset_id": { - "type": "integer" + "index": { + "type": "integer", + "description": "Display order of the sheet within the table (0-based)." }, - "dataset_group_id": { + "row_count": { "type": "integer" }, - "version_number": { + "version_count": { "type": "integer", - "description": "Version number of the draft or generated dataset version." + "description": "Current sheet version number. It increments when sheet data, layout, score configuration, imports, or execution output changes." + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" } } }, - "DatasetRowCell": { + "Column": { "type": "object", - "title": "DatasetRowCell", - "required": [ - "type", - "value" - ], + "description": "A column within a Table sheet.", "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "Unique identifier of the column." + }, + "sheet_id": { + "type": "string", + "format": "uuid" + }, + "workspace_id": { + "type": "integer", + "description": "Workspace that owns this resource; determined by the authenticated request scope." + }, + "title": { + "type": "string", + "description": "Display title of the column." + }, "type": { "type": "string", + "description": "Column type. 'text' columns store free-text; 'prompt_template', 'llm', 'code', 'score', 'comparison', and 'composition' columns run automated computations.", "enum": [ - "dataset" + "text", + "prompt_template", + "llm", + "code", + "score", + "comparison", + "composition" ] }, - "value": { - "description": "Dataset cell value." + "config": { + "type": "object", + "description": "Type-specific configuration. Shape depends on the column type." + }, + "position_rank": { + "type": "number", + "description": "Fractional position rank used for ordering." + }, + "is_output_column": { + "type": "boolean", + "description": "Whether this column is designated as an output column." } } }, - "EvaluationRowCell": { + "Cell": { "type": "object", - "title": "EvaluationRowCell", - "required": [ - "type", - "status" - ], + "description": "A single cell at the intersection of a column and a row.", "properties": { - "type": { + "id": { "type": "string", - "enum": [ - "eval" - ] + "format": "uuid" + }, + "sheet_id": { + "type": "string", + "format": "uuid" + }, + "column_id": { + "type": "string", + "format": "uuid" + }, + "row_index": { + "type": "integer" }, "status": { "type": "string", - "description": "Evaluation cell status, such as PASSED, FAILED, RUNNING, or SKIPPED." + "enum": [ + "completed", + "stale", + "running", + "queued", + "error", + "cancelled" + ], + "description": "Current computation status of the cell." + }, + "display_value": { + "type": "string", + "nullable": true }, "value": { + "description": "Structured cell value (type depends on column type)." + }, + "error": { + "type": "string", + "nullable": true + }, + "input_hash": { + "type": "string", "nullable": true, - "description": "Evaluation result value." + "description": "Hash of the inputs used to compute this cell, used for cache invalidation." + }, + "updated_at": { + "type": "string", + "format": "date-time", + "description": "ISO 8601 timestamp of the last update." + }, + "request_metrics": { + "allOf": [ + { + "$ref": "#/components/schemas/SmartTableRequestMetrics" + } + ], + "nullable": true, + "description": "Execution metrics populated for prompt-template column cells. Present only when the cell has an associated request log." + }, + "execution_id": { + "type": "string", + "format": "uuid", + "nullable": true, + "description": "Execution ID associated with the current or most recent computed value, when available." + }, + "last_computed_version": { + "type": "integer", + "nullable": true, + "description": "Sheet version_count when this cell was last computed. Null for text cells, virtual cells, or cells that have not completed computation." }, "error_message": { "type": "string", "nullable": true, - "description": "Error details for failed cells." + "description": "User-visible error message for failed computed cells, when available." } } }, - "DatasetRowsResponse": { + "TableImportOperation": { "type": "object", - "title": "DatasetRowsResponse", - "required": [ - "success", - "columns", - "rows", - "page", - "per_page", - "pages", - "total" - ], + "description": "Status of an asynchronous sheet import operation.", "properties": { - "success": { - "type": "boolean", + "operation_id": { + "type": "string" + }, + "source": { + "type": "string", "enum": [ - true + "file", + "request_logs" + ] + }, + "status": { + "type": "string", + "enum": [ + "pending", + "running", + "completed", + "failed" ] }, + "progress": { + "type": "number", + "nullable": true + }, "message": { - "type": "string" + "type": "string", + "nullable": true }, - "columns": { - "type": "array", - "items": { - "type": "string" - } + "rows_added": { + "type": "integer", + "nullable": true }, - "page": { - "type": "integer" + "row_count": { + "type": "integer", + "nullable": true }, - "per_page": { - "type": "integer" + "file_name": { + "type": "string", + "nullable": true }, - "pages": { - "type": "integer" + "error_message": { + "type": "string", + "nullable": true }, - "total": { - "type": "integer" + "created_at": { + "type": "string", + "format": "date-time", + "nullable": true }, - "rows": { - "type": "array", - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/DatasetRowCell" - } - }, - "description": "Rows of dataset cells in the same order as columns." + "updated_at": { + "type": "string", + "format": "date-time", + "nullable": true } } }, - "EvaluationRowsResponse": { + "SmartTableRequestMetrics": { "type": "object", - "title": "EvaluationRowsResponse", - "required": [ - "success", - "columns", - "rows", - "page", - "per_page", - "pages", - "total" - ], + "description": "Execution metrics for a prompt-template cell, derived from the underlying request log.", "properties": { - "success": { - "type": "boolean", - "enum": [ - true - ] - }, - "message": { - "type": "string" + "request_count": { + "type": "integer", + "description": "Number of LLM requests made to produce this cell's value." }, - "columns": { + "request_ids": { "type": "array", "items": { - "type": "string" - } + "type": "integer" + }, + "description": "IDs of the request logs associated with this cell." }, - "page": { - "type": "integer" + "latency_ms": { + "type": "integer", + "nullable": true, + "description": "Total end-to-end latency in milliseconds." }, - "per_page": { - "type": "integer" + "price": { + "type": "number", + "nullable": true, + "description": "Total cost in USD for all requests that produced this cell." }, - "pages": { - "type": "integer" + "input_tokens": { + "type": "integer", + "nullable": true, + "description": "Total number of input tokens across all requests." }, - "total": { - "type": "integer" + "output_tokens": { + "type": "integer", + "nullable": true, + "description": "Total number of output tokens across all requests." }, - "rows": { + "trace_ids": { "type": "array", "items": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/DatasetRowCell" - }, - { - "$ref": "#/components/schemas/EvaluationRowCell" - } - ] - } + "type": "string" }, - "description": "Rows containing dataset cells followed by evaluation result cells." + "description": "Trace IDs linked to this cell (present when the cell was produced via an OpenTelemetry-traced workflow)." } } }, - "RequestLogDetailResponse": { + "ExecutionMetadataMetricAggregate": { "type": "object", - "title": "RequestLogDetailResponse", - "required": [ - "success", - "prompt_blueprint", - "request_id" - ], + "description": "Aggregated statistics for a single execution metric (e.g. price or latency) across all rows in a sheet.", "properties": { - "success": { - "type": "boolean", + "metric_key": { + "type": "string", + "description": "Internal metric identifier. One of `price` or `latency_ms`.", "enum": [ - true + "price", + "latency_ms" ] }, - "prompt_blueprint": { - "type": "object", - "additionalProperties": true, - "description": "Provider-agnostic prompt blueprint that can be replayed." - }, - "request_id": { - "type": "integer" - }, - "provider": { - "type": "string" - }, - "model": { - "type": "string" + "metric_label": { + "type": "string", + "nullable": true, + "description": "Human-readable label for the metric." }, - "input_tokens": { - "type": "integer" + "count": { + "type": "integer", + "description": "Number of rows that have a value for this metric." }, - "output_tokens": { - "type": "integer" + "sum": { + "type": "number", + "description": "Sum of all metric values." }, - "tokens": { - "type": "integer" + "avg": { + "type": "number", + "nullable": true, + "description": "Average metric value, or null if count is 0." }, - "price": { - "type": "number" + "min": { + "type": "number", + "nullable": true, + "description": "Minimum metric value, or null if count is 0." }, - "request_start_time": { - "type": "string", - "format": "date-time" + "max": { + "type": "number", + "nullable": true, + "description": "Maximum metric value, or null if count is 0." }, - "request_end_time": { + "column_id": { "type": "string", - "format": "date-time" - }, - "latency_ms": { - "type": "number" + "format": "uuid", + "description": "ID of the system-managed metadata column for this metric. Omitted for sheet-level aggregates." }, - "trace_id": { + "source_column_id": { "type": "string", - "nullable": true, - "description": "Associated trace ID, if available." + "format": "uuid", + "description": "ID of the prompt-template source column. Omitted for sheet-level aggregates." } - } + }, + "required": [ + "metric_key", + "count", + "sum" + ] }, - "TraceDetailResponse": { + "ExecutionMetadataAggregates": { "type": "object", - "title": "TraceDetailResponse", - "required": [ - "success", - "trace_id", - "spans" - ], + "description": "Sheet-level and per-column aggregates for execution metrics (price and latency) across all prompt-template columns.", "properties": { - "success": { - "type": "boolean", - "enum": [ - true - ] - }, - "trace_id": { - "type": "string" + "by_column_id": { + "type": "object", + "description": "Per-column aggregates keyed by the system-managed metadata column ID.", + "additionalProperties": { + "$ref": "#/components/schemas/ExecutionMetadataMetricAggregate" + } }, - "spans": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true + "sheet": { + "type": "object", + "description": "Sheet-wide aggregates rolled up across all prompt-template columns.", + "properties": { + "by_metric": { + "type": "object", + "description": "Aggregates keyed by metric key (`price`, `latency_ms`).", + "additionalProperties": { + "$ref": "#/components/schemas/ExecutionMetadataMetricAggregate" + } + } }, - "description": "Spans in this trace. Spans that created request logs include request_log_id." + "required": [ + "by_metric" + ] } - } + }, + "required": [ + "by_column_id", + "sheet" + ] }, - "SearchRequestSuggestionsResponse": { + "ListTableSheetOperationsResponse": { "type": "object", - "title": "SearchRequestSuggestionsResponse", + "title": "ListTableSheetOperationsResponse", "required": [ "success", - "values" + "sheet_id", + "version", + "total_cells", + "status_counts", + "pending_count", + "active_operations" ], "properties": { "success": { - "type": "boolean", - "enum": [ - true - ] + "type": "boolean" }, - "values": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Suggested values for the requested field." - } - } - }, - "TrackPromptRequest": { - "type": "object", - "title": "TrackPromptRequest", - "required": [ - "prompt_name", - "request_id" - ], - "properties": { - "prompt_name": { + "sheet_id": { "type": "string", - "description": "Prompt template name to associate with the request." + "format": "uuid" }, - "prompt_input_variables": { + "version": { + "type": "integer" + }, + "total_cells": { + "type": "integer" + }, + "status_counts": { "type": "object", - "additionalProperties": true, - "description": "Variables used to render the prompt." + "additionalProperties": { + "type": "integer" + } }, - "request_id": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "PromptLayer request ID to update." + "pending_count": { + "type": "integer" }, - "version": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - }, - { - "type": "null" - } + "active_operations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TableSheetOperation" + } + } + }, + "additionalProperties": false + }, + "CreateTableSheetOperationRequest": { + "type": "object", + "title": "CreateTableSheetOperationRequest", + "properties": { + "operation": { + "type": "string", + "enum": [ + "recalculate" ], - "description": "Prompt template version to associate." + "default": "recalculate" }, - "label": { + "column_ids": { + "type": "array", + "nullable": true, + "items": { + "type": "string", + "format": "uuid" + }, + "description": "Columns to recalculate. Text columns cannot be recalculated." + }, + "row_ids": { + "type": "array", + "nullable": true, + "items": { + "type": "integer", + "minimum": 0 + }, + "description": "Zero-based row indices to recalculate. If omitted, matching cells across all rows are considered." + }, + "statuses": { + "type": "array", + "nullable": true, + "items": { + "type": "string", + "enum": [ + "STALE", + "QUEUED", + "DISPATCHED", + "RUNNING", + "COMPLETED", + "FAILED" + ] + }, + "description": "Cell statuses to include. Defaults to stale cells. Pass an empty array to include all statuses." + }, + "confirmation_token": { "type": "string", "nullable": true, - "description": "Release label to resolve to a prompt template version." + "description": "Confirmation token returned when the operation exceeds the confirmation threshold." } - } + }, + "additionalProperties": false }, - "TrackMetadataRequest": { + "CreateTableSheetOperationResponse": { + "title": "CreateTableSheetOperationResponse", + "oneOf": [ + { + "$ref": "#/components/schemas/CreateTableSheetOperationQueuedResponse" + }, + { + "$ref": "#/components/schemas/CreateTableSheetOperationNoopResponse" + }, + { + "$ref": "#/components/schemas/CreateTableSheetOperationConfirmationResponse" + } + ] + }, + "GetTableSheetOperationResponse": { "type": "object", - "title": "TrackMetadataRequest", + "title": "GetTableSheetOperationResponse", "required": [ - "request_id", - "metadata" + "success", + "operation" ], "properties": { - "request_id": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "PromptLayer request ID to update." + "success": { + "type": "boolean" }, - "metadata": { - "type": "object", - "additionalProperties": true, - "description": "Metadata dictionary to associate with the request." + "operation": { + "$ref": "#/components/schemas/TableSheetOperation" } - } + }, + "additionalProperties": false }, - "TrackResponse": { + "CancelTableSheetOperationResponse": { "type": "object", - "title": "TrackResponse", + "title": "CancelTableSheetOperationResponse", "required": [ "success", - "message" + "message", + "operation_id", + "execution_ids", + "cancelled_cell_count" ], "properties": { "success": { @@ -21003,490 +22892,903 @@ }, "message": { "type": "string" + }, + "operation_id": { + "type": "string" + }, + "execution_ids": { + "type": "array", + "items": { + "type": "string" + } + }, + "cancelled_cell_count": { + "type": "integer" + }, + "not_started_reset_count": { + "type": "integer" + }, + "running_invalidated_count": { + "type": "integer" } } }, - "RequestLogSearchResult": { + "TableSheetScoreResponse": { "type": "object", - "title": "RequestLogSearchResult", - "additionalProperties": true, + "title": "TableSheetScoreResponse", + "required": [ + "success", + "sheet_id", + "scoring_type", + "columns", + "aggregate_score", + "total_rows", + "scored_rows", + "excluded_rows", + "calculated_at", + "score_matrix", + "score_matrix_metrics", + "status", + "score_calculation_error", + "has_custom_scoring", + "score_configuration", + "score_type", + "overall_score", + "details", + "aggregate", + "per_column" + ], "properties": { - "id": { - "type": "integer" + "success": { + "type": "boolean" }, - "engine": { - "type": "string" + "sheet_id": { + "type": "string", + "format": "uuid" }, - "provider_type": { - "type": "string" + "scoring_type": { + "type": "string", + "enum": [ + "auto", + "boolean", + "numeric", + "custom", + null + ], + "nullable": true }, - "input_tokens": { + "columns": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TableSheetScoreColumn" + } + }, + "aggregate_score": { + "type": "number", + "nullable": true + }, + "total_rows": { "type": "integer" }, - "output_tokens": { + "scored_rows": { "type": "integer" }, - "price": { - "type": "number" + "excluded_rows": { + "type": "integer" }, - "request_start_time": { + "calculated_at": { "type": "string", - "format": "date-time" + "format": "date-time", + "nullable": true }, - "request_end_time": { + "score_matrix": { + "type": "array", + "nullable": true, + "items": { + "type": "array", + "items": { + "nullable": true, + "oneOf": [ + { + "type": "number" + }, + { + "type": "string" + }, + { + "$ref": "#/components/schemas/TableSheetScoreCellObject" + } + ] + } + } + }, + "score_matrix_metrics": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/TableSheetScoreMetric" + } + }, + "status": { "type": "string", - "format": "date-time" + "enum": [ + "queued", + "running", + "completed", + "failed", + null + ], + "nullable": true }, - "latency": { - "type": "number" + "score_calculation_error": { + "type": "string", + "nullable": true }, - "tags_array": { + "has_custom_scoring": { + "type": "boolean" + }, + "score_configuration": { + "nullable": true, + "allOf": [ + { + "$ref": "#/components/schemas/TableSheetScoreConfiguration" + } + ] + }, + "score_type": { + "type": "string", + "enum": [ + "none", + "single_column", + "multi_column", + "custom" + ] + }, + "overall_score": { + "type": "number", + "nullable": true + }, + "details": { + "type": "object", + "additionalProperties": true + }, + "aggregate": { + "type": "object", + "additionalProperties": true + }, + "per_column": { + "type": "object", + "additionalProperties": true + } + }, + "additionalProperties": false + }, + "ConfigureTableSheetScoreRequest": { + "type": "object", + "title": "ConfigureTableSheetScoreRequest", + "properties": { + "score_type": { + "type": "string", + "enum": [ + "auto", + "boolean", + "numeric", + "custom" + ], + "nullable": true, + "description": "Scoring mode. Required when score_config is provided." + }, + "score_config": { + "type": "object", + "nullable": true, + "additionalProperties": true, + "description": "Explicit score configuration." + }, + "column_ids": { + "type": "array", + "nullable": true, + "items": { + "type": "string", + "format": "uuid" + }, + "description": "Column IDs to score." + }, + "column_names": { "type": "array", + "nullable": true, "items": { "type": "string" - } + }, + "description": "Column titles to score. Titles must be unique in the sheet." }, - "metadata": { + "code": { + "type": "string", + "minLength": 1, + "maxLength": 50000, + "nullable": true, + "description": "Custom scoring code." + }, + "code_language": { + "type": "string", + "enum": [ + "PYTHON", + "JAVASCRIPT" + ], + "default": "PYTHON" + }, + "true_values": { "type": "array", + "nullable": true, "items": { - "type": "object", - "additionalProperties": true - } + "type": "string" + }, + "description": "Values treated as true for boolean scoring." }, - "scores": { + "false_values": { "type": "array", + "nullable": true, "items": { - "type": "object", - "additionalProperties": true - } + "type": "string" + }, + "description": "Values treated as false for boolean scoring." + }, + "assertion_aggregation": { + "type": "string", + "enum": [ + "all", + "any", + "mean" + ], + "nullable": true, + "description": "Aggregation mode for assertion-style boolean scoring." + } + }, + "additionalProperties": false + }, + "ConfigureTableSheetScoreResponse": { + "type": "object", + "title": "ConfigureTableSheetScoreResponse", + "required": [ + "success", + "message", + "score_configuration_id", + "status", + "requires_recalculation", + "version" + ], + "properties": { + "success": { + "type": "boolean" }, - "prompt_name": { + "message": { + "type": "string" + }, + "score_configuration_id": { "type": "string", - "nullable": true + "format": "uuid" + }, + "status": { + "type": "string", + "nullable": true, + "description": "Returned as null by this endpoint. Use the recalculation endpoint to queue score calculation." + }, + "requires_recalculation": { + "type": "boolean", + "description": "Always true after updating the score configuration." + }, + "version": { + "type": "integer" } } }, - "CreateDatasetVersionFromFileRequest": { + "RecalculateTableSheetScoreResponse": { "type": "object", - "title": "CreateDatasetVersionFromFileRequest", + "title": "RecalculateTableSheetScoreResponse", "required": [ - "dataset_group_id", - "file_name", - "file_content_base64" + "success", + "score_configuration_id", + "status" ], "properties": { - "dataset_group_id": { - "type": "integer", - "minimum": 1, - "description": "ID of the dataset group where the new version will be created." + "success": { + "type": "boolean" }, - "file_name": { + "score_configuration_id": { "type": "string", - "minLength": 1, - "maxLength": 255, - "description": "Name of the CSV or JSON file. Must end with .csv or .json." + "format": "uuid" }, - "file_content_base64": { + "status": { "type": "string", - "minLength": 1, - "description": "Base64-encoded file content. Maximum decoded file size is 100MB." + "nullable": true, + "enum": [ + "queued", + "running", + "completed", + "failed", + null + ] } } }, - "CreateDatasetVersionFromFileResponse": { + "ListTableSheetVersionsResponse": { "type": "object", - "title": "CreateDatasetVersionFromFileResponse", + "title": "ListTableSheetVersionsResponse", "required": [ "success", - "message", - "dataset_id" + "data", + "pagination", + "filters", + "count" ], "properties": { "success": { - "type": "boolean", - "enum": [ - true - ] + "type": "boolean" }, - "message": { - "type": "string" + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TableSheetVersion" + }, + "description": "Items returned on this page." }, - "dataset_id": { + "pagination": { + "$ref": "#/components/schemas/PublicListPagination" + }, + "filters": { + "$ref": "#/components/schemas/EmptyPublicFilters", + "description": "Filters applied to this page. The cursor includes a hash of this filter set, so changing filters while reusing a cursor returns an invalid cursor error." + }, + "count": { "type": "integer", - "description": "ID of the draft dataset created for asynchronous processing." + "description": "Number of items returned on this page." } - } + }, + "additionalProperties": false }, - "CreateDraftDatasetVersionRequest": { + "CreateTableSheetVersionRequest": { "type": "object", - "title": "CreateDraftDatasetVersionRequest", - "required": [ - "dataset_group_id" - ], + "title": "CreateTableSheetVersionRequest", "properties": { - "dataset_group_id": { - "type": "integer", - "minimum": 1, - "description": "ID of the dataset group to create a draft version for." + "name": { + "type": "string", + "minLength": 1, + "maxLength": 255, + "nullable": true, + "description": "Version name. Required when source_version_id is omitted." }, - "source_dataset_id": { - "type": "integer", - "minimum": 1, + "source_version_id": { + "type": "string", + "format": "uuid", "nullable": true, - "description": "Optional existing dataset version to copy rows from. Must belong to the same dataset group." + "description": "Existing version to restore from while creating a new version." } - } + }, + "additionalProperties": false }, - "DraftDatasetVersionResponse": { + "GetTableSheetVersionResponse": { "type": "object", - "title": "DraftDatasetVersionResponse", + "title": "GetTableSheetVersionResponse", "required": [ "success", - "message", - "draft_dataset_id" + "version" ], "properties": { "success": { - "type": "boolean", - "enum": [ - true - ] - }, - "message": { - "type": "string" + "type": "boolean" }, - "draft_dataset_id": { - "type": "integer", - "description": "ID of the draft dataset." + "version": { + "$ref": "#/components/schemas/TableSheetVersion" } } }, - "AddRequestLogToDatasetRequest": { + "TableSheetScoreHistoryResponse": { "type": "object", - "title": "AddRequestLogToDatasetRequest", + "title": "TableSheetScoreHistoryResponse", "required": [ - "dataset_group_id", - "request_log_id" + "success", + "score_history" ], "properties": { - "dataset_group_id": { - "type": "integer", - "minimum": 1, - "description": "ID of the dataset group containing the draft." + "success": { + "type": "boolean" }, - "request_log_id": { - "type": "integer", - "minimum": 1, - "description": "ID of the request log to add as a dataset row." + "score_history": { + "type": "object", + "required": [ + "points", + "total_points", + "returned_points", + "resolution", + "range", + "max_points", + "is_sampled" + ], + "properties": { + "points": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": true + } + }, + "total_points": { + "type": "integer" + }, + "returned_points": { + "type": "integer" + }, + "resolution": { + "type": "string", + "enum": [ + "auto", + "raw", + "min_max_bucket" + ] + }, + "range": { + "type": "string" + }, + "max_points": { + "type": "integer" + }, + "is_sampled": { + "type": "boolean" + } + } } } }, - "SaveDraftDatasetVersionRequest": { + "CreateTableSheetFileImportRequest": { "type": "object", - "title": "SaveDraftDatasetVersionRequest", + "title": "CreateTableSheetFileImportRequest", "required": [ - "dataset_group_id" + "file_name", + "file_content_base64" ], "properties": { - "dataset_group_id": { - "type": "integer", - "minimum": 1, - "description": "ID of the dataset group containing the draft to save." + "operation_id": { + "type": "string", + "nullable": true, + "description": "Optional client-provided operation ID. A UUID is generated when omitted." + }, + "file_name": { + "type": "string", + "minLength": 1, + "maxLength": 255, + "description": "CSV file name. Must end with .csv." + }, + "file_content_base64": { + "type": "string", + "minLength": 1, + "description": "Base64-encoded CSV file content." } - } + }, + "additionalProperties": false }, - "AddTraceToDatasetRequest": { + "TableSheetImportStartResponse": { "type": "object", - "title": "AddTraceToDatasetRequest", + "title": "TableSheetImportStartResponse", "required": [ - "dataset_group_id", - "trace_id" + "success", + "message", + "operation_id", + "operation", + "status_url" ], "properties": { - "dataset_group_id": { - "type": "integer", - "minimum": 1, - "description": "ID of the dataset group to add the trace row to." + "success": { + "type": "boolean" }, - "trace_id": { + "message": { + "type": "string" + }, + "operation_id": { + "type": "string" + }, + "operation": { + "$ref": "#/components/schemas/TableImportOperation" + }, + "status_url": { + "type": "string" + } + }, + "additionalProperties": false + }, + "CreateTableSheetRequestLogImportRequest": { + "type": "object", + "title": "CreateTableSheetRequestLogImportRequest", + "description": "Import request history into an existing Table sheet. Provide either request_log_ids or filter_group.", + "properties": { + "filter_group": { + "nullable": true, + "description": "Nested filter group with AND/OR logic. Use this for complex queries.", + "$ref": "#/components/schemas/StructuredFilterGroup" + }, + "q": { "type": "string", - "minLength": 1, - "description": "ID of the trace to add as a dataset row." + "nullable": true, + "description": "Free-text request-log search query applied with filter_group." }, - "span_id": { + "sort_by": { "type": "string", - "minLength": 1, "nullable": true, - "description": "Optional span ID. When omitted the row anchors on the trace's earliest root span (Trace export). When provided the row anchors on that span and its direct children become the columns (Span export)." + "enum": [ + "request_start_time", + "input_tokens", + "output_tokens", + "cost", + "latency_ms", + "status" + ], + "description": "Field to sort matching request logs before import." + }, + "sort_order": { + "type": "string", + "nullable": true, + "enum": [ + "asc", + "desc" + ], + "description": "Sort direction. Must be provided together with sort_by." + }, + "metadata_cost_breakdown_key": { + "type": "string", + "nullable": true, + "description": "Request-log query metadata key used by shared request-log query payloads." + }, + "operation_id": { + "type": "string", + "nullable": true, + "description": "Optional client-provided operation ID. A UUID is generated when omitted." + }, + "request_log_ids": { + "type": "array", + "items": { + "type": "integer", + "minimum": 1 + }, + "nullable": true, + "description": "Specific request log IDs to import.", + "minItems": 1, + "maxItems": 50000 + }, + "variables_to_parse": { + "type": "array", + "items": { + "type": "string" + }, + "default": [], + "description": "Input variable names to parse from matching request logs." + }, + "include_fields": { + "type": "array", + "items": { + "type": "string" + }, + "nullable": true, + "description": "Additional request log fields to include as columns." + }, + "limit": { + "type": "integer", + "minimum": 1, + "nullable": true, + "description": "Maximum number of matching request logs to import.", + "maximum": 50000 } - } + }, + "additionalProperties": false }, - "AddTraceToDatasetResponse": { + "TableSheetOperation": { "type": "object", - "title": "AddTraceToDatasetResponse", + "title": "TableSheetOperation", + "required": [ + "operation_id", + "operation", + "status", + "status_counts", + "cell_count", + "completed_count", + "failed_count", + "pending_count", + "status_url" + ], "properties": { - "success": { - "type": "boolean", - "enum": [ - true - ] - }, - "draft_dataset_id": { - "type": "integer", - "description": "ID of the draft dataset the trace row was added to." + "operation_id": { + "type": "string" }, - "mode": { + "operation": { "type": "string", "enum": [ - "trace", - "span" - ], - "description": "Indicates whether the row was created from a full trace root (`trace`) or a specific span subtree (`span`)." - } - } - }, - "Table": { - "type": "object", - "description": "A Table — a versioned, multi-sheet table that can run LLM columns to generate or evaluate data at scale.", - "properties": { - "id": { - "type": "string", - "format": "uuid", - "description": "Unique table identifier." - }, - "workspace_id": { - "type": "integer" + "recalculate" + ] }, - "title": { + "status": { "type": "string" }, - "folder_id": { - "type": "integer", - "nullable": true - }, - "sheet_count": { - "type": "integer", - "description": "Number of active sheets." - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - } - } - }, - "TableDetail": { - "allOf": [ - { - "$ref": "#/components/schemas/Table" - } - ], - "type": "object", - "properties": { - "sheet_row_counts": { + "status_counts": { "type": "object", - "description": "Map of sheet_id → row count.", "additionalProperties": { "type": "integer" } + }, + "cell_count": { + "type": "integer" + }, + "completed_count": { + "type": "integer" + }, + "failed_count": { + "type": "integer" + }, + "pending_count": { + "type": "integer" + }, + "status_url": { + "type": "string" } - } + }, + "additionalProperties": false }, - "Sheet": { + "CreateTableSheetOperationQueuedResponse": { "type": "object", - "description": "A sheet within a Table.", + "title": "CreateTableSheetOperationQueuedResponse", + "required": [ + "success", + "operation", + "operation_id", + "execution_id", + "execution_ids", + "cell_count", + "version", + "status_url", + "virtual_cell_count", + "cells" + ], "properties": { - "id": { - "type": "string", - "format": "uuid" + "success": { + "type": "boolean", + "enum": [ + true + ] }, - "table_id": { + "operation": { "type": "string", - "format": "uuid" + "enum": [ + "recalculate" + ] }, - "workspace_id": { - "type": "integer" + "operation_id": { + "type": "string" }, - "title": { + "execution_id": { "type": "string" }, - "index": { - "type": "integer", - "description": "Display order of the sheet within the table (0-based)." + "execution_ids": { + "type": "array", + "items": { + "type": "string" + } }, - "row_count": { + "cell_count": { "type": "integer" }, - "version_count": { + "version": { "type": "integer" }, - "created_at": { - "type": "string", - "format": "date-time" + "status_url": { + "type": "string" }, - "updated_at": { - "type": "string", - "format": "date-time" + "virtual_cell_count": { + "type": "integer" + }, + "cells": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TableCell" + } } - } + }, + "additionalProperties": false }, - "Column": { + "CreateTableSheetOperationNoopResponse": { "type": "object", - "description": "A column within a Table sheet.", + "title": "CreateTableSheetOperationNoopResponse", + "required": [ + "success", + "cell_count", + "virtual_cell_count", + "cells" + ], "properties": { - "id": { - "type": "string", - "format": "uuid", - "description": "Unique identifier of the column." + "success": { + "type": "boolean", + "enum": [ + true + ] }, - "sheet_id": { - "type": "string", - "format": "uuid" + "cell_count": { + "type": "integer", + "enum": [ + 0 + ] }, - "workspace_id": { + "virtual_cell_count": { "type": "integer" }, - "title": { - "type": "string", - "description": "Display title of the column." + "cells": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TableCell" + } + } + }, + "additionalProperties": false + }, + "CreateTableSheetOperationConfirmationResponse": { + "type": "object", + "title": "CreateTableSheetOperationConfirmationResponse", + "required": [ + "success", + "requires_confirmation", + "confirmation_token", + "affected_cell_count", + "message" + ], + "properties": { + "success": { + "type": "boolean", + "enum": [ + false + ] }, - "type": { - "type": "string", - "description": "Column type. 'text' columns store free-text; 'prompt_template', 'llm', 'code', 'score', 'comparison', and 'composition' columns run automated computations.", + "requires_confirmation": { + "type": "boolean", "enum": [ - "text", - "prompt_template", - "llm", - "code", - "score", - "comparison", - "composition" + true ] }, - "config": { - "type": "object", - "description": "Type-specific configuration. Shape depends on the column type." + "confirmation_token": { + "type": "string" }, - "position_rank": { - "type": "number", - "description": "Fractional position rank used for ordering." + "affected_cell_count": { + "type": "integer" }, - "is_output_column": { - "type": "boolean", - "description": "Whether this column is designated as an output column." + "message": { + "type": "string" } - } + }, + "additionalProperties": false }, - "Cell": { + "TableSheetScoreColumn": { "type": "object", - "description": "A single cell at the intersection of a column and a row.", + "title": "TableSheetScoreColumn", + "required": [ + "column_id", + "title", + "score", + "included_count", + "excluded_count" + ], "properties": { - "id": { - "type": "string", - "format": "uuid" - }, - "sheet_id": { - "type": "string", - "format": "uuid" - }, "column_id": { "type": "string", "format": "uuid" }, - "row_index": { - "type": "integer" - }, - "status": { - "type": "string", - "enum": [ - "completed", - "stale", - "running", - "queued", - "error", - "cancelled" - ], - "description": "Current computation status of the cell." - }, - "display_value": { - "type": "string", - "nullable": true - }, - "value": { - "description": "Structured cell value (type depends on column type)." + "title": { + "type": "string" }, - "error": { - "type": "string", + "score": { + "type": "number", "nullable": true }, - "input_hash": { - "type": "string", - "nullable": true, - "description": "Hash of the inputs used to compute this cell, used for cache invalidation." + "included_count": { + "type": "integer" }, - "updated_at": { - "type": "string", - "format": "date-time", - "description": "ISO 8601 timestamp of the last update." + "excluded_count": { + "type": "integer" }, - "request_metrics": { - "allOf": [ - { - "$ref": "#/components/schemas/SmartTableRequestMetrics" - } + "resolved_scoring_type": { + "type": "string", + "enum": [ + "auto", + "boolean", + "numeric", + "custom", + null ], - "nullable": true, - "description": "Execution metrics populated for prompt-template column cells. Present only when the cell has an associated request log." + "nullable": true } - } + }, + "additionalProperties": false }, - "TableImportOperation": { + "TableSheetScoreCellObject": { "type": "object", - "description": "Status of an asynchronous sheet import operation.", + "title": "TableSheetScoreCellObject", + "required": [ + "value" + ], "properties": { - "operation_id": { + "value": { + "nullable": true + }, + "positive_metric": { + "type": "boolean", + "nullable": true + } + }, + "additionalProperties": true + }, + "TableSheetScoreMetric": { + "type": "object", + "title": "TableSheetScoreMetric", + "required": [ + "key", + "label" + ], + "properties": { + "key": { "type": "string" }, - "source": { - "type": "string", - "enum": [ - "file", - "request_logs" - ] + "label": { + "type": "string" }, - "status": { + "positive_metric": { + "type": "boolean", + "nullable": true + } + }, + "additionalProperties": false + }, + "TableSheetScoreConfiguration": { + "type": "object", + "title": "TableSheetScoreConfiguration", + "required": [ + "score_type", + "score_config" + ], + "properties": { + "score_type": { "type": "string", "enum": [ - "pending", - "running", - "completed", - "failed" + "auto", + "boolean", + "numeric", + "custom" ] }, - "progress": { - "type": "number", - "nullable": true - }, - "message": { + "score_config": { + "type": "object", + "additionalProperties": true + } + }, + "additionalProperties": false + }, + "TableSheetVersion": { + "type": "object", + "title": "TableSheetVersion", + "required": [ + "id", + "sheet_id", + "version_number" + ], + "properties": { + "id": { "type": "string", - "nullable": true + "format": "uuid" }, - "rows_added": { - "type": "integer", - "nullable": true + "sheet_id": { + "type": "string", + "format": "uuid" }, - "row_count": { + "version_number": { "type": "integer", - "nullable": true + "description": "Sequential saved version number for this sheet." }, - "file_name": { + "name": { "type": "string", "nullable": true }, - "error_message": { + "created_by": { "type": "string", "nullable": true }, @@ -21495,146 +23797,138 @@ "format": "date-time", "nullable": true }, - "updated_at": { - "type": "string", - "format": "date-time", - "nullable": true - } - } - }, - "SmartTableRequestMetrics": { - "type": "object", - "description": "Execution metrics for a prompt-template cell, derived from the underlying request log.", - "properties": { - "request_count": { - "type": "integer", - "description": "Number of LLM requests made to produce this cell's value." + "metadata": { + "type": "object", + "additionalProperties": true }, - "request_ids": { + "deltas": { "type": "array", "items": { - "type": "integer" - }, - "description": "IDs of the request logs associated with this cell." - }, - "latency_ms": { - "type": "integer", - "nullable": true, - "description": "Total end-to-end latency in milliseconds." + "type": "object", + "additionalProperties": true + } }, - "price": { - "type": "number", - "nullable": true, - "description": "Total cost in USD for all requests that produced this cell." + "snapshot": { + "type": "object", + "additionalProperties": true }, - "input_tokens": { - "type": "integer", - "nullable": true, - "description": "Total number of input tokens across all requests." + "score": { + "type": "object", + "additionalProperties": true }, - "output_tokens": { - "type": "integer", + "score_configuration": { + "type": "object", "nullable": true, - "description": "Total number of output tokens across all requests." - }, - "trace_ids": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Trace IDs linked to this cell (present when the cell was produced via an OpenTelemetry-traced workflow)." + "additionalProperties": true } - } + }, + "additionalProperties": true }, - "ExecutionMetadataMetricAggregate": { + "PublicListPagination": { "type": "object", - "description": "Aggregated statistics for a single execution metric (e.g. price or latency) across all rows in a sheet.", + "title": "PublicListPagination", + "required": [ + "next_cursor", + "prev_cursor", + "has_more", + "limit" + ], "properties": { - "metric_key": { + "next_cursor": { "type": "string", - "description": "Internal metric identifier. One of `price` or `latency_ms`.", - "enum": [ - "price", - "latency_ms" - ] + "nullable": true, + "description": "Opaque cursor to pass as cursor for the next page, or null when there is no next page. The cursor is valid only with the same sort, order, and filter parameters used to produce it." }, - "metric_label": { + "prev_cursor": { "type": "string", "nullable": true, - "description": "Human-readable label for the metric." + "description": "Reserved for previous-page cursors. Public table list endpoints currently return null." }, - "count": { + "has_more": { + "type": "boolean", + "description": "Whether another page is available." + }, + "limit": { "type": "integer", - "description": "Number of rows that have a value for this metric." + "description": "Requested page size." + } + }, + "additionalProperties": false, + "description": "Cursor pagination metadata for public table list endpoints. Cursors are opaque and include the active sort, order, cursor value, and a hash of the active filter set." + }, + "EmptyPublicFilters": { + "type": "object", + "title": "EmptyPublicFilters", + "description": "This endpoint does not echo any filter fields.", + "maxProperties": 0, + "additionalProperties": false + }, + "TableCell": { + "type": "object", + "title": "TableCell", + "required": [ + "id", + "sheet_id", + "column_id", + "row_index", + "status" + ], + "properties": { + "id": { + "type": "string", + "description": "Cell UUID, or a virtual cell ID for not-yet-computed output cells." }, - "sum": { - "type": "number", - "description": "Sum of all metric values." + "sheet_id": { + "type": "string", + "format": "uuid" }, - "avg": { - "type": "number", + "execution_id": { + "type": "string", + "format": "uuid", "nullable": true, - "description": "Average metric value, or null if count is 0." + "description": "Execution ID associated with the current or most recent computed value, when available." }, - "min": { - "type": "number", - "nullable": true, - "description": "Minimum metric value, or null if count is 0." + "column_id": { + "type": "string", + "format": "uuid" }, - "max": { - "type": "number", + "row_index": { + "type": "integer" + }, + "last_computed_version": { + "type": "integer", "nullable": true, - "description": "Maximum metric value, or null if count is 0." + "description": "Sheet version_count when this cell was last computed. Null for text cells, virtual cells, or cells that have not completed computation." }, - "column_id": { + "status": { "type": "string", - "format": "uuid", - "description": "ID of the system-managed metadata column for this metric. Omitted for sheet-level aggregates." + "enum": [ + "STALE", + "QUEUED", + "DISPATCHED", + "RUNNING", + "COMPLETED", + "FAILED" + ] }, - "source_column_id": { + "display_value": { "type": "string", - "format": "uuid", - "description": "ID of the prompt-template source column. Omitted for sheet-level aggregates." - } - }, - "required": [ - "metric_key", - "count", - "sum" - ] - }, - "ExecutionMetadataAggregates": { - "type": "object", - "description": "Sheet-level and per-column aggregates for execution metrics (price and latency) across all prompt-template columns.", - "properties": { - "by_column_id": { - "type": "object", - "description": "Per-column aggregates keyed by the system-managed metadata column ID.", - "additionalProperties": { - "$ref": "#/components/schemas/ExecutionMetadataMetricAggregate" - } + "nullable": true }, - "sheet": { - "type": "object", - "description": "Sheet-wide aggregates rolled up across all prompt-template columns.", - "properties": { - "by_metric": { - "type": "object", - "description": "Aggregates keyed by metric key (`price`, `latency_ms`).", - "additionalProperties": { - "$ref": "#/components/schemas/ExecutionMetadataMetricAggregate" - } - } - }, - "required": [ - "by_metric" - ] + "input_hash": { + "type": "string", + "nullable": true + }, + "value": { + "nullable": true, + "description": "Structured cell value. Shape depends on the column type." + }, + "updated_at": { + "type": "string", + "format": "date-time", + "nullable": true } - }, - "required": [ - "by_column_id", - "sheet" - ] + } } }, "responses": {