From 8daf8f652b9368975d5a95a3255288a9b5702267 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 16 Jul 2026 16:23:39 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...ablesClient.CancelTableSheetScorecard.g.cs | 60 + ...esClient.ConfigureTableSheetScorecard.g.cs | 72 + ...ablesClient.DeleteTableSheetScorecard.g.cs | 36 + ....ITablesClient.GetTableSheetScorecard.g.cs | 36 + ...ent.GetTableSheetScorecardCalculation.g.cs | 40 + ...ablesClient.GetTableSheetScorecardRow.g.cs | 44 + ...lesClient.ListTableSheetScorecardRows.g.cs | 56 + ...grateLegacyTableSheetScoreToScorecard.g.cs | 60 + ...Client.RecalculateTableSheetScorecard.g.cs | 60 + ...tScorecardRowResponseAggregateVerdict.g.cs | 53 + ...rdRowResponseAggregateVerdictNullable.g.cs | 60 + ...rs.ListTableSheetScorecardRowsVerdict.g.cs | 53 + ...ableSheetScorecardRowsVerdictNullable.g.cs | 60 + ...lateTableSheetScorecardResponseStatus.g.cs | 53 + ...eSheetScorecardResponseStatusNullable.g.cs | 60 + ...ggregationRequiredStepFailureBehavior.g.cs | 53 + ...onRequiredStepFailureBehaviorNullable.g.cs | 60 + ...tScorecardCalculationAggregateVerdict.g.cs | 53 + ...rdCalculationAggregateVerdictNullable.g.cs | 60 + ....TableSheetScorecardCalculationStatus.g.cs | 53 + ...eetScorecardCalculationStatusNullable.g.cs | 60 + ...etScorecardRowSummaryAggregateVerdict.g.cs | 53 + ...ardRowSummaryAggregateVerdictNullable.g.cs | 60 + ...nConverters.TableSheetScorecardStatus.g.cs | 53 + ...ers.TableSheetScorecardStatusNullable.g.cs | 60 + .../PromptLayer.JsonSerializerContext.g.cs | 297 +- ...romptLayer.JsonSerializerContextTypes.g.cs | 746 +- ...CancelTableSheetScorecardRequest.Json.g.cs | 141 + ...dels.CancelTableSheetScorecardRequest.g.cs | 53 + ...ancelTableSheetScorecardResponse.Json.g.cs | 141 + ...els.CancelTableSheetScorecardResponse.g.cs | 94 + ...eSheetScorecardResponseScorecard.Json.g.cs | 141 + ...lTableSheetScorecardResponseScorecard.g.cs | 45 + ...figureTableSheetScorecardRequest.Json.g.cs | 141 + ...s.ConfigureTableSheetScorecardRequest.g.cs | 95 + ...SheetScorecardRequestAggregation.Json.g.cs | 141 + ...TableSheetScorecardRequestAggregation.g.cs | 19 + ...etScorecardRequestBaselineConfig.Json.g.cs | 141 + ...leSheetScorecardRequestBaselineConfig.g.cs | 19 + ...eetScorecardRequestDisplayConfig.Json.g.cs | 141 + ...bleSheetScorecardRequestDisplayConfig.g.cs | 19 + ...reTableSheetScorecardRequestStep.Json.g.cs | 141 + ...nfigureTableSheetScorecardRequestStep.g.cs | 19 + ...igureTableSheetScorecardResponse.Json.g.cs | 141 + ....ConfigureTableSheetScorecardResponse.g.cs | 65 + ...eleteTableSheetScorecardResponse.Json.g.cs | 141 + ...els.DeleteTableSheetScorecardResponse.g.cs | 45 + ...heetScorecardCalculationResponse.Json.g.cs | 141 + ...ableSheetScorecardCalculationResponse.g.cs | 73 + ...lationResponseCriterionSummaries.Json.g.cs | 141 + ...CalculationResponseCriterionSummaries.g.cs | 19 + ...dCalculationResponseDriftSummary.Json.g.cs | 141 + ...recardCalculationResponseDriftSummary.g.cs | 19 + ...etTableSheetScorecardRowResponse.Json.g.cs | 141 + ...els.GetTableSheetScorecardRowResponse.g.cs | 178 + ...tScorecardRowResponseAggregateVerdict.g.cs | 69 + ...ScorecardRowResponseDriftSummary.Json.g.cs | 141 + ...SheetScorecardRowResponseDriftSummary.g.cs | 19 + ...ScorecardRowResponseErrorSummary.Json.g.cs | 141 + ...SheetScorecardRowResponseErrorSummary.g.cs | 19 + ...etScorecardRowResponseStaleState.Json.g.cs | 141 + ...leSheetScorecardRowResponseStaleState.g.cs | 19 + ...tScorecardRowResponseStepResults.Json.g.cs | 141 + ...eSheetScorecardRowResponseStepResults.g.cs | 19 + ...tTableSheetScorecardRowsResponse.Json.g.cs | 141 + ...s.ListTableSheetScorecardRowsResponse.g.cs | 74 + ...ls.ListTableSheetScorecardRowsVerdict.g.cs | 69 + ...rateLegacyTableSheetScoreRequest.Json.g.cs | 141 + ...s.MigrateLegacyTableSheetScoreRequest.g.cs | 46 + ...ateLegacyTableSheetScoreResponse.Json.g.cs | 141 + ....MigrateLegacyTableSheetScoreResponse.g.cs | 95 + ...bleSheetScoreResponseSkippedItem.Json.g.cs | 141 + ...acyTableSheetScoreResponseSkippedItem.g.cs | 53 + ...culateTableSheetScorecardRequest.Json.g.cs | 141 + ...RecalculateTableSheetScorecardRequest.g.cs | 53 + ...ulateTableSheetScorecardResponse.Json.g.cs | 141 + ...ecalculateTableSheetScorecardResponse.g.cs | 76 + ...lateTableSheetScorecardResponseStatus.g.cs | 69 + ...Layer.Models.TableSheetScorecard.Json.g.cs | 141 + ...romptLayer.Models.TableSheetScorecard.g.cs | 192 + ...s.TableSheetScorecardAggregation.Json.g.cs | 141 + ...Models.TableSheetScorecardAggregation.g.cs | 76 + ...ggregationRequiredStepFailureBehavior.g.cs | 57 + ...ableSheetScorecardBaselineConfig.Json.g.cs | 141 + ...els.TableSheetScorecardBaselineConfig.g.cs | 19 + ...s.TableSheetScorecardCalculation.Json.g.cs | 141 + ...Models.TableSheetScorecardCalculation.g.cs | 170 + ...tScorecardCalculationAggregateVerdict.g.cs | 69 + ...ardCalculationCriterionSummaries.Json.g.cs | 141 + ...corecardCalculationCriterionSummaries.g.cs | 19 + ...ScorecardCalculationDriftSummary.Json.g.cs | 141 + ...SheetScorecardCalculationDriftSummary.g.cs | 19 + ...ScorecardCalculationErrorSummary.Json.g.cs | 141 + ...SheetScorecardCalculationErrorSummary.g.cs | 19 + ....TableSheetScorecardCalculationStatus.g.cs | 69 + ...TableSheetScorecardDisplayConfig.Json.g.cs | 141 + ...dels.TableSheetScorecardDisplayConfig.g.cs | 19 + ...s.TableSheetScorecardGetResponse.Json.g.cs | 141 + ...Models.TableSheetScorecardGetResponse.g.cs | 90 + ...ardGetResponseCriterionSummaries.Json.g.cs | 141 + ...corecardGetResponseCriterionSummaries.g.cs | 19 + ...ScorecardGetResponseDriftSummary.Json.g.cs | 141 + ...SheetScorecardGetResponseDriftSummary.g.cs | 19 + ...ls.TableSheetScorecardRowSummary.Json.g.cs | 141 + ....Models.TableSheetScorecardRowSummary.g.cs | 91 + ...etScorecardRowSummaryAggregateVerdict.g.cs | 69 + ...tScorecardRowSummaryDriftSummary.Json.g.cs | 141 + ...eSheetScorecardRowSummaryDriftSummary.g.cs | 19 + ...tScorecardRowSummaryErrorSummary.Json.g.cs | 141 + ...eSheetScorecardRowSummaryErrorSummary.g.cs | 19 + ...eetScorecardRowSummaryStaleState.Json.g.cs | 141 + ...bleSheetScorecardRowSummaryStaleState.g.cs | 19 + ...ls.TableSheetScorecardStaleState.Json.g.cs | 141 + ....Models.TableSheetScorecardStaleState.g.cs | 55 + ...ayer.Models.TableSheetScorecardStatus.g.cs | 81 + ...r.Models.TableSheetScorecardStep.Json.g.cs | 141 + ...tLayer.Models.TableSheetScorecardStep.g.cs | 109 + ...heetScorecardStepPrimitiveConfig.Json.g.cs | 141 + ...ableSheetScorecardStepPrimitiveConfig.g.cs | 19 + ...ableSheetScorecardStepThresholds.Json.g.cs | 141 + ...els.TableSheetScorecardStepThresholds.g.cs | 19 + ...ablesClient.CancelTableSheetScorecard.g.cs | 561 ++ ...esClient.ConfigureTableSheetScorecard.g.cs | 614 ++ ...ablesClient.DeleteTableSheetScorecard.g.cs | 509 ++ ...r.TablesClient.GetTableSheetScorecard.g.cs | 509 ++ ...ent.GetTableSheetScorecardCalculation.g.cs | 518 ++ ...ablesClient.GetTableSheetScorecardRow.g.cs | 530 ++ ...lesClient.ListTableSheetScorecardRows.g.cs | 555 ++ ...grateLegacyTableSheetScoreToScorecard.g.cs | 560 ++ ...Client.RecalculateTableSheetScorecard.g.cs | 561 ++ src/libs/PromptLayer/openapi.json | 6813 ++++++++++------- 131 files changed, 19957 insertions(+), 3045 deletions(-) create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.CancelTableSheetScorecard.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.ConfigureTableSheetScorecard.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.DeleteTableSheetScorecard.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.GetTableSheetScorecard.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.GetTableSheetScorecardCalculation.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.GetTableSheetScorecardRow.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.ListTableSheetScorecardRows.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.MigrateLegacyTableSheetScoreToScorecard.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.RecalculateTableSheetScorecard.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.GetTableSheetScorecardRowResponseAggregateVerdict.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.GetTableSheetScorecardRowResponseAggregateVerdictNullable.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.ListTableSheetScorecardRowsVerdict.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.ListTableSheetScorecardRowsVerdictNullable.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.RecalculateTableSheetScorecardResponseStatus.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.RecalculateTableSheetScorecardResponseStatusNullable.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScorecardAggregationRequiredStepFailureBehavior.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScorecardAggregationRequiredStepFailureBehaviorNullable.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScorecardCalculationAggregateVerdict.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScorecardCalculationAggregateVerdictNullable.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScorecardCalculationStatus.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScorecardCalculationStatusNullable.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScorecardRowSummaryAggregateVerdict.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScorecardRowSummaryAggregateVerdictNullable.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScorecardStatus.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScorecardStatusNullable.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.CancelTableSheetScorecardRequest.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.CancelTableSheetScorecardRequest.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.CancelTableSheetScorecardResponse.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.CancelTableSheetScorecardResponse.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.CancelTableSheetScorecardResponseScorecard.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.CancelTableSheetScorecardResponseScorecard.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScorecardRequest.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScorecardRequest.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScorecardRequestAggregation.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScorecardRequestAggregation.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScorecardRequestBaselineConfig.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScorecardRequestBaselineConfig.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScorecardRequestDisplayConfig.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScorecardRequestDisplayConfig.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScorecardRequestStep.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScorecardRequestStep.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScorecardResponse.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScorecardResponse.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.DeleteTableSheetScorecardResponse.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.DeleteTableSheetScorecardResponse.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardCalculationResponse.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardCalculationResponse.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardCalculationResponseCriterionSummaries.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardCalculationResponseCriterionSummaries.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardCalculationResponseDriftSummary.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardCalculationResponseDriftSummary.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardRowResponse.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardRowResponse.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardRowResponseAggregateVerdict.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardRowResponseDriftSummary.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardRowResponseDriftSummary.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardRowResponseErrorSummary.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardRowResponseErrorSummary.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardRowResponseStaleState.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardRowResponseStaleState.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardRowResponseStepResults.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardRowResponseStepResults.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.ListTableSheetScorecardRowsResponse.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.ListTableSheetScorecardRowsResponse.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.ListTableSheetScorecardRowsVerdict.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.MigrateLegacyTableSheetScoreRequest.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.MigrateLegacyTableSheetScoreRequest.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.MigrateLegacyTableSheetScoreResponse.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.MigrateLegacyTableSheetScoreResponse.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.MigrateLegacyTableSheetScoreResponseSkippedItem.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.MigrateLegacyTableSheetScoreResponseSkippedItem.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.RecalculateTableSheetScorecardRequest.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.RecalculateTableSheetScorecardRequest.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.RecalculateTableSheetScorecardResponse.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.RecalculateTableSheetScorecardResponse.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.RecalculateTableSheetScorecardResponseStatus.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecard.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecard.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardAggregation.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardAggregation.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardAggregationRequiredStepFailureBehavior.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardBaselineConfig.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardBaselineConfig.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardCalculation.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardCalculation.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardCalculationAggregateVerdict.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardCalculationCriterionSummaries.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardCalculationCriterionSummaries.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardCalculationDriftSummary.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardCalculationDriftSummary.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardCalculationErrorSummary.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardCalculationErrorSummary.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardCalculationStatus.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardDisplayConfig.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardDisplayConfig.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardGetResponse.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardGetResponse.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardGetResponseCriterionSummaries.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardGetResponseCriterionSummaries.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardGetResponseDriftSummary.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardGetResponseDriftSummary.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardRowSummary.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardRowSummary.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardRowSummaryAggregateVerdict.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardRowSummaryDriftSummary.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardRowSummaryDriftSummary.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardRowSummaryErrorSummary.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardRowSummaryErrorSummary.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardRowSummaryStaleState.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardRowSummaryStaleState.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardStaleState.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardStaleState.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardStatus.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardStep.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardStep.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardStepPrimitiveConfig.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardStepPrimitiveConfig.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardStepThresholds.Json.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardStepThresholds.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.TablesClient.CancelTableSheetScorecard.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.TablesClient.ConfigureTableSheetScorecard.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.TablesClient.DeleteTableSheetScorecard.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.TablesClient.GetTableSheetScorecard.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.TablesClient.GetTableSheetScorecardCalculation.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.TablesClient.GetTableSheetScorecardRow.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.TablesClient.ListTableSheetScorecardRows.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.TablesClient.MigrateLegacyTableSheetScoreToScorecard.g.cs create mode 100644 src/libs/PromptLayer/Generated/PromptLayer.TablesClient.RecalculateTableSheetScorecard.g.cs diff --git a/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.CancelTableSheetScorecard.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.CancelTableSheetScorecard.g.cs new file mode 100644 index 0000000..17ac174 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.CancelTableSheetScorecard.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer +{ + public partial interface ITablesClient + { + /// + /// Cancel Table Sheet Scorecard
+ /// Cancel active queued or running scorecard work for a table sheet. + ///
+ /// + /// + /// + /// 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 CancelTableSheetScorecardAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + + global::PromptLayer.CancelTableSheetScorecardRequest request, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Cancel Table Sheet Scorecard
+ /// Cancel active queued or running scorecard work for a table sheet. + ///
+ /// + /// + /// + /// 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> CancelTableSheetScorecardAsResponseAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + + global::PromptLayer.CancelTableSheetScorecardRequest request, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Cancel Table Sheet Scorecard
+ /// Cancel active queued or running scorecard work for a table sheet. + ///
+ /// + /// + /// + /// + /// 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 CancelTableSheetScorecardAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + global::System.Collections.Generic.IList? rowIndices = default, + global::System.Collections.Generic.IList? stepIds = 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.ConfigureTableSheetScorecard.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.ConfigureTableSheetScorecard.g.cs new file mode 100644 index 0000000..43c0665 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.ConfigureTableSheetScorecard.g.cs @@ -0,0 +1,72 @@ +#nullable enable + +namespace PromptLayer +{ + public partial interface ITablesClient + { + /// + /// Configure Table Sheet Scorecard
+ /// Create or update the active scorecard for a table sheet. + ///
+ /// + /// + /// + /// 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 ConfigureTableSheetScorecardAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + + global::PromptLayer.ConfigureTableSheetScorecardRequest request, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Configure Table Sheet Scorecard
+ /// Create or update the active scorecard for a table sheet. + ///
+ /// + /// + /// + /// 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> ConfigureTableSheetScorecardAsResponseAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + + global::PromptLayer.ConfigureTableSheetScorecardRequest request, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Configure Table Sheet Scorecard
+ /// Create or update the active scorecard for a table sheet. + ///
+ /// + /// + /// + /// + /// Default Value: [] + /// + /// + /// Default Value: [] + /// + /// + /// + /// + /// 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 ConfigureTableSheetScorecardAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + string name, + object aggregation, + global::System.Collections.Generic.IList? evaluatedColumnIds = default, + global::System.Collections.Generic.IList? steps = default, + object? displayConfig = default, + object? baselineConfig = 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.DeleteTableSheetScorecard.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.DeleteTableSheetScorecard.g.cs new file mode 100644 index 0000000..5773956 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.DeleteTableSheetScorecard.g.cs @@ -0,0 +1,36 @@ +#nullable enable + +namespace PromptLayer +{ + public partial interface ITablesClient + { + /// + /// Delete Table Sheet Scorecard
+ /// Soft-delete the active scorecard for a table sheet. + ///
+ /// + /// + /// 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 DeleteTableSheetScorecardAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Delete Table Sheet Scorecard
+ /// Soft-delete the active scorecard for a table sheet. + ///
+ /// + /// + /// 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> DeleteTableSheetScorecardAsResponseAsync( + 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.GetTableSheetScorecard.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.GetTableSheetScorecard.g.cs new file mode 100644 index 0000000..437987e --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.GetTableSheetScorecard.g.cs @@ -0,0 +1,36 @@ +#nullable enable + +namespace PromptLayer +{ + public partial interface ITablesClient + { + /// + /// Get Table Sheet Scorecard
+ /// Get the active scorecard for a table sheet, including latest and display calculation metadata. + ///
+ /// + /// + /// 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 GetTableSheetScorecardAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Get Table Sheet Scorecard
+ /// Get the active scorecard for a table sheet, including latest and display calculation metadata. + ///
+ /// + /// + /// 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> GetTableSheetScorecardAsResponseAsync( + 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.GetTableSheetScorecardCalculation.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.GetTableSheetScorecardCalculation.g.cs new file mode 100644 index 0000000..da21a19 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.GetTableSheetScorecardCalculation.g.cs @@ -0,0 +1,40 @@ +#nullable enable + +namespace PromptLayer +{ + public partial interface ITablesClient + { + /// + /// Get Table Sheet Scorecard Calculation
+ /// Get details for a single scorecard calculation. + ///
+ /// + /// + /// + /// 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 GetTableSheetScorecardCalculationAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + global::System.Guid calculationId, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Get Table Sheet Scorecard Calculation
+ /// Get details for a single scorecard calculation. + ///
+ /// + /// + /// + /// 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> GetTableSheetScorecardCalculationAsResponseAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + global::System.Guid calculationId, + 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.GetTableSheetScorecardRow.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.GetTableSheetScorecardRow.g.cs new file mode 100644 index 0000000..0fc5d40 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.GetTableSheetScorecardRow.g.cs @@ -0,0 +1,44 @@ +#nullable enable + +namespace PromptLayer +{ + public partial interface ITablesClient + { + /// + /// Get Table Sheet Scorecard Row
+ /// Get row-level scorecard breakdown for a single row index. + ///
+ /// + /// + /// + /// + /// 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 GetTableSheetScorecardRowAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + int rowIndex, + global::System.Guid? calculationId = default, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Get Table Sheet Scorecard Row
+ /// Get row-level scorecard breakdown for a single row index. + ///
+ /// + /// + /// + /// + /// 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> GetTableSheetScorecardRowAsResponseAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + int rowIndex, + global::System.Guid? calculationId = 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.ListTableSheetScorecardRows.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.ListTableSheetScorecardRows.g.cs new file mode 100644 index 0000000..bbff789 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.ListTableSheetScorecardRows.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace PromptLayer +{ + public partial interface ITablesClient + { + /// + /// List Table Sheet Scorecard Rows
+ /// List row-level scorecard summaries for a calculation. + ///
+ /// + /// + /// + /// + /// + /// + /// Default Value: 50 + /// + /// 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 ListTableSheetScorecardRowsAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + global::System.Guid? calculationId = default, + global::PromptLayer.ListTableSheetScorecardRowsVerdict? verdict = default, + int? cursor = default, + int? limit = default, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// List Table Sheet Scorecard Rows
+ /// List row-level scorecard summaries for a calculation. + ///
+ /// + /// + /// + /// + /// + /// + /// Default Value: 50 + /// + /// 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> ListTableSheetScorecardRowsAsResponseAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + global::System.Guid? calculationId = default, + global::PromptLayer.ListTableSheetScorecardRowsVerdict? verdict = default, + int? cursor = 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.MigrateLegacyTableSheetScoreToScorecard.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.MigrateLegacyTableSheetScoreToScorecard.g.cs new file mode 100644 index 0000000..79cda17 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.MigrateLegacyTableSheetScoreToScorecard.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer +{ + public partial interface ITablesClient + { + /// + /// Migrate Legacy Score to Scorecard
+ /// Convert legacy sheet score configuration into scorecard criteria. + ///
+ /// + /// + /// + /// 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 MigrateLegacyTableSheetScoreToScorecardAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + + global::PromptLayer.MigrateLegacyTableSheetScoreRequest request, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Migrate Legacy Score to Scorecard
+ /// Convert legacy sheet score configuration into scorecard criteria. + ///
+ /// + /// + /// + /// 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> MigrateLegacyTableSheetScoreToScorecardAsResponseAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + + global::PromptLayer.MigrateLegacyTableSheetScoreRequest request, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Migrate Legacy Score to Scorecard
+ /// Convert legacy sheet score configuration into scorecard criteria. + ///
+ /// + /// + /// + /// Default Value: false + /// + /// 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 MigrateLegacyTableSheetScoreToScorecardAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + bool? deleteLegacyScore = 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.RecalculateTableSheetScorecard.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.RecalculateTableSheetScorecard.g.cs new file mode 100644 index 0000000..33e3d27 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.ITablesClient.RecalculateTableSheetScorecard.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer +{ + public partial interface ITablesClient + { + /// + /// Recalculate Table Sheet Scorecard
+ /// Queue scorecard recalculation for a table sheet. + ///
+ /// + /// + /// + /// 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 RecalculateTableSheetScorecardAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + + global::PromptLayer.RecalculateTableSheetScorecardRequest request, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Recalculate Table Sheet Scorecard
+ /// Queue scorecard recalculation for a table sheet. + ///
+ /// + /// + /// + /// 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> RecalculateTableSheetScorecardAsResponseAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + + global::PromptLayer.RecalculateTableSheetScorecardRequest request, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Recalculate Table Sheet Scorecard
+ /// Queue scorecard recalculation for a table sheet. + ///
+ /// + /// + /// + /// + /// 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 RecalculateTableSheetScorecardAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + global::System.Collections.Generic.IList? rowIndices = default, + global::System.Collections.Generic.IList? stepIds = 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.JsonConverters.GetTableSheetScorecardRowResponseAggregateVerdict.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.GetTableSheetScorecardRowResponseAggregateVerdict.g.cs new file mode 100644 index 0000000..762b1a4 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.GetTableSheetScorecardRowResponseAggregateVerdict.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class GetTableSheetScorecardRowResponseAggregateVerdictJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.GetTableSheetScorecardRowResponseAggregateVerdict 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.GetTableSheetScorecardRowResponseAggregateVerdictExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.GetTableSheetScorecardRowResponseAggregateVerdict)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.GetTableSheetScorecardRowResponseAggregateVerdict); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.GetTableSheetScorecardRowResponseAggregateVerdict value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.GetTableSheetScorecardRowResponseAggregateVerdictExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.GetTableSheetScorecardRowResponseAggregateVerdictNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.GetTableSheetScorecardRowResponseAggregateVerdictNullable.g.cs new file mode 100644 index 0000000..91883be --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.GetTableSheetScorecardRowResponseAggregateVerdictNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class GetTableSheetScorecardRowResponseAggregateVerdictNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.GetTableSheetScorecardRowResponseAggregateVerdict? 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.GetTableSheetScorecardRowResponseAggregateVerdictExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.GetTableSheetScorecardRowResponseAggregateVerdict)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.GetTableSheetScorecardRowResponseAggregateVerdict?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.GetTableSheetScorecardRowResponseAggregateVerdict? 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.GetTableSheetScorecardRowResponseAggregateVerdictExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.ListTableSheetScorecardRowsVerdict.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.ListTableSheetScorecardRowsVerdict.g.cs new file mode 100644 index 0000000..b67dbf8 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.ListTableSheetScorecardRowsVerdict.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class ListTableSheetScorecardRowsVerdictJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.ListTableSheetScorecardRowsVerdict 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.ListTableSheetScorecardRowsVerdictExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.ListTableSheetScorecardRowsVerdict)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.ListTableSheetScorecardRowsVerdict); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.ListTableSheetScorecardRowsVerdict value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.ListTableSheetScorecardRowsVerdictExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.ListTableSheetScorecardRowsVerdictNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.ListTableSheetScorecardRowsVerdictNullable.g.cs new file mode 100644 index 0000000..504d631 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.ListTableSheetScorecardRowsVerdictNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class ListTableSheetScorecardRowsVerdictNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.ListTableSheetScorecardRowsVerdict? 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.ListTableSheetScorecardRowsVerdictExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.ListTableSheetScorecardRowsVerdict)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.ListTableSheetScorecardRowsVerdict?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.ListTableSheetScorecardRowsVerdict? 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.ListTableSheetScorecardRowsVerdictExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.RecalculateTableSheetScorecardResponseStatus.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.RecalculateTableSheetScorecardResponseStatus.g.cs new file mode 100644 index 0000000..0b4dc86 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.RecalculateTableSheetScorecardResponseStatus.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class RecalculateTableSheetScorecardResponseStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.RecalculateTableSheetScorecardResponseStatus 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.RecalculateTableSheetScorecardResponseStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.RecalculateTableSheetScorecardResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.RecalculateTableSheetScorecardResponseStatus); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.RecalculateTableSheetScorecardResponseStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.RecalculateTableSheetScorecardResponseStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.RecalculateTableSheetScorecardResponseStatusNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.RecalculateTableSheetScorecardResponseStatusNullable.g.cs new file mode 100644 index 0000000..f77b795 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.RecalculateTableSheetScorecardResponseStatusNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class RecalculateTableSheetScorecardResponseStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.RecalculateTableSheetScorecardResponseStatus? 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.RecalculateTableSheetScorecardResponseStatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.RecalculateTableSheetScorecardResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.RecalculateTableSheetScorecardResponseStatus?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.RecalculateTableSheetScorecardResponseStatus? 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.RecalculateTableSheetScorecardResponseStatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScorecardAggregationRequiredStepFailureBehavior.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScorecardAggregationRequiredStepFailureBehavior.g.cs new file mode 100644 index 0000000..20bcbff --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScorecardAggregationRequiredStepFailureBehavior.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class TableSheetScorecardAggregationRequiredStepFailureBehaviorJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.TableSheetScorecardAggregationRequiredStepFailureBehavior 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.TableSheetScorecardAggregationRequiredStepFailureBehaviorExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.TableSheetScorecardAggregationRequiredStepFailureBehavior)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.TableSheetScorecardAggregationRequiredStepFailureBehavior); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.TableSheetScorecardAggregationRequiredStepFailureBehavior value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.TableSheetScorecardAggregationRequiredStepFailureBehaviorExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScorecardAggregationRequiredStepFailureBehaviorNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScorecardAggregationRequiredStepFailureBehaviorNullable.g.cs new file mode 100644 index 0000000..4b22cdb --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScorecardAggregationRequiredStepFailureBehaviorNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class TableSheetScorecardAggregationRequiredStepFailureBehaviorNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.TableSheetScorecardAggregationRequiredStepFailureBehavior? 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.TableSheetScorecardAggregationRequiredStepFailureBehaviorExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.TableSheetScorecardAggregationRequiredStepFailureBehavior)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.TableSheetScorecardAggregationRequiredStepFailureBehavior?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.TableSheetScorecardAggregationRequiredStepFailureBehavior? 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.TableSheetScorecardAggregationRequiredStepFailureBehaviorExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScorecardCalculationAggregateVerdict.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScorecardCalculationAggregateVerdict.g.cs new file mode 100644 index 0000000..c0d1e28 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScorecardCalculationAggregateVerdict.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class TableSheetScorecardCalculationAggregateVerdictJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.TableSheetScorecardCalculationAggregateVerdict 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.TableSheetScorecardCalculationAggregateVerdictExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.TableSheetScorecardCalculationAggregateVerdict)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.TableSheetScorecardCalculationAggregateVerdict); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.TableSheetScorecardCalculationAggregateVerdict value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.TableSheetScorecardCalculationAggregateVerdictExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScorecardCalculationAggregateVerdictNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScorecardCalculationAggregateVerdictNullable.g.cs new file mode 100644 index 0000000..f49d448 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScorecardCalculationAggregateVerdictNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class TableSheetScorecardCalculationAggregateVerdictNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.TableSheetScorecardCalculationAggregateVerdict? 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.TableSheetScorecardCalculationAggregateVerdictExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.TableSheetScorecardCalculationAggregateVerdict)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.TableSheetScorecardCalculationAggregateVerdict?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.TableSheetScorecardCalculationAggregateVerdict? 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.TableSheetScorecardCalculationAggregateVerdictExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScorecardCalculationStatus.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScorecardCalculationStatus.g.cs new file mode 100644 index 0000000..4c654c5 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScorecardCalculationStatus.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class TableSheetScorecardCalculationStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.TableSheetScorecardCalculationStatus 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.TableSheetScorecardCalculationStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.TableSheetScorecardCalculationStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.TableSheetScorecardCalculationStatus); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.TableSheetScorecardCalculationStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.TableSheetScorecardCalculationStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScorecardCalculationStatusNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScorecardCalculationStatusNullable.g.cs new file mode 100644 index 0000000..99350b1 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScorecardCalculationStatusNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class TableSheetScorecardCalculationStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.TableSheetScorecardCalculationStatus? 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.TableSheetScorecardCalculationStatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.TableSheetScorecardCalculationStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.TableSheetScorecardCalculationStatus?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.TableSheetScorecardCalculationStatus? 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.TableSheetScorecardCalculationStatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScorecardRowSummaryAggregateVerdict.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScorecardRowSummaryAggregateVerdict.g.cs new file mode 100644 index 0000000..2fa7346 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScorecardRowSummaryAggregateVerdict.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class TableSheetScorecardRowSummaryAggregateVerdictJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.TableSheetScorecardRowSummaryAggregateVerdict 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.TableSheetScorecardRowSummaryAggregateVerdictExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.TableSheetScorecardRowSummaryAggregateVerdict)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.TableSheetScorecardRowSummaryAggregateVerdict); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.TableSheetScorecardRowSummaryAggregateVerdict value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.TableSheetScorecardRowSummaryAggregateVerdictExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScorecardRowSummaryAggregateVerdictNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScorecardRowSummaryAggregateVerdictNullable.g.cs new file mode 100644 index 0000000..b47ada7 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScorecardRowSummaryAggregateVerdictNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class TableSheetScorecardRowSummaryAggregateVerdictNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.TableSheetScorecardRowSummaryAggregateVerdict? 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.TableSheetScorecardRowSummaryAggregateVerdictExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.TableSheetScorecardRowSummaryAggregateVerdict)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.TableSheetScorecardRowSummaryAggregateVerdict?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.TableSheetScorecardRowSummaryAggregateVerdict? 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.TableSheetScorecardRowSummaryAggregateVerdictExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScorecardStatus.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScorecardStatus.g.cs new file mode 100644 index 0000000..87c2bbb --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScorecardStatus.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class TableSheetScorecardStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.TableSheetScorecardStatus 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.TableSheetScorecardStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.TableSheetScorecardStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.TableSheetScorecardStatus); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.TableSheetScorecardStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.TableSheetScorecardStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScorecardStatusNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScorecardStatusNullable.g.cs new file mode 100644 index 0000000..02387ef --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TableSheetScorecardStatusNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class TableSheetScorecardStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.TableSheetScorecardStatus? 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.TableSheetScorecardStatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.TableSheetScorecardStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.TableSheetScorecardStatus?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.TableSheetScorecardStatus? 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.TableSheetScorecardStatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContext.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContext.g.cs index f40bf4f..fb5bec0 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContext.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContext.g.cs @@ -385,6 +385,34 @@ namespace PromptLayer typeof(global::PromptLayer.JsonConverters.RecalculateTableSheetScoreResponseStatusNullableJsonConverter), + typeof(global::PromptLayer.JsonConverters.TableSheetScorecardAggregationRequiredStepFailureBehaviorJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScorecardAggregationRequiredStepFailureBehaviorNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScorecardStatusJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScorecardStatusNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScorecardCalculationStatusJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScorecardCalculationStatusNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScorecardCalculationAggregateVerdictJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScorecardCalculationAggregateVerdictNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.RecalculateTableSheetScorecardResponseStatusJsonConverter), + + typeof(global::PromptLayer.JsonConverters.RecalculateTableSheetScorecardResponseStatusNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScorecardRowSummaryAggregateVerdictJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScorecardRowSummaryAggregateVerdictNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.GetTableSheetScorecardRowResponseAggregateVerdictJsonConverter), + + typeof(global::PromptLayer.JsonConverters.GetTableSheetScorecardRowResponseAggregateVerdictNullableJsonConverter), + typeof(global::PromptLayer.JsonConverters.TableSheetScoreHistoryResponseScoreHistoryResolutionJsonConverter), typeof(global::PromptLayer.JsonConverters.TableSheetScoreHistoryResponseScoreHistoryResolutionNullableJsonConverter), @@ -649,6 +677,10 @@ namespace PromptLayer typeof(global::PromptLayer.JsonConverters.ListTableSheetRowsOrderNullableJsonConverter), + typeof(global::PromptLayer.JsonConverters.ListTableSheetScorecardRowsVerdictJsonConverter), + + typeof(global::PromptLayer.JsonConverters.ListTableSheetScorecardRowsVerdictNullableJsonConverter), + typeof(global::PromptLayer.JsonConverters.ListTableSheetVersionsSortJsonConverter), typeof(global::PromptLayer.JsonConverters.ListTableSheetVersionsSortNullableJsonConverter), @@ -1424,41 +1456,41 @@ namespace PromptLayer [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.TableSheetScorecardStaleState))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TableSheetScorecardAggregation))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TableSheetScorecardAggregationRequiredStepFailureBehavior), TypeInfoPropertyName = "TableSheetScorecardAggregationRequiredStepFailureBehavior2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TableSheetScorecardStep))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TableSheetScorecard))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TableSheetScorecardStatus), TypeInfoPropertyName = "TableSheetScorecardStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TableSheetScorecardCalculation))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TableSheetScorecardCalculationStatus), TypeInfoPropertyName = "TableSheetScorecardCalculationStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TableSheetScorecardCalculationAggregateVerdict), TypeInfoPropertyName = "TableSheetScorecardCalculationAggregateVerdict2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TableSheetScorecardGetResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ConfigureTableSheetScorecardRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ConfigureTableSheetScorecardResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.DeleteTableSheetScorecardResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.MigrateLegacyTableSheetScoreRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.MigrateLegacyTableSheetScoreResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.MigrateLegacyTableSheetScoreResponseSkippedItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.RecalculateTableSheetScorecardRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.RecalculateTableSheetScorecardResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.RecalculateTableSheetScorecardResponseStatus), TypeInfoPropertyName = "RecalculateTableSheetScorecardResponseStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CancelTableSheetScorecardRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CancelTableSheetScorecardResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CancelTableSheetScorecardResponseScorecard))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.GetTableSheetScorecardCalculationResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TableSheetScorecardRowSummary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TableSheetScorecardRowSummaryAggregateVerdict), TypeInfoPropertyName = "TableSheetScorecardRowSummaryAggregateVerdict2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListTableSheetScorecardRowsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.GetTableSheetScorecardRowResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.GetTableSheetScorecardRowResponseAggregateVerdict), TypeInfoPropertyName = "GetTableSheetScorecardRowResponseAggregateVerdict2")] [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.DerivedRatioInsightSpec))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.DerivedRatioInsightSpecType), TypeInfoPropertyName = "DerivedRatioInsightSpecType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.DerivedRatioInsightResult))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.DerivedRatioInsightResultType), TypeInfoPropertyName = "DerivedRatioInsightResultType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CustomAnalyticsSpec))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CustomAnalyticsSpecChartType), TypeInfoPropertyName = "CustomAnalyticsSpecChartType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CustomAnalyticsSpecMetric), TypeInfoPropertyName = "CustomAnalyticsSpecMetric2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CustomAnalyticsSpecMetricField), TypeInfoPropertyName = "CustomAnalyticsSpecMetricField2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CustomAnalyticsSeriesSpec))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CustomAnalyticsSpecGroupByField), TypeInfoPropertyName = "CustomAnalyticsSpecGroupByField2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CustomAnalyticsSeriesSpecMetric), TypeInfoPropertyName = "CustomAnalyticsSeriesSpecMetric2")] internal sealed partial class SourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -1842,6 +1874,34 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::PromptLayer.JsonConverters.RecalculateTableSheetScoreResponseStatusNullableJsonConverter), + typeof(global::PromptLayer.JsonConverters.TableSheetScorecardAggregationRequiredStepFailureBehaviorJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScorecardAggregationRequiredStepFailureBehaviorNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScorecardStatusJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScorecardStatusNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScorecardCalculationStatusJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScorecardCalculationStatusNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScorecardCalculationAggregateVerdictJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScorecardCalculationAggregateVerdictNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.RecalculateTableSheetScorecardResponseStatusJsonConverter), + + typeof(global::PromptLayer.JsonConverters.RecalculateTableSheetScorecardResponseStatusNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScorecardRowSummaryAggregateVerdictJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScorecardRowSummaryAggregateVerdictNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.GetTableSheetScorecardRowResponseAggregateVerdictJsonConverter), + + typeof(global::PromptLayer.JsonConverters.GetTableSheetScorecardRowResponseAggregateVerdictNullableJsonConverter), + typeof(global::PromptLayer.JsonConverters.TableSheetScoreHistoryResponseScoreHistoryResolutionJsonConverter), typeof(global::PromptLayer.JsonConverters.TableSheetScoreHistoryResponseScoreHistoryResolutionNullableJsonConverter), @@ -2106,6 +2166,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::PromptLayer.JsonConverters.ListTableSheetRowsOrderNullableJsonConverter), + typeof(global::PromptLayer.JsonConverters.ListTableSheetScorecardRowsVerdictJsonConverter), + + typeof(global::PromptLayer.JsonConverters.ListTableSheetScorecardRowsVerdictNullableJsonConverter), + typeof(global::PromptLayer.JsonConverters.ListTableSheetVersionsSortJsonConverter), typeof(global::PromptLayer.JsonConverters.ListTableSheetVersionsSortNullableJsonConverter), @@ -2421,6 +2485,37 @@ 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.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.DerivedRatioInsightSpec))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.DerivedRatioInsightSpecType), TypeInfoPropertyName = "DerivedRatioInsightSpecType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.DerivedRatioInsightResult))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.DerivedRatioInsightResultType), TypeInfoPropertyName = "DerivedRatioInsightResultType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CustomAnalyticsSpec))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CustomAnalyticsSpecChartType), TypeInfoPropertyName = "CustomAnalyticsSpecChartType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CustomAnalyticsSpecMetric), TypeInfoPropertyName = "CustomAnalyticsSpecMetric2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CustomAnalyticsSpecMetricField), TypeInfoPropertyName = "CustomAnalyticsSpecMetricField2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CustomAnalyticsSeriesSpec))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CustomAnalyticsSpecGroupByField), TypeInfoPropertyName = "CustomAnalyticsSpecGroupByField2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CustomAnalyticsSeriesSpecMetric), TypeInfoPropertyName = "CustomAnalyticsSeriesSpecMetric2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CustomAnalyticsSeriesSpecMetricField), TypeInfoPropertyName = "CustomAnalyticsSeriesSpecMetricField2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CustomAnalyticsSeriesMeta))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CustomAnalyticsSeriesMetaUnit), TypeInfoPropertyName = "CustomAnalyticsSeriesMetaUnit2")] @@ -2525,6 +2620,7 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [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.ListTableSheetScorecardRowsVerdict), TypeInfoPropertyName = "ListTableSheetScorecardRowsVerdict2")] [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")] @@ -2788,6 +2884,13 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ConfigureTableSheetScoreRequestCodeLanguage?), TypeInfoPropertyName = "NullableConfigureTableSheetScoreRequestCodeLanguage2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ConfigureTableSheetScoreRequestAssertionAggregation?), TypeInfoPropertyName = "NullableConfigureTableSheetScoreRequestAssertionAggregation2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.RecalculateTableSheetScoreResponseStatus?), TypeInfoPropertyName = "NullableRecalculateTableSheetScoreResponseStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TableSheetScorecardAggregationRequiredStepFailureBehavior?), TypeInfoPropertyName = "NullableTableSheetScorecardAggregationRequiredStepFailureBehavior2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TableSheetScorecardStatus?), TypeInfoPropertyName = "NullableTableSheetScorecardStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TableSheetScorecardCalculationStatus?), TypeInfoPropertyName = "NullableTableSheetScorecardCalculationStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TableSheetScorecardCalculationAggregateVerdict?), TypeInfoPropertyName = "NullableTableSheetScorecardCalculationAggregateVerdict2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.RecalculateTableSheetScorecardResponseStatus?), TypeInfoPropertyName = "NullableRecalculateTableSheetScorecardResponseStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TableSheetScorecardRowSummaryAggregateVerdict?), TypeInfoPropertyName = "NullableTableSheetScorecardRowSummaryAggregateVerdict2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.GetTableSheetScorecardRowResponseAggregateVerdict?), TypeInfoPropertyName = "NullableGetTableSheetScorecardRowResponseAggregateVerdict2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TableSheetScoreHistoryResponseScoreHistoryResolution?), TypeInfoPropertyName = "NullableTableSheetScoreHistoryResponseScoreHistoryResolution2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateTableSheetRequestLogImportRequestSortBy?), TypeInfoPropertyName = "NullableCreateTableSheetRequestLogImportRequestSortBy2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateTableSheetRequestLogImportRequestSortOrder?), TypeInfoPropertyName = "NullableCreateTableSheetRequestLogImportRequestSortOrder2")] @@ -2859,6 +2962,7 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListTablesOrder?), TypeInfoPropertyName = "NullableListTablesOrder2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListTableSheetsOrder?), TypeInfoPropertyName = "NullableListTableSheetsOrder2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListTableSheetRowsOrder?), TypeInfoPropertyName = "NullableListTableSheetRowsOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListTableSheetScorecardRowsVerdict?), TypeInfoPropertyName = "NullableListTableSheetScorecardRowsVerdict2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListTableSheetVersionsSort?), TypeInfoPropertyName = "NullableListTableSheetVersionsSort2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListTableSheetVersionsOrder?), TypeInfoPropertyName = "NullableListTableSheetVersionsOrder2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.GetTableSheetVersionScoreHistoryRange?), TypeInfoPropertyName = "NullableGetTableSheetVersionScoreHistoryRange2")] @@ -2876,46 +2980,6 @@ 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::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, object>))] - [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))] internal sealed partial class SourceGenerationContextChunk1 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -3299,6 +3363,34 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::PromptLayer.JsonConverters.RecalculateTableSheetScoreResponseStatusNullableJsonConverter), + typeof(global::PromptLayer.JsonConverters.TableSheetScorecardAggregationRequiredStepFailureBehaviorJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScorecardAggregationRequiredStepFailureBehaviorNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScorecardStatusJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScorecardStatusNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScorecardCalculationStatusJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScorecardCalculationStatusNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScorecardCalculationAggregateVerdictJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScorecardCalculationAggregateVerdictNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.RecalculateTableSheetScorecardResponseStatusJsonConverter), + + typeof(global::PromptLayer.JsonConverters.RecalculateTableSheetScorecardResponseStatusNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScorecardRowSummaryAggregateVerdictJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TableSheetScorecardRowSummaryAggregateVerdictNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.GetTableSheetScorecardRowResponseAggregateVerdictJsonConverter), + + typeof(global::PromptLayer.JsonConverters.GetTableSheetScorecardRowResponseAggregateVerdictNullableJsonConverter), + typeof(global::PromptLayer.JsonConverters.TableSheetScoreHistoryResponseScoreHistoryResolutionJsonConverter), typeof(global::PromptLayer.JsonConverters.TableSheetScoreHistoryResponseScoreHistoryResolutionNullableJsonConverter), @@ -3563,6 +3655,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::PromptLayer.JsonConverters.ListTableSheetRowsOrderNullableJsonConverter), + typeof(global::PromptLayer.JsonConverters.ListTableSheetScorecardRowsVerdictJsonConverter), + + typeof(global::PromptLayer.JsonConverters.ListTableSheetScorecardRowsVerdictNullableJsonConverter), + typeof(global::PromptLayer.JsonConverters.ListTableSheetVersionsSortJsonConverter), typeof(global::PromptLayer.JsonConverters.ListTableSheetVersionsSortNullableJsonConverter), @@ -3878,6 +3974,46 @@ internal sealed partial class SourceGenerationContextChunk1 : 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::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::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, object>))] + [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.Dictionary>>))] @@ -3904,6 +4040,9 @@ internal sealed partial class SourceGenerationContextChunk1 : 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))] @@ -4168,6 +4307,20 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o 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.TableSheetScorecardAggregationRequiredStepFailureBehaviorJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.TableSheetScorecardAggregationRequiredStepFailureBehaviorNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.TableSheetScorecardStatusJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.TableSheetScorecardStatusNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.TableSheetScorecardCalculationStatusJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.TableSheetScorecardCalculationStatusNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.TableSheetScorecardCalculationAggregateVerdictJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.TableSheetScorecardCalculationAggregateVerdictNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.RecalculateTableSheetScorecardResponseStatusJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.RecalculateTableSheetScorecardResponseStatusNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.TableSheetScorecardRowSummaryAggregateVerdictJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.TableSheetScorecardRowSummaryAggregateVerdictNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.GetTableSheetScorecardRowResponseAggregateVerdictJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.GetTableSheetScorecardRowResponseAggregateVerdictNullableJsonConverter()); options.Converters.Add(new global::PromptLayer.JsonConverters.TableSheetScoreHistoryResponseScoreHistoryResolutionJsonConverter()); options.Converters.Add(new global::PromptLayer.JsonConverters.TableSheetScoreHistoryResponseScoreHistoryResolutionNullableJsonConverter()); options.Converters.Add(new global::PromptLayer.JsonConverters.CreateTableSheetRequestLogImportRequestSortByJsonConverter()); @@ -4300,6 +4453,8 @@ 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.ListTableSheetScorecardRowsVerdictJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.ListTableSheetScorecardRowsVerdictNullableJsonConverter()); options.Converters.Add(new global::PromptLayer.JsonConverters.ListTableSheetVersionsSortJsonConverter()); options.Converters.Add(new global::PromptLayer.JsonConverters.ListTableSheetVersionsSortNullableJsonConverter()); options.Converters.Add(new global::PromptLayer.JsonConverters.ListTableSheetVersionsOrderJsonConverter()); diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContextTypes.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContextTypes.g.cs index fb13377..7f6712b 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContextTypes.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContextTypes.g.cs @@ -1860,1079 +1860,1207 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::PromptLayer.ListTableSheetVersionsResponse? Type458 { get; set; } + public global::PromptLayer.TableSheetScorecardStaleState? Type458 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type459 { get; set; } + public global::PromptLayer.TableSheetScorecardAggregation? Type459 { get; set; } /// /// /// - public global::PromptLayer.TableSheetVersion? Type460 { get; set; } + public global::PromptLayer.TableSheetScorecardAggregationRequiredStepFailureBehavior? Type460 { get; set; } /// /// /// - public global::PromptLayer.PublicListPagination? Type461 { get; set; } + public global::PromptLayer.TableSheetScorecardStep? Type461 { get; set; } /// /// /// - public global::PromptLayer.EmptyPublicFilters? Type462 { get; set; } + public global::PromptLayer.TableSheetScorecard? Type462 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetVersionRequest? Type463 { get; set; } + public global::PromptLayer.TableSheetScorecardStatus? Type463 { get; set; } /// /// /// - public global::PromptLayer.GetTableSheetVersionResponse? Type464 { get; set; } + public global::System.Collections.Generic.IList? Type464 { get; set; } /// /// /// - public global::PromptLayer.TableSheetScoreHistoryResponse? Type465 { get; set; } + public global::PromptLayer.TableSheetScorecardCalculation? Type465 { get; set; } /// /// /// - public global::PromptLayer.TableSheetScoreHistoryResponseScoreHistory? Type466 { get; set; } + public global::PromptLayer.TableSheetScorecardCalculationStatus? Type466 { get; set; } /// /// /// - public global::PromptLayer.TableSheetScoreHistoryResponseScoreHistoryResolution? Type467 { get; set; } + public global::PromptLayer.TableSheetScorecardCalculationAggregateVerdict? Type467 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetFileImportRequest? Type468 { get; set; } + public global::PromptLayer.TableSheetScorecardGetResponse? Type468 { get; set; } /// /// /// - public global::PromptLayer.TableSheetImportStartResponse? Type469 { get; set; } + public global::PromptLayer.ConfigureTableSheetScorecardRequest? Type469 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetRequestLogImportRequest? Type470 { get; set; } + public global::PromptLayer.ConfigureTableSheetScorecardResponse? Type470 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetRequestLogImportRequestSortBy? Type471 { get; set; } + public global::PromptLayer.DeleteTableSheetScorecardResponse? Type471 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetRequestLogImportRequestSortOrder? Type472 { get; set; } + public global::PromptLayer.MigrateLegacyTableSheetScoreRequest? Type472 { get; set; } /// /// /// - public global::PromptLayer.TableSheetOperationOperation? Type473 { get; set; } + public global::PromptLayer.MigrateLegacyTableSheetScoreResponse? Type473 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetOperationQueuedResponseOperation? Type474 { get; set; } + public global::System.Collections.Generic.IList? Type474 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type475 { get; set; } + public global::PromptLayer.MigrateLegacyTableSheetScoreResponseSkippedItem? Type475 { get; set; } /// /// /// - public global::PromptLayer.TableCell? Type476 { get; set; } + public global::PromptLayer.RecalculateTableSheetScorecardRequest? Type476 { get; set; } /// /// /// - public global::PromptLayer.TableSheetScoreColumnResolvedScoringType? Type477 { get; set; } + public global::PromptLayer.RecalculateTableSheetScorecardResponse? Type477 { get; set; } /// /// /// - public global::PromptLayer.TableSheetScoreConfigurationScoreType? Type478 { get; set; } + public global::PromptLayer.RecalculateTableSheetScorecardResponseStatus? Type478 { get; set; } /// /// /// - public global::PromptLayer.TableCellStatus? Type479 { get; set; } + public global::PromptLayer.CancelTableSheetScorecardRequest? Type479 { get; set; } /// /// /// - public global::PromptLayer.DerivedRatioInsightSpec? Type480 { get; set; } + public global::PromptLayer.CancelTableSheetScorecardResponse? Type480 { get; set; } /// /// /// - public global::PromptLayer.DerivedRatioInsightSpecType? Type481 { get; set; } + public global::PromptLayer.CancelTableSheetScorecardResponseScorecard? Type481 { get; set; } /// /// /// - public global::PromptLayer.DerivedRatioInsightResult? Type482 { get; set; } + public global::PromptLayer.GetTableSheetScorecardCalculationResponse? Type482 { get; set; } /// /// /// - public global::PromptLayer.DerivedRatioInsightResultType? Type483 { get; set; } + public global::PromptLayer.TableSheetScorecardRowSummary? Type483 { get; set; } /// /// /// - public global::PromptLayer.CustomAnalyticsSpec? Type484 { get; set; } + public global::PromptLayer.TableSheetScorecardRowSummaryAggregateVerdict? Type484 { get; set; } /// /// /// - public global::PromptLayer.CustomAnalyticsSpecChartType? Type485 { get; set; } + public global::PromptLayer.ListTableSheetScorecardRowsResponse? Type485 { get; set; } /// /// /// - public global::PromptLayer.CustomAnalyticsSpecMetric? Type486 { get; set; } + public global::System.Collections.Generic.IList? Type486 { get; set; } /// /// /// - public global::PromptLayer.CustomAnalyticsSpecMetricField? Type487 { get; set; } + public global::PromptLayer.GetTableSheetScorecardRowResponse? Type487 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type488 { get; set; } + public global::PromptLayer.GetTableSheetScorecardRowResponseAggregateVerdict? Type488 { get; set; } /// /// /// - public global::PromptLayer.CustomAnalyticsSeriesSpec? Type489 { get; set; } + public global::PromptLayer.ListTableSheetVersionsResponse? Type489 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type490 { get; set; } + public global::System.Collections.Generic.IList? Type490 { get; set; } /// /// /// - public global::PromptLayer.CustomAnalyticsSpecGroupByField? Type491 { get; set; } + public global::PromptLayer.TableSheetVersion? Type491 { get; set; } /// /// /// - public global::PromptLayer.CustomAnalyticsSeriesSpecMetric? Type492 { get; set; } + public global::PromptLayer.PublicListPagination? Type492 { get; set; } /// /// /// - public global::PromptLayer.CustomAnalyticsSeriesSpecMetricField? Type493 { get; set; } + public global::PromptLayer.EmptyPublicFilters? Type493 { get; set; } /// /// /// - public global::PromptLayer.CustomAnalyticsSeriesMeta? Type494 { get; set; } + public global::PromptLayer.CreateTableSheetVersionRequest? Type494 { get; set; } /// /// /// - public global::PromptLayer.CustomAnalyticsSeriesMetaUnit? Type495 { get; set; } + public global::PromptLayer.GetTableSheetVersionResponse? Type495 { get; set; } /// /// /// - public global::PromptLayer.CustomAnalyticsResult? Type496 { get; set; } + public global::PromptLayer.TableSheetScoreHistoryResponse? Type496 { get; set; } /// /// /// - public global::PromptLayer.CustomAnalyticsResultChartType? Type497 { get; set; } + public global::PromptLayer.TableSheetScoreHistoryResponseScoreHistory? Type497 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type498 { get; set; } + public global::PromptLayer.TableSheetScoreHistoryResponseScoreHistoryResolution? Type498 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type499 { get; set; } + public global::PromptLayer.CreateTableSheetFileImportRequest? Type499 { get; set; } /// /// /// - public global::PromptLayer.RequestAnalyticsCustomAnalyticsQuery? Type500 { get; set; } + public global::PromptLayer.TableSheetImportStartResponse? Type500 { get; set; } /// /// /// - public global::PromptLayer.RequestAnalyticsCustomAnalyticsQuerySortBy? Type501 { get; set; } + public global::PromptLayer.CreateTableSheetRequestLogImportRequest? Type501 { get; set; } /// /// /// - public global::PromptLayer.RequestAnalyticsCustomAnalyticsQuerySortOrder? Type502 { get; set; } + public global::PromptLayer.CreateTableSheetRequestLogImportRequestSortBy? Type502 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type503 { get; set; } + public global::PromptLayer.CreateTableSheetRequestLogImportRequestSortOrder? Type503 { get; set; } /// /// /// - public global::PromptLayer.RequestAnalyticsCustomAnalyticsResponse? Type504 { get; set; } + public global::PromptLayer.TableSheetOperationOperation? Type504 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type505 { get; set; } + public global::PromptLayer.CreateTableSheetOperationQueuedResponseOperation? Type505 { get; set; } /// /// /// - public global::PromptLayer.TraceStructuredFilter? Type506 { get; set; } + public global::System.Collections.Generic.IList? Type506 { get; set; } /// /// /// - public global::PromptLayer.TraceStructuredFilterGroup? Type507 { get; set; } + public global::PromptLayer.TableCell? Type507 { get; set; } /// /// /// - public global::PromptLayer.TraceStructuredFilterGroupLogic? Type508 { get; set; } + public global::PromptLayer.TableSheetScoreColumnResolvedScoringType? Type508 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type509 { get; set; } + public global::PromptLayer.TableSheetScoreConfigurationScoreType? Type509 { get; set; } /// /// /// - public global::PromptLayer.OneOf? Type510 { get; set; } + public global::PromptLayer.TableCellStatus? Type510 { get; set; } /// /// /// - public global::PromptLayer.TraceCustomChartSpec? Type511 { get; set; } + public global::PromptLayer.DerivedRatioInsightSpec? Type511 { get; set; } /// /// /// - public global::PromptLayer.TraceCustomChartSpecChartType? Type512 { get; set; } + public global::PromptLayer.DerivedRatioInsightSpecType? Type512 { get; set; } /// /// /// - public global::PromptLayer.TraceCustomChartSpecMetric? Type513 { get; set; } + public global::PromptLayer.DerivedRatioInsightResult? Type513 { get; set; } /// /// /// - public global::PromptLayer.TraceCustomChartSpecMetricField? Type514 { get; set; } + public global::PromptLayer.DerivedRatioInsightResultType? Type514 { get; set; } /// /// /// - public global::PromptLayer.TraceCustomChartSpecGroupByField? Type515 { get; set; } + public global::PromptLayer.CustomAnalyticsSpec? Type515 { get; set; } /// /// /// - public global::PromptLayer.TraceCustomChartSpecSecondaryGroupByField? Type516 { get; set; } + public global::PromptLayer.CustomAnalyticsSpecChartType? Type516 { get; set; } /// /// /// - public global::PromptLayer.TraceCustomChartSpecHistogramField? Type517 { get; set; } + public global::PromptLayer.CustomAnalyticsSpecMetric? Type517 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type518 { get; set; } + public global::PromptLayer.CustomAnalyticsSpecMetricField? Type518 { get; set; } /// /// /// - public global::PromptLayer.TraceCustomChartSpecHierarchyField? Type519 { get; set; } + public global::System.Collections.Generic.IList? Type519 { get; set; } /// /// /// - public global::PromptLayer.TraceCustomChartSpecTimeBucket? Type520 { get; set; } + public global::PromptLayer.CustomAnalyticsSeriesSpec? Type520 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type521 { get; set; } + public global::System.Collections.Generic.IList? Type521 { get; set; } /// /// /// - public global::PromptLayer.TraceCustomChartSpecSerie? Type522 { get; set; } + public global::PromptLayer.CustomAnalyticsSpecGroupByField? Type522 { get; set; } /// /// /// - public global::PromptLayer.TraceCustomChartSpecSerieMetric? Type523 { get; set; } + public global::PromptLayer.CustomAnalyticsSeriesSpecMetric? Type523 { get; set; } /// /// /// - public global::PromptLayer.TraceCustomChartSpecSerieMetricField? Type524 { get; set; } + public global::PromptLayer.CustomAnalyticsSeriesSpecMetricField? Type524 { get; set; } /// /// /// - public global::PromptLayer.TraceAnalyticsCustomAnalyticsQuery? Type525 { get; set; } + public global::PromptLayer.CustomAnalyticsSeriesMeta? Type525 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type526 { get; set; } + public global::PromptLayer.CustomAnalyticsSeriesMetaUnit? Type526 { get; set; } /// /// /// - public global::PromptLayer.CreatePromptLabelRequest? Type527 { get; set; } + public global::PromptLayer.CustomAnalyticsResult? Type527 { get; set; } /// /// /// - public global::PromptLayer.PromptTemplatesLabelsPromptLabelIdPatchRequest? Type528 { get; set; } + public global::PromptLayer.CustomAnalyticsResultChartType? Type528 { get; set; } /// /// /// - public global::PromptLayer.TrackGroupRequest? Type529 { get; set; } + public global::System.Collections.Generic.IList? Type529 { get; set; } /// /// /// - public global::PromptLayer.TrackScoreRequest? Type530 { get; set; } + public global::System.Collections.Generic.IList? Type530 { get; set; } /// /// /// - public global::PromptLayer.AddReportColumnRequest? Type531 { get; set; } + public global::PromptLayer.RequestAnalyticsCustomAnalyticsQuery? Type531 { get; set; } /// /// /// - public global::PromptLayer.AddReportColumnRequestColumnType? Type532 { get; set; } + public global::PromptLayer.RequestAnalyticsCustomAnalyticsQuerySortBy? Type532 { get; set; } /// /// /// - public global::PromptLayer.RunReportRequest? Type533 { get; set; } + public global::PromptLayer.RequestAnalyticsCustomAnalyticsQuerySortOrder? Type533 { get; set; } /// /// /// - public global::PromptLayer.CreateToolRegistryRequest? Type534 { get; set; } + public global::System.Collections.Generic.IList? Type534 { get; set; } /// /// /// - public global::PromptLayer.CreateToolRegistryRequestExecution? Type535 { get; set; } + public global::PromptLayer.RequestAnalyticsCustomAnalyticsResponse? Type535 { get; set; } /// /// /// - public global::PromptLayer.CreateToolRegistryRequestExecutionType? Type536 { get; set; } + public global::System.Collections.Generic.IList? Type536 { get; set; } /// /// /// - public global::PromptLayer.CreateToolRegistryRequestExecutionLanguage? Type537 { get; set; } + public global::PromptLayer.TraceStructuredFilter? Type537 { get; set; } /// /// /// - public global::PromptLayer.UpdateTableRequest? Type538 { get; set; } + public global::PromptLayer.TraceStructuredFilterGroup? Type538 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetRequest? Type539 { get; set; } + public global::PromptLayer.TraceStructuredFilterGroupLogic? Type539 { get; set; } /// /// /// - public global::PromptLayer.OneOf? Type540 { get; set; } + public global::System.Collections.Generic.IList>? Type540 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetRequestSourceFileSource? Type541 { get; set; } + public global::PromptLayer.OneOf? Type541 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetRequestSourceFileSourceType? Type542 { get; set; } + public global::PromptLayer.TraceCustomChartSpec? Type542 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetRequestSourceRequestLogsSource? Type543 { get; set; } + public global::PromptLayer.TraceCustomChartSpecChartType? Type543 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetRequestSourceRequestLogsSourceType? Type544 { get; set; } + public global::PromptLayer.TraceCustomChartSpecMetric? Type544 { get; set; } /// /// /// - public global::PromptLayer.UpdateTableSheetRequest? Type545 { get; set; } + public global::PromptLayer.TraceCustomChartSpecMetricField? Type545 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetColumnRequest? Type546 { get; set; } + public global::PromptLayer.TraceCustomChartSpecGroupByField? Type546 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type547 { get; set; } + public global::PromptLayer.TraceCustomChartSpecSecondaryGroupByField? Type547 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetColumnRequestDependencie? Type548 { get; set; } + public global::PromptLayer.TraceCustomChartSpecHistogramField? Type548 { get; set; } /// /// /// - public global::PromptLayer.UpdateTableSheetColumnRequest? Type549 { get; set; } + public global::System.Collections.Generic.IList? Type549 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type550 { get; set; } + public global::PromptLayer.TraceCustomChartSpecHierarchyField? Type550 { get; set; } /// /// /// - public global::PromptLayer.UpdateTableSheetColumnRequestDependencie? Type551 { get; set; } + public global::PromptLayer.TraceCustomChartSpecTimeBucket? Type551 { get; set; } /// /// /// - public global::PromptLayer.AddTableSheetRowsRequest? Type552 { get; set; } + public global::System.Collections.Generic.IList? Type552 { get; set; } /// /// /// - public global::PromptLayer.UpdateTableSheetCellRequest? Type553 { get; set; } + public global::PromptLayer.TraceCustomChartSpecSerie? Type553 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetCellRecalculationsBatchRequest? Type554 { get; set; } + public global::PromptLayer.TraceCustomChartSpecSerieMetric? Type554 { get; set; } /// /// /// - public global::PromptLayer.CreateToolVersionRequest? Type555 { get; set; } + public global::PromptLayer.TraceCustomChartSpecSerieMetricField? Type555 { get; set; } /// /// /// - public global::PromptLayer.CreateToolVersionRequestExecution? Type556 { get; set; } + public global::PromptLayer.TraceAnalyticsCustomAnalyticsQuery? Type556 { get; set; } /// /// /// - public global::PromptLayer.CreateToolVersionRequestExecutionType? Type557 { get; set; } + public global::System.Collections.Generic.IList? Type557 { get; set; } /// /// /// - public global::PromptLayer.CreateToolVersionRequestExecutionLanguage? Type558 { get; set; } + public global::PromptLayer.CreatePromptLabelRequest? Type558 { get; set; } /// /// /// - public global::PromptLayer.TestExecuteToolRequest? Type559 { get; set; } + public global::PromptLayer.PromptTemplatesLabelsPromptLabelIdPatchRequest? Type559 { get; set; } /// /// /// - public global::PromptLayer.TestExecuteToolRequestExecution? Type560 { get; set; } + public global::PromptLayer.TrackGroupRequest? Type560 { get; set; } /// /// /// - public global::PromptLayer.TestExecuteToolRequestExecutionType? Type561 { get; set; } + public global::PromptLayer.TrackScoreRequest? Type561 { get; set; } /// /// /// - public global::PromptLayer.TestExecuteToolRequestExecutionLanguage? Type562 { get; set; } + public global::PromptLayer.AddReportColumnRequest? Type562 { get; set; } /// /// /// - public global::PromptLayer.CreateWorkspaceEnvVarRequest? Type563 { get; set; } + public global::PromptLayer.AddReportColumnRequestColumnType? Type563 { get; set; } /// /// /// - public global::PromptLayer.UpdateWorkspaceEnvVarRequest? Type564 { get; set; } + public global::PromptLayer.RunReportRequest? Type564 { get; set; } /// /// /// - public global::PromptLayer.CreateToolEnvVarRequest? Type565 { get; set; } + public global::PromptLayer.CreateToolRegistryRequest? Type565 { get; set; } /// /// /// - public global::PromptLayer.UpdateToolEnvVarRequest? Type566 { get; set; } + public global::PromptLayer.CreateToolRegistryRequestExecution? Type566 { get; set; } /// /// /// - public global::PromptLayer.ListDatasetsStatus? Type567 { get; set; } + public global::PromptLayer.CreateToolRegistryRequestExecutionType? Type567 { get; set; } /// /// /// - public global::PromptLayer.ListDatasetsSortBy? Type568 { get; set; } + public global::PromptLayer.CreateToolRegistryRequestExecutionLanguage? Type568 { get; set; } /// /// /// - public global::PromptLayer.ListDatasetsSortOrder? Type569 { get; set; } + public global::PromptLayer.UpdateTableRequest? Type569 { get; set; } /// /// /// - public global::PromptLayer.ListEvaluationsStatus? Type570 { get; set; } + public global::PromptLayer.CreateTableSheetRequest? Type570 { get; set; } /// /// /// - public global::PromptLayer.ListEvaluationsSortBy? Type571 { get; set; } + public global::PromptLayer.OneOf? Type571 { get; set; } /// /// /// - public global::PromptLayer.ListEvaluationsSortOrder? Type572 { get; set; } + public global::PromptLayer.CreateTableSheetRequestSourceFileSource? Type572 { get; set; } /// /// /// - public global::PromptLayer.AnyOf>? Type573 { get; set; } + public global::PromptLayer.CreateTableSheetRequestSourceFileSourceType? Type573 { get; set; } /// /// /// - public global::PromptLayer.GetAllPromptTemplatesGetStatus? Type574 { get; set; } + public global::PromptLayer.CreateTableSheetRequestSourceRequestLogsSource? Type574 { get; set; } /// /// /// - public global::PromptLayer.GetAllPromptTemplatesGetSortBy? Type575 { get; set; } + public global::PromptLayer.CreateTableSheetRequestSourceRequestLogsSourceType? Type575 { get; set; } /// /// /// - public global::PromptLayer.GetAllPromptTemplatesGetSortOrder? Type576 { get; set; } + public global::PromptLayer.UpdateTableSheetRequest? Type576 { get; set; } /// /// /// - public long? Type577 { get; set; } + public global::PromptLayer.CreateTableSheetColumnRequest? Type577 { get; set; } /// /// /// - public global::PromptLayer.ListWorkflowsSortBy? Type578 { get; set; } + public global::System.Collections.Generic.IList? Type578 { get; set; } /// /// /// - public global::PromptLayer.ListWorkflowsSortOrder? Type579 { get; set; } + public global::PromptLayer.CreateTableSheetColumnRequestDependencie? Type579 { get; set; } /// /// /// - public global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetFilterType2? Type580 { get; set; } + public global::PromptLayer.UpdateTableSheetColumnRequest? Type580 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type581 { get; set; } + public global::System.Collections.Generic.IList? Type581 { get; set; } /// /// /// - public global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetFilterTypeItem? Type582 { get; set; } + public global::PromptLayer.UpdateTableSheetColumnRequestDependencie? Type582 { get; set; } /// /// /// - public global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetSortBy? Type583 { get; set; } + public global::PromptLayer.AddTableSheetRowsRequest? Type583 { get; set; } /// /// /// - public global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetSortOrder? Type584 { get; set; } + public global::PromptLayer.UpdateTableSheetCellRequest? Type584 { get; set; } /// /// /// - public global::PromptLayer.OneOf>? Type585 { get; set; } + public global::PromptLayer.CreateTableSheetCellRecalculationsBatchRequest? Type585 { get; set; } /// /// /// - public global::PromptLayer.IngestOtlpTracesContentType? Type586 { get; set; } + public global::PromptLayer.CreateToolVersionRequest? Type586 { get; set; } /// /// /// - public global::PromptLayer.IngestOtlpTracesContentEncoding? Type587 { get; set; } + public global::PromptLayer.CreateToolVersionRequestExecution? Type587 { get; set; } /// /// /// - public global::PromptLayer.ListSkillCollectionsPublicSortBy? Type588 { get; set; } + public global::PromptLayer.CreateToolVersionRequestExecutionType? Type588 { get; set; } /// /// /// - public global::PromptLayer.ListSkillCollectionsPublicSortOrder? Type589 { get; set; } + public global::PromptLayer.CreateToolVersionRequestExecutionLanguage? Type589 { get; set; } /// /// /// - public global::PromptLayer.GetSkillCollectionPublicFormat? Type590 { get; set; } + public global::PromptLayer.TestExecuteToolRequest? Type590 { get; set; } /// /// /// - public global::PromptLayer.GetRequestSearchSuggestionsField? Type591 { get; set; } + public global::PromptLayer.TestExecuteToolRequestExecution? Type591 { get; set; } /// /// /// - public global::PromptLayer.ListToolRegistriesSortBy? Type592 { get; set; } + public global::PromptLayer.TestExecuteToolRequestExecutionType? Type592 { get; set; } /// /// /// - public global::PromptLayer.ListToolRegistriesSortOrder? Type593 { get; set; } + public global::PromptLayer.TestExecuteToolRequestExecutionLanguage? Type593 { get; set; } /// /// /// - public global::PromptLayer.ListTablesOrder? Type594 { get; set; } + public global::PromptLayer.CreateWorkspaceEnvVarRequest? Type594 { get; set; } /// /// /// - public global::PromptLayer.ListTableSheetsOrder? Type595 { get; set; } + public global::PromptLayer.UpdateWorkspaceEnvVarRequest? Type595 { get; set; } /// /// /// - public global::PromptLayer.ListTableSheetRowsOrder? Type596 { get; set; } + public global::PromptLayer.CreateToolEnvVarRequest? Type596 { get; set; } /// /// /// - public global::PromptLayer.ListTableSheetVersionsSort? Type597 { get; set; } + public global::PromptLayer.UpdateToolEnvVarRequest? Type597 { get; set; } /// /// /// - public global::PromptLayer.ListTableSheetVersionsOrder? Type598 { get; set; } + public global::PromptLayer.ListDatasetsStatus? Type598 { get; set; } /// /// /// - public global::PromptLayer.GetTableSheetVersionScoreHistoryRange? Type599 { get; set; } + public global::PromptLayer.ListDatasetsSortBy? Type599 { get; set; } /// /// /// - public global::PromptLayer.GetTableSheetVersionScoreHistoryResolution? Type600 { get; set; } + public global::PromptLayer.ListDatasetsSortOrder? Type600 { get; set; } /// /// /// - public global::PromptLayer.OneOf? Type601 { get; set; } + public global::PromptLayer.ListEvaluationsStatus? Type601 { get; set; } /// /// /// - public global::PromptLayer.CreatePromptLabelResponse? Type602 { get; set; } + public global::PromptLayer.ListEvaluationsSortBy? Type602 { get; set; } /// /// /// - public global::PromptLayer.PromptTemplatesLabelsPromptLabelIdPatchResponse? Type603 { get; set; } + public global::PromptLayer.ListEvaluationsSortOrder? Type603 { get; set; } /// /// /// - public global::PromptLayer.TrackGroupResponse? Type604 { get; set; } + public global::PromptLayer.AnyOf>? Type604 { get; set; } /// /// /// - public global::PromptLayer.TrackScoreResponse? Type605 { get; set; } + public global::PromptLayer.GetAllPromptTemplatesGetStatus? Type605 { get; set; } /// /// /// - public global::PromptLayer.DeleteReportsByNameResponse? Type606 { get; set; } + public global::PromptLayer.GetAllPromptTemplatesGetSortBy? Type606 { get; set; } /// /// /// - public global::PromptLayer.CreateEvaluationPipelineResponse2? Type607 { get; set; } + public global::PromptLayer.GetAllPromptTemplatesGetSortOrder? Type607 { get; set; } /// /// /// - public global::PromptLayer.AddReportColumnResponse? Type608 { get; set; } + public long? Type608 { get; set; } /// /// /// - public global::PromptLayer.AddReportColumnResponse2? Type609 { get; set; } + public global::PromptLayer.ListWorkflowsSortBy? Type609 { get; set; } /// /// /// - public global::PromptLayer.AddReportColumnResponse3? Type610 { get; set; } + public global::PromptLayer.ListWorkflowsSortOrder? Type610 { get; set; } /// /// /// - public global::PromptLayer.AddReportColumnResponse4? Type611 { get; set; } + public global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetFilterType2? Type611 { get; set; } /// /// /// - public global::PromptLayer.RunReportResponse? Type612 { get; set; } + public global::System.Collections.Generic.IList? Type612 { get; set; } /// /// /// - public global::PromptLayer.RunReportResponse2? Type613 { get; set; } + public global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetFilterTypeItem? Type613 { get; set; } /// /// /// - public global::PromptLayer.RunReportResponse3? Type614 { get; set; } + public global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetSortBy? Type614 { get; set; } /// /// /// - public global::PromptLayer.RunReportResponse4? Type615 { get; set; } + public global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetSortOrder? Type615 { get; set; } /// /// /// - public global::PromptLayer.RunReportResponse5? Type616 { get; set; } + public global::PromptLayer.OneOf>? Type616 { get; set; } /// /// /// - public global::PromptLayer.GetReportResponse? Type617 { get; set; } + public global::PromptLayer.IngestOtlpTracesContentType? Type617 { get; set; } /// /// /// - public global::PromptLayer.GetReportResponseReport? Type618 { get; set; } + public global::PromptLayer.IngestOtlpTracesContentEncoding? Type618 { get; set; } /// /// /// - public global::PromptLayer.GetReportResponseStatus? Type619 { get; set; } + public global::PromptLayer.ListSkillCollectionsPublicSortBy? Type619 { get; set; } /// /// /// - public global::PromptLayer.GetReportResponseStats? Type620 { get; set; } + public global::PromptLayer.ListSkillCollectionsPublicSortOrder? Type620 { get; set; } /// /// /// - public global::PromptLayer.GetReportResponseStatsStatusCounts? Type621 { get; set; } + public global::PromptLayer.GetSkillCollectionPublicFormat? Type621 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type622 { get; set; } + public global::PromptLayer.GetRequestSearchSuggestionsField? Type622 { get; set; } /// /// /// - public global::PromptLayer.GetReportResponseReportColumn? Type623 { get; set; } + public global::PromptLayer.ListToolRegistriesSortBy? Type623 { get; set; } /// /// /// - public global::PromptLayer.GetReportScoreResponse? Type624 { get; set; } + public global::PromptLayer.ListToolRegistriesSortOrder? Type624 { get; set; } /// /// /// - public global::PromptLayer.GetReportScoreResponseScore? Type625 { get; set; } + public global::PromptLayer.ListTablesOrder? Type625 { get; set; } /// /// /// - public global::PromptLayer.GetReportScoreResponseScoreScoreType? Type626 { get; set; } + public global::PromptLayer.ListTableSheetsOrder? Type626 { get; set; } /// /// /// - public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant1? Type627 { get; set; } + public global::PromptLayer.ListTableSheetRowsOrder? Type627 { get; set; } /// /// /// - public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant2? Type628 { get; set; } + public global::PromptLayer.ListTableSheetScorecardRowsVerdict? Type628 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type629 { get; set; } + public global::PromptLayer.ListTableSheetVersionsSort? Type629 { get; set; } /// /// /// - public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant2Column? Type630 { get; set; } + public global::PromptLayer.ListTableSheetVersionsOrder? Type630 { get; set; } /// /// /// - public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant3? Type631 { get; set; } + public global::PromptLayer.GetTableSheetVersionScoreHistoryRange? Type631 { get; set; } /// /// /// - public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant4? Type632 { get; set; } + public global::PromptLayer.GetTableSheetVersionScoreHistoryResolution? Type632 { get; set; } /// /// /// - public global::PromptLayer.ListDatasetsResponse? Type633 { get; set; } + public global::PromptLayer.OneOf? Type633 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type634 { get; set; } + public global::PromptLayer.CreatePromptLabelResponse? Type634 { get; set; } /// /// /// - public global::PromptLayer.ListEvaluationsResponse? Type635 { get; set; } + public global::PromptLayer.PromptTemplatesLabelsPromptLabelIdPatchResponse? Type635 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type636 { get; set; } + public global::PromptLayer.TrackGroupResponse? Type636 { get; set; } /// /// /// - public global::PromptLayer.AnyOf? Type637 { get; set; } + public global::PromptLayer.TrackScoreResponse? Type637 { get; set; } /// /// /// - public global::PromptLayer.OneOf, object>? Type638 { get; set; } + public global::PromptLayer.DeleteReportsByNameResponse? Type638 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type639 { get; set; } + public global::PromptLayer.CreateEvaluationPipelineResponse2? Type639 { get; set; } /// /// /// - public global::PromptLayer.GetWorkflowVersionExecutionResultsResponseVariant12? Type640 { get; set; } + public global::PromptLayer.AddReportColumnResponse? Type640 { get; set; } /// /// /// - public global::PromptLayer.OneOf, object>? Type641 { get; set; } + public global::PromptLayer.AddReportColumnResponse2? Type641 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type642 { get; set; } + public global::PromptLayer.AddReportColumnResponse3? Type642 { get; set; } /// /// /// - public global::PromptLayer.GetWorkflowVersionExecutionResultsResponseVariant14? Type643 { get; set; } + public global::PromptLayer.AddReportColumnResponse4? Type643 { get; set; } /// /// /// - public global::PromptLayer.ListWorkflowsResponse? Type644 { get; set; } + public global::PromptLayer.RunReportResponse? Type644 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type645 { get; set; } + public global::PromptLayer.RunReportResponse2? Type645 { get; set; } /// /// /// - public global::PromptLayer.ListWorkflowsResponseItem? Type646 { get; set; } + public global::PromptLayer.RunReportResponse3? Type646 { get; set; } /// /// /// - public global::PromptLayer.ListWorkflowsResponse2? Type647 { get; set; } + public global::PromptLayer.RunReportResponse4? Type647 { get; set; } /// /// /// - public global::PromptLayer.ListWorkflowsResponse3? Type648 { get; set; } + public global::PromptLayer.RunReportResponse5? Type648 { get; set; } /// /// /// - public global::PromptLayer.GetWorkflowResponse? Type649 { get; set; } + public global::PromptLayer.GetReportResponse? Type649 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type650 { get; set; } + public global::PromptLayer.GetReportResponseReport? Type650 { get; set; } /// /// /// - public global::PromptLayer.GetWorkflowResponseNode? Type651 { get; set; } + public global::PromptLayer.GetReportResponseStatus? Type651 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type652 { get; set; } + public global::PromptLayer.GetReportResponseStats? Type652 { get; set; } /// /// /// - public global::PromptLayer.GetWorkflowResponseEdge? Type653 { get; set; } + public global::PromptLayer.GetReportResponseStatsStatusCounts? Type653 { get; set; } /// /// /// - public global::PromptLayer.GetWorkflowLabelsResponse? Type654 { get; set; } + public global::System.Collections.Generic.IList? Type654 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type655 { get; set; } + public global::PromptLayer.GetReportResponseReportColumn? Type655 { get; set; } /// /// /// - public global::PromptLayer.GetWorkflowLabelsResponseReleaseLabel? Type656 { get; set; } + public global::PromptLayer.GetReportScoreResponse? Type656 { get; set; } /// /// /// - public global::PromptLayer.AnyOf? Type657 { get; set; } + public global::PromptLayer.GetReportScoreResponseScore? Type657 { get; set; } /// /// /// - public global::PromptLayer.IngestOtlpTracesResponse2? Type658 { get; set; } + public global::PromptLayer.GetReportScoreResponseScoreScoreType? Type658 { get; set; } /// /// /// - public global::PromptLayer.ListToolRegistriesResponse? Type659 { get; set; } + public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant1? Type659 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type660 { get; set; } + public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant2? Type660 { get; set; } /// /// /// - public global::PromptLayer.ListToolRegistriesResponseToolRegistrie? Type661 { get; set; } + public global::System.Collections.Generic.IList? Type661 { get; set; } /// /// /// - public global::PromptLayer.CreateToolRegistryResponse? Type662 { get; set; } + public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant2Column? Type662 { get; set; } /// /// /// - public global::PromptLayer.GetToolRegistryResponse? Type663 { get; set; } + public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant3? Type663 { get; set; } /// /// /// - public global::PromptLayer.GetToolRegistryResponseToolRegistry? Type664 { get; set; } + public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant4? Type664 { get; set; } /// /// /// - public global::PromptLayer.ListTablesResponse? Type665 { get; set; } + public global::PromptLayer.ListDatasetsResponse? Type665 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type666 { get; set; } + public global::System.Collections.Generic.IList? Type666 { get; set; } /// /// /// - public global::PromptLayer.GetTableResponse? Type667 { get; set; } + public global::PromptLayer.ListEvaluationsResponse? Type667 { get; set; } /// /// /// - public global::PromptLayer.UpdateTableResponse? Type668 { get; set; } + public global::System.Collections.Generic.IList? Type668 { get; set; } /// /// /// - public global::PromptLayer.DeleteTableResponse? Type669 { get; set; } + public global::PromptLayer.AnyOf? Type669 { get; set; } /// /// /// - public global::PromptLayer.ListTableSheetsResponse? Type670 { get; set; } + public global::PromptLayer.OneOf, object>? Type670 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type671 { get; set; } + public global::System.Collections.Generic.Dictionary? Type671 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetResponse? Type672 { get; set; } + public global::PromptLayer.GetWorkflowVersionExecutionResultsResponseVariant12? Type672 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetResponse2? Type673 { get; set; } + public global::PromptLayer.OneOf, object>? Type673 { get; set; } /// /// /// - public global::PromptLayer.GetTableSheetOperationResponse2? Type674 { get; set; } + public global::System.Collections.Generic.Dictionary? Type674 { get; set; } /// /// /// - public global::PromptLayer.GetTableSheetResponse? Type675 { get; set; } + public global::PromptLayer.GetWorkflowVersionExecutionResultsResponseVariant14? Type675 { get; set; } /// /// /// - public global::PromptLayer.UpdateTableSheetResponse? Type676 { get; set; } + public global::PromptLayer.ListWorkflowsResponse? Type676 { get; set; } /// /// /// - public global::PromptLayer.DeleteTableSheetResponse? Type677 { get; set; } + public global::System.Collections.Generic.IList? Type677 { get; set; } /// /// /// - public global::PromptLayer.ListTableSheetColumnsResponse? Type678 { get; set; } + public global::PromptLayer.ListWorkflowsResponseItem? Type678 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type679 { get; set; } + public global::PromptLayer.ListWorkflowsResponse2? Type679 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetColumnResponse? Type680 { get; set; } + public global::PromptLayer.ListWorkflowsResponse3? Type680 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type681 { get; set; } + public global::PromptLayer.GetWorkflowResponse? Type681 { get; set; } /// /// /// - public global::PromptLayer.UpdateTableSheetColumnResponse? Type682 { get; set; } + public global::System.Collections.Generic.IList? Type682 { get; set; } /// /// /// - public global::PromptLayer.DeleteTableSheetColumnResponse? Type683 { get; set; } + public global::PromptLayer.GetWorkflowResponseNode? Type683 { get; set; } /// /// /// - public global::PromptLayer.ListTableSheetRowsResponse? Type684 { get; set; } + public global::System.Collections.Generic.IList? Type684 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type685 { get; set; } + public global::PromptLayer.GetWorkflowResponseEdge? Type685 { get; set; } /// /// /// - public global::PromptLayer.ListTableSheetRowsResponseDataItem? Type686 { get; set; } + public global::PromptLayer.GetWorkflowLabelsResponse? Type686 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type687 { get; set; } + public global::System.Collections.Generic.IList? Type687 { get; set; } /// /// /// - public global::PromptLayer.AddTableSheetRowsResponse? Type688 { get; set; } + public global::PromptLayer.GetWorkflowLabelsResponseReleaseLabel? Type688 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type689 { get; set; } + public global::PromptLayer.AnyOf? Type689 { get; set; } /// /// /// - public global::PromptLayer.AddTableSheetRowsResponseRow? Type690 { get; set; } + public global::PromptLayer.IngestOtlpTracesResponse2? Type690 { get; set; } /// /// /// - public global::PromptLayer.GetTableSheetCellResponse? Type691 { get; set; } + public global::PromptLayer.ListToolRegistriesResponse? Type691 { get; set; } /// /// /// - public global::PromptLayer.UpdateTableSheetCellResponse? Type692 { get; set; } + public global::System.Collections.Generic.IList? Type692 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetCellRecalculationsBatchResponse? Type693 { get; set; } + public global::PromptLayer.ListToolRegistriesResponseToolRegistrie? Type693 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetCellRecalculationResponse? Type694 { get; set; } + public global::PromptLayer.CreateToolRegistryResponse? Type694 { get; set; } /// /// /// - public global::PromptLayer.CreateToolVersionResponse? Type695 { get; set; } + public global::PromptLayer.GetToolRegistryResponse? Type695 { get; set; } /// /// /// - public global::PromptLayer.TestExecuteToolResponse? Type696 { get; set; } + public global::PromptLayer.GetToolRegistryResponseToolRegistry? Type696 { get; set; } /// /// /// - public global::PromptLayer.TestExecuteToolResponseResult? Type697 { get; set; } + public global::PromptLayer.ListTablesResponse? Type697 { get; set; } /// /// /// - public global::PromptLayer.TestExecuteToolResponseResultStatus? Type698 { get; set; } + public global::System.Collections.Generic.IList? Type698 { get; set; } /// /// /// - public global::PromptLayer.CloseTraceResponse? Type699 { get; set; } + public global::PromptLayer.GetTableResponse? Type699 { get; set; } /// /// /// - public global::PromptLayer.CloseTraceResponseClosure? Type700 { get; set; } + public global::PromptLayer.UpdateTableResponse? Type700 { get; set; } /// /// /// - public global::PromptLayer.CloseTraceResponseClosureStatus? Type701 { get; set; } + public global::PromptLayer.DeleteTableResponse? Type701 { get; set; } /// /// /// - public global::PromptLayer.CloseTraceResponse2? Type702 { get; set; } + public global::PromptLayer.ListTableSheetsResponse? Type702 { get; set; } /// /// /// - public global::PromptLayer.ListWorkspaceEnvVarsResponse? Type703 { get; set; } + public global::System.Collections.Generic.IList? Type703 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type704 { get; set; } + public global::PromptLayer.CreateTableSheetResponse? Type704 { get; set; } /// /// /// - public global::PromptLayer.ListWorkspaceEnvVarsResponseWorkspaceEnvVar? Type705 { get; set; } + public global::PromptLayer.CreateTableSheetResponse2? Type705 { get; set; } /// /// /// - public global::PromptLayer.CreateWorkspaceEnvVarResponse? Type706 { get; set; } + public global::PromptLayer.GetTableSheetOperationResponse2? Type706 { get; set; } /// /// /// - public global::PromptLayer.CreateWorkspaceEnvVarResponseWorkspaceEnvVar? Type707 { get; set; } + public global::PromptLayer.GetTableSheetResponse? Type707 { get; set; } /// /// /// - public global::PromptLayer.CreateWorkspaceEnvVarResponse2? Type708 { get; set; } + public global::PromptLayer.UpdateTableSheetResponse? Type708 { get; set; } /// /// /// - public global::PromptLayer.UpdateWorkspaceEnvVarResponse? Type709 { get; set; } + public global::PromptLayer.DeleteTableSheetResponse? Type709 { get; set; } /// /// /// - public global::PromptLayer.UpdateWorkspaceEnvVarResponseWorkspaceEnvVar? Type710 { get; set; } + public global::PromptLayer.ListTableSheetColumnsResponse? Type710 { get; set; } /// /// /// - public global::PromptLayer.UpdateWorkspaceEnvVarResponse2? Type711 { get; set; } + public global::System.Collections.Generic.IList? Type711 { get; set; } /// /// /// - public global::PromptLayer.DeleteWorkspaceEnvVarResponse? Type712 { get; set; } + public global::PromptLayer.CreateTableSheetColumnResponse? Type712 { get; set; } /// /// /// - public global::PromptLayer.DeleteWorkspaceEnvVarResponse2? Type713 { get; set; } + public global::System.Collections.Generic.IList? Type713 { get; set; } /// /// /// - public global::PromptLayer.ListToolEnvVarsResponse? Type714 { get; set; } + public global::PromptLayer.UpdateTableSheetColumnResponse? Type714 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type715 { get; set; } + public global::PromptLayer.DeleteTableSheetColumnResponse? Type715 { get; set; } /// /// /// - public global::PromptLayer.ListToolEnvVarsResponseToolEnvVar? Type716 { get; set; } + public global::PromptLayer.ListTableSheetRowsResponse? Type716 { get; set; } /// /// /// - public global::PromptLayer.ListToolEnvVarsResponse2? Type717 { get; set; } + public global::System.Collections.Generic.IList? Type717 { get; set; } /// /// /// - public global::PromptLayer.CreateToolEnvVarResponse? Type718 { get; set; } + public global::PromptLayer.ListTableSheetRowsResponseDataItem? Type718 { get; set; } /// /// /// - public global::PromptLayer.CreateToolEnvVarResponseToolEnvVar? Type719 { get; set; } + public global::System.Collections.Generic.Dictionary? Type719 { get; set; } /// /// /// - public global::PromptLayer.CreateToolEnvVarResponse2? Type720 { get; set; } + public global::PromptLayer.AddTableSheetRowsResponse? Type720 { get; set; } /// /// /// - public global::PromptLayer.CreateToolEnvVarResponse3? Type721 { get; set; } + public global::System.Collections.Generic.IList? Type721 { get; set; } /// /// /// - public global::PromptLayer.UpdateToolEnvVarResponse? Type722 { get; set; } + public global::PromptLayer.AddTableSheetRowsResponseRow? Type722 { get; set; } /// /// /// - public global::PromptLayer.UpdateToolEnvVarResponseToolEnvVar? Type723 { get; set; } + public global::PromptLayer.GetTableSheetCellResponse? Type723 { get; set; } /// /// /// - public global::PromptLayer.UpdateToolEnvVarResponse2? Type724 { get; set; } + public global::PromptLayer.UpdateTableSheetCellResponse? Type724 { get; set; } /// /// /// - public global::PromptLayer.DeleteToolEnvVarResponse? Type725 { get; set; } + public global::PromptLayer.CreateTableSheetCellRecalculationsBatchResponse? Type725 { get; set; } /// /// /// - public global::PromptLayer.DeleteToolEnvVarResponse2? Type726 { get; set; } + public global::PromptLayer.CreateTableSheetCellRecalculationResponse? Type726 { get; set; } + /// + /// + /// + public global::PromptLayer.CreateToolVersionResponse? Type727 { get; set; } + /// + /// + /// + public global::PromptLayer.TestExecuteToolResponse? Type728 { get; set; } + /// + /// + /// + public global::PromptLayer.TestExecuteToolResponseResult? Type729 { get; set; } + /// + /// + /// + public global::PromptLayer.TestExecuteToolResponseResultStatus? Type730 { get; set; } + /// + /// + /// + public global::PromptLayer.CloseTraceResponse? Type731 { get; set; } + /// + /// + /// + public global::PromptLayer.CloseTraceResponseClosure? Type732 { get; set; } + /// + /// + /// + public global::PromptLayer.CloseTraceResponseClosureStatus? Type733 { get; set; } + /// + /// + /// + public global::PromptLayer.CloseTraceResponse2? Type734 { get; set; } + /// + /// + /// + public global::PromptLayer.ListWorkspaceEnvVarsResponse? Type735 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type736 { get; set; } + /// + /// + /// + public global::PromptLayer.ListWorkspaceEnvVarsResponseWorkspaceEnvVar? Type737 { get; set; } + /// + /// + /// + public global::PromptLayer.CreateWorkspaceEnvVarResponse? Type738 { get; set; } + /// + /// + /// + public global::PromptLayer.CreateWorkspaceEnvVarResponseWorkspaceEnvVar? Type739 { get; set; } + /// + /// + /// + public global::PromptLayer.CreateWorkspaceEnvVarResponse2? Type740 { get; set; } + /// + /// + /// + public global::PromptLayer.UpdateWorkspaceEnvVarResponse? Type741 { get; set; } + /// + /// + /// + public global::PromptLayer.UpdateWorkspaceEnvVarResponseWorkspaceEnvVar? Type742 { get; set; } + /// + /// + /// + public global::PromptLayer.UpdateWorkspaceEnvVarResponse2? Type743 { get; set; } + /// + /// + /// + public global::PromptLayer.DeleteWorkspaceEnvVarResponse? Type744 { get; set; } + /// + /// + /// + public global::PromptLayer.DeleteWorkspaceEnvVarResponse2? Type745 { get; set; } + /// + /// + /// + public global::PromptLayer.ListToolEnvVarsResponse? Type746 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type747 { get; set; } + /// + /// + /// + public global::PromptLayer.ListToolEnvVarsResponseToolEnvVar? Type748 { get; set; } + /// + /// + /// + public global::PromptLayer.ListToolEnvVarsResponse2? Type749 { get; set; } + /// + /// + /// + public global::PromptLayer.CreateToolEnvVarResponse? Type750 { get; set; } + /// + /// + /// + public global::PromptLayer.CreateToolEnvVarResponseToolEnvVar? Type751 { get; set; } + /// + /// + /// + public global::PromptLayer.CreateToolEnvVarResponse2? Type752 { get; set; } + /// + /// + /// + public global::PromptLayer.CreateToolEnvVarResponse3? Type753 { get; set; } + /// + /// + /// + public global::PromptLayer.UpdateToolEnvVarResponse? Type754 { get; set; } + /// + /// + /// + public global::PromptLayer.UpdateToolEnvVarResponseToolEnvVar? Type755 { get; set; } + /// + /// + /// + public global::PromptLayer.UpdateToolEnvVarResponse2? Type756 { get; set; } + /// + /// + /// + public global::PromptLayer.DeleteToolEnvVarResponse? Type757 { get; set; } + /// + /// + /// + public global::PromptLayer.DeleteToolEnvVarResponse2? Type758 { get; set; } /// /// @@ -3217,138 +3345,150 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType70 { 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? ListType72 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType73 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType71 { get; set; } + public global::System.Collections.Generic.List? ListType74 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType72 { get; set; } + public global::System.Collections.Generic.List? ListType75 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType73 { get; set; } + public global::System.Collections.Generic.List? ListType76 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType74 { get; set; } + public global::System.Collections.Generic.List? ListType77 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType75 { get; set; } + public global::System.Collections.Generic.List? ListType78 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType76 { get; set; } + public global::System.Collections.Generic.List? ListType79 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType77 { get; set; } + public global::System.Collections.Generic.List? ListType80 { get; set; } /// /// /// - public global::System.Collections.Generic.List>? ListType78 { get; set; } + public global::System.Collections.Generic.List>? ListType81 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType79 { get; set; } + public global::System.Collections.Generic.List? ListType82 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType80 { get; set; } + public global::System.Collections.Generic.List? ListType83 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType81 { get; set; } + public global::System.Collections.Generic.List? ListType84 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType82 { get; set; } + public global::System.Collections.Generic.List? ListType85 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType83 { get; set; } + public global::System.Collections.Generic.List? ListType86 { get; set; } /// /// /// - public global::PromptLayer.AnyOf>? ListType84 { get; set; } + public global::PromptLayer.AnyOf>? ListType87 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType85 { get; set; } + public global::System.Collections.Generic.List? ListType88 { get; set; } /// /// /// - public global::PromptLayer.OneOf>? ListType86 { get; set; } + public global::PromptLayer.OneOf>? ListType89 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType87 { get; set; } + public global::System.Collections.Generic.List? ListType90 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType88 { get; set; } + public global::System.Collections.Generic.List? ListType91 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType89 { get; set; } + public global::System.Collections.Generic.List? ListType92 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType90 { get; set; } + public global::System.Collections.Generic.List? ListType93 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType91 { get; set; } + public global::System.Collections.Generic.List? ListType94 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType92 { get; set; } + public global::System.Collections.Generic.List? ListType95 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType93 { get; set; } + public global::System.Collections.Generic.List? ListType96 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType94 { get; set; } + public global::System.Collections.Generic.List? ListType97 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType95 { get; set; } + public global::System.Collections.Generic.List? ListType98 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType96 { get; set; } + public global::System.Collections.Generic.List? ListType99 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType97 { get; set; } + public global::System.Collections.Generic.List? ListType100 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType98 { get; set; } + public global::System.Collections.Generic.List? ListType101 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType99 { get; set; } + public global::System.Collections.Generic.List? ListType102 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType100 { get; set; } + public global::System.Collections.Generic.List? ListType103 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType101 { get; set; } + public global::System.Collections.Generic.List? ListType104 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType102 { get; set; } + public global::System.Collections.Generic.List? ListType105 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType103 { get; set; } + public global::System.Collections.Generic.List? ListType106 { get; set; } } } \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CancelTableSheetScorecardRequest.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CancelTableSheetScorecardRequest.Json.g.cs new file mode 100644 index 0000000..d13c97f --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CancelTableSheetScorecardRequest.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class CancelTableSheetScorecardRequest + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.CancelTableSheetScorecardRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.CancelTableSheetScorecardRequest), + jsonSerializerContext) as global::PromptLayer.CancelTableSheetScorecardRequest; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.CancelTableSheetScorecardRequest? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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.CancelTableSheetScorecardRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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.CancelTableSheetScorecardRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.CancelTableSheetScorecardRequest; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CancelTableSheetScorecardRequest.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CancelTableSheetScorecardRequest.g.cs new file mode 100644 index 0000000..6518a33 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CancelTableSheetScorecardRequest.g.cs @@ -0,0 +1,53 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class CancelTableSheetScorecardRequest + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("row_indices")] + public global::System.Collections.Generic.IList? RowIndices { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("step_ids")] + public global::System.Collections.Generic.IList? StepIds { 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 CancelTableSheetScorecardRequest( + global::System.Collections.Generic.IList? rowIndices, + global::System.Collections.Generic.IList? stepIds) + { + this.RowIndices = rowIndices; + this.StepIds = stepIds; + } + + /// + /// Initializes a new instance of the class. + /// + public CancelTableSheetScorecardRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CancelTableSheetScorecardResponse.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CancelTableSheetScorecardResponse.Json.g.cs new file mode 100644 index 0000000..33c1d6b --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CancelTableSheetScorecardResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class CancelTableSheetScorecardResponse + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.CancelTableSheetScorecardResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.CancelTableSheetScorecardResponse), + jsonSerializerContext) as global::PromptLayer.CancelTableSheetScorecardResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.CancelTableSheetScorecardResponse? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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.CancelTableSheetScorecardResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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.CancelTableSheetScorecardResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.CancelTableSheetScorecardResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CancelTableSheetScorecardResponse.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CancelTableSheetScorecardResponse.g.cs new file mode 100644 index 0000000..0bc1202 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CancelTableSheetScorecardResponse.g.cs @@ -0,0 +1,94 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class CancelTableSheetScorecardResponse + { + /// + /// + /// + [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("scorecard")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::PromptLayer.CancelTableSheetScorecardResponseScorecard Scorecard { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cancelled_count")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int CancelledCount { 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("calculation_id")] + public global::System.Guid? CalculationId { 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 CancelTableSheetScorecardResponse( + bool success, + string message, + global::PromptLayer.CancelTableSheetScorecardResponseScorecard scorecard, + int cancelledCount, + global::System.Collections.Generic.IList executionIds, + global::System.Guid? calculationId) + { + this.Success = success; + this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); + this.Scorecard = scorecard ?? throw new global::System.ArgumentNullException(nameof(scorecard)); + this.CancelledCount = cancelledCount; + this.ExecutionIds = executionIds ?? throw new global::System.ArgumentNullException(nameof(executionIds)); + this.CalculationId = calculationId; + } + + /// + /// Initializes a new instance of the class. + /// + public CancelTableSheetScorecardResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CancelTableSheetScorecardResponseScorecard.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CancelTableSheetScorecardResponseScorecard.Json.g.cs new file mode 100644 index 0000000..2b3c1cd --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CancelTableSheetScorecardResponseScorecard.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class CancelTableSheetScorecardResponseScorecard + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.CancelTableSheetScorecardResponseScorecard? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.CancelTableSheetScorecardResponseScorecard), + jsonSerializerContext) as global::PromptLayer.CancelTableSheetScorecardResponseScorecard; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.CancelTableSheetScorecardResponseScorecard? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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.CancelTableSheetScorecardResponseScorecard? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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.CancelTableSheetScorecardResponseScorecard), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.CancelTableSheetScorecardResponseScorecard; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CancelTableSheetScorecardResponseScorecard.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CancelTableSheetScorecardResponseScorecard.g.cs new file mode 100644 index 0000000..bf2e6e2 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CancelTableSheetScorecardResponseScorecard.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class CancelTableSheetScorecardResponseScorecard + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { 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 CancelTableSheetScorecardResponseScorecard( + global::System.Guid id) + { + this.Id = id; + } + + /// + /// Initializes a new instance of the class. + /// + public CancelTableSheetScorecardResponseScorecard() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScorecardRequest.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScorecardRequest.Json.g.cs new file mode 100644 index 0000000..055cad9 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScorecardRequest.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class ConfigureTableSheetScorecardRequest + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.ConfigureTableSheetScorecardRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.ConfigureTableSheetScorecardRequest), + jsonSerializerContext) as global::PromptLayer.ConfigureTableSheetScorecardRequest; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.ConfigureTableSheetScorecardRequest? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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.ConfigureTableSheetScorecardRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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.ConfigureTableSheetScorecardRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.ConfigureTableSheetScorecardRequest; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScorecardRequest.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScorecardRequest.g.cs new file mode 100644 index 0000000..e3ae10c --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScorecardRequest.g.cs @@ -0,0 +1,95 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class ConfigureTableSheetScorecardRequest + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// Default Value: [] + /// + [global::System.Text.Json.Serialization.JsonPropertyName("evaluated_column_ids")] + public global::System.Collections.Generic.IList? EvaluatedColumnIds { get; set; } + + /// + /// Default Value: [] + /// + [global::System.Text.Json.Serialization.JsonPropertyName("steps")] + public global::System.Collections.Generic.IList? Steps { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("aggregation")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Aggregation { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("display_config")] + public object? DisplayConfig { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("baseline_config")] + public object? BaselineConfig { 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: [] + /// + /// + /// Default Value: [] + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ConfigureTableSheetScorecardRequest( + string name, + object aggregation, + global::System.Collections.Generic.IList? evaluatedColumnIds, + global::System.Collections.Generic.IList? steps, + object? displayConfig, + object? baselineConfig) + { + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.EvaluatedColumnIds = evaluatedColumnIds; + this.Steps = steps; + this.Aggregation = aggregation ?? throw new global::System.ArgumentNullException(nameof(aggregation)); + this.DisplayConfig = displayConfig; + this.BaselineConfig = baselineConfig; + } + + /// + /// Initializes a new instance of the class. + /// + public ConfigureTableSheetScorecardRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScorecardRequestAggregation.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScorecardRequestAggregation.Json.g.cs new file mode 100644 index 0000000..bdee07f --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScorecardRequestAggregation.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class ConfigureTableSheetScorecardRequestAggregation + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.ConfigureTableSheetScorecardRequestAggregation? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.ConfigureTableSheetScorecardRequestAggregation), + jsonSerializerContext) as global::PromptLayer.ConfigureTableSheetScorecardRequestAggregation; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.ConfigureTableSheetScorecardRequestAggregation? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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.ConfigureTableSheetScorecardRequestAggregation? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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.ConfigureTableSheetScorecardRequestAggregation), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.ConfigureTableSheetScorecardRequestAggregation; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScorecardRequestAggregation.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScorecardRequestAggregation.g.cs new file mode 100644 index 0000000..6d26949 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScorecardRequestAggregation.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class ConfigureTableSheetScorecardRequestAggregation + { + + /// + /// 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.ConfigureTableSheetScorecardRequestBaselineConfig.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScorecardRequestBaselineConfig.Json.g.cs new file mode 100644 index 0000000..ad5dc66 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScorecardRequestBaselineConfig.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class ConfigureTableSheetScorecardRequestBaselineConfig + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.ConfigureTableSheetScorecardRequestBaselineConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.ConfigureTableSheetScorecardRequestBaselineConfig), + jsonSerializerContext) as global::PromptLayer.ConfigureTableSheetScorecardRequestBaselineConfig; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.ConfigureTableSheetScorecardRequestBaselineConfig? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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.ConfigureTableSheetScorecardRequestBaselineConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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.ConfigureTableSheetScorecardRequestBaselineConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.ConfigureTableSheetScorecardRequestBaselineConfig; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScorecardRequestBaselineConfig.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScorecardRequestBaselineConfig.g.cs new file mode 100644 index 0000000..6bada84 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScorecardRequestBaselineConfig.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class ConfigureTableSheetScorecardRequestBaselineConfig + { + + /// + /// 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.ConfigureTableSheetScorecardRequestDisplayConfig.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScorecardRequestDisplayConfig.Json.g.cs new file mode 100644 index 0000000..3478bc6 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScorecardRequestDisplayConfig.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class ConfigureTableSheetScorecardRequestDisplayConfig + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.ConfigureTableSheetScorecardRequestDisplayConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.ConfigureTableSheetScorecardRequestDisplayConfig), + jsonSerializerContext) as global::PromptLayer.ConfigureTableSheetScorecardRequestDisplayConfig; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.ConfigureTableSheetScorecardRequestDisplayConfig? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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.ConfigureTableSheetScorecardRequestDisplayConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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.ConfigureTableSheetScorecardRequestDisplayConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.ConfigureTableSheetScorecardRequestDisplayConfig; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScorecardRequestDisplayConfig.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScorecardRequestDisplayConfig.g.cs new file mode 100644 index 0000000..b71ca26 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScorecardRequestDisplayConfig.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class ConfigureTableSheetScorecardRequestDisplayConfig + { + + /// + /// 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.ConfigureTableSheetScorecardRequestStep.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScorecardRequestStep.Json.g.cs new file mode 100644 index 0000000..7d61bc6 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScorecardRequestStep.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class ConfigureTableSheetScorecardRequestStep + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.ConfigureTableSheetScorecardRequestStep? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.ConfigureTableSheetScorecardRequestStep), + jsonSerializerContext) as global::PromptLayer.ConfigureTableSheetScorecardRequestStep; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.ConfigureTableSheetScorecardRequestStep? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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.ConfigureTableSheetScorecardRequestStep? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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.ConfigureTableSheetScorecardRequestStep), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.ConfigureTableSheetScorecardRequestStep; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScorecardRequestStep.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScorecardRequestStep.g.cs new file mode 100644 index 0000000..26db8ea --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScorecardRequestStep.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class ConfigureTableSheetScorecardRequestStep + { + + /// + /// 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.ConfigureTableSheetScorecardResponse.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScorecardResponse.Json.g.cs new file mode 100644 index 0000000..0b8c0ae --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScorecardResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class ConfigureTableSheetScorecardResponse + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.ConfigureTableSheetScorecardResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.ConfigureTableSheetScorecardResponse), + jsonSerializerContext) as global::PromptLayer.ConfigureTableSheetScorecardResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.ConfigureTableSheetScorecardResponse? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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.ConfigureTableSheetScorecardResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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.ConfigureTableSheetScorecardResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.ConfigureTableSheetScorecardResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScorecardResponse.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScorecardResponse.g.cs new file mode 100644 index 0000000..123b43b --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.ConfigureTableSheetScorecardResponse.g.cs @@ -0,0 +1,65 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class ConfigureTableSheetScorecardResponse + { + /// + /// + /// + [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("scorecard")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::PromptLayer.TableSheetScorecard Scorecard { 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. + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ConfigureTableSheetScorecardResponse( + bool success, + global::PromptLayer.TableSheetScorecard scorecard, + int version) + { + this.Success = success; + this.Scorecard = scorecard ?? throw new global::System.ArgumentNullException(nameof(scorecard)); + this.Version = version; + } + + /// + /// Initializes a new instance of the class. + /// + public ConfigureTableSheetScorecardResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.DeleteTableSheetScorecardResponse.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.DeleteTableSheetScorecardResponse.Json.g.cs new file mode 100644 index 0000000..ee5db48 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.DeleteTableSheetScorecardResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class DeleteTableSheetScorecardResponse + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.DeleteTableSheetScorecardResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.DeleteTableSheetScorecardResponse), + jsonSerializerContext) as global::PromptLayer.DeleteTableSheetScorecardResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.DeleteTableSheetScorecardResponse? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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.DeleteTableSheetScorecardResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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.DeleteTableSheetScorecardResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.DeleteTableSheetScorecardResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.DeleteTableSheetScorecardResponse.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.DeleteTableSheetScorecardResponse.g.cs new file mode 100644 index 0000000..5524297 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.DeleteTableSheetScorecardResponse.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class DeleteTableSheetScorecardResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("success")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Success { 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 DeleteTableSheetScorecardResponse( + bool success) + { + this.Success = success; + } + + /// + /// Initializes a new instance of the class. + /// + public DeleteTableSheetScorecardResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardCalculationResponse.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardCalculationResponse.Json.g.cs new file mode 100644 index 0000000..bc220f1 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardCalculationResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class GetTableSheetScorecardCalculationResponse + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.GetTableSheetScorecardCalculationResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.GetTableSheetScorecardCalculationResponse), + jsonSerializerContext) as global::PromptLayer.GetTableSheetScorecardCalculationResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.GetTableSheetScorecardCalculationResponse? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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.GetTableSheetScorecardCalculationResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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.GetTableSheetScorecardCalculationResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.GetTableSheetScorecardCalculationResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardCalculationResponse.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardCalculationResponse.g.cs new file mode 100644 index 0000000..d05c6b8 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardCalculationResponse.g.cs @@ -0,0 +1,73 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class GetTableSheetScorecardCalculationResponse + { + /// + /// + /// + [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("calculation")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::PromptLayer.TableSheetScorecardCalculation Calculation { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("criterion_summaries")] + public object? CriterionSummaries { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("drift_summary")] + public object? DriftSummary { 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 GetTableSheetScorecardCalculationResponse( + bool success, + global::PromptLayer.TableSheetScorecardCalculation calculation, + object? criterionSummaries, + object? driftSummary) + { + this.Success = success; + this.Calculation = calculation ?? throw new global::System.ArgumentNullException(nameof(calculation)); + this.CriterionSummaries = criterionSummaries; + this.DriftSummary = driftSummary; + } + + /// + /// Initializes a new instance of the class. + /// + public GetTableSheetScorecardCalculationResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardCalculationResponseCriterionSummaries.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardCalculationResponseCriterionSummaries.Json.g.cs new file mode 100644 index 0000000..fb446ed --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardCalculationResponseCriterionSummaries.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class GetTableSheetScorecardCalculationResponseCriterionSummaries + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.GetTableSheetScorecardCalculationResponseCriterionSummaries? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.GetTableSheetScorecardCalculationResponseCriterionSummaries), + jsonSerializerContext) as global::PromptLayer.GetTableSheetScorecardCalculationResponseCriterionSummaries; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.GetTableSheetScorecardCalculationResponseCriterionSummaries? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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.GetTableSheetScorecardCalculationResponseCriterionSummaries? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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.GetTableSheetScorecardCalculationResponseCriterionSummaries), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.GetTableSheetScorecardCalculationResponseCriterionSummaries; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardCalculationResponseCriterionSummaries.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardCalculationResponseCriterionSummaries.g.cs new file mode 100644 index 0000000..6a2800e --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardCalculationResponseCriterionSummaries.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class GetTableSheetScorecardCalculationResponseCriterionSummaries + { + + /// + /// 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.GetTableSheetScorecardCalculationResponseDriftSummary.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardCalculationResponseDriftSummary.Json.g.cs new file mode 100644 index 0000000..221f71e --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardCalculationResponseDriftSummary.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class GetTableSheetScorecardCalculationResponseDriftSummary + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.GetTableSheetScorecardCalculationResponseDriftSummary? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.GetTableSheetScorecardCalculationResponseDriftSummary), + jsonSerializerContext) as global::PromptLayer.GetTableSheetScorecardCalculationResponseDriftSummary; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.GetTableSheetScorecardCalculationResponseDriftSummary? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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.GetTableSheetScorecardCalculationResponseDriftSummary? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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.GetTableSheetScorecardCalculationResponseDriftSummary), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.GetTableSheetScorecardCalculationResponseDriftSummary; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardCalculationResponseDriftSummary.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardCalculationResponseDriftSummary.g.cs new file mode 100644 index 0000000..d45196c --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardCalculationResponseDriftSummary.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class GetTableSheetScorecardCalculationResponseDriftSummary + { + + /// + /// 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.GetTableSheetScorecardRowResponse.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardRowResponse.Json.g.cs new file mode 100644 index 0000000..4072eea --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardRowResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class GetTableSheetScorecardRowResponse + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.GetTableSheetScorecardRowResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.GetTableSheetScorecardRowResponse), + jsonSerializerContext) as global::PromptLayer.GetTableSheetScorecardRowResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.GetTableSheetScorecardRowResponse? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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.GetTableSheetScorecardRowResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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.GetTableSheetScorecardRowResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.GetTableSheetScorecardRowResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardRowResponse.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardRowResponse.g.cs new file mode 100644 index 0000000..3ec93df --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardRowResponse.g.cs @@ -0,0 +1,178 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class GetTableSheetScorecardRowResponse + { + /// + /// + /// + [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("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("calculation_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid CalculationId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("scorecard_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid ScorecardId { 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("row_index")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int RowIndex { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("aggregate_score")] + public double? AggregateScore { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("aggregate_verdict")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.GetTableSheetScorecardRowResponseAggregateVerdictJsonConverter))] + public global::PromptLayer.GetTableSheetScorecardRowResponseAggregateVerdict? AggregateVerdict { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("step_results")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object StepResults { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("drift_summary")] + public object? DriftSummary { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("stale_state")] + public object? StaleState { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("error_summary")] + public object? ErrorSummary { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config_hash")] + public string? ConfigHash { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("input_hash")] + public string? InputHash { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("computed_at")] + public global::System.DateTime? ComputedAt { 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 GetTableSheetScorecardRowResponse( + bool success, + global::System.Guid id, + global::System.Guid calculationId, + global::System.Guid scorecardId, + global::System.Guid sheetId, + int rowIndex, + object stepResults, + double? aggregateScore, + global::PromptLayer.GetTableSheetScorecardRowResponseAggregateVerdict? aggregateVerdict, + object? driftSummary, + object? staleState, + object? errorSummary, + string? configHash, + string? inputHash, + global::System.DateTime? computedAt) + { + this.Success = success; + this.Id = id; + this.CalculationId = calculationId; + this.ScorecardId = scorecardId; + this.SheetId = sheetId; + this.RowIndex = rowIndex; + this.AggregateScore = aggregateScore; + this.AggregateVerdict = aggregateVerdict; + this.StepResults = stepResults ?? throw new global::System.ArgumentNullException(nameof(stepResults)); + this.DriftSummary = driftSummary; + this.StaleState = staleState; + this.ErrorSummary = errorSummary; + this.ConfigHash = configHash; + this.InputHash = inputHash; + this.ComputedAt = computedAt; + } + + /// + /// Initializes a new instance of the class. + /// + public GetTableSheetScorecardRowResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardRowResponseAggregateVerdict.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardRowResponseAggregateVerdict.g.cs new file mode 100644 index 0000000..91ce73b --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardRowResponseAggregateVerdict.g.cs @@ -0,0 +1,69 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public enum GetTableSheetScorecardRowResponseAggregateVerdict + { + /// + /// + /// + Error, + /// + /// + /// + Fail, + /// + /// + /// + Pass, + /// + /// + /// + Skipped, + /// + /// + /// + Warn, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetTableSheetScorecardRowResponseAggregateVerdictExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetTableSheetScorecardRowResponseAggregateVerdict value) + { + return value switch + { + GetTableSheetScorecardRowResponseAggregateVerdict.Error => "error", + GetTableSheetScorecardRowResponseAggregateVerdict.Fail => "fail", + GetTableSheetScorecardRowResponseAggregateVerdict.Pass => "pass", + GetTableSheetScorecardRowResponseAggregateVerdict.Skipped => "skipped", + GetTableSheetScorecardRowResponseAggregateVerdict.Warn => "warn", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetTableSheetScorecardRowResponseAggregateVerdict? ToEnum(string value) + { + return value switch + { + "error" => GetTableSheetScorecardRowResponseAggregateVerdict.Error, + "fail" => GetTableSheetScorecardRowResponseAggregateVerdict.Fail, + "pass" => GetTableSheetScorecardRowResponseAggregateVerdict.Pass, + "skipped" => GetTableSheetScorecardRowResponseAggregateVerdict.Skipped, + "warn" => GetTableSheetScorecardRowResponseAggregateVerdict.Warn, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardRowResponseDriftSummary.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardRowResponseDriftSummary.Json.g.cs new file mode 100644 index 0000000..c7c64dc --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardRowResponseDriftSummary.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class GetTableSheetScorecardRowResponseDriftSummary + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.GetTableSheetScorecardRowResponseDriftSummary? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.GetTableSheetScorecardRowResponseDriftSummary), + jsonSerializerContext) as global::PromptLayer.GetTableSheetScorecardRowResponseDriftSummary; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.GetTableSheetScorecardRowResponseDriftSummary? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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.GetTableSheetScorecardRowResponseDriftSummary? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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.GetTableSheetScorecardRowResponseDriftSummary), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.GetTableSheetScorecardRowResponseDriftSummary; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardRowResponseDriftSummary.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardRowResponseDriftSummary.g.cs new file mode 100644 index 0000000..dc4b63a --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardRowResponseDriftSummary.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class GetTableSheetScorecardRowResponseDriftSummary + { + + /// + /// 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.GetTableSheetScorecardRowResponseErrorSummary.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardRowResponseErrorSummary.Json.g.cs new file mode 100644 index 0000000..e1612db --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardRowResponseErrorSummary.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class GetTableSheetScorecardRowResponseErrorSummary + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.GetTableSheetScorecardRowResponseErrorSummary? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.GetTableSheetScorecardRowResponseErrorSummary), + jsonSerializerContext) as global::PromptLayer.GetTableSheetScorecardRowResponseErrorSummary; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.GetTableSheetScorecardRowResponseErrorSummary? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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.GetTableSheetScorecardRowResponseErrorSummary? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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.GetTableSheetScorecardRowResponseErrorSummary), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.GetTableSheetScorecardRowResponseErrorSummary; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardRowResponseErrorSummary.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardRowResponseErrorSummary.g.cs new file mode 100644 index 0000000..9b26475 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardRowResponseErrorSummary.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class GetTableSheetScorecardRowResponseErrorSummary + { + + /// + /// 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.GetTableSheetScorecardRowResponseStaleState.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardRowResponseStaleState.Json.g.cs new file mode 100644 index 0000000..4728b0b --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardRowResponseStaleState.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class GetTableSheetScorecardRowResponseStaleState + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.GetTableSheetScorecardRowResponseStaleState? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.GetTableSheetScorecardRowResponseStaleState), + jsonSerializerContext) as global::PromptLayer.GetTableSheetScorecardRowResponseStaleState; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.GetTableSheetScorecardRowResponseStaleState? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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.GetTableSheetScorecardRowResponseStaleState? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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.GetTableSheetScorecardRowResponseStaleState), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.GetTableSheetScorecardRowResponseStaleState; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardRowResponseStaleState.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardRowResponseStaleState.g.cs new file mode 100644 index 0000000..8a88372 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardRowResponseStaleState.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class GetTableSheetScorecardRowResponseStaleState + { + + /// + /// 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.GetTableSheetScorecardRowResponseStepResults.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardRowResponseStepResults.Json.g.cs new file mode 100644 index 0000000..af1012d --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardRowResponseStepResults.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class GetTableSheetScorecardRowResponseStepResults + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.GetTableSheetScorecardRowResponseStepResults? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.GetTableSheetScorecardRowResponseStepResults), + jsonSerializerContext) as global::PromptLayer.GetTableSheetScorecardRowResponseStepResults; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.GetTableSheetScorecardRowResponseStepResults? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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.GetTableSheetScorecardRowResponseStepResults? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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.GetTableSheetScorecardRowResponseStepResults), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.GetTableSheetScorecardRowResponseStepResults; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardRowResponseStepResults.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardRowResponseStepResults.g.cs new file mode 100644 index 0000000..8d606a4 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetTableSheetScorecardRowResponseStepResults.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class GetTableSheetScorecardRowResponseStepResults + { + + /// + /// 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.ListTableSheetScorecardRowsResponse.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.ListTableSheetScorecardRowsResponse.Json.g.cs new file mode 100644 index 0000000..e0c9762 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.ListTableSheetScorecardRowsResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class ListTableSheetScorecardRowsResponse + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.ListTableSheetScorecardRowsResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.ListTableSheetScorecardRowsResponse), + jsonSerializerContext) as global::PromptLayer.ListTableSheetScorecardRowsResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.ListTableSheetScorecardRowsResponse? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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.ListTableSheetScorecardRowsResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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.ListTableSheetScorecardRowsResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.ListTableSheetScorecardRowsResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.ListTableSheetScorecardRowsResponse.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.ListTableSheetScorecardRowsResponse.g.cs new file mode 100644 index 0000000..32a80f3 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.ListTableSheetScorecardRowsResponse.g.cs @@ -0,0 +1,74 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class ListTableSheetScorecardRowsResponse + { + /// + /// + /// + [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("calculation_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid CalculationId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("rows")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Rows { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("next_cursor")] + public int? NextCursor { 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 ListTableSheetScorecardRowsResponse( + bool success, + global::System.Guid calculationId, + global::System.Collections.Generic.IList rows, + int? nextCursor) + { + this.Success = success; + this.CalculationId = calculationId; + this.Rows = rows ?? throw new global::System.ArgumentNullException(nameof(rows)); + this.NextCursor = nextCursor; + } + + /// + /// Initializes a new instance of the class. + /// + public ListTableSheetScorecardRowsResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.ListTableSheetScorecardRowsVerdict.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.ListTableSheetScorecardRowsVerdict.g.cs new file mode 100644 index 0000000..ea53e7e --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.ListTableSheetScorecardRowsVerdict.g.cs @@ -0,0 +1,69 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public enum ListTableSheetScorecardRowsVerdict + { + /// + /// + /// + Error, + /// + /// + /// + Fail, + /// + /// + /// + Pass, + /// + /// + /// + Skipped, + /// + /// + /// + Warn, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ListTableSheetScorecardRowsVerdictExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ListTableSheetScorecardRowsVerdict value) + { + return value switch + { + ListTableSheetScorecardRowsVerdict.Error => "error", + ListTableSheetScorecardRowsVerdict.Fail => "fail", + ListTableSheetScorecardRowsVerdict.Pass => "pass", + ListTableSheetScorecardRowsVerdict.Skipped => "skipped", + ListTableSheetScorecardRowsVerdict.Warn => "warn", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ListTableSheetScorecardRowsVerdict? ToEnum(string value) + { + return value switch + { + "error" => ListTableSheetScorecardRowsVerdict.Error, + "fail" => ListTableSheetScorecardRowsVerdict.Fail, + "pass" => ListTableSheetScorecardRowsVerdict.Pass, + "skipped" => ListTableSheetScorecardRowsVerdict.Skipped, + "warn" => ListTableSheetScorecardRowsVerdict.Warn, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.MigrateLegacyTableSheetScoreRequest.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.MigrateLegacyTableSheetScoreRequest.Json.g.cs new file mode 100644 index 0000000..4d0ed53 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.MigrateLegacyTableSheetScoreRequest.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class MigrateLegacyTableSheetScoreRequest + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.MigrateLegacyTableSheetScoreRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.MigrateLegacyTableSheetScoreRequest), + jsonSerializerContext) as global::PromptLayer.MigrateLegacyTableSheetScoreRequest; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.MigrateLegacyTableSheetScoreRequest? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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.MigrateLegacyTableSheetScoreRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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.MigrateLegacyTableSheetScoreRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.MigrateLegacyTableSheetScoreRequest; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.MigrateLegacyTableSheetScoreRequest.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.MigrateLegacyTableSheetScoreRequest.g.cs new file mode 100644 index 0000000..d9a6481 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.MigrateLegacyTableSheetScoreRequest.g.cs @@ -0,0 +1,46 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class MigrateLegacyTableSheetScoreRequest + { + /// + /// Default Value: false + /// + [global::System.Text.Json.Serialization.JsonPropertyName("delete_legacy_score")] + public bool? DeleteLegacyScore { 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: false + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public MigrateLegacyTableSheetScoreRequest( + bool? deleteLegacyScore) + { + this.DeleteLegacyScore = deleteLegacyScore; + } + + /// + /// Initializes a new instance of the class. + /// + public MigrateLegacyTableSheetScoreRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.MigrateLegacyTableSheetScoreResponse.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.MigrateLegacyTableSheetScoreResponse.Json.g.cs new file mode 100644 index 0000000..f5fd2c6 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.MigrateLegacyTableSheetScoreResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class MigrateLegacyTableSheetScoreResponse + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.MigrateLegacyTableSheetScoreResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.MigrateLegacyTableSheetScoreResponse), + jsonSerializerContext) as global::PromptLayer.MigrateLegacyTableSheetScoreResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.MigrateLegacyTableSheetScoreResponse? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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.MigrateLegacyTableSheetScoreResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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.MigrateLegacyTableSheetScoreResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.MigrateLegacyTableSheetScoreResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.MigrateLegacyTableSheetScoreResponse.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.MigrateLegacyTableSheetScoreResponse.g.cs new file mode 100644 index 0000000..b74bc8d --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.MigrateLegacyTableSheetScoreResponse.g.cs @@ -0,0 +1,95 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class MigrateLegacyTableSheetScoreResponse + { + /// + /// + /// + [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("scorecard")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::PromptLayer.TableSheetScorecard Scorecard { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("converted_count")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int ConvertedCount { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("skipped")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Skipped { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("legacy_score_deleted")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool LegacyScoreDeleted { 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. + /// + /// + /// + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public MigrateLegacyTableSheetScoreResponse( + bool success, + global::PromptLayer.TableSheetScorecard scorecard, + int convertedCount, + global::System.Collections.Generic.IList skipped, + bool legacyScoreDeleted, + int version) + { + this.Success = success; + this.Scorecard = scorecard ?? throw new global::System.ArgumentNullException(nameof(scorecard)); + this.ConvertedCount = convertedCount; + this.Skipped = skipped ?? throw new global::System.ArgumentNullException(nameof(skipped)); + this.LegacyScoreDeleted = legacyScoreDeleted; + this.Version = version; + } + + /// + /// Initializes a new instance of the class. + /// + public MigrateLegacyTableSheetScoreResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.MigrateLegacyTableSheetScoreResponseSkippedItem.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.MigrateLegacyTableSheetScoreResponseSkippedItem.Json.g.cs new file mode 100644 index 0000000..da0ba10 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.MigrateLegacyTableSheetScoreResponseSkippedItem.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class MigrateLegacyTableSheetScoreResponseSkippedItem + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.MigrateLegacyTableSheetScoreResponseSkippedItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.MigrateLegacyTableSheetScoreResponseSkippedItem), + jsonSerializerContext) as global::PromptLayer.MigrateLegacyTableSheetScoreResponseSkippedItem; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.MigrateLegacyTableSheetScoreResponseSkippedItem? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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.MigrateLegacyTableSheetScoreResponseSkippedItem? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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.MigrateLegacyTableSheetScoreResponseSkippedItem), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.MigrateLegacyTableSheetScoreResponseSkippedItem; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.MigrateLegacyTableSheetScoreResponseSkippedItem.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.MigrateLegacyTableSheetScoreResponseSkippedItem.g.cs new file mode 100644 index 0000000..e677138 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.MigrateLegacyTableSheetScoreResponseSkippedItem.g.cs @@ -0,0 +1,53 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class MigrateLegacyTableSheetScoreResponseSkippedItem + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("reason")] + public string? Reason { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("score_type")] + public string? ScoreType { 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 MigrateLegacyTableSheetScoreResponseSkippedItem( + string? reason, + string? scoreType) + { + this.Reason = reason; + this.ScoreType = scoreType; + } + + /// + /// Initializes a new instance of the class. + /// + public MigrateLegacyTableSheetScoreResponseSkippedItem() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.RecalculateTableSheetScorecardRequest.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.RecalculateTableSheetScorecardRequest.Json.g.cs new file mode 100644 index 0000000..7d63830 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.RecalculateTableSheetScorecardRequest.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class RecalculateTableSheetScorecardRequest + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.RecalculateTableSheetScorecardRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.RecalculateTableSheetScorecardRequest), + jsonSerializerContext) as global::PromptLayer.RecalculateTableSheetScorecardRequest; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.RecalculateTableSheetScorecardRequest? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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.RecalculateTableSheetScorecardRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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.RecalculateTableSheetScorecardRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.RecalculateTableSheetScorecardRequest; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.RecalculateTableSheetScorecardRequest.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.RecalculateTableSheetScorecardRequest.g.cs new file mode 100644 index 0000000..b942ac9 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.RecalculateTableSheetScorecardRequest.g.cs @@ -0,0 +1,53 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class RecalculateTableSheetScorecardRequest + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("row_indices")] + public global::System.Collections.Generic.IList? RowIndices { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("step_ids")] + public global::System.Collections.Generic.IList? StepIds { 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 RecalculateTableSheetScorecardRequest( + global::System.Collections.Generic.IList? rowIndices, + global::System.Collections.Generic.IList? stepIds) + { + this.RowIndices = rowIndices; + this.StepIds = stepIds; + } + + /// + /// Initializes a new instance of the class. + /// + public RecalculateTableSheetScorecardRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.RecalculateTableSheetScorecardResponse.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.RecalculateTableSheetScorecardResponse.Json.g.cs new file mode 100644 index 0000000..2cd6edd --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.RecalculateTableSheetScorecardResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class RecalculateTableSheetScorecardResponse + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.RecalculateTableSheetScorecardResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.RecalculateTableSheetScorecardResponse), + jsonSerializerContext) as global::PromptLayer.RecalculateTableSheetScorecardResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.RecalculateTableSheetScorecardResponse? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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.RecalculateTableSheetScorecardResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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.RecalculateTableSheetScorecardResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.RecalculateTableSheetScorecardResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.RecalculateTableSheetScorecardResponse.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.RecalculateTableSheetScorecardResponse.g.cs new file mode 100644 index 0000000..9633c35 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.RecalculateTableSheetScorecardResponse.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class RecalculateTableSheetScorecardResponse + { + /// + /// + /// + [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("calculation_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid CalculationId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.RecalculateTableSheetScorecardResponseStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::PromptLayer.RecalculateTableSheetScorecardResponseStatus Status { 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. + /// + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RecalculateTableSheetScorecardResponse( + bool success, + global::System.Guid calculationId, + global::PromptLayer.RecalculateTableSheetScorecardResponseStatus status, + int version) + { + this.Success = success; + this.CalculationId = calculationId; + this.Status = status; + this.Version = version; + } + + /// + /// Initializes a new instance of the class. + /// + public RecalculateTableSheetScorecardResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.RecalculateTableSheetScorecardResponseStatus.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.RecalculateTableSheetScorecardResponseStatus.g.cs new file mode 100644 index 0000000..68192fb --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.RecalculateTableSheetScorecardResponseStatus.g.cs @@ -0,0 +1,69 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public enum RecalculateTableSheetScorecardResponseStatus + { + /// + /// + /// + Cancelled, + /// + /// + /// + Completed, + /// + /// + /// + Failed, + /// + /// + /// + Queued, + /// + /// + /// + Running, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RecalculateTableSheetScorecardResponseStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RecalculateTableSheetScorecardResponseStatus value) + { + return value switch + { + RecalculateTableSheetScorecardResponseStatus.Cancelled => "cancelled", + RecalculateTableSheetScorecardResponseStatus.Completed => "completed", + RecalculateTableSheetScorecardResponseStatus.Failed => "failed", + RecalculateTableSheetScorecardResponseStatus.Queued => "queued", + RecalculateTableSheetScorecardResponseStatus.Running => "running", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RecalculateTableSheetScorecardResponseStatus? ToEnum(string value) + { + return value switch + { + "cancelled" => RecalculateTableSheetScorecardResponseStatus.Cancelled, + "completed" => RecalculateTableSheetScorecardResponseStatus.Completed, + "failed" => RecalculateTableSheetScorecardResponseStatus.Failed, + "queued" => RecalculateTableSheetScorecardResponseStatus.Queued, + "running" => RecalculateTableSheetScorecardResponseStatus.Running, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecard.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecard.Json.g.cs new file mode 100644 index 0000000..e863df7 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecard.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class TableSheetScorecard + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScorecard? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.TableSheetScorecard), + jsonSerializerContext) as global::PromptLayer.TableSheetScorecard; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScorecard? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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.TableSheetScorecard? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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.TableSheetScorecard), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TableSheetScorecard; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecard.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecard.g.cs new file mode 100644 index 0000000..55d0b0a --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecard.g.cs @@ -0,0 +1,192 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class TableSheetScorecard + { + /// + /// + /// + [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("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int WorkspaceId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("smart_table_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid SmartTableId { 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("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("evaluated_column_ids")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList EvaluatedColumnIds { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("aggregation")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::PromptLayer.TableSheetScorecardAggregation Aggregation { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("display_config")] + public object? DisplayConfig { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("baseline_config")] + public object? BaselineConfig { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.TableSheetScorecardStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::PromptLayer.TableSheetScorecardStatus Status { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("stale_state")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::PromptLayer.TableSheetScorecardStaleState StaleState { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("latest_calculation_id")] + public global::System.Guid? LatestCalculationId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config_hash")] + public string? ConfigHash { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("steps")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Steps { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime CreatedAt { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required 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. + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public TableSheetScorecard( + global::System.Guid id, + int workspaceId, + global::System.Guid smartTableId, + global::System.Guid sheetId, + string name, + global::System.Collections.Generic.IList evaluatedColumnIds, + global::PromptLayer.TableSheetScorecardAggregation aggregation, + global::PromptLayer.TableSheetScorecardStatus status, + global::PromptLayer.TableSheetScorecardStaleState staleState, + global::System.Collections.Generic.IList steps, + global::System.DateTime createdAt, + global::System.DateTime updatedAt, + object? displayConfig, + object? baselineConfig, + global::System.Guid? latestCalculationId, + string? configHash) + { + this.Id = id; + this.WorkspaceId = workspaceId; + this.SmartTableId = smartTableId; + this.SheetId = sheetId; + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.EvaluatedColumnIds = evaluatedColumnIds ?? throw new global::System.ArgumentNullException(nameof(evaluatedColumnIds)); + this.Aggregation = aggregation ?? throw new global::System.ArgumentNullException(nameof(aggregation)); + this.DisplayConfig = displayConfig; + this.BaselineConfig = baselineConfig; + this.Status = status; + this.StaleState = staleState ?? throw new global::System.ArgumentNullException(nameof(staleState)); + this.LatestCalculationId = latestCalculationId; + this.ConfigHash = configHash; + this.Steps = steps ?? throw new global::System.ArgumentNullException(nameof(steps)); + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + } + + /// + /// Initializes a new instance of the class. + /// + public TableSheetScorecard() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardAggregation.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardAggregation.Json.g.cs new file mode 100644 index 0000000..fedeb6e --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardAggregation.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class TableSheetScorecardAggregation + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScorecardAggregation? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.TableSheetScorecardAggregation), + jsonSerializerContext) as global::PromptLayer.TableSheetScorecardAggregation; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScorecardAggregation? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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.TableSheetScorecardAggregation? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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.TableSheetScorecardAggregation), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TableSheetScorecardAggregation; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardAggregation.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardAggregation.g.cs new file mode 100644 index 0000000..49ee284 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardAggregation.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class TableSheetScorecardAggregation + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("method")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Method { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("required_step_failure_behavior")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.TableSheetScorecardAggregationRequiredStepFailureBehaviorJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::PromptLayer.TableSheetScorecardAggregationRequiredStepFailureBehavior RequiredStepFailureBehavior { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("pass_threshold")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double PassThreshold { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("warn_threshold")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double WarnThreshold { 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 TableSheetScorecardAggregation( + string method, + global::PromptLayer.TableSheetScorecardAggregationRequiredStepFailureBehavior requiredStepFailureBehavior, + double passThreshold, + double warnThreshold) + { + this.Method = method ?? throw new global::System.ArgumentNullException(nameof(method)); + this.RequiredStepFailureBehavior = requiredStepFailureBehavior; + this.PassThreshold = passThreshold; + this.WarnThreshold = warnThreshold; + } + + /// + /// Initializes a new instance of the class. + /// + public TableSheetScorecardAggregation() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardAggregationRequiredStepFailureBehavior.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardAggregationRequiredStepFailureBehavior.g.cs new file mode 100644 index 0000000..9a3a22c --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardAggregationRequiredStepFailureBehavior.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public enum TableSheetScorecardAggregationRequiredStepFailureBehavior + { + /// + /// + /// + Fail, + /// + /// + /// + Ignore, + /// + /// + /// + Warn, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class TableSheetScorecardAggregationRequiredStepFailureBehaviorExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this TableSheetScorecardAggregationRequiredStepFailureBehavior value) + { + return value switch + { + TableSheetScorecardAggregationRequiredStepFailureBehavior.Fail => "fail", + TableSheetScorecardAggregationRequiredStepFailureBehavior.Ignore => "ignore", + TableSheetScorecardAggregationRequiredStepFailureBehavior.Warn => "warn", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static TableSheetScorecardAggregationRequiredStepFailureBehavior? ToEnum(string value) + { + return value switch + { + "fail" => TableSheetScorecardAggregationRequiredStepFailureBehavior.Fail, + "ignore" => TableSheetScorecardAggregationRequiredStepFailureBehavior.Ignore, + "warn" => TableSheetScorecardAggregationRequiredStepFailureBehavior.Warn, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardBaselineConfig.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardBaselineConfig.Json.g.cs new file mode 100644 index 0000000..e1a20f3 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardBaselineConfig.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class TableSheetScorecardBaselineConfig + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScorecardBaselineConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.TableSheetScorecardBaselineConfig), + jsonSerializerContext) as global::PromptLayer.TableSheetScorecardBaselineConfig; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScorecardBaselineConfig? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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.TableSheetScorecardBaselineConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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.TableSheetScorecardBaselineConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TableSheetScorecardBaselineConfig; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardBaselineConfig.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardBaselineConfig.g.cs new file mode 100644 index 0000000..48728e8 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardBaselineConfig.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class TableSheetScorecardBaselineConfig + { + + /// + /// 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.TableSheetScorecardCalculation.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardCalculation.Json.g.cs new file mode 100644 index 0000000..e4c9cf4 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardCalculation.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class TableSheetScorecardCalculation + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScorecardCalculation? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.TableSheetScorecardCalculation), + jsonSerializerContext) as global::PromptLayer.TableSheetScorecardCalculation; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScorecardCalculation? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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.TableSheetScorecardCalculation? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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.TableSheetScorecardCalculation), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TableSheetScorecardCalculation; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardCalculation.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardCalculation.g.cs new file mode 100644 index 0000000..7b9bee0 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardCalculation.g.cs @@ -0,0 +1,170 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class TableSheetScorecardCalculation + { + /// + /// + /// + [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("scorecard_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid ScorecardId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int WorkspaceId { 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("sheet_revision")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string SheetRevision { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.TableSheetScorecardCalculationStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::PromptLayer.TableSheetScorecardCalculationStatus Status { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("aggregate_score")] + public double? AggregateScore { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("aggregate_verdict")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.TableSheetScorecardCalculationAggregateVerdictJsonConverter))] + public global::PromptLayer.TableSheetScorecardCalculationAggregateVerdict? AggregateVerdict { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("criterion_summaries")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object CriterionSummaries { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("drift_summary")] + public object? DriftSummary { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config_hash")] + public string? ConfigHash { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("started_at")] + public global::System.DateTime? StartedAt { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("completed_at")] + public global::System.DateTime? CompletedAt { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("error_summary")] + public object? ErrorSummary { 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 TableSheetScorecardCalculation( + global::System.Guid id, + global::System.Guid scorecardId, + int workspaceId, + global::System.Guid sheetId, + string sheetRevision, + global::PromptLayer.TableSheetScorecardCalculationStatus status, + object criterionSummaries, + double? aggregateScore, + global::PromptLayer.TableSheetScorecardCalculationAggregateVerdict? aggregateVerdict, + object? driftSummary, + string? configHash, + global::System.DateTime? startedAt, + global::System.DateTime? completedAt, + object? errorSummary) + { + this.Id = id; + this.ScorecardId = scorecardId; + this.WorkspaceId = workspaceId; + this.SheetId = sheetId; + this.SheetRevision = sheetRevision ?? throw new global::System.ArgumentNullException(nameof(sheetRevision)); + this.Status = status; + this.AggregateScore = aggregateScore; + this.AggregateVerdict = aggregateVerdict; + this.CriterionSummaries = criterionSummaries ?? throw new global::System.ArgumentNullException(nameof(criterionSummaries)); + this.DriftSummary = driftSummary; + this.ConfigHash = configHash; + this.StartedAt = startedAt; + this.CompletedAt = completedAt; + this.ErrorSummary = errorSummary; + } + + /// + /// Initializes a new instance of the class. + /// + public TableSheetScorecardCalculation() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardCalculationAggregateVerdict.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardCalculationAggregateVerdict.g.cs new file mode 100644 index 0000000..5e7e519 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardCalculationAggregateVerdict.g.cs @@ -0,0 +1,69 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public enum TableSheetScorecardCalculationAggregateVerdict + { + /// + /// + /// + Error, + /// + /// + /// + Fail, + /// + /// + /// + Pass, + /// + /// + /// + Skipped, + /// + /// + /// + Warn, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class TableSheetScorecardCalculationAggregateVerdictExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this TableSheetScorecardCalculationAggregateVerdict value) + { + return value switch + { + TableSheetScorecardCalculationAggregateVerdict.Error => "error", + TableSheetScorecardCalculationAggregateVerdict.Fail => "fail", + TableSheetScorecardCalculationAggregateVerdict.Pass => "pass", + TableSheetScorecardCalculationAggregateVerdict.Skipped => "skipped", + TableSheetScorecardCalculationAggregateVerdict.Warn => "warn", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static TableSheetScorecardCalculationAggregateVerdict? ToEnum(string value) + { + return value switch + { + "error" => TableSheetScorecardCalculationAggregateVerdict.Error, + "fail" => TableSheetScorecardCalculationAggregateVerdict.Fail, + "pass" => TableSheetScorecardCalculationAggregateVerdict.Pass, + "skipped" => TableSheetScorecardCalculationAggregateVerdict.Skipped, + "warn" => TableSheetScorecardCalculationAggregateVerdict.Warn, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardCalculationCriterionSummaries.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardCalculationCriterionSummaries.Json.g.cs new file mode 100644 index 0000000..2457f52 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardCalculationCriterionSummaries.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class TableSheetScorecardCalculationCriterionSummaries + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScorecardCalculationCriterionSummaries? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.TableSheetScorecardCalculationCriterionSummaries), + jsonSerializerContext) as global::PromptLayer.TableSheetScorecardCalculationCriterionSummaries; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScorecardCalculationCriterionSummaries? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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.TableSheetScorecardCalculationCriterionSummaries? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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.TableSheetScorecardCalculationCriterionSummaries), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TableSheetScorecardCalculationCriterionSummaries; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardCalculationCriterionSummaries.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardCalculationCriterionSummaries.g.cs new file mode 100644 index 0000000..6adfd46 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardCalculationCriterionSummaries.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class TableSheetScorecardCalculationCriterionSummaries + { + + /// + /// 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.TableSheetScorecardCalculationDriftSummary.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardCalculationDriftSummary.Json.g.cs new file mode 100644 index 0000000..37a4e77 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardCalculationDriftSummary.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class TableSheetScorecardCalculationDriftSummary + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScorecardCalculationDriftSummary? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.TableSheetScorecardCalculationDriftSummary), + jsonSerializerContext) as global::PromptLayer.TableSheetScorecardCalculationDriftSummary; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScorecardCalculationDriftSummary? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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.TableSheetScorecardCalculationDriftSummary? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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.TableSheetScorecardCalculationDriftSummary), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TableSheetScorecardCalculationDriftSummary; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardCalculationDriftSummary.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardCalculationDriftSummary.g.cs new file mode 100644 index 0000000..7541657 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardCalculationDriftSummary.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class TableSheetScorecardCalculationDriftSummary + { + + /// + /// 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.TableSheetScorecardCalculationErrorSummary.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardCalculationErrorSummary.Json.g.cs new file mode 100644 index 0000000..4bca512 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardCalculationErrorSummary.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class TableSheetScorecardCalculationErrorSummary + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScorecardCalculationErrorSummary? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.TableSheetScorecardCalculationErrorSummary), + jsonSerializerContext) as global::PromptLayer.TableSheetScorecardCalculationErrorSummary; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScorecardCalculationErrorSummary? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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.TableSheetScorecardCalculationErrorSummary? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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.TableSheetScorecardCalculationErrorSummary), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TableSheetScorecardCalculationErrorSummary; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardCalculationErrorSummary.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardCalculationErrorSummary.g.cs new file mode 100644 index 0000000..b4f29fd --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardCalculationErrorSummary.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class TableSheetScorecardCalculationErrorSummary + { + + /// + /// 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.TableSheetScorecardCalculationStatus.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardCalculationStatus.g.cs new file mode 100644 index 0000000..586b468 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardCalculationStatus.g.cs @@ -0,0 +1,69 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public enum TableSheetScorecardCalculationStatus + { + /// + /// + /// + Cancelled, + /// + /// + /// + Completed, + /// + /// + /// + Failed, + /// + /// + /// + Queued, + /// + /// + /// + Running, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class TableSheetScorecardCalculationStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this TableSheetScorecardCalculationStatus value) + { + return value switch + { + TableSheetScorecardCalculationStatus.Cancelled => "cancelled", + TableSheetScorecardCalculationStatus.Completed => "completed", + TableSheetScorecardCalculationStatus.Failed => "failed", + TableSheetScorecardCalculationStatus.Queued => "queued", + TableSheetScorecardCalculationStatus.Running => "running", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static TableSheetScorecardCalculationStatus? ToEnum(string value) + { + return value switch + { + "cancelled" => TableSheetScorecardCalculationStatus.Cancelled, + "completed" => TableSheetScorecardCalculationStatus.Completed, + "failed" => TableSheetScorecardCalculationStatus.Failed, + "queued" => TableSheetScorecardCalculationStatus.Queued, + "running" => TableSheetScorecardCalculationStatus.Running, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardDisplayConfig.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardDisplayConfig.Json.g.cs new file mode 100644 index 0000000..3569813 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardDisplayConfig.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class TableSheetScorecardDisplayConfig + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScorecardDisplayConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.TableSheetScorecardDisplayConfig), + jsonSerializerContext) as global::PromptLayer.TableSheetScorecardDisplayConfig; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScorecardDisplayConfig? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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.TableSheetScorecardDisplayConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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.TableSheetScorecardDisplayConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TableSheetScorecardDisplayConfig; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardDisplayConfig.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardDisplayConfig.g.cs new file mode 100644 index 0000000..1e20679 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardDisplayConfig.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class TableSheetScorecardDisplayConfig + { + + /// + /// 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.TableSheetScorecardGetResponse.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardGetResponse.Json.g.cs new file mode 100644 index 0000000..ff14b4b --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardGetResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class TableSheetScorecardGetResponse + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScorecardGetResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.TableSheetScorecardGetResponse), + jsonSerializerContext) as global::PromptLayer.TableSheetScorecardGetResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScorecardGetResponse? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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.TableSheetScorecardGetResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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.TableSheetScorecardGetResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TableSheetScorecardGetResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardGetResponse.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardGetResponse.g.cs new file mode 100644 index 0000000..52d199e --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardGetResponse.g.cs @@ -0,0 +1,90 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class TableSheetScorecardGetResponse + { + /// + /// + /// + [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("scorecard")] + public global::PromptLayer.TableSheetScorecard? Scorecard { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("latest_calculation")] + public global::PromptLayer.TableSheetScorecardCalculation? LatestCalculation { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("display_calculation")] + public global::PromptLayer.TableSheetScorecardCalculation? DisplayCalculation { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("criterion_summaries")] + public object? CriterionSummaries { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("drift_summary")] + public object? DriftSummary { 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 TableSheetScorecardGetResponse( + bool success, + global::PromptLayer.TableSheetScorecard? scorecard, + global::PromptLayer.TableSheetScorecardCalculation? latestCalculation, + global::PromptLayer.TableSheetScorecardCalculation? displayCalculation, + object? criterionSummaries, + object? driftSummary) + { + this.Success = success; + this.Scorecard = scorecard; + this.LatestCalculation = latestCalculation; + this.DisplayCalculation = displayCalculation; + this.CriterionSummaries = criterionSummaries; + this.DriftSummary = driftSummary; + } + + /// + /// Initializes a new instance of the class. + /// + public TableSheetScorecardGetResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardGetResponseCriterionSummaries.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardGetResponseCriterionSummaries.Json.g.cs new file mode 100644 index 0000000..860ac04 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardGetResponseCriterionSummaries.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class TableSheetScorecardGetResponseCriterionSummaries + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScorecardGetResponseCriterionSummaries? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.TableSheetScorecardGetResponseCriterionSummaries), + jsonSerializerContext) as global::PromptLayer.TableSheetScorecardGetResponseCriterionSummaries; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScorecardGetResponseCriterionSummaries? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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.TableSheetScorecardGetResponseCriterionSummaries? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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.TableSheetScorecardGetResponseCriterionSummaries), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TableSheetScorecardGetResponseCriterionSummaries; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardGetResponseCriterionSummaries.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardGetResponseCriterionSummaries.g.cs new file mode 100644 index 0000000..e5a0e5f --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardGetResponseCriterionSummaries.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class TableSheetScorecardGetResponseCriterionSummaries + { + + /// + /// 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.TableSheetScorecardGetResponseDriftSummary.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardGetResponseDriftSummary.Json.g.cs new file mode 100644 index 0000000..28fabbe --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardGetResponseDriftSummary.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class TableSheetScorecardGetResponseDriftSummary + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScorecardGetResponseDriftSummary? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.TableSheetScorecardGetResponseDriftSummary), + jsonSerializerContext) as global::PromptLayer.TableSheetScorecardGetResponseDriftSummary; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScorecardGetResponseDriftSummary? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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.TableSheetScorecardGetResponseDriftSummary? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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.TableSheetScorecardGetResponseDriftSummary), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TableSheetScorecardGetResponseDriftSummary; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardGetResponseDriftSummary.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardGetResponseDriftSummary.g.cs new file mode 100644 index 0000000..c8ada8a --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardGetResponseDriftSummary.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class TableSheetScorecardGetResponseDriftSummary + { + + /// + /// 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.TableSheetScorecardRowSummary.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardRowSummary.Json.g.cs new file mode 100644 index 0000000..39d21fc --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardRowSummary.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class TableSheetScorecardRowSummary + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScorecardRowSummary? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.TableSheetScorecardRowSummary), + jsonSerializerContext) as global::PromptLayer.TableSheetScorecardRowSummary; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScorecardRowSummary? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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.TableSheetScorecardRowSummary? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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.TableSheetScorecardRowSummary), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TableSheetScorecardRowSummary; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardRowSummary.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardRowSummary.g.cs new file mode 100644 index 0000000..646fcee --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardRowSummary.g.cs @@ -0,0 +1,91 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class TableSheetScorecardRowSummary + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("row_index")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int RowIndex { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("aggregate_score")] + public double? AggregateScore { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("aggregate_verdict")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.TableSheetScorecardRowSummaryAggregateVerdictJsonConverter))] + public global::PromptLayer.TableSheetScorecardRowSummaryAggregateVerdict? AggregateVerdict { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("drift_summary")] + public object? DriftSummary { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("stale_state")] + public object? StaleState { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("error_summary")] + public object? ErrorSummary { 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 TableSheetScorecardRowSummary( + int rowIndex, + double? aggregateScore, + global::PromptLayer.TableSheetScorecardRowSummaryAggregateVerdict? aggregateVerdict, + object? driftSummary, + object? staleState, + object? errorSummary) + { + this.RowIndex = rowIndex; + this.AggregateScore = aggregateScore; + this.AggregateVerdict = aggregateVerdict; + this.DriftSummary = driftSummary; + this.StaleState = staleState; + this.ErrorSummary = errorSummary; + } + + /// + /// Initializes a new instance of the class. + /// + public TableSheetScorecardRowSummary() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardRowSummaryAggregateVerdict.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardRowSummaryAggregateVerdict.g.cs new file mode 100644 index 0000000..7c9789a --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardRowSummaryAggregateVerdict.g.cs @@ -0,0 +1,69 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public enum TableSheetScorecardRowSummaryAggregateVerdict + { + /// + /// + /// + Error, + /// + /// + /// + Fail, + /// + /// + /// + Pass, + /// + /// + /// + Skipped, + /// + /// + /// + Warn, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class TableSheetScorecardRowSummaryAggregateVerdictExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this TableSheetScorecardRowSummaryAggregateVerdict value) + { + return value switch + { + TableSheetScorecardRowSummaryAggregateVerdict.Error => "error", + TableSheetScorecardRowSummaryAggregateVerdict.Fail => "fail", + TableSheetScorecardRowSummaryAggregateVerdict.Pass => "pass", + TableSheetScorecardRowSummaryAggregateVerdict.Skipped => "skipped", + TableSheetScorecardRowSummaryAggregateVerdict.Warn => "warn", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static TableSheetScorecardRowSummaryAggregateVerdict? ToEnum(string value) + { + return value switch + { + "error" => TableSheetScorecardRowSummaryAggregateVerdict.Error, + "fail" => TableSheetScorecardRowSummaryAggregateVerdict.Fail, + "pass" => TableSheetScorecardRowSummaryAggregateVerdict.Pass, + "skipped" => TableSheetScorecardRowSummaryAggregateVerdict.Skipped, + "warn" => TableSheetScorecardRowSummaryAggregateVerdict.Warn, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardRowSummaryDriftSummary.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardRowSummaryDriftSummary.Json.g.cs new file mode 100644 index 0000000..2bebdfe --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardRowSummaryDriftSummary.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class TableSheetScorecardRowSummaryDriftSummary + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScorecardRowSummaryDriftSummary? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.TableSheetScorecardRowSummaryDriftSummary), + jsonSerializerContext) as global::PromptLayer.TableSheetScorecardRowSummaryDriftSummary; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScorecardRowSummaryDriftSummary? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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.TableSheetScorecardRowSummaryDriftSummary? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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.TableSheetScorecardRowSummaryDriftSummary), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TableSheetScorecardRowSummaryDriftSummary; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardRowSummaryDriftSummary.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardRowSummaryDriftSummary.g.cs new file mode 100644 index 0000000..5fe870e --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardRowSummaryDriftSummary.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class TableSheetScorecardRowSummaryDriftSummary + { + + /// + /// 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.TableSheetScorecardRowSummaryErrorSummary.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardRowSummaryErrorSummary.Json.g.cs new file mode 100644 index 0000000..675e79c --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardRowSummaryErrorSummary.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class TableSheetScorecardRowSummaryErrorSummary + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScorecardRowSummaryErrorSummary? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.TableSheetScorecardRowSummaryErrorSummary), + jsonSerializerContext) as global::PromptLayer.TableSheetScorecardRowSummaryErrorSummary; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScorecardRowSummaryErrorSummary? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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.TableSheetScorecardRowSummaryErrorSummary? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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.TableSheetScorecardRowSummaryErrorSummary), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TableSheetScorecardRowSummaryErrorSummary; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardRowSummaryErrorSummary.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardRowSummaryErrorSummary.g.cs new file mode 100644 index 0000000..75b1651 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardRowSummaryErrorSummary.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class TableSheetScorecardRowSummaryErrorSummary + { + + /// + /// 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.TableSheetScorecardRowSummaryStaleState.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardRowSummaryStaleState.Json.g.cs new file mode 100644 index 0000000..3903c1f --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardRowSummaryStaleState.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class TableSheetScorecardRowSummaryStaleState + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScorecardRowSummaryStaleState? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.TableSheetScorecardRowSummaryStaleState), + jsonSerializerContext) as global::PromptLayer.TableSheetScorecardRowSummaryStaleState; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScorecardRowSummaryStaleState? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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.TableSheetScorecardRowSummaryStaleState? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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.TableSheetScorecardRowSummaryStaleState), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TableSheetScorecardRowSummaryStaleState; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardRowSummaryStaleState.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardRowSummaryStaleState.g.cs new file mode 100644 index 0000000..efbaed8 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardRowSummaryStaleState.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class TableSheetScorecardRowSummaryStaleState + { + + /// + /// 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.TableSheetScorecardStaleState.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardStaleState.Json.g.cs new file mode 100644 index 0000000..b8f0b60 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardStaleState.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class TableSheetScorecardStaleState + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScorecardStaleState? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.TableSheetScorecardStaleState), + jsonSerializerContext) as global::PromptLayer.TableSheetScorecardStaleState; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScorecardStaleState? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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.TableSheetScorecardStaleState? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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.TableSheetScorecardStaleState), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TableSheetScorecardStaleState; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardStaleState.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardStaleState.g.cs new file mode 100644 index 0000000..4bd5e79 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardStaleState.g.cs @@ -0,0 +1,55 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class TableSheetScorecardStaleState + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("is_stale")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool IsStale { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("reasons")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Reasons { 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 TableSheetScorecardStaleState( + bool isStale, + global::System.Collections.Generic.IList reasons) + { + this.IsStale = isStale; + this.Reasons = reasons ?? throw new global::System.ArgumentNullException(nameof(reasons)); + } + + /// + /// Initializes a new instance of the class. + /// + public TableSheetScorecardStaleState() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardStatus.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardStatus.g.cs new file mode 100644 index 0000000..f762161 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardStatus.g.cs @@ -0,0 +1,81 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public enum TableSheetScorecardStatus + { + /// + /// + /// + Completed, + /// + /// + /// + Failed, + /// + /// + /// + NeedsSetup, + /// + /// + /// + Queued, + /// + /// + /// + Ready, + /// + /// + /// + Running, + /// + /// + /// + Stale, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class TableSheetScorecardStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this TableSheetScorecardStatus value) + { + return value switch + { + TableSheetScorecardStatus.Completed => "completed", + TableSheetScorecardStatus.Failed => "failed", + TableSheetScorecardStatus.NeedsSetup => "needs_setup", + TableSheetScorecardStatus.Queued => "queued", + TableSheetScorecardStatus.Ready => "ready", + TableSheetScorecardStatus.Running => "running", + TableSheetScorecardStatus.Stale => "stale", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static TableSheetScorecardStatus? ToEnum(string value) + { + return value switch + { + "completed" => TableSheetScorecardStatus.Completed, + "failed" => TableSheetScorecardStatus.Failed, + "needs_setup" => TableSheetScorecardStatus.NeedsSetup, + "queued" => TableSheetScorecardStatus.Queued, + "ready" => TableSheetScorecardStatus.Ready, + "running" => TableSheetScorecardStatus.Running, + "stale" => TableSheetScorecardStatus.Stale, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardStep.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardStep.Json.g.cs new file mode 100644 index 0000000..5261d0a --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardStep.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class TableSheetScorecardStep + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScorecardStep? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.TableSheetScorecardStep), + jsonSerializerContext) as global::PromptLayer.TableSheetScorecardStep; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScorecardStep? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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.TableSheetScorecardStep? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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.TableSheetScorecardStep), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TableSheetScorecardStep; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardStep.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardStep.g.cs new file mode 100644 index 0000000..7e9365b --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardStep.g.cs @@ -0,0 +1,109 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class TableSheetScorecardStep + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public global::System.Guid? Id { 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("primitive_type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string PrimitiveType { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("source_column_ids")] + public global::System.Collections.Generic.IList? SourceColumnIds { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("weight")] + public double? Weight { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("required")] + public bool? Required { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("thresholds")] + public global::System.Collections.Generic.Dictionary? Thresholds { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("primitive_config")] + public object? PrimitiveConfig { 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 TableSheetScorecardStep( + string title, + string primitiveType, + global::System.Guid? id, + global::System.Collections.Generic.IList? sourceColumnIds, + double? weight, + bool? required, + global::System.Collections.Generic.Dictionary? thresholds, + object? primitiveConfig) + { + this.Id = id; + this.Title = title ?? throw new global::System.ArgumentNullException(nameof(title)); + this.PrimitiveType = primitiveType ?? throw new global::System.ArgumentNullException(nameof(primitiveType)); + this.SourceColumnIds = sourceColumnIds; + this.Weight = weight; + this.Required = required; + this.Thresholds = thresholds; + this.PrimitiveConfig = primitiveConfig; + } + + /// + /// Initializes a new instance of the class. + /// + public TableSheetScorecardStep() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardStepPrimitiveConfig.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardStepPrimitiveConfig.Json.g.cs new file mode 100644 index 0000000..12d7a31 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardStepPrimitiveConfig.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class TableSheetScorecardStepPrimitiveConfig + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScorecardStepPrimitiveConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.TableSheetScorecardStepPrimitiveConfig), + jsonSerializerContext) as global::PromptLayer.TableSheetScorecardStepPrimitiveConfig; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScorecardStepPrimitiveConfig? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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.TableSheetScorecardStepPrimitiveConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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.TableSheetScorecardStepPrimitiveConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TableSheetScorecardStepPrimitiveConfig; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardStepPrimitiveConfig.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardStepPrimitiveConfig.g.cs new file mode 100644 index 0000000..87144eb --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardStepPrimitiveConfig.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class TableSheetScorecardStepPrimitiveConfig + { + + /// + /// 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.TableSheetScorecardStepThresholds.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardStepThresholds.Json.g.cs new file mode 100644 index 0000000..c560dd2 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardStepThresholds.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class TableSheetScorecardStepThresholds + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScorecardStepThresholds? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.TableSheetScorecardStepThresholds), + jsonSerializerContext) as global::PromptLayer.TableSheetScorecardStepThresholds; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.TableSheetScorecardStepThresholds? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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.TableSheetScorecardStepThresholds? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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.TableSheetScorecardStepThresholds), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TableSheetScorecardStepThresholds; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardStepThresholds.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardStepThresholds.g.cs new file mode 100644 index 0000000..37eee23 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TableSheetScorecardStepThresholds.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class TableSheetScorecardStepThresholds + { + + /// + /// 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.TablesClient.CancelTableSheetScorecard.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.CancelTableSheetScorecard.g.cs new file mode 100644 index 0000000..bc524a9 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.CancelTableSheetScorecard.g.cs @@ -0,0 +1,561 @@ + +#nullable enable + +namespace PromptLayer +{ + public partial class TablesClient + { + + + private static readonly global::PromptLayer.EndPointSecurityRequirement s_CancelTableSheetScorecardSecurityRequirement0 = + 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_CancelTableSheetScorecardSecurityRequirements = + new global::PromptLayer.EndPointSecurityRequirement[] + { s_CancelTableSheetScorecardSecurityRequirement0, + }; + partial void PrepareCancelTableSheetScorecardArguments( + global::System.Net.Http.HttpClient httpClient, + ref global::System.Guid tableId, + ref global::System.Guid sheetId, + global::PromptLayer.CancelTableSheetScorecardRequest request); + partial void PrepareCancelTableSheetScorecardRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::System.Guid tableId, + global::System.Guid sheetId, + global::PromptLayer.CancelTableSheetScorecardRequest request); + partial void ProcessCancelTableSheetScorecardResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessCancelTableSheetScorecardResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Cancel Table Sheet Scorecard
+ /// Cancel active queued or running scorecard work for a table sheet. + ///
+ /// + /// + /// + /// 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 CancelTableSheetScorecardAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + + global::PromptLayer.CancelTableSheetScorecardRequest request, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await CancelTableSheetScorecardAsResponseAsync( + tableId: tableId, + sheetId: sheetId, + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Cancel Table Sheet Scorecard
+ /// Cancel active queued or running scorecard work for a table sheet. + ///
+ /// + /// + /// + /// 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> CancelTableSheetScorecardAsResponseAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + + global::PromptLayer.CancelTableSheetScorecardRequest request, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareCancelTableSheetScorecardArguments( + httpClient: HttpClient, + tableId: ref tableId, + sheetId: ref sheetId, + request: request); + + + var __authorizations = global::PromptLayer.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CancelTableSheetScorecardSecurityRequirements, + operationName: "CancelTableSheetScorecardAsync"); + + 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}/scorecard/cancel", + 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); + PrepareCancelTableSheetScorecardRequest( + 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: "CancelTableSheetScorecard", + methodName: "CancelTableSheetScorecardAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/scorecard/cancel\"", + 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: "CancelTableSheetScorecard", + methodName: "CancelTableSheetScorecardAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/scorecard/cancel\"", + 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: "CancelTableSheetScorecard", + methodName: "CancelTableSheetScorecardAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/scorecard/cancel\"", + 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); + ProcessCancelTableSheetScorecardResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CancelTableSheetScorecard", + methodName: "CancelTableSheetScorecardAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/scorecard/cancel\"", + 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: "CancelTableSheetScorecard", + methodName: "CancelTableSheetScorecardAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/scorecard/cancel\"", + 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 cancellation request. + 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); + ProcessCancelTableSheetScorecardResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::PromptLayer.CancelTableSheetScorecardResponse.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.CancelTableSheetScorecardResponse.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(); + } + } + /// + /// Cancel Table Sheet Scorecard
+ /// Cancel active queued or running scorecard work for a table sheet. + ///
+ /// + /// + /// + /// + /// 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 CancelTableSheetScorecardAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + global::System.Collections.Generic.IList? rowIndices = default, + global::System.Collections.Generic.IList? stepIds = default, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::PromptLayer.CancelTableSheetScorecardRequest + { + RowIndices = rowIndices, + StepIds = stepIds, + }; + + return await CancelTableSheetScorecardAsync( + 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.ConfigureTableSheetScorecard.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.ConfigureTableSheetScorecard.g.cs new file mode 100644 index 0000000..08f4d0a --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.ConfigureTableSheetScorecard.g.cs @@ -0,0 +1,614 @@ + +#nullable enable + +namespace PromptLayer +{ + public partial class TablesClient + { + + + private static readonly global::PromptLayer.EndPointSecurityRequirement s_ConfigureTableSheetScorecardSecurityRequirement0 = + 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_ConfigureTableSheetScorecardSecurityRequirements = + new global::PromptLayer.EndPointSecurityRequirement[] + { s_ConfigureTableSheetScorecardSecurityRequirement0, + }; + partial void PrepareConfigureTableSheetScorecardArguments( + global::System.Net.Http.HttpClient httpClient, + ref global::System.Guid tableId, + ref global::System.Guid sheetId, + global::PromptLayer.ConfigureTableSheetScorecardRequest request); + partial void PrepareConfigureTableSheetScorecardRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::System.Guid tableId, + global::System.Guid sheetId, + global::PromptLayer.ConfigureTableSheetScorecardRequest request); + partial void ProcessConfigureTableSheetScorecardResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessConfigureTableSheetScorecardResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Configure Table Sheet Scorecard
+ /// Create or update the active scorecard for a table sheet. + ///
+ /// + /// + /// + /// 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 ConfigureTableSheetScorecardAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + + global::PromptLayer.ConfigureTableSheetScorecardRequest request, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await ConfigureTableSheetScorecardAsResponseAsync( + tableId: tableId, + sheetId: sheetId, + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Configure Table Sheet Scorecard
+ /// Create or update the active scorecard for a table sheet. + ///
+ /// + /// + /// + /// 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> ConfigureTableSheetScorecardAsResponseAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + + global::PromptLayer.ConfigureTableSheetScorecardRequest request, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareConfigureTableSheetScorecardArguments( + httpClient: HttpClient, + tableId: ref tableId, + sheetId: ref sheetId, + request: request); + + + var __authorizations = global::PromptLayer.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ConfigureTableSheetScorecardSecurityRequirements, + operationName: "ConfigureTableSheetScorecardAsync"); + + 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}/scorecard", + 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); + PrepareConfigureTableSheetScorecardRequest( + 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: "ConfigureTableSheetScorecard", + methodName: "ConfigureTableSheetScorecardAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/scorecard\"", + 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: "ConfigureTableSheetScorecard", + methodName: "ConfigureTableSheetScorecardAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/scorecard\"", + 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: "ConfigureTableSheetScorecard", + methodName: "ConfigureTableSheetScorecardAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/scorecard\"", + 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); + ProcessConfigureTableSheetScorecardResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ConfigureTableSheetScorecard", + methodName: "ConfigureTableSheetScorecardAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/scorecard\"", + 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: "ConfigureTableSheetScorecard", + methodName: "ConfigureTableSheetScorecardAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/scorecard\"", + 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 scorecard configuration. + 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); + ProcessConfigureTableSheetScorecardResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::PromptLayer.ConfigureTableSheetScorecardResponse.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.ConfigureTableSheetScorecardResponse.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 Scorecard
+ /// Create or update the active scorecard for a table sheet. + ///
+ /// + /// + /// + /// + /// Default Value: [] + /// + /// + /// Default Value: [] + /// + /// + /// + /// + /// 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 ConfigureTableSheetScorecardAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + string name, + object aggregation, + global::System.Collections.Generic.IList? evaluatedColumnIds = default, + global::System.Collections.Generic.IList? steps = default, + object? displayConfig = default, + object? baselineConfig = default, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::PromptLayer.ConfigureTableSheetScorecardRequest + { + Name = name, + EvaluatedColumnIds = evaluatedColumnIds, + Steps = steps, + Aggregation = aggregation, + DisplayConfig = displayConfig, + BaselineConfig = baselineConfig, + }; + + return await ConfigureTableSheetScorecardAsync( + 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.DeleteTableSheetScorecard.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.DeleteTableSheetScorecard.g.cs new file mode 100644 index 0000000..89e81aa --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.DeleteTableSheetScorecard.g.cs @@ -0,0 +1,509 @@ + +#nullable enable + +namespace PromptLayer +{ + public partial class TablesClient + { + + + private static readonly global::PromptLayer.EndPointSecurityRequirement s_DeleteTableSheetScorecardSecurityRequirement0 = + 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_DeleteTableSheetScorecardSecurityRequirements = + new global::PromptLayer.EndPointSecurityRequirement[] + { s_DeleteTableSheetScorecardSecurityRequirement0, + }; + partial void PrepareDeleteTableSheetScorecardArguments( + global::System.Net.Http.HttpClient httpClient, + ref global::System.Guid tableId, + ref global::System.Guid sheetId); + partial void PrepareDeleteTableSheetScorecardRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::System.Guid tableId, + global::System.Guid sheetId); + partial void ProcessDeleteTableSheetScorecardResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessDeleteTableSheetScorecardResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Delete Table Sheet Scorecard
+ /// Soft-delete the active scorecard for a table sheet. + ///
+ /// + /// + /// 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 DeleteTableSheetScorecardAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await DeleteTableSheetScorecardAsResponseAsync( + tableId: tableId, + sheetId: sheetId, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Delete Table Sheet Scorecard
+ /// Soft-delete the active scorecard for a table sheet. + ///
+ /// + /// + /// 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> DeleteTableSheetScorecardAsResponseAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareDeleteTableSheetScorecardArguments( + httpClient: HttpClient, + tableId: ref tableId, + sheetId: ref sheetId); + + + var __authorizations = global::PromptLayer.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteTableSheetScorecardSecurityRequirements, + operationName: "DeleteTableSheetScorecardAsync"); + + 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}/scorecard", + 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); + PrepareDeleteTableSheetScorecardRequest( + 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: "DeleteTableSheetScorecard", + methodName: "DeleteTableSheetScorecardAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/scorecard\"", + 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: "DeleteTableSheetScorecard", + methodName: "DeleteTableSheetScorecardAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/scorecard\"", + 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: "DeleteTableSheetScorecard", + methodName: "DeleteTableSheetScorecardAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/scorecard\"", + 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); + ProcessDeleteTableSheetScorecardResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DeleteTableSheetScorecard", + methodName: "DeleteTableSheetScorecardAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/scorecard\"", + 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: "DeleteTableSheetScorecard", + methodName: "DeleteTableSheetScorecardAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/scorecard\"", + 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); + ProcessDeleteTableSheetScorecardResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::PromptLayer.DeleteTableSheetScorecardResponse.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.DeleteTableSheetScorecardResponse.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.GetTableSheetScorecard.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.GetTableSheetScorecard.g.cs new file mode 100644 index 0000000..edeed01 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.GetTableSheetScorecard.g.cs @@ -0,0 +1,509 @@ + +#nullable enable + +namespace PromptLayer +{ + public partial class TablesClient + { + + + private static readonly global::PromptLayer.EndPointSecurityRequirement s_GetTableSheetScorecardSecurityRequirement0 = + 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_GetTableSheetScorecardSecurityRequirements = + new global::PromptLayer.EndPointSecurityRequirement[] + { s_GetTableSheetScorecardSecurityRequirement0, + }; + partial void PrepareGetTableSheetScorecardArguments( + global::System.Net.Http.HttpClient httpClient, + ref global::System.Guid tableId, + ref global::System.Guid sheetId); + partial void PrepareGetTableSheetScorecardRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::System.Guid tableId, + global::System.Guid sheetId); + partial void ProcessGetTableSheetScorecardResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetTableSheetScorecardResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get Table Sheet Scorecard
+ /// Get the active scorecard for a table sheet, including latest and display calculation metadata. + ///
+ /// + /// + /// 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 GetTableSheetScorecardAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await GetTableSheetScorecardAsResponseAsync( + tableId: tableId, + sheetId: sheetId, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Get Table Sheet Scorecard
+ /// Get the active scorecard for a table sheet, including latest and display calculation metadata. + ///
+ /// + /// + /// 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> GetTableSheetScorecardAsResponseAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetTableSheetScorecardArguments( + httpClient: HttpClient, + tableId: ref tableId, + sheetId: ref sheetId); + + + var __authorizations = global::PromptLayer.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetTableSheetScorecardSecurityRequirements, + operationName: "GetTableSheetScorecardAsync"); + + 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}/scorecard", + 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); + PrepareGetTableSheetScorecardRequest( + 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: "GetTableSheetScorecard", + methodName: "GetTableSheetScorecardAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/scorecard\"", + 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: "GetTableSheetScorecard", + methodName: "GetTableSheetScorecardAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/scorecard\"", + 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: "GetTableSheetScorecard", + methodName: "GetTableSheetScorecardAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/scorecard\"", + 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); + ProcessGetTableSheetScorecardResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetTableSheetScorecard", + methodName: "GetTableSheetScorecardAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/scorecard\"", + 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: "GetTableSheetScorecard", + methodName: "GetTableSheetScorecardAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/scorecard\"", + 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); + ProcessGetTableSheetScorecardResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::PromptLayer.TableSheetScorecardGetResponse.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.TableSheetScorecardGetResponse.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.GetTableSheetScorecardCalculation.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.GetTableSheetScorecardCalculation.g.cs new file mode 100644 index 0000000..a6d7228 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.GetTableSheetScorecardCalculation.g.cs @@ -0,0 +1,518 @@ + +#nullable enable + +namespace PromptLayer +{ + public partial class TablesClient + { + + + private static readonly global::PromptLayer.EndPointSecurityRequirement s_GetTableSheetScorecardCalculationSecurityRequirement0 = + 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_GetTableSheetScorecardCalculationSecurityRequirements = + new global::PromptLayer.EndPointSecurityRequirement[] + { s_GetTableSheetScorecardCalculationSecurityRequirement0, + }; + partial void PrepareGetTableSheetScorecardCalculationArguments( + global::System.Net.Http.HttpClient httpClient, + ref global::System.Guid tableId, + ref global::System.Guid sheetId, + ref global::System.Guid calculationId); + partial void PrepareGetTableSheetScorecardCalculationRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::System.Guid tableId, + global::System.Guid sheetId, + global::System.Guid calculationId); + partial void ProcessGetTableSheetScorecardCalculationResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetTableSheetScorecardCalculationResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get Table Sheet Scorecard Calculation
+ /// Get details for a single scorecard calculation. + ///
+ /// + /// + /// + /// 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 GetTableSheetScorecardCalculationAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + global::System.Guid calculationId, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await GetTableSheetScorecardCalculationAsResponseAsync( + tableId: tableId, + sheetId: sheetId, + calculationId: calculationId, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Get Table Sheet Scorecard Calculation
+ /// Get details for a single scorecard calculation. + ///
+ /// + /// + /// + /// 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> GetTableSheetScorecardCalculationAsResponseAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + global::System.Guid calculationId, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetTableSheetScorecardCalculationArguments( + httpClient: HttpClient, + tableId: ref tableId, + sheetId: ref sheetId, + calculationId: ref calculationId); + + + var __authorizations = global::PromptLayer.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetTableSheetScorecardCalculationSecurityRequirements, + operationName: "GetTableSheetScorecardCalculationAsync"); + + 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}/scorecard/calculations/{calculationId}", + 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); + PrepareGetTableSheetScorecardCalculationRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + tableId: tableId!, + sheetId: sheetId!, + calculationId: calculationId!); + + 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: "GetTableSheetScorecardCalculation", + methodName: "GetTableSheetScorecardCalculationAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/scorecard/calculations/{calculationId}\"", + 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: "GetTableSheetScorecardCalculation", + methodName: "GetTableSheetScorecardCalculationAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/scorecard/calculations/{calculationId}\"", + 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: "GetTableSheetScorecardCalculation", + methodName: "GetTableSheetScorecardCalculationAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/scorecard/calculations/{calculationId}\"", + 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); + ProcessGetTableSheetScorecardCalculationResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetTableSheetScorecardCalculation", + methodName: "GetTableSheetScorecardCalculationAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/scorecard/calculations/{calculationId}\"", + 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: "GetTableSheetScorecardCalculation", + methodName: "GetTableSheetScorecardCalculationAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/scorecard/calculations/{calculationId}\"", + 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)); + } + // Calculation 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); + ProcessGetTableSheetScorecardCalculationResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::PromptLayer.GetTableSheetScorecardCalculationResponse.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.GetTableSheetScorecardCalculationResponse.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.GetTableSheetScorecardRow.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.GetTableSheetScorecardRow.g.cs new file mode 100644 index 0000000..32404cb --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.GetTableSheetScorecardRow.g.cs @@ -0,0 +1,530 @@ + +#nullable enable + +namespace PromptLayer +{ + public partial class TablesClient + { + + + private static readonly global::PromptLayer.EndPointSecurityRequirement s_GetTableSheetScorecardRowSecurityRequirement0 = + 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_GetTableSheetScorecardRowSecurityRequirements = + new global::PromptLayer.EndPointSecurityRequirement[] + { s_GetTableSheetScorecardRowSecurityRequirement0, + }; + partial void PrepareGetTableSheetScorecardRowArguments( + global::System.Net.Http.HttpClient httpClient, + ref global::System.Guid tableId, + ref global::System.Guid sheetId, + ref int rowIndex, + ref global::System.Guid? calculationId); + partial void PrepareGetTableSheetScorecardRowRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::System.Guid tableId, + global::System.Guid sheetId, + int rowIndex, + global::System.Guid? calculationId); + partial void ProcessGetTableSheetScorecardRowResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetTableSheetScorecardRowResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get Table Sheet Scorecard Row
+ /// Get row-level scorecard breakdown for a single row index. + ///
+ /// + /// + /// + /// + /// 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 GetTableSheetScorecardRowAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + int rowIndex, + global::System.Guid? calculationId = default, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await GetTableSheetScorecardRowAsResponseAsync( + tableId: tableId, + sheetId: sheetId, + rowIndex: rowIndex, + calculationId: calculationId, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Get Table Sheet Scorecard Row
+ /// Get row-level scorecard breakdown for a single row index. + ///
+ /// + /// + /// + /// + /// 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> GetTableSheetScorecardRowAsResponseAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + int rowIndex, + global::System.Guid? calculationId = default, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetTableSheetScorecardRowArguments( + httpClient: HttpClient, + tableId: ref tableId, + sheetId: ref sheetId, + rowIndex: ref rowIndex, + calculationId: ref calculationId); + + + var __authorizations = global::PromptLayer.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetTableSheetScorecardRowSecurityRequirements, + operationName: "GetTableSheetScorecardRowAsync"); + + 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}/scorecard/rows/{rowIndex}", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("calculation_id", calculationId?.ToString()) + ; + 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); + PrepareGetTableSheetScorecardRowRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + tableId: tableId!, + sheetId: sheetId!, + rowIndex: rowIndex!, + calculationId: calculationId); + + 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: "GetTableSheetScorecardRow", + methodName: "GetTableSheetScorecardRowAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/scorecard/rows/{rowIndex}\"", + 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: "GetTableSheetScorecardRow", + methodName: "GetTableSheetScorecardRowAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/scorecard/rows/{rowIndex}\"", + 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: "GetTableSheetScorecardRow", + methodName: "GetTableSheetScorecardRowAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/scorecard/rows/{rowIndex}\"", + 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); + ProcessGetTableSheetScorecardRowResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetTableSheetScorecardRow", + methodName: "GetTableSheetScorecardRowAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/scorecard/rows/{rowIndex}\"", + 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: "GetTableSheetScorecardRow", + methodName: "GetTableSheetScorecardRowAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/scorecard/rows/{rowIndex}\"", + 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 row index. + 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)); + } + // Row result 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); + ProcessGetTableSheetScorecardRowResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::PromptLayer.GetTableSheetScorecardRowResponse.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.GetTableSheetScorecardRowResponse.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.ListTableSheetScorecardRows.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.ListTableSheetScorecardRows.g.cs new file mode 100644 index 0000000..d43dd55 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.ListTableSheetScorecardRows.g.cs @@ -0,0 +1,555 @@ + +#nullable enable + +namespace PromptLayer +{ + public partial class TablesClient + { + + + private static readonly global::PromptLayer.EndPointSecurityRequirement s_ListTableSheetScorecardRowsSecurityRequirement0 = + 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_ListTableSheetScorecardRowsSecurityRequirements = + new global::PromptLayer.EndPointSecurityRequirement[] + { s_ListTableSheetScorecardRowsSecurityRequirement0, + }; + partial void PrepareListTableSheetScorecardRowsArguments( + global::System.Net.Http.HttpClient httpClient, + ref global::System.Guid tableId, + ref global::System.Guid sheetId, + ref global::System.Guid? calculationId, + ref global::PromptLayer.ListTableSheetScorecardRowsVerdict? verdict, + ref int? cursor, + ref int? limit); + partial void PrepareListTableSheetScorecardRowsRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::System.Guid tableId, + global::System.Guid sheetId, + global::System.Guid? calculationId, + global::PromptLayer.ListTableSheetScorecardRowsVerdict? verdict, + int? cursor, + int? limit); + partial void ProcessListTableSheetScorecardRowsResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessListTableSheetScorecardRowsResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// List Table Sheet Scorecard Rows
+ /// List row-level scorecard summaries for a calculation. + ///
+ /// + /// + /// + /// + /// + /// + /// Default Value: 50 + /// + /// 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 ListTableSheetScorecardRowsAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + global::System.Guid? calculationId = default, + global::PromptLayer.ListTableSheetScorecardRowsVerdict? verdict = default, + int? cursor = default, + int? limit = default, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await ListTableSheetScorecardRowsAsResponseAsync( + tableId: tableId, + sheetId: sheetId, + calculationId: calculationId, + verdict: verdict, + cursor: cursor, + limit: limit, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// List Table Sheet Scorecard Rows
+ /// List row-level scorecard summaries for a calculation. + ///
+ /// + /// + /// + /// + /// + /// + /// Default Value: 50 + /// + /// 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> ListTableSheetScorecardRowsAsResponseAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + global::System.Guid? calculationId = default, + global::PromptLayer.ListTableSheetScorecardRowsVerdict? verdict = default, + int? cursor = default, + int? limit = default, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareListTableSheetScorecardRowsArguments( + httpClient: HttpClient, + tableId: ref tableId, + sheetId: ref sheetId, + calculationId: ref calculationId, + verdict: ref verdict, + cursor: ref cursor, + limit: ref limit); + + + var __authorizations = global::PromptLayer.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListTableSheetScorecardRowsSecurityRequirements, + operationName: "ListTableSheetScorecardRowsAsync"); + + 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}/scorecard/rows", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("calculation_id", calculationId?.ToString()) + .AddOptionalParameter("verdict", verdict?.ToValueString()) + .AddOptionalParameter("cursor", cursor?.ToString()) + .AddOptionalParameter("limit", limit?.ToString()) + ; + 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); + PrepareListTableSheetScorecardRowsRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + tableId: tableId!, + sheetId: sheetId!, + calculationId: calculationId, + verdict: verdict, + cursor: cursor, + limit: limit); + + 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: "ListTableSheetScorecardRows", + methodName: "ListTableSheetScorecardRowsAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/scorecard/rows\"", + 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: "ListTableSheetScorecardRows", + methodName: "ListTableSheetScorecardRowsAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/scorecard/rows\"", + 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: "ListTableSheetScorecardRows", + methodName: "ListTableSheetScorecardRowsAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/scorecard/rows\"", + 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); + ProcessListTableSheetScorecardRowsResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListTableSheetScorecardRows", + methodName: "ListTableSheetScorecardRowsAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/scorecard/rows\"", + 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: "ListTableSheetScorecardRows", + methodName: "ListTableSheetScorecardRowsAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/scorecard/rows\"", + 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 parameters. + 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); + ProcessListTableSheetScorecardRowsResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::PromptLayer.ListTableSheetScorecardRowsResponse.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.ListTableSheetScorecardRowsResponse.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.MigrateLegacyTableSheetScoreToScorecard.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.MigrateLegacyTableSheetScoreToScorecard.g.cs new file mode 100644 index 0000000..3d82ab1 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.MigrateLegacyTableSheetScoreToScorecard.g.cs @@ -0,0 +1,560 @@ + +#nullable enable + +namespace PromptLayer +{ + public partial class TablesClient + { + + + private static readonly global::PromptLayer.EndPointSecurityRequirement s_MigrateLegacyTableSheetScoreToScorecardSecurityRequirement0 = + 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_MigrateLegacyTableSheetScoreToScorecardSecurityRequirements = + new global::PromptLayer.EndPointSecurityRequirement[] + { s_MigrateLegacyTableSheetScoreToScorecardSecurityRequirement0, + }; + partial void PrepareMigrateLegacyTableSheetScoreToScorecardArguments( + global::System.Net.Http.HttpClient httpClient, + ref global::System.Guid tableId, + ref global::System.Guid sheetId, + global::PromptLayer.MigrateLegacyTableSheetScoreRequest request); + partial void PrepareMigrateLegacyTableSheetScoreToScorecardRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::System.Guid tableId, + global::System.Guid sheetId, + global::PromptLayer.MigrateLegacyTableSheetScoreRequest request); + partial void ProcessMigrateLegacyTableSheetScoreToScorecardResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessMigrateLegacyTableSheetScoreToScorecardResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Migrate Legacy Score to Scorecard
+ /// Convert legacy sheet score configuration into scorecard criteria. + ///
+ /// + /// + /// + /// 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 MigrateLegacyTableSheetScoreToScorecardAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + + global::PromptLayer.MigrateLegacyTableSheetScoreRequest request, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await MigrateLegacyTableSheetScoreToScorecardAsResponseAsync( + tableId: tableId, + sheetId: sheetId, + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Migrate Legacy Score to Scorecard
+ /// Convert legacy sheet score configuration into scorecard criteria. + ///
+ /// + /// + /// + /// 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> MigrateLegacyTableSheetScoreToScorecardAsResponseAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + + global::PromptLayer.MigrateLegacyTableSheetScoreRequest request, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareMigrateLegacyTableSheetScoreToScorecardArguments( + httpClient: HttpClient, + tableId: ref tableId, + sheetId: ref sheetId, + request: request); + + + var __authorizations = global::PromptLayer.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_MigrateLegacyTableSheetScoreToScorecardSecurityRequirements, + operationName: "MigrateLegacyTableSheetScoreToScorecardAsync"); + + 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}/scorecard/migrate-legacy-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); + } + } + 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); + PrepareMigrateLegacyTableSheetScoreToScorecardRequest( + 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: "MigrateLegacyTableSheetScoreToScorecard", + methodName: "MigrateLegacyTableSheetScoreToScorecardAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/scorecard/migrate-legacy-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: "MigrateLegacyTableSheetScoreToScorecard", + methodName: "MigrateLegacyTableSheetScoreToScorecardAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/scorecard/migrate-legacy-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: "MigrateLegacyTableSheetScoreToScorecard", + methodName: "MigrateLegacyTableSheetScoreToScorecardAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/scorecard/migrate-legacy-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); + ProcessMigrateLegacyTableSheetScoreToScorecardResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "MigrateLegacyTableSheetScoreToScorecard", + methodName: "MigrateLegacyTableSheetScoreToScorecardAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/scorecard/migrate-legacy-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: "MigrateLegacyTableSheetScoreToScorecard", + methodName: "MigrateLegacyTableSheetScoreToScorecardAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/scorecard/migrate-legacy-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); + } + // Migration failed for this sheet. + 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); + ProcessMigrateLegacyTableSheetScoreToScorecardResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::PromptLayer.MigrateLegacyTableSheetScoreResponse.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.MigrateLegacyTableSheetScoreResponse.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(); + } + } + /// + /// Migrate Legacy Score to Scorecard
+ /// Convert legacy sheet score configuration into scorecard criteria. + ///
+ /// + /// + /// + /// Default Value: false + /// + /// 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 MigrateLegacyTableSheetScoreToScorecardAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + bool? deleteLegacyScore = default, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::PromptLayer.MigrateLegacyTableSheetScoreRequest + { + DeleteLegacyScore = deleteLegacyScore, + }; + + return await MigrateLegacyTableSheetScoreToScorecardAsync( + 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.RecalculateTableSheetScorecard.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.RecalculateTableSheetScorecard.g.cs new file mode 100644 index 0000000..c1105fb --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.TablesClient.RecalculateTableSheetScorecard.g.cs @@ -0,0 +1,561 @@ + +#nullable enable + +namespace PromptLayer +{ + public partial class TablesClient + { + + + private static readonly global::PromptLayer.EndPointSecurityRequirement s_RecalculateTableSheetScorecardSecurityRequirement0 = + 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_RecalculateTableSheetScorecardSecurityRequirements = + new global::PromptLayer.EndPointSecurityRequirement[] + { s_RecalculateTableSheetScorecardSecurityRequirement0, + }; + partial void PrepareRecalculateTableSheetScorecardArguments( + global::System.Net.Http.HttpClient httpClient, + ref global::System.Guid tableId, + ref global::System.Guid sheetId, + global::PromptLayer.RecalculateTableSheetScorecardRequest request); + partial void PrepareRecalculateTableSheetScorecardRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::System.Guid tableId, + global::System.Guid sheetId, + global::PromptLayer.RecalculateTableSheetScorecardRequest request); + partial void ProcessRecalculateTableSheetScorecardResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessRecalculateTableSheetScorecardResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Recalculate Table Sheet Scorecard
+ /// Queue scorecard recalculation for a table sheet. + ///
+ /// + /// + /// + /// 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 RecalculateTableSheetScorecardAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + + global::PromptLayer.RecalculateTableSheetScorecardRequest request, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await RecalculateTableSheetScorecardAsResponseAsync( + tableId: tableId, + sheetId: sheetId, + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Recalculate Table Sheet Scorecard
+ /// Queue scorecard recalculation for a table sheet. + ///
+ /// + /// + /// + /// 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> RecalculateTableSheetScorecardAsResponseAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + + global::PromptLayer.RecalculateTableSheetScorecardRequest request, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareRecalculateTableSheetScorecardArguments( + httpClient: HttpClient, + tableId: ref tableId, + sheetId: ref sheetId, + request: request); + + + var __authorizations = global::PromptLayer.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_RecalculateTableSheetScorecardSecurityRequirements, + operationName: "RecalculateTableSheetScorecardAsync"); + + 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}/scorecard/recalculate", + 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); + PrepareRecalculateTableSheetScorecardRequest( + 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: "RecalculateTableSheetScorecard", + methodName: "RecalculateTableSheetScorecardAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/scorecard/recalculate\"", + 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: "RecalculateTableSheetScorecard", + methodName: "RecalculateTableSheetScorecardAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/scorecard/recalculate\"", + 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: "RecalculateTableSheetScorecard", + methodName: "RecalculateTableSheetScorecardAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/scorecard/recalculate\"", + 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); + ProcessRecalculateTableSheetScorecardResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "RecalculateTableSheetScorecard", + methodName: "RecalculateTableSheetScorecardAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/scorecard/recalculate\"", + 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: "RecalculateTableSheetScorecard", + methodName: "RecalculateTableSheetScorecardAsync", + pathTemplate: "$\"/api/public/v2/tables/{tableId}/sheets/{sheetId}/scorecard/recalculate\"", + 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); + } + // Scorecard is not configured or request 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)); + } + + 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); + ProcessRecalculateTableSheetScorecardResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::PromptLayer.RecalculateTableSheetScorecardResponse.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.RecalculateTableSheetScorecardResponse.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(); + } + } + /// + /// Recalculate Table Sheet Scorecard
+ /// Queue scorecard recalculation for a table sheet. + ///
+ /// + /// + /// + /// + /// 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 RecalculateTableSheetScorecardAsync( + global::System.Guid tableId, + global::System.Guid sheetId, + global::System.Collections.Generic.IList? rowIndices = default, + global::System.Collections.Generic.IList? stepIds = default, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::PromptLayer.RecalculateTableSheetScorecardRequest + { + RowIndices = rowIndices, + StepIds = stepIds, + }; + + return await RecalculateTableSheetScorecardAsync( + tableId: tableId, + sheetId: sheetId, + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/openapi.json b/src/libs/PromptLayer/openapi.json index cc0dd67..e5083ba 100644 --- a/src/libs/PromptLayer/openapi.json +++ b/src/libs/PromptLayer/openapi.json @@ -12501,11 +12501,11 @@ } } }, - "/api/public/v2/tables/{table_id}/sheets/{sheet_id}/versions": { + "/api/public/v2/tables/{table_id}/sheets/{sheet_id}/scorecard": { "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", + "summary": "Get Table Sheet Scorecard", + "description": "Get the active scorecard for a table sheet, including latest and display calculation metadata.", + "operationId": "getTableSheetScorecard", "tags": [ "tables" ], @@ -12529,54 +12529,6 @@ "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": { @@ -12585,13 +12537,13 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListTableSheetVersionsResponse" + "$ref": "#/components/schemas/TableSheetScorecardGetResponse" } } } }, "400": { - "description": "Invalid cursor, query parameter, sort/order, filter set, or workspace context.", + "description": "Invalid workspace context.", "content": { "application/json": { "schema": { @@ -12612,10 +12564,10 @@ } } }, - "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", + "patch": { + "summary": "Configure Table Sheet Scorecard", + "description": "Create or update the active scorecard for a table sheet.", + "operationId": "configureTableSheetScorecard", "tags": [ "tables" ], @@ -12646,24 +12598,24 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateTableSheetVersionRequest" + "$ref": "#/components/schemas/ConfigureTableSheetScorecardRequest" } } } }, "responses": { - "201": { - "description": "Version created.", + "200": { + "description": "Scorecard configured.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetTableSheetVersionResponse" + "$ref": "#/components/schemas/ConfigureTableSheetScorecardResponse" } } } }, "400": { - "description": "Invalid request body or workspace context.", + "description": "Invalid scorecard configuration.", "content": { "application/json": { "schema": { @@ -12683,7 +12635,7 @@ } }, "404": { - "description": "Table, sheet, or source version not found.", + "description": "Table or sheet not found.", "content": { "application/json": { "schema": { @@ -12693,13 +12645,11 @@ } } } - } - }, - "/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", + }, + "delete": { + "summary": "Delete Table Sheet Scorecard", + "description": "Soft-delete the active scorecard for a table sheet.", + "operationId": "deleteTableSheetScorecard", "tags": [ "tables" ], @@ -12723,25 +12673,15 @@ "format": "uuid" }, "description": "Table sheet ID." - }, - { - "name": "version_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "Table sheet version ID." } ], "responses": { "200": { - "description": "Successful response", + "description": "Scorecard deleted.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetTableSheetVersionResponse" + "$ref": "#/components/schemas/DeleteTableSheetScorecardResponse" } } } @@ -12757,7 +12697,7 @@ } }, "404": { - "description": "Table, sheet, or version not found.", + "description": "Table or sheet not found.", "content": { "application/json": { "schema": { @@ -12769,11 +12709,11 @@ } } }, - "/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", + "/api/public/v2/tables/{table_id}/sheets/{sheet_id}/scorecard/migrate-legacy-score": { + "post": { + "summary": "Migrate Legacy Score to Scorecard", + "description": "Convert legacy sheet score configuration into scorecard criteria.", + "operationId": "migrateLegacyTableSheetScoreToScorecard", "tags": [ "tables" ], @@ -12797,65 +12737,31 @@ "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." } ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MigrateLegacyTableSheetScoreRequest" + } + } + } + }, "responses": { "200": { - "description": "Successful response", + "description": "Migration completed.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TableSheetScoreHistoryResponse" + "$ref": "#/components/schemas/MigrateLegacyTableSheetScoreResponse" } } } }, "400": { - "description": "Invalid query parameter or workspace context.", + "description": "Migration failed for this sheet.", "content": { "application/json": { "schema": { @@ -12877,11 +12783,11 @@ } } }, - "/api/public/v2/tables/{table_id}/sheets/{sheet_id}/imports/file": { + "/api/public/v2/tables/{table_id}/sheets/{sheet_id}/scorecard/recalculate": { "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", + "summary": "Recalculate Table Sheet Scorecard", + "description": "Queue scorecard recalculation for a table sheet.", + "operationId": "recalculateTableSheetScorecard", "tags": [ "tables" ], @@ -12908,38 +12814,28 @@ } ], "requestBody": { - "required": true, + "required": false, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateTableSheetFileImportRequest" + "$ref": "#/components/schemas/RecalculateTableSheetScorecardRequest" } } } }, "responses": { "202": { - "description": "File import queued.", + "description": "Scorecard recalculation queued.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TableSheetImportStartResponse" + "$ref": "#/components/schemas/RecalculateTableSheetScorecardResponse" } } } }, "400": { - "description": "Invalid request body, file, or workspace context.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "401": { - "description": "Authentication required.", + "description": "Scorecard is not configured or request is invalid.", "content": { "application/json": { "schema": { @@ -12957,25 +12853,15 @@ } } } - }, - "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": { + "/api/public/v2/tables/{table_id}/sheets/{sheet_id}/scorecard/cancel": { "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", + "summary": "Cancel Table Sheet Scorecard", + "description": "Cancel active queued or running scorecard work for a table sheet.", + "operationId": "cancelTableSheetScorecard", "tags": [ "tables" ], @@ -13002,38 +12888,28 @@ } ], "requestBody": { - "required": true, + "required": false, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateTableSheetRequestLogImportRequest" + "$ref": "#/components/schemas/CancelTableSheetScorecardRequest" } } } }, "responses": { - "202": { - "description": "Request-history import queued.", + "200": { + "description": "Cancellation attempted.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TableSheetImportStartResponse" + "$ref": "#/components/schemas/CancelTableSheetScorecardResponse" } } } }, "400": { - "description": "Invalid request body, request logs, or workspace context.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "401": { - "description": "Authentication required.", + "description": "Invalid cancellation request.", "content": { "application/json": { "schema": { @@ -13055,361 +12931,265 @@ } } }, - "/api/public/v2/tool-registry/{identifier}/versions": { - "post": { + "/api/public/v2/tables/{table_id}/sheets/{sheet_id}/scorecard/calculations/{calculation_id}": { + "get": { + "summary": "Get Table Sheet Scorecard Calculation", + "description": "Get details for a single scorecard calculation.", + "operationId": "getTableSheetScorecardCalculation", "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." + }, + { + "name": "calculation_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "Scorecard calculation 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/GetTableSheetScorecardCalculationResponse" } } } - } - }, - "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": "Calculation not found.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } } } } }, - "/api/public/v2/tool-registry/{identifier}/test-execute": { - "post": { + "/api/public/v2/tables/{table_id}/sheets/{sheet_id}/scorecard/rows": { + "get": { + "summary": "List Table Sheet Scorecard Rows", + "description": "List row-level scorecard summaries for a calculation.", + "operationId": "listTableSheetScorecardRows", "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" - } + "format": "uuid" + }, + "description": "Table ID." }, { - "name": "label", + "name": "sheet_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "Table sheet ID." + }, + { + "name": "calculation_id", "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": "Calculation ID. Defaults to latest scorecard calculation." }, { - "name": "version", + "name": "verdict", "in": "query", "required": false, "schema": { "type": "string", - "description": "Resolve by specific version number" - } + "enum": [ + "pass", + "warn", + "fail", + "error", + "skipped" + ] + }, + "description": "Filter rows by aggregate verdict." + }, + { + "name": "cursor", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "minimum": 0 + }, + "description": "Row-index cursor. Returns rows where row_index is greater than this value." + }, + { + "name": "limit", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "minimum": 1, + "maximum": 100, + "default": 50 + }, + "description": "Number of rows to return." } ], - "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.", + "description": "Successful response", "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/ListTableSheetScorecardRowsResponse" } } } }, "400": { - "description": "Missing execution config or function name" + "description": "Invalid query parameters.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } }, "404": { - "description": "Tool or version not found" - }, - "502": { - "description": "Sandbox infrastructure failure" + "description": "Table or sheet 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}/scorecard/rows/{row_index}": { + "get": { + "summary": "Get Table Sheet Scorecard Row", + "description": "Get row-level scorecard breakdown for a single row index.", + "operationId": "getTableSheetScorecardRow", "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" + "type": "string", + "format": "uuid" }, - "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" - } - } - } - } - } - } + "description": "Table ID." }, - "401": { - "$ref": "#/components/responses/UnauthorizedError" + { + "name": "sheet_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "Table sheet ID." }, - "404": { - "$ref": "#/components/responses/NotFoundError" + { + "name": "row_index", + "in": "path", + "required": true, + "schema": { + "type": "integer", + "minimum": 0 + }, + "description": "Zero-based row index." }, - "409": { - "description": "Trace is already closed.", + { + "name": "calculation_id", + "in": "query", + "required": false, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "Calculation ID. Defaults to latest scorecard calculation." + } + ], + "responses": { + "200": { + "description": "Successful response", "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "success": { - "type": "boolean", - "example": false - }, - "message": { - "type": "string", - "example": "Trace already closed" - } - } + "$ref": "#/components/schemas/GetTableSheetScorecardRowResponse" } } } }, - "422": { - "$ref": "#/components/responses/ValidationError" + "400": { + "description": "Invalid row index.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } }, - "500": { - "description": "Internal server error.", + "404": { + "description": "Row result not found.", "content": { "application/json": { "schema": { @@ -13421,595 +13201,567 @@ } } }, - "/api/public/v2/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" + "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." + }, + { + "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." + } ], - "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/ListTableSheetVersionsResponse" } } } }, - "401": { - "$ref": "#/components/responses/UnauthorizedError" + "400": { + "description": "Invalid cursor, query parameter, sort/order, filter set, or workspace context.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } }, - "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" + "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": "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." - } - } + "$ref": "#/components/schemas/CreateTableSheetVersionRequest" } } } }, "responses": { "201": { - "description": "Successful Response", + "description": "Version created.", "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/GetTableSheetVersionResponse" } } } }, - "409": { - "description": "An environment variable with that key already exists in this workspace.", + "400": { + "description": "Invalid request body 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 source version not found.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } } } } }, - "/api/public/v2/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" + "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." + }, + { + "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" - }, - "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" } } } }, "404": { - "description": "Workspace 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": { - "tags": [ - "env-vars" + } + }, + "/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": [ + "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." + }, + { + "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": "Workspace 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" + } + } + } } } } }, - "/api/public/v2/tool-registry/{identifier}/env-vars": { - "get": { + "/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": [ - "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." } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateTableSheetFileImportRequest" + } + } + } + }, "responses": { - "200": { - "description": "Successful Response", + "202": { + "description": "File import queued.", "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/TableSheetImportStartResponse" } } } }, - "404": { - "description": "Tool not found.", + "400": { + "description": "Invalid request body, file, 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 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": [ - "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" - } - } - ], - "requestBody": { + "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": [ - "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/CreateTableSheetRequestLogImportRequest" } } } }, "responses": { - "201": { - "description": "Successful Response", + "202": { + "description": "Request-history import queued.", "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/TableSheetImportStartResponse" } } } }, - "404": { - "description": "Tool not found.", + "400": { + "description": "Invalid request body, request logs, 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 or sheet not found.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } } } } }, - "/api/public/v2/tool-registry/{identifier}/env-vars/{var_id}": { - "patch": { + "/api/public/v2/tool-registry/{identifier}/versions": { + "post": { "tags": [ - "env-vars", "tool-registry" ], - "summary": "Update Tool Env Var", - "operationId": "update_tool_env_var", + "summary": "Create Tool Version", + "operationId": "create_tool_version", "parameters": [ { "name": "identifier", @@ -14019,14 +13771,6 @@ "type": "string", "description": "Tool ID (numeric) or name" } - }, - { - "name": "var_id", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } } ], "requestBody": { @@ -14036,14 +13780,46 @@ "schema": { "type": "object", "required": [ - "value" + "tool_definition" ], "properties": { - "value": { + "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", - "minLength": 1, - "maxLength": 8192, - "description": "New value for the environment variable. Must be non-empty." + "description": "Commit message for the new version", + "nullable": true } } } @@ -14051,8 +13827,8 @@ } }, "responses": { - "200": { - "description": "Successful Response", + "201": { + "description": "Version created", "content": { "application/json": { "schema": { @@ -14061,41 +13837,8 @@ "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." - } - } + "version": { + "type": "object" } } } @@ -14103,35 +13846,18 @@ } }, "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" + "description": "Tool not found" } } - }, - "delete": { + } + }, + "/api/public/v2/tool-registry/{identifier}/test-execute": { + "post": { "tags": [ - "env-vars", "tool-registry" ], - "summary": "Delete Tool Env Var", - "operationId": "delete_tool_env_var", + "summary": "Test Execute Tool", + "operationId": "test_execute_tool", "parameters": [ { "name": "identifier", @@ -14143,17 +13869,77 @@ } }, { - "name": "var_id", - "in": "path", - "required": true, + "name": "label", + "in": "query", + "required": false, "schema": { - "type": "integer" + "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": "Successful Response", + "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": { @@ -14161,21 +13947,132 @@ "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 env var not found.", + "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": { - "message": { - "type": "string" + "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" + } } } } @@ -14185,118 +14082,142 @@ "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/requests/analytics/custom-analytics": { - "post": { - "summary": "Request Analytics Custom Analytics", - "operationId": "getRequestAnalyticsCustomAnalytics", + "/api/public/v2/env-vars": { + "get": { "tags": [ - "tracking" + "env-vars" ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RequestAnalyticsCustomAnalyticsQuery" - }, - "examples": { - "cost_by_model": { - "summary": "Cost breakdown by model", - "value": { - "filter_group": { - "logic": "AND", - "filters": [ - { - "field": "request_start_time", - "operator": "between", - "value": [ - "2025-06-01T00:00:00Z", - "2025-06-08T00:00:00Z" - ] - } - ] + "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" }, - "customCharts": [ - { - "id": "cost_by_model", - "title": "Cost by Model", - "chartType": "bar", - "metric": "sum", - "metricField": "cost", - "groupByField": "engine", - "limit": 10 - } - ] - } - }, - "requests_over_time": { - "summary": "Request volume over time", - "value": { - "customCharts": [ - { - "id": "requests_over_time", - "title": "Requests Over Time", - "chartType": "line", - "metric": "count", - "timeSeries": true - } - ] - } - }, - "multi_series": { - "summary": "Input vs output tokens over time", - "value": { - "customCharts": [ - { - "id": "token_breakdown", - "title": "Token Usage", - "chartType": "area", - "timeSeries": true, - "series": [ - { - "key": "input", - "label": "Input Tokens", - "metric": "sum", - "metricField": "input_tokens" + "workspace_env_vars": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "integer" }, - { - "key": "output", - "label": "Output Tokens", - "metric": "sum", - "metricField": "output_tokens" - } - ], - "derivedInsights": [ - { - "label": "Input/Output Ratio", - "numeratorSeriesKey": "input", - "denominatorSeriesKey": "output" + "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." } - ] + } } - ] + } } - }, - "p95_latency_by_metadata": { - "summary": "p95 latency broken down by a metadata key", + } + } + } + }, + "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": { - "customCharts": [ - { - "id": "latency_by_env", - "title": "p95 Latency by Environment", - "chartType": "bar", - "metric": "percentile", - "percentile": 95, - "metricField": "latency_ms", - "groupByMetadataKey": "environment" - } - ] + "type": "string", + "maxLength": 8192, + "description": "Value to store. May be empty to create a placeholder that the user will fill in later." } } } @@ -14304,54 +14225,68 @@ } }, "responses": { - "200": { - "description": "Custom chart results in the order requested.", + "201": { + "description": "Successful Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/RequestAnalyticsCustomAnalyticsResponse" - }, - "examples": { - "cost_by_model": { - "summary": "Cost by model result", - "value": { - "success": true, - "customCharts": [ - { - "id": "cost_by_model", - "title": "Cost by Model", - "chartType": "bar", - "series": [ - { - "key": "value", - "label": "Cost", - "unit": "currency" - } - ], - "data": [ - { - "label": "gpt-4o", - "value": 8.42 - }, - { - "label": "claude-sonnet-4-6", - "value": 3.91 - } - ] + "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." } - ] + } } } } } } }, - "400": { - "description": "Invalid chart spec or unsupported filter.", + "409": { + "description": "An environment variable with that key already exists in this workspace.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "type": "object", + "properties": { + "message": { + "type": "string" + } + } } } } @@ -14359,32 +14294,797 @@ "401": { "$ref": "#/components/responses/UnauthorizedError" }, - "403": { - "$ref": "#/components/responses/ForbiddenError" - }, "422": { "$ref": "#/components/responses/ValidationError" } } } }, - "/api/public/v2/traces/analytics/custom-analytics": { - "post": { - "summary": "Trace Analytics Custom Queries", - "operationId": "getTraceAnalyticsCustomAnalytics", + "/api/public/v2/env-vars/{var_id}": { + "patch": { "tags": [ - "tracking" + "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": { - "$ref": "#/components/schemas/TraceAnalyticsCustomAnalyticsQuery" - }, - "examples": { - "slowest_tools": { - "summary": "Slowest tools across agent traces", + "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" + } + } + } + }, + "/api/public/v2/requests/analytics/custom-analytics": { + "post": { + "summary": "Request Analytics Custom Analytics", + "operationId": "getRequestAnalyticsCustomAnalytics", + "tags": [ + "tracking" + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RequestAnalyticsCustomAnalyticsQuery" + }, + "examples": { + "cost_by_model": { + "summary": "Cost breakdown by model", + "value": { + "filter_group": { + "logic": "AND", + "filters": [ + { + "field": "request_start_time", + "operator": "between", + "value": [ + "2025-06-01T00:00:00Z", + "2025-06-08T00:00:00Z" + ] + } + ] + }, + "customCharts": [ + { + "id": "cost_by_model", + "title": "Cost by Model", + "chartType": "bar", + "metric": "sum", + "metricField": "cost", + "groupByField": "engine", + "limit": 10 + } + ] + } + }, + "requests_over_time": { + "summary": "Request volume over time", + "value": { + "customCharts": [ + { + "id": "requests_over_time", + "title": "Requests Over Time", + "chartType": "line", + "metric": "count", + "timeSeries": true + } + ] + } + }, + "multi_series": { + "summary": "Input vs output tokens over time", + "value": { + "customCharts": [ + { + "id": "token_breakdown", + "title": "Token Usage", + "chartType": "area", + "timeSeries": true, + "series": [ + { + "key": "input", + "label": "Input Tokens", + "metric": "sum", + "metricField": "input_tokens" + }, + { + "key": "output", + "label": "Output Tokens", + "metric": "sum", + "metricField": "output_tokens" + } + ], + "derivedInsights": [ + { + "label": "Input/Output Ratio", + "numeratorSeriesKey": "input", + "denominatorSeriesKey": "output" + } + ] + } + ] + } + }, + "p95_latency_by_metadata": { + "summary": "p95 latency broken down by a metadata key", + "value": { + "customCharts": [ + { + "id": "latency_by_env", + "title": "p95 Latency by Environment", + "chartType": "bar", + "metric": "percentile", + "percentile": 95, + "metricField": "latency_ms", + "groupByMetadataKey": "environment" + } + ] + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Custom chart results in the order requested.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RequestAnalyticsCustomAnalyticsResponse" + }, + "examples": { + "cost_by_model": { + "summary": "Cost by model result", + "value": { + "success": true, + "customCharts": [ + { + "id": "cost_by_model", + "title": "Cost by Model", + "chartType": "bar", + "series": [ + { + "key": "value", + "label": "Cost", + "unit": "currency" + } + ], + "data": [ + { + "label": "gpt-4o", + "value": 8.42 + }, + { + "label": "claude-sonnet-4-6", + "value": 3.91 + } + ] + } + ] + } + } + } + } + } + }, + "400": { + "description": "Invalid chart spec or unsupported filter.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "$ref": "#/components/responses/UnauthorizedError" + }, + "403": { + "$ref": "#/components/responses/ForbiddenError" + }, + "422": { + "$ref": "#/components/responses/ValidationError" + } + } + } + }, + "/api/public/v2/traces/analytics/custom-analytics": { + "post": { + "summary": "Trace Analytics Custom Queries", + "operationId": "getTraceAnalyticsCustomAnalytics", + "tags": [ + "tracking" + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TraceAnalyticsCustomAnalyticsQuery" + }, + "examples": { + "slowest_tools": { + "summary": "Slowest tools across agent traces", "value": { "filter_group": { "logic": "AND", @@ -21441,216 +22141,535 @@ "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." + "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" + ], + "title": "ExternalIdAttachResponse" + }, + "ExternalIdsListResponse": { + "properties": { + "success": { + "type": "boolean", + "const": true, + "default": true, + "title": "Success" + }, + "external_ids": { + "items": { + "$ref": "#/components/schemas/ExternalId" + }, + "type": "array", + "title": "External Ids" + } + }, + "type": "object", + "required": [ + "success", + "external_ids" + ], + "title": "ExternalIdsListResponse" + }, + "ExternalIdDeleteResponse": { + "properties": { + "success": { + "type": "boolean", + "const": true, + "default": true, + "title": "Success" + } + }, + "type": "object", + "required": [ + "success" + ], + "title": "ExternalIdDeleteResponse" + }, + "ExternalIdErrorResponse": { + "properties": { + "success": { + "type": "boolean", + "const": false, + "default": false, + "title": "Success" + }, + "message": { + "type": "string", + "title": "Message" + } + }, + "type": "object", + "required": [ + "message" + ], + "title": "ExternalIdErrorResponse" + }, + "ListPromptTemplateItem": { + "properties": { + "id": { + "type": "integer", + "title": "Id" + }, + "prompt_name": { + "type": "string", + "title": "Prompt Name" + }, + "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" + } + } + }, + "metadata": { + "anyOf": [ + { + "$ref": "#/components/schemas/Metadata" + }, + { + "type": "null" + } + ] + }, + "commit_message": { + "anyOf": [ + { + "type": "string" + }, + { + "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": [ - "source", - "external_id" + "id", + "prompt_name", + "prompt_template", + "external_ids" ], - "additionalProperties": false, - "title": "AttachExternalIdRequest", - "description": "External ID mapping to attach to an entity." + "title": "ListPromptTemplateItem" }, - "ExternalIdAttachResponse": { + "RateLimitError": { + "type": "object", + "description": "Error returned when an endpoint rate limit is exceeded.", "properties": { "success": { "type": "boolean", - "const": true, - "default": true, - "title": "Success" + "enum": [ + false + ] }, - "external_id": { - "$ref": "#/components/schemas/ExternalId" + "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": [ - "success", - "external_id" + "column_type", + "name", + "configuration" ], - "title": "ExternalIdAttachResponse" - }, - "ExternalIdsListResponse": { "properties": { - "success": { - "type": "boolean", - "const": true, - "default": true, - "title": "Success" + "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. Does not include COMPOSITION, which is Tables-only." }, - "external_ids": { - "items": { - "$ref": "#/components/schemas/ExternalId" - }, - "type": "array", - "title": "External Ids" + "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." + }, + "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 + } + }, + "ScoreConfiguration": { "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.", "required": [ - "success", - "external_ids" + "code" ], - "title": "ExternalIdsListResponse" - }, - "ExternalIdDeleteResponse": { "properties": { - "success": { - "type": "boolean", - "const": true, - "default": true, - "title": "Success" + "code": { + "type": "string", + "description": "Python or JavaScript code used to calculate the score." + }, + "code_language": { + "type": "string", + "enum": [ + "PYTHON", + "JAVASCRIPT" + ], + "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", - "required": [ - "success" - ], - "title": "ExternalIdDeleteResponse" + "title": "EvaluationPipelineSummary", + "additionalProperties": true, + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "score_configuration": { + "anyOf": [ + { + "$ref": "#/components/schemas/ScoreConfiguration" + }, + { + "type": "null" + } + ] + } + } }, - "ExternalIdErrorResponse": { + "ReportColumnSummary": { + "type": "object", + "title": "ReportColumnSummary", + "additionalProperties": true, "properties": { - "success": { - "type": "boolean", - "const": false, - "default": false, - "title": "Success" + "id": { + "type": "integer" }, - "message": { + "name": { + "type": "string" + }, + "column_type": { "type": "string", - "title": "Message" + "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" + ] + }, + "position": { + "type": "integer" + }, + "configuration": { + "type": "object", + "additionalProperties": true } - }, + } + }, + "CreateEvaluationPipelineRequest": { "type": "object", + "title": "CreateEvaluationPipelineRequest", "required": [ - "message" + "dataset_group_id" ], - "title": "ExternalIdErrorResponse" - }, - "ListPromptTemplateItem": { "properties": { - "id": { + "dataset_group_id": { "type": "integer", - "title": "Id" + "description": "ID of the dataset group to use." }, - "prompt_name": { + "name": { "type": "string", - "title": "Prompt Name" + "nullable": true, + "description": "Name for the pipeline. Auto-generated if omitted." }, - "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" - } - } + "folder_id": { + "type": "integer", + "nullable": true, + "description": "Folder ID for organization." }, - "metadata": { - "anyOf": [ - { - "$ref": "#/components/schemas/Metadata" - }, - { - "type": "null" - } - ] + "dataset_version_number": { + "type": "integer", + "nullable": true, + "description": "Specific dataset version. Uses latest published version if omitted." }, - "commit_message": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Commit Message" + "columns": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/EvaluationColumnDefinition" + }, + "description": "Evaluation columns to add to the pipeline." }, - "llm_kwargs": { + "score_configuration": { "anyOf": [ { - "type": "object" + "$ref": "#/components/schemas/ScoreConfiguration" }, { "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": "Optional custom scoring logic." }, - "version": { + "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", + "enum": [ + true + ] + }, + "report_id": { "type": "integer", - "title": "Version" + "description": "ID of the created evaluation pipeline." + }, + "report_columns": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ReportColumnSummary" + }, + "description": "Columns created on the pipeline." }, "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." + "description": "External ID mappings attached to the pipeline." } - }, + } + }, + "UpdateReportScoreCardRequest": { "type": "object", + "title": "UpdateReportScoreCardRequest", "required": [ - "id", - "prompt_name", - "prompt_template", - "external_ids" + "column_names" ], - "title": "ListPromptTemplateItem" + "properties": { + "column_names": { + "type": "array", + "items": { + "type": "string" + }, + "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." + } + } }, - "RateLimitError": { + "UpdateReportScoreCardResponse": { "type": "object", - "description": "Error returned when an endpoint rate limit is exceeded.", + "title": "UpdateReportScoreCardResponse", + "required": [ + "success", + "report" + ], "properties": { "success": { "type": "boolean", "enum": [ - false + true ] }, - "message": { - "type": "string" - }, - "error": { - "type": "string", - "nullable": true + "report": { + "$ref": "#/components/schemas/EvaluationPipelineSummary" } } }, - "EvaluationColumnDefinition": { + "EditReportColumnRequest": { "type": "object", - "title": "EvaluationColumnDefinition", - "description": "Definition for a column in an evaluation pipeline. The configuration schema depends on column_type.", + "title": "EditReportColumnRequest", "required": [ - "column_type", - "name", - "configuration" + "report_id", + "column_type" ], "properties": { + "report_id": { + "type": "integer", + "description": "Parent evaluation pipeline ID. Must match the column parent." + }, "column_type": { "type": "string", "enum": [ @@ -21680,206 +22699,144 @@ "MATH_OPERATOR", "MIN_MAX" ], - "description": "Type of evaluation column to create. Does not include COMPOSITION, which is Tables-only." - }, - "name": { - "type": "string", - "description": "Display name for the column. Must be unique within the pipeline." + "description": "Replacement column type. DATASET columns cannot be edited." }, "configuration": { "type": "object", "additionalProperties": true, - "description": "Column-type-specific configuration. See Node & Column Types for details." + "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": "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." + "description": "New 1-based position. Cannot overwrite dataset columns." } - }, - "example": { - "column_type": "LLM_ASSERTION", - "name": "Accuracy Check", - "configuration": { - "source": "response", - "prompt": "Is this response accurate?" - }, - "is_part_of_score": true } }, - "ScoreConfiguration": { + "EditReportColumnResponse": { "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": "EditReportColumnResponse", "required": [ - "code" + "success", + "report_column" ], "properties": { - "code": { - "type": "string", - "description": "Python or JavaScript code used to calculate the score." - }, - "code_language": { - "type": "string", + "success": { + "type": "boolean", "enum": [ - "PYTHON", - "JAVASCRIPT" - ], - "default": "PYTHON", - "description": "Language used by the scoring code." + true + ] + }, + "report_column": { + "$ref": "#/components/schemas/ReportColumnSummary" } - }, - "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": { + "RenameReportRequest": { "type": "object", - "title": "EvaluationPipelineSummary", - "additionalProperties": true, + "title": "RenameReportRequest", + "description": "Provide name, tags, or both. At least one field is required.", + "minProperties": 1, "properties": { - "id": { - "type": "integer" - }, "name": { - "type": "string" + "type": "string", + "minLength": 1, + "maxLength": 255, + "nullable": true, + "description": "New pipeline name." }, "tags": { "type": "array", "items": { "type": "string" - } - }, - "score_configuration": { - "anyOf": [ - { - "$ref": "#/components/schemas/ScoreConfiguration" - }, - { - "type": "null" - } - ] + }, + "nullable": true, + "description": "Replacement tags. Pass an empty array to clear all tags." } } }, - "ReportColumnSummary": { + "RenameReportResponse": { "type": "object", - "title": "ReportColumnSummary", - "additionalProperties": true, + "title": "RenameReportResponse", + "required": [ + "success", + "report" + ], "properties": { - "id": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "column_type": { - "type": "string", + "success": { + "type": "boolean", "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" + true ] }, - "position": { - "type": "integer" - }, - "configuration": { - "type": "object", - "additionalProperties": true + "report": { + "$ref": "#/components/schemas/EvaluationPipelineSummary" } } }, - "CreateEvaluationPipelineRequest": { + "DeleteReportResponse": { "type": "object", - "title": "CreateEvaluationPipelineRequest", + "title": "DeleteReportResponse", "required": [ - "dataset_group_id" + "success", + "message" ], "properties": { - "dataset_group_id": { - "type": "integer", - "description": "ID of the dataset group to use." + "success": { + "type": "boolean", + "enum": [ + true + ] }, + "message": { + "type": "string" + } + } + }, + "CreateDatasetGroupRequest": { + "type": "object", + "title": "CreateDatasetGroupRequest", + "required": [ + "name" + ], + "properties": { "name": { "type": "string", - "nullable": true, - "description": "Name for the pipeline. Auto-generated if omitted." + "description": "Name for the dataset group. Must be unique within the workspace." }, - "folder_id": { + "workspace_id": { "type": "integer", "nullable": true, - "description": "Folder ID for organization." + "description": "Workspace ID. Defaults to the workspace associated with the API key." }, - "dataset_version_number": { + "folder_id": { "type": "integer", "nullable": true, - "description": "Specific dataset version. Uses latest published version if omitted." - }, - "columns": { - "type": "array", - "nullable": true, - "items": { - "$ref": "#/components/schemas/EvaluationColumnDefinition" - }, - "description": "Evaluation columns to add to the pipeline." - }, - "score_configuration": { - "anyOf": [ - { - "$ref": "#/components/schemas/ScoreConfiguration" - }, - { - "type": "null" - } - ], - "description": "Optional custom scoring logic." + "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 pipeline." + "description": "External ID mappings to attach to the dataset group." } } }, - "CreateEvaluationPipelineResponse": { + "CreateDatasetGroupResponse": { "type": "object", - "title": "CreateEvaluationPipelineResponse", + "title": "CreateDatasetGroupResponse", "required": [ "success", - "report_id", + "dataset_group", + "dataset", "external_ids" ], "properties": { @@ -21889,143 +22846,202 @@ true ] }, - "report_id": { - "type": "integer", - "description": "ID of the created evaluation pipeline." + "message": { + "type": "string" }, - "report_columns": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ReportColumnSummary" - }, - "description": "Columns created on the pipeline." + "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." }, "external_ids": { "type": "array", "items": { "$ref": "#/components/schemas/ExternalId" - }, - "description": "External ID mappings attached to the pipeline." + } } } }, - "UpdateReportScoreCardRequest": { + "CreateDatasetVersionFromFilterParamsRequest": { "type": "object", - "title": "UpdateReportScoreCardRequest", + "title": "CreateDatasetVersionFromFilterParamsRequest", "required": [ - "column_names" + "dataset_group_id" ], "properties": { - "column_names": { + "dataset_group_id": { + "type": "integer", + "description": "Dataset group that will receive the generated dataset version." + }, + "request_log_ids": { "type": "array", "items": { - "type": "string" + "type": "integer" }, - "description": "Column names to include in the score calculation." + "maxItems": 50000, + "nullable": true, + "description": "Explicit request log IDs to snapshot. When provided, this mode takes precedence over filter_group." }, - "code": { + "filter_group": { + "anyOf": [ + { + "$ref": "#/components/schemas/StructuredFilterGroup" + }, + { + "type": "null" + } + ], + "description": "Structured request-log filters used to populate the dataset asynchronously." + }, + "q": { "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." + "description": "Free-text request-log search query applied with filter_group." }, - "code_language": { + "sort_by": { "type": "string", "enum": [ - "PYTHON", - "JAVASCRIPT" + "request_start_time", + "input_tokens", + "output_tokens", + "cost", + "latency_ms", + "status" ], - "default": "PYTHON", - "description": "Language used by the custom scoring code." + "nullable": true + }, + "sort_order": { + "type": "string", + "enum": [ + "asc", + "desc" + ], + "nullable": true + }, + "variables_to_parse": { + "type": "array", + "items": { + "type": "string" + }, + "nullable": true, + "description": "Request fields or variables to parse into dataset columns." + }, + "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": [ + "success", + "dataset_id", + "dataset_group_id", + "version_number" + ], + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ] + }, + "message": { + "type": "string" + }, + "dataset_id": { + "type": "integer" + }, + "dataset_group_id": { + "type": "integer" + }, + "version_number": { + "type": "integer", + "description": "Version number of the draft or generated dataset version." } } }, - "UpdateReportScoreCardResponse": { + "DatasetRowCell": { "type": "object", - "title": "UpdateReportScoreCardResponse", + "title": "DatasetRowCell", "required": [ - "success", - "report" + "type", + "value" ], "properties": { - "success": { - "type": "boolean", + "type": { + "type": "string", "enum": [ - true + "dataset" ] }, - "report": { - "$ref": "#/components/schemas/EvaluationPipelineSummary" + "value": { + "description": "Dataset cell value." } } }, - "EditReportColumnRequest": { + "EvaluationRowCell": { "type": "object", - "title": "EditReportColumnRequest", + "title": "EvaluationRowCell", "required": [ - "report_id", - "column_type" + "type", + "status" ], "properties": { - "report_id": { - "type": "integer", - "description": "Parent evaluation pipeline ID. Must match the column parent." - }, - "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": "Replacement column type. DATASET columns cannot be edited." - }, - "configuration": { - "type": "object", - "additionalProperties": true, - "nullable": true, - "description": "Replacement column configuration. Schema depends on column_type." + "eval" + ] }, - "name": { + "status": { "type": "string", + "description": "Evaluation cell status, such as PASSED, FAILED, RUNNING, or SKIPPED." + }, + "value": { "nullable": true, - "description": "New column name. Must be unique within the pipeline." + "description": "Evaluation result value." }, - "position": { - "type": "integer", - "minimum": 1, + "error_message": { + "type": "string", "nullable": true, - "description": "New 1-based position. Cannot overwrite dataset columns." + "description": "Error details for failed cells." } } }, - "EditReportColumnResponse": { + "DatasetRowsResponse": { "type": "object", - "title": "EditReportColumnResponse", + "title": "DatasetRowsResponse", "required": [ "success", - "report_column" + "columns", + "rows", + "page", + "per_page", + "pages", + "total" ], "properties": { "success": { @@ -22034,40 +23050,50 @@ true ] }, - "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." + "message": { + "type": "string" }, - "tags": { + "columns": { "type": "array", "items": { "type": "string" + } + }, + "page": { + "type": "integer" + }, + "per_page": { + "type": "integer" + }, + "pages": { + "type": "integer" + }, + "total": { + "type": "integer" + }, + "rows": { + "type": "array", + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/DatasetRowCell" + } }, - "nullable": true, - "description": "Replacement tags. Pass an empty array to clear all tags." + "description": "Rows of dataset cells in the same order as columns." } } }, - "RenameReportResponse": { + "EvaluationRowsResponse": { "type": "object", - "title": "RenameReportResponse", + "title": "EvaluationRowsResponse", "required": [ "success", - "report" + "columns", + "rows", + "page", + "per_page", + "pages", + "total" ], "properties": { "success": { @@ -22076,17 +23102,53 @@ true ] }, - "report": { - "$ref": "#/components/schemas/EvaluationPipelineSummary" + "message": { + "type": "string" + }, + "columns": { + "type": "array", + "items": { + "type": "string" + } + }, + "page": { + "type": "integer" + }, + "per_page": { + "type": "integer" + }, + "pages": { + "type": "integer" + }, + "total": { + "type": "integer" + }, + "rows": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/DatasetRowCell" + }, + { + "$ref": "#/components/schemas/EvaluationRowCell" + } + ] + } + }, + "description": "Rows containing dataset cells followed by evaluation result cells." } } }, - "DeleteReportResponse": { + "RequestLogDetailResponse": { "type": "object", - "title": "DeleteReportResponse", + "title": "RequestLogDetailResponse", "required": [ "success", - "message" + "prompt_blueprint", + "request_id" ], "properties": { "success": { @@ -22095,49 +23157,84 @@ true ] }, - "message": { + "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" + }, + "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." } } }, - "CreateDatasetGroupRequest": { + "TraceDetailResponse": { "type": "object", - "title": "CreateDatasetGroupRequest", + "title": "TraceDetailResponse", "required": [ - "name" + "success", + "trace_id", + "spans" ], "properties": { - "name": { - "type": "string", - "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." + "success": { + "type": "boolean", + "enum": [ + true + ] }, - "folder_id": { - "type": "integer", - "nullable": true, - "description": "Folder ID to create the dataset group in. Omit to create at the workspace root." + "trace_id": { + "type": "string" }, - "external_ids": { + "spans": { "type": "array", "items": { - "$ref": "#/components/schemas/ExternalId" + "type": "object", + "additionalProperties": true }, - "description": "External ID mappings to attach to the dataset group." + "description": "Spans in this trace. Spans that created request logs include request_log_id." } } }, - "CreateDatasetGroupResponse": { + "SearchRequestSuggestionsResponse": { "type": "object", - "title": "CreateDatasetGroupResponse", + "title": "SearchRequestSuggestionsResponse", "required": [ "success", - "dataset_group", - "dataset", - "external_ids" + "values" ], "properties": { "success": { @@ -22146,120 +23243,244 @@ true ] }, - "message": { - "type": "string" + "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": { + "type": "string", + "description": "Prompt template name to associate with the request." }, - "dataset_group": { + "prompt_input_variables": { + "type": "object", + "additionalProperties": true, + "description": "Variables used to render the prompt." + }, + "request_id": { "anyOf": [ { - "$ref": "#/components/schemas/DatasetGroup" + "type": "integer" }, { - "type": "object", - "additionalProperties": true + "type": "string" } - ] + ], + "description": "PromptLayer request ID to update." }, - "dataset": { + "version": { "anyOf": [ { - "$ref": "#/components/schemas/Dataset" + "type": "integer" }, { - "type": "object", - "additionalProperties": true + "type": "string" + }, + { + "type": "null" } ], - "description": "Initial draft dataset created with version_number = -1." + "description": "Prompt template version to associate." }, - "external_ids": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ExternalId" - } + "label": { + "type": "string", + "nullable": true, + "description": "Release label to resolve to a prompt template version." } } }, - "CreateDatasetVersionFromFilterParamsRequest": { + "TrackMetadataRequest": { "type": "object", - "title": "CreateDatasetVersionFromFilterParamsRequest", + "title": "TrackMetadataRequest", "required": [ - "dataset_group_id" + "request_id", + "metadata" ], "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": { + "request_id": { "anyOf": [ { - "$ref": "#/components/schemas/StructuredFilterGroup" + "type": "integer" }, { - "type": "null" + "type": "string" } ], - "description": "Structured request-log filters used to populate the dataset asynchronously." + "description": "PromptLayer request ID to update." }, - "q": { - "type": "string", - "nullable": true, - "description": "Free-text request-log search query applied with filter_group." + "metadata": { + "type": "object", + "additionalProperties": true, + "description": "Metadata dictionary to associate with the request." + } + } + }, + "TrackResponse": { + "type": "object", + "title": "TrackResponse", + "required": [ + "success", + "message" + ], + "properties": { + "success": { + "type": "boolean" }, - "sort_by": { + "message": { + "type": "string" + } + } + }, + "RequestLogSearchResult": { + "type": "object", + "title": "RequestLogSearchResult", + "additionalProperties": true, + "properties": { + "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", - "enum": [ - "request_start_time", - "input_tokens", - "output_tokens", - "cost", - "latency_ms", - "status" - ], - "nullable": true + "format": "date-time" }, - "sort_order": { + "request_end_time": { "type": "string", - "enum": [ - "asc", - "desc" - ], - "nullable": true + "format": "date-time" }, - "variables_to_parse": { + "latency": { + "type": "number" + }, + "tags_array": { "type": "array", "items": { "type": "string" - }, - "nullable": true, - "description": "Request fields or variables to parse into dataset columns." + } + }, + "metadata": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": true + } + }, + "scores": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": true + } + }, + "prompt_name": { + "type": "string", + "nullable": true + } + } + }, + "CreateDatasetVersionFromFileRequest": { + "type": "object", + "title": "CreateDatasetVersionFromFileRequest", + "required": [ + "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." + }, + "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." + } + } + }, + "CreateDatasetVersionFromFileResponse": { + "type": "object", + "title": "CreateDatasetVersionFromFileResponse", + "required": [ + "success", + "message", + "dataset_id" + ], + "properties": { + "success": { + "type": "boolean", + "enum": [ + true + ] + }, + "message": { + "type": "string" + }, + "dataset_id": { + "type": "integer", + "description": "ID of the draft dataset created for asynchronous processing." + } + } + }, + "CreateDraftDatasetVersionRequest": { + "type": "object", + "title": "CreateDraftDatasetVersionRequest", + "required": [ + "dataset_group_id" + ], + "properties": { + "dataset_group_id": { + "type": "integer", + "minimum": 1, + "description": "ID of the dataset group to create a draft version for." }, - "limit": { + "source_dataset_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, + "description": "Optional existing dataset version to copy rows from. Must belong to the same dataset group." } } }, - "CreateDatasetVersionFromFilterParamsResponse": { + "DraftDatasetVersionResponse": { "type": "object", - "title": "CreateDatasetVersionFromFilterParamsResponse", + "title": "DraftDatasetVersionResponse", "required": [ "success", - "dataset_id", - "dataset_group_id", - "version_number" + "message", + "draft_dataset_id" ], "properties": { "success": { @@ -22271,78 +23492,75 @@ "message": { "type": "string" }, - "dataset_id": { - "type": "integer" - }, + "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" + "type": "integer", + "minimum": 1, + "description": "ID of the dataset group containing the draft." }, - "version_number": { + "request_log_id": { "type": "integer", - "description": "Version number of the draft or generated dataset version." + "minimum": 1, + "description": "ID of the request log to add as a dataset row." } } }, - "DatasetRowCell": { + "SaveDraftDatasetVersionRequest": { "type": "object", - "title": "DatasetRowCell", + "title": "SaveDraftDatasetVersionRequest", "required": [ - "type", - "value" + "dataset_group_id" ], "properties": { - "type": { - "type": "string", - "enum": [ - "dataset" - ] - }, - "value": { - "description": "Dataset cell value." + "dataset_group_id": { + "type": "integer", + "minimum": 1, + "description": "ID of the dataset group containing the draft to save." } } }, - "EvaluationRowCell": { + "AddTraceToDatasetRequest": { "type": "object", - "title": "EvaluationRowCell", + "title": "AddTraceToDatasetRequest", "required": [ - "type", - "status" + "dataset_group_id", + "trace_id" ], "properties": { - "type": { - "type": "string", - "enum": [ - "eval" - ] + "dataset_group_id": { + "type": "integer", + "minimum": 1, + "description": "ID of the dataset group to add the trace row to." }, - "status": { + "trace_id": { "type": "string", - "description": "Evaluation cell status, such as PASSED, FAILED, RUNNING, or SKIPPED." - }, - "value": { - "nullable": true, - "description": "Evaluation result value." + "minLength": 1, + "description": "ID of the trace to add as a dataset row." }, - "error_message": { + "span_id": { "type": "string", + "minLength": 1, "nullable": true, - "description": "Error details for failed cells." + "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)." } } }, - "DatasetRowsResponse": { + "AddTraceToDatasetResponse": { "type": "object", - "title": "DatasetRowsResponse", - "required": [ - "success", - "columns", - "rows", - "page", - "per_page", - "pages", - "total" - ], + "title": "AddTraceToDatasetResponse", "properties": { "success": { "type": "boolean", @@ -22350,1485 +23568,1738 @@ true ] }, - "message": { - "type": "string" - }, - "columns": { - "type": "array", - "items": { - "type": "string" - } - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "pages": { - "type": "integer" - }, - "total": { - "type": "integer" + "draft_dataset_id": { + "type": "integer", + "description": "ID of the draft dataset the trace row was added to." }, - "rows": { - "type": "array", - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/DatasetRowCell" - } - }, - "description": "Rows of dataset cells in the same order as columns." + "mode": { + "type": "string", + "enum": [ + "trace", + "span" + ], + "description": "Indicates whether the row was created from a full trace root (`trace`) or a specific span subtree (`span`)." } } }, - "EvaluationRowsResponse": { + "Table": { "type": "object", - "title": "EvaluationRowsResponse", - "required": [ - "success", - "columns", - "rows", - "page", - "per_page", - "pages", - "total" - ], + "description": "A Table — a versioned, multi-sheet table that can run LLM columns to generate or evaluate data at scale.", "properties": { - "success": { - "type": "boolean", - "enum": [ - true - ] - }, - "message": { - "type": "string" + "id": { + "type": "string", + "format": "uuid", + "description": "Unique table identifier." }, - "columns": { - "type": "array", - "items": { - "type": "string" - } + "workspace_id": { + "type": "integer", + "description": "Workspace that owns this resource; determined by the authenticated request scope." }, - "page": { - "type": "integer" + "title": { + "type": "string" }, - "per_page": { - "type": "integer" + "folder_id": { + "type": "integer", + "nullable": true }, - "pages": { - "type": "integer" + "sheet_count": { + "type": "integer", + "description": "Number of active sheets." }, - "total": { - "type": "integer" + "created_at": { + "type": "string", + "format": "date-time" }, - "rows": { - "type": "array", - "items": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/DatasetRowCell" - }, - { - "$ref": "#/components/schemas/EvaluationRowCell" - } - ] - } - }, - "description": "Rows containing dataset cells followed by evaluation result cells." + "updated_at": { + "type": "string", + "format": "date-time" } } }, - "RequestLogDetailResponse": { - "type": "object", - "title": "RequestLogDetailResponse", - "required": [ - "success", - "prompt_blueprint", - "request_id" + "TableDetail": { + "allOf": [ + { + "$ref": "#/components/schemas/Table" + } ], + "type": "object", "properties": { - "success": { - "type": "boolean", - "enum": [ - true - ] - }, - "prompt_blueprint": { + "sheet_row_counts": { "type": "object", - "additionalProperties": true, - "description": "Provider-agnostic prompt blueprint that can be replayed." + "description": "Map of sheet_id → row count.", + "additionalProperties": { + "type": "integer" + } + } + } + }, + "Sheet": { + "type": "object", + "description": "A sheet within a Table.", + "properties": { + "id": { + "type": "string", + "format": "uuid" }, - "request_id": { - "type": "integer" + "table_id": { + "type": "string", + "format": "uuid" }, - "provider": { - "type": "string" + "workspace_id": { + "type": "integer", + "description": "Workspace that owns this resource; determined by the authenticated request scope." }, - "model": { + "title": { "type": "string" }, - "input_tokens": { - "type": "integer" - }, - "output_tokens": { - "type": "integer" + "index": { + "type": "integer", + "description": "Display order of the sheet within the table (0-based)." }, - "tokens": { + "row_count": { "type": "integer" }, - "price": { - "type": "number" + "version_count": { + "type": "integer", + "description": "Current sheet version number. It increments when sheet data, layout, score configuration, imports, or execution output changes." }, - "request_start_time": { + "created_at": { "type": "string", "format": "date-time" }, - "request_end_time": { + "updated_at": { "type": "string", "format": "date-time" - }, - "latency_ms": { - "type": "number" - }, - "trace_id": { - "type": "string", - "nullable": true, - "description": "Associated trace ID, if available." } } }, - "TraceDetailResponse": { + "TableColumnType": { + "type": "string", + "description": "Smart Table column type. Use uppercase backend enum values. Input: TEXT. Reference (Tables only, not in legacy evaluation/workflow enums): COMPOSITION. Computed: all other listed values. Create requests also accept lowercase aliases (text, prompt_template, llm, code, score, comparison, composition), which are normalized to uppercase. Legacy DATASET columns are not creatable.", + "enum": [ + "TEXT", + "ABSOLUTE_NUMERIC_DISTANCE", + "AI_DATA_EXTRACTION", + "APPLY_DIFF", + "ASSERT_VALID", + "COALESCE", + "CONDITION", + "CODE_EXECUTION", + "COMBINE_COLUMNS", + "COMPARE", + "COMPOSITION", + "CONTAINS", + "CONVERSATION_SIMULATOR", + "COSINE_SIMILARITY", + "COUNT", + "ENDPOINT", + "FOR_LOOP", + "HUMAN", + "JSON_PATH", + "LLM_ASSERTION", + "MATH_OPERATOR", + "MCP", + "MIN_MAX", + "PARSE_VALUE", + "PROMPT_TEMPLATE", + "REGEX", + "REGEX_EXTRACTION", + "VARIABLE", + "WHILE_LOOP", + "WORKFLOW", + "XML_PATH" + ] + }, + "Column": { "type": "object", - "title": "TraceDetailResponse", - "required": [ - "success", - "trace_id", - "spans" - ], + "description": "A column within a Table sheet.", "properties": { - "success": { - "type": "boolean", - "enum": [ - true - ] + "id": { + "type": "string", + "format": "uuid", + "description": "Unique identifier of the column." }, - "trace_id": { - "type": "string" + "sheet_id": { + "type": "string", + "format": "uuid" }, - "spans": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - }, - "description": "Spans in this trace. Spans that created request logs include request_log_id." - } - } - }, - "SearchRequestSuggestionsResponse": { - "type": "object", - "title": "SearchRequestSuggestionsResponse", - "required": [ - "success", - "values" - ], - "properties": { - "success": { - "type": "boolean", - "enum": [ - true - ] + "workspace_id": { + "type": "integer", + "description": "Workspace that owns this resource; determined by the authenticated request scope." }, - "values": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Suggested values for the requested field." + "title": { + "type": "string", + "description": "Display title of the column." + }, + "type": { + "$ref": "#/components/schemas/TableColumnType" + }, + "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." } } }, - "TrackPromptRequest": { + "Cell": { "type": "object", - "title": "TrackPromptRequest", - "required": [ - "prompt_name", - "request_id" - ], + "description": "A single cell at the intersection of a column and a row.", "properties": { - "prompt_name": { + "id": { "type": "string", - "description": "Prompt template name to associate with the request." + "format": "uuid" }, - "prompt_input_variables": { - "type": "object", - "additionalProperties": true, - "description": "Variables used to render the prompt." + "sheet_id": { + "type": "string", + "format": "uuid" }, - "request_id": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "PromptLayer request ID to update." + "column_id": { + "type": "string", + "format": "uuid" }, - "version": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - }, - { - "type": "null" - } + "row_index": { + "type": "integer" + }, + "status": { + "type": "string", + "enum": [ + "completed", + "stale", + "running", + "queued", + "error", + "cancelled" ], - "description": "Prompt template version to associate." + "description": "Current computation status of the cell." }, - "label": { + "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": "Release label to resolve to a prompt template version." - } - } - }, - "TrackMetadataRequest": { - "type": "object", - "title": "TrackMetadataRequest", - "required": [ - "request_id", - "metadata" - ], - "properties": { - "request_id": { - "anyOf": [ - { - "type": "integer" - }, + "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": [ { - "type": "string" + "$ref": "#/components/schemas/SmartTableRequestMetrics" } ], - "description": "PromptLayer request ID to update." + "nullable": true, + "description": "Execution metrics populated for prompt-template column cells. Present only when the cell has an associated request log." }, - "metadata": { - "type": "object", - "additionalProperties": true, - "description": "Metadata dictionary to associate with the request." - } - } - }, - "TrackResponse": { - "type": "object", - "title": "TrackResponse", - "required": [ - "success", - "message" - ], - "properties": { - "success": { - "type": "boolean" + "execution_id": { + "type": "string", + "format": "uuid", + "nullable": true, + "description": "Execution ID associated with the current or most recent computed value, when available." }, - "message": { - "type": "string" + "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": "User-visible error message for failed computed cells, when available." } } }, - "RequestLogSearchResult": { + "TableImportOperation": { "type": "object", - "title": "RequestLogSearchResult", - "additionalProperties": true, + "description": "Status of an asynchronous sheet import operation.", "properties": { - "id": { - "type": "integer" - }, - "engine": { + "operation_id": { "type": "string" }, - "provider_type": { - "type": "string" + "source": { + "type": "string", + "enum": [ + "file", + "request_logs" + ] }, - "input_tokens": { - "type": "integer" + "status": { + "type": "string", + "enum": [ + "pending", + "running", + "completed", + "failed" + ] }, - "output_tokens": { - "type": "integer" + "progress": { + "type": "number", + "nullable": true }, - "price": { - "type": "number" + "message": { + "type": "string", + "nullable": true }, - "request_start_time": { + "rows_added": { + "type": "integer", + "nullable": true + }, + "row_count": { + "type": "integer", + "nullable": true + }, + "file_name": { "type": "string", - "format": "date-time" + "nullable": true }, - "request_end_time": { + "error_message": { "type": "string", - "format": "date-time" + "nullable": true }, - "latency": { - "type": "number" + "created_at": { + "type": "string", + "format": "date-time", + "nullable": true }, - "tags_array": { - "type": "array", - "items": { - "type": "string" - } + "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": { + "request_ids": { "type": "array", "items": { - "type": "object", - "additionalProperties": true - } + "type": "integer" + }, + "description": "IDs of the request logs associated with this cell." }, - "scores": { + "latency_ms": { + "type": "integer", + "nullable": true, + "description": "Total end-to-end latency in milliseconds." + }, + "price": { + "type": "number", + "nullable": true, + "description": "Total cost in USD for all requests that produced this cell." + }, + "input_tokens": { + "type": "integer", + "nullable": true, + "description": "Total number of input tokens across all requests." + }, + "output_tokens": { + "type": "integer", + "nullable": true, + "description": "Total number of output tokens across all requests." + }, + "trace_ids": { "type": "array", "items": { - "type": "object", - "additionalProperties": true - } - }, - "prompt_name": { - "type": "string", - "nullable": true + "type": "string" + }, + "description": "Trace IDs linked to this cell (present when the cell was produced via an OpenTelemetry-traced workflow)." } } }, - "CreateDatasetVersionFromFileRequest": { + "ExecutionMetadataMetricAggregate": { "type": "object", - "title": "CreateDatasetVersionFromFileRequest", - "required": [ - "dataset_group_id", - "file_name", - "file_content_base64" - ], + "description": "Aggregated statistics for a single execution metric (e.g. price or latency) across all rows in a sheet.", "properties": { - "dataset_group_id": { + "metric_key": { + "type": "string", + "description": "Internal metric identifier. One of `price` or `latency_ms`.", + "enum": [ + "price", + "latency_ms" + ] + }, + "metric_label": { + "type": "string", + "nullable": true, + "description": "Human-readable label for the metric." + }, + "count": { "type": "integer", - "minimum": 1, - "description": "ID of the dataset group where the new version will be created." + "description": "Number of rows that have a value for this metric." }, - "file_name": { + "sum": { + "type": "number", + "description": "Sum of all metric values." + }, + "avg": { + "type": "number", + "nullable": true, + "description": "Average metric value, or null if count is 0." + }, + "min": { + "type": "number", + "nullable": true, + "description": "Minimum metric value, or null if count is 0." + }, + "max": { + "type": "number", + "nullable": true, + "description": "Maximum metric value, or null if count is 0." + }, + "column_id": { "type": "string", - "minLength": 1, - "maxLength": 255, - "description": "Name of the CSV or JSON file. Must end with .csv or .json." + "format": "uuid", + "description": "ID of the system-managed metadata column for this metric. Omitted for sheet-level aggregates." }, - "file_content_base64": { + "source_column_id": { "type": "string", - "minLength": 1, - "description": "Base64-encoded file content. Maximum decoded file size is 100MB." + "format": "uuid", + "description": "ID of the prompt-template source column. Omitted for sheet-level aggregates." } - } + }, + "required": [ + "metric_key", + "count", + "sum" + ] }, - "CreateDatasetVersionFromFileResponse": { + "ExecutionMetadataAggregates": { "type": "object", - "title": "CreateDatasetVersionFromFileResponse", + "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" + } + }, + "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" + ] + } + }, + "required": [ + "by_column_id", + "sheet" + ] + }, + "ListTableSheetOperationsResponse": { + "type": "object", + "title": "ListTableSheetOperationsResponse", "required": [ "success", - "message", - "dataset_id" + "sheet_id", + "version", + "total_cells", + "status_counts", + "pending_count", + "active_operations" ], "properties": { "success": { - "type": "boolean", - "enum": [ - true - ] + "type": "boolean" }, - "message": { - "type": "string" + "sheet_id": { + "type": "string", + "format": "uuid" }, - "dataset_id": { - "type": "integer", - "description": "ID of the draft dataset created for asynchronous processing." + "version": { + "type": "integer" + }, + "total_cells": { + "type": "integer" + }, + "status_counts": { + "type": "object", + "additionalProperties": { + "type": "integer" + } + }, + "pending_count": { + "type": "integer" + }, + "active_operations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TableSheetOperation" + } } - } + }, + "additionalProperties": false }, - "CreateDraftDatasetVersionRequest": { + "CreateTableRequest": { "type": "object", - "title": "CreateDraftDatasetVersionRequest", - "required": [ - "dataset_group_id" - ], + "title": "CreateTableRequest", "properties": { - "dataset_group_id": { - "type": "integer", - "minimum": 1, - "description": "ID of the dataset group to create a draft version for." + "title": { + "type": "string", + "description": "Table title. Defaults to a unique 'Untitled Table' name if omitted.", + "nullable": true }, - "source_dataset_id": { + "folder_id": { "type": "integer", - "minimum": 1, - "nullable": true, - "description": "Optional existing dataset version to copy rows from. Must belong to the same dataset group." + "description": "Folder to place the table in.", + "nullable": true + }, + "create_default_sheet": { + "type": "boolean", + "default": true, + "description": "When true (default), creates Sheet 1 with a Column A text column and one empty row. When false, creates an empty table with no sheets." } } }, - "DraftDatasetVersionResponse": { + "CreateTableResponse": { "type": "object", - "title": "DraftDatasetVersionResponse", - "required": [ - "success", - "message", - "draft_dataset_id" - ], + "title": "CreateTableResponse", "properties": { "success": { - "type": "boolean", - "enum": [ - true - ] + "type": "boolean" }, "message": { "type": "string" }, - "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." + "table": { + "$ref": "#/components/schemas/TableDetail" }, - "request_log_id": { - "type": "integer", - "minimum": 1, - "description": "ID of the request log to add as a dataset row." + "default_sheet": { + "allOf": [ + { + "$ref": "#/components/schemas/Sheet" + } + ], + "description": "The default sheet created when create_default_sheet is true. Omitted when create_default_sheet is false." } - } - }, - "SaveDraftDatasetVersionRequest": { - "type": "object", - "title": "SaveDraftDatasetVersionRequest", + }, "required": [ - "dataset_group_id" - ], - "properties": { - "dataset_group_id": { - "type": "integer", - "minimum": 1, - "description": "ID of the dataset group containing the draft to save." - } - } + "success", + "table" + ] }, - "AddTraceToDatasetRequest": { + "CreateTableSheetOperationRequest": { "type": "object", - "title": "AddTraceToDatasetRequest", - "required": [ - "dataset_group_id", - "trace_id" - ], + "title": "CreateTableSheetOperationRequest", "properties": { - "dataset_group_id": { - "type": "integer", - "minimum": 1, - "description": "ID of the dataset group to add the trace row to." - }, - "trace_id": { + "operation": { "type": "string", - "minLength": 1, - "description": "ID of the trace to add as a dataset row." + "enum": [ + "recalculate" + ], + "default": "recalculate" }, - "span_id": { + "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", - "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)." + "description": "Confirmation token returned when the operation exceeds the confirmation threshold." } - } + }, + "additionalProperties": false }, - "AddTraceToDatasetResponse": { + "CreateTableSheetOperationResponse": { + "title": "CreateTableSheetOperationResponse", + "oneOf": [ + { + "$ref": "#/components/schemas/CreateTableSheetOperationQueuedResponse" + }, + { + "$ref": "#/components/schemas/CreateTableSheetOperationNoopResponse" + }, + { + "$ref": "#/components/schemas/CreateTableSheetOperationConfirmationResponse" + } + ] + }, + "GetTableSheetOperationResponse": { "type": "object", - "title": "AddTraceToDatasetResponse", + "title": "GetTableSheetOperationResponse", + "required": [ + "success", + "operation" + ], "properties": { "success": { - "type": "boolean", - "enum": [ - true - ] - }, - "draft_dataset_id": { - "type": "integer", - "description": "ID of the draft dataset the trace row was added to." + "type": "boolean" }, - "mode": { - "type": "string", - "enum": [ - "trace", - "span" - ], - "description": "Indicates whether the row was created from a full trace root (`trace`) or a specific span subtree (`span`)." + "operation": { + "$ref": "#/components/schemas/TableSheetOperation" } - } + }, + "additionalProperties": false }, - "Table": { + "CancelTableSheetOperationResponse": { "type": "object", - "description": "A Table — a versioned, multi-sheet table that can run LLM columns to generate or evaluate data at scale.", + "title": "CancelTableSheetOperationResponse", + "required": [ + "success", + "message", + "operation_id", + "execution_ids", + "cancelled_cell_count" + ], "properties": { - "id": { - "type": "string", - "format": "uuid", - "description": "Unique table identifier." + "success": { + "type": "boolean" }, - "workspace_id": { - "type": "integer", - "description": "Workspace that owns this resource; determined by the authenticated request scope." + "message": { + "type": "string" }, - "title": { + "operation_id": { "type": "string" }, - "folder_id": { - "type": "integer", - "nullable": true + "execution_ids": { + "type": "array", + "items": { + "type": "string" + } }, - "sheet_count": { - "type": "integer", - "description": "Number of active sheets." + "cancelled_cell_count": { + "type": "integer" }, - "created_at": { - "type": "string", - "format": "date-time" + "not_started_reset_count": { + "type": "integer" }, - "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" - } + "running_invalidated_count": { + "type": "integer" } } }, - "Sheet": { + "TableSheetScoreResponse": { "type": "object", - "description": "A sheet within a Table.", + "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": { + "success": { + "type": "boolean" + }, + "sheet_id": { "type": "string", "format": "uuid" }, - "table_id": { + "scoring_type": { "type": "string", - "format": "uuid" + "enum": [ + "auto", + "boolean", + "numeric", + "custom", + null + ], + "nullable": true }, - "workspace_id": { - "type": "integer", - "description": "Workspace that owns this resource; determined by the authenticated request scope." + "columns": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TableSheetScoreColumn" + } }, - "title": { - "type": "string" + "aggregate_score": { + "type": "number", + "nullable": true }, - "index": { - "type": "integer", - "description": "Display order of the sheet within the table (0-based)." + "total_rows": { + "type": "integer" }, - "row_count": { + "scored_rows": { "type": "integer" }, - "version_count": { - "type": "integer", - "description": "Current sheet version number. It increments when sheet data, layout, score configuration, imports, or execution output changes." + "excluded_rows": { + "type": "integer" }, - "created_at": { + "calculated_at": { "type": "string", - "format": "date-time" + "format": "date-time", + "nullable": true }, - "updated_at": { - "type": "string", - "format": "date-time" - } - } - }, - "TableColumnType": { - "type": "string", - "description": "Smart Table column type. Use uppercase backend enum values. Input: TEXT. Reference (Tables only, not in legacy evaluation/workflow enums): COMPOSITION. Computed: all other listed values. Create requests also accept lowercase aliases (text, prompt_template, llm, code, score, comparison, composition), which are normalized to uppercase. Legacy DATASET columns are not creatable.", - "enum": [ - "TEXT", - "ABSOLUTE_NUMERIC_DISTANCE", - "AI_DATA_EXTRACTION", - "APPLY_DIFF", - "ASSERT_VALID", - "COALESCE", - "CONDITION", - "CODE_EXECUTION", - "COMBINE_COLUMNS", - "COMPARE", - "COMPOSITION", - "CONTAINS", - "CONVERSATION_SIMULATOR", - "COSINE_SIMILARITY", - "COUNT", - "ENDPOINT", - "FOR_LOOP", - "HUMAN", - "JSON_PATH", - "LLM_ASSERTION", - "MATH_OPERATOR", - "MCP", - "MIN_MAX", - "PARSE_VALUE", - "PROMPT_TEMPLATE", - "REGEX", - "REGEX_EXTRACTION", - "VARIABLE", - "WHILE_LOOP", - "WORKFLOW", - "XML_PATH" - ] - }, - "Column": { - "type": "object", - "description": "A column within a Table sheet.", - "properties": { - "id": { + "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": "uuid", - "description": "Unique identifier of the column." + "enum": [ + "queued", + "running", + "completed", + "failed", + null + ], + "nullable": true }, - "sheet_id": { + "score_calculation_error": { "type": "string", - "format": "uuid" + "nullable": true }, - "workspace_id": { - "type": "integer", - "description": "Workspace that owns this resource; determined by the authenticated request scope." + "has_custom_scoring": { + "type": "boolean" }, - "title": { + "score_configuration": { + "nullable": true, + "allOf": [ + { + "$ref": "#/components/schemas/TableSheetScoreConfiguration" + } + ] + }, + "score_type": { "type": "string", - "description": "Display title of the column." + "enum": [ + "none", + "single_column", + "multi_column", + "custom" + ] }, - "type": { - "$ref": "#/components/schemas/TableColumnType" + "overall_score": { + "type": "number", + "nullable": true }, - "config": { + "details": { "type": "object", - "description": "Type-specific configuration. Shape depends on the column type." + "additionalProperties": true }, - "position_rank": { - "type": "number", - "description": "Fractional position rank used for ordering." + "aggregate": { + "type": "object", + "additionalProperties": true }, - "is_output_column": { - "type": "boolean", - "description": "Whether this column is designated as an output column." + "per_column": { + "type": "object", + "additionalProperties": true } - } + }, + "additionalProperties": false }, - "Cell": { + "ConfigureTableSheetScoreRequest": { "type": "object", - "description": "A single cell at the intersection of a column and a row.", + "title": "ConfigureTableSheetScoreRequest", "properties": { - "id": { - "type": "string", - "format": "uuid" - }, - "sheet_id": { - "type": "string", - "format": "uuid" - }, - "column_id": { - "type": "string", - "format": "uuid" - }, - "row_index": { - "type": "integer" - }, - "status": { + "score_type": { "type": "string", "enum": [ - "completed", - "stale", - "running", - "queued", - "error", - "cancelled" + "auto", + "boolean", + "numeric", + "custom" ], - "description": "Current computation status of the cell." + "nullable": true, + "description": "Scoring mode. Required when score_config is provided." }, - "display_value": { - "type": "string", - "nullable": true + "score_config": { + "type": "object", + "nullable": true, + "additionalProperties": true, + "description": "Explicit score configuration." }, - "value": { - "description": "Structured cell value (type depends on column type)." + "column_ids": { + "type": "array", + "nullable": true, + "items": { + "type": "string", + "format": "uuid" + }, + "description": "Column IDs to score." }, - "error": { - "type": "string", - "nullable": true + "column_names": { + "type": "array", + "nullable": true, + "items": { + "type": "string" + }, + "description": "Column titles to score. Titles must be unique in the sheet." }, - "input_hash": { + "code": { "type": "string", + "minLength": 1, + "maxLength": 50000, "nullable": true, - "description": "Hash of the inputs used to compute this cell, used for cache invalidation." + "description": "Custom scoring code." }, - "updated_at": { + "code_language": { "type": "string", - "format": "date-time", - "description": "ISO 8601 timestamp of the last update." - }, - "request_metrics": { - "allOf": [ - { - "$ref": "#/components/schemas/SmartTableRequestMetrics" - } + "enum": [ + "PYTHON", + "JAVASCRIPT" ], - "nullable": true, - "description": "Execution metrics populated for prompt-template column cells. Present only when the cell has an associated request log." + "default": "PYTHON" }, - "execution_id": { - "type": "string", - "format": "uuid", + "true_values": { + "type": "array", "nullable": true, - "description": "Execution ID associated with the current or most recent computed value, when available." + "items": { + "type": "string" + }, + "description": "Values treated as true for boolean scoring." }, - "last_computed_version": { - "type": "integer", + "false_values": { + "type": "array", "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." + "items": { + "type": "string" + }, + "description": "Values treated as false for boolean scoring." }, - "error_message": { + "assertion_aggregation": { "type": "string", + "enum": [ + "all", + "any", + "mean" + ], "nullable": true, - "description": "User-visible error message for failed computed cells, when available." + "description": "Aggregation mode for assertion-style boolean scoring." } - } + }, + "additionalProperties": false }, - "TableImportOperation": { + "ConfigureTableSheetScoreResponse": { "type": "object", - "description": "Status of an asynchronous sheet import operation.", + "title": "ConfigureTableSheetScoreResponse", + "required": [ + "success", + "message", + "score_configuration_id", + "status", + "requires_recalculation", + "version" + ], "properties": { - "operation_id": { + "success": { + "type": "boolean" + }, + "message": { "type": "string" }, - "source": { + "score_configuration_id": { "type": "string", - "enum": [ - "file", - "request_logs" - ] + "format": "uuid" }, "status": { "type": "string", - "enum": [ - "pending", - "running", - "completed", - "failed" - ] - }, - "progress": { - "type": "number", - "nullable": true - }, - "message": { - "type": "string", - "nullable": true - }, - "rows_added": { - "type": "integer", - "nullable": true - }, - "row_count": { - "type": "integer", - "nullable": true + "nullable": true, + "description": "Returned as null by this endpoint. Use the recalculation endpoint to queue score calculation." }, - "file_name": { - "type": "string", - "nullable": true + "requires_recalculation": { + "type": "boolean", + "description": "Always true after updating the score configuration." }, - "error_message": { - "type": "string", - "nullable": true + "version": { + "type": "integer" + } + } + }, + "RecalculateTableSheetScoreResponse": { + "type": "object", + "title": "RecalculateTableSheetScoreResponse", + "required": [ + "success", + "score_configuration_id", + "status" + ], + "properties": { + "success": { + "type": "boolean" }, - "created_at": { + "score_configuration_id": { "type": "string", - "format": "date-time", - "nullable": true + "format": "uuid" }, - "updated_at": { + "status": { "type": "string", - "format": "date-time", - "nullable": true + "nullable": true, + "enum": [ + "queued", + "running", + "completed", + "failed", + null + ] } } }, - "SmartTableRequestMetrics": { + "TableSheetScorecardStaleState": { "type": "object", - "description": "Execution metrics for a prompt-template cell, derived from the underlying request log.", + "required": [ + "is_stale", + "reasons" + ], "properties": { - "request_count": { - "type": "integer", - "description": "Number of LLM requests made to produce this cell's value." + "is_stale": { + "type": "boolean" }, - "request_ids": { + "reasons": { "type": "array", "items": { - "type": "integer" - }, - "description": "IDs of the request logs associated with this cell." + "type": "string" + } + } + } + }, + "TableSheetScorecardAggregation": { + "type": "object", + "required": [ + "method", + "required_step_failure_behavior", + "pass_threshold", + "warn_threshold" + ], + "properties": { + "method": { + "type": "string" }, - "latency_ms": { - "type": "integer", - "nullable": true, - "description": "Total end-to-end latency in milliseconds." + "required_step_failure_behavior": { + "type": "string", + "enum": [ + "fail", + "warn", + "ignore" + ] }, - "price": { - "type": "number", - "nullable": true, - "description": "Total cost in USD for all requests that produced this cell." + "pass_threshold": { + "type": "number" + }, + "warn_threshold": { + "type": "number" + } + }, + "additionalProperties": true + }, + "TableSheetScorecardStep": { + "type": "object", + "required": [ + "title", + "primitive_type" + ], + "properties": { + "id": { + "type": "string", + "format": "uuid", + "nullable": true }, - "input_tokens": { - "type": "integer", - "nullable": true, - "description": "Total number of input tokens across all requests." + "title": { + "type": "string" }, - "output_tokens": { - "type": "integer", - "nullable": true, - "description": "Total number of output tokens across all requests." + "primitive_type": { + "type": "string" }, - "trace_ids": { + "source_column_ids": { "type": "array", "items": { "type": "string" - }, - "description": "Trace IDs linked to this cell (present when the cell was produced via an OpenTelemetry-traced workflow)." + } + }, + "weight": { + "type": "number" + }, + "required": { + "type": "boolean" + }, + "thresholds": { + "type": "object", + "additionalProperties": { + "type": "number" + } + }, + "primitive_config": { + "type": "object", + "additionalProperties": true } - } + }, + "additionalProperties": true }, - "ExecutionMetadataMetricAggregate": { + "TableSheetScorecard": { "type": "object", - "description": "Aggregated statistics for a single execution metric (e.g. price or latency) across all rows in a sheet.", + "required": [ + "id", + "workspace_id", + "smart_table_id", + "sheet_id", + "name", + "evaluated_column_ids", + "aggregation", + "status", + "stale_state", + "steps", + "created_at", + "updated_at" + ], "properties": { - "metric_key": { + "id": { "type": "string", - "description": "Internal metric identifier. One of `price` or `latency_ms`.", - "enum": [ - "price", - "latency_ms" - ] + "format": "uuid" }, - "metric_label": { + "workspace_id": { + "type": "integer" + }, + "smart_table_id": { "type": "string", - "nullable": true, - "description": "Human-readable label for the metric." + "format": "uuid" }, - "count": { - "type": "integer", - "description": "Number of rows that have a value for this metric." + "sheet_id": { + "type": "string", + "format": "uuid" }, - "sum": { - "type": "number", - "description": "Sum of all metric values." + "name": { + "type": "string" }, - "avg": { - "type": "number", - "nullable": true, - "description": "Average metric value, or null if count is 0." + "evaluated_column_ids": { + "type": "array", + "items": { + "type": "string" + } }, - "min": { - "type": "number", + "aggregation": { + "$ref": "#/components/schemas/TableSheetScorecardAggregation" + }, + "display_config": { + "type": "object", "nullable": true, - "description": "Minimum metric value, or null if count is 0." + "additionalProperties": true }, - "max": { - "type": "number", + "baseline_config": { + "type": "object", "nullable": true, - "description": "Maximum metric value, or null if count is 0." + "additionalProperties": true }, - "column_id": { + "status": { "type": "string", - "format": "uuid", - "description": "ID of the system-managed metadata column for this metric. Omitted for sheet-level aggregates." + "enum": [ + "needs_setup", + "ready", + "queued", + "running", + "completed", + "stale", + "failed" + ] }, - "source_column_id": { + "stale_state": { + "$ref": "#/components/schemas/TableSheetScorecardStaleState" + }, + "latest_calculation_id": { "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 + }, + "config_hash": { + "type": "string", + "nullable": true + }, + "steps": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TableSheetScorecardStep" } }, - "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" - ] + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" } }, - "required": [ - "by_column_id", - "sheet" - ] + "additionalProperties": true }, - "ListTableSheetOperationsResponse": { + "TableSheetScorecardCalculation": { "type": "object", - "title": "ListTableSheetOperationsResponse", "required": [ - "success", + "id", + "scorecard_id", + "workspace_id", "sheet_id", - "version", - "total_cells", - "status_counts", - "pending_count", - "active_operations" + "sheet_revision", + "status", + "criterion_summaries" ], "properties": { - "success": { - "type": "boolean" + "id": { + "type": "string", + "format": "uuid" }, - "sheet_id": { + "scorecard_id": { "type": "string", "format": "uuid" }, - "version": { + "workspace_id": { "type": "integer" }, - "total_cells": { - "type": "integer" + "sheet_id": { + "type": "string", + "format": "uuid" }, - "status_counts": { + "sheet_revision": { + "type": "string" + }, + "status": { + "type": "string", + "enum": [ + "queued", + "running", + "completed", + "failed", + "cancelled" + ] + }, + "aggregate_score": { + "type": "number", + "nullable": true + }, + "aggregate_verdict": { + "type": "string", + "nullable": true, + "enum": [ + "pass", + "warn", + "fail", + "error", + "skipped", + null + ] + }, + "criterion_summaries": { "type": "object", - "additionalProperties": { - "type": "integer" - } + "additionalProperties": true }, - "pending_count": { - "type": "integer" + "drift_summary": { + "type": "object", + "nullable": true, + "additionalProperties": true }, - "active_operations": { - "type": "array", - "items": { - "$ref": "#/components/schemas/TableSheetOperation" - } - } - }, - "additionalProperties": false - }, - "CreateTableRequest": { - "type": "object", - "title": "CreateTableRequest", - "properties": { - "title": { + "config_hash": { "type": "string", - "description": "Table title. Defaults to a unique 'Untitled Table' name if omitted.", "nullable": true }, - "folder_id": { - "type": "integer", - "description": "Folder to place the table in.", + "started_at": { + "type": "string", + "format": "date-time", "nullable": true }, - "create_default_sheet": { - "type": "boolean", - "default": true, - "description": "When true (default), creates Sheet 1 with a Column A text column and one empty row. When false, creates an empty table with no sheets." + "completed_at": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "error_summary": { + "type": "object", + "nullable": true, + "additionalProperties": true } - } + }, + "additionalProperties": true }, - "CreateTableResponse": { + "TableSheetScorecardGetResponse": { "type": "object", - "title": "CreateTableResponse", + "required": [ + "success", + "scorecard", + "latest_calculation", + "display_calculation", + "criterion_summaries", + "drift_summary" + ], "properties": { "success": { "type": "boolean" }, - "message": { - "type": "string" + "scorecard": { + "nullable": true, + "allOf": [ + { + "$ref": "#/components/schemas/TableSheetScorecard" + } + ] }, - "table": { - "$ref": "#/components/schemas/TableDetail" + "latest_calculation": { + "nullable": true, + "allOf": [ + { + "$ref": "#/components/schemas/TableSheetScorecardCalculation" + } + ] }, - "default_sheet": { + "display_calculation": { + "nullable": true, "allOf": [ { - "$ref": "#/components/schemas/Sheet" + "$ref": "#/components/schemas/TableSheetScorecardCalculation" } - ], - "description": "The default sheet created when create_default_sheet is true. Omitted when create_default_sheet is false." + ] + }, + "criterion_summaries": { + "type": "object", + "nullable": true, + "additionalProperties": true + }, + "drift_summary": { + "type": "object", + "nullable": true, + "additionalProperties": true } }, - "required": [ - "success", - "table" - ] + "additionalProperties": true }, - "CreateTableSheetOperationRequest": { + "ConfigureTableSheetScorecardRequest": { "type": "object", - "title": "CreateTableSheetOperationRequest", + "required": [ + "name", + "aggregation" + ], "properties": { - "operation": { - "type": "string", - "enum": [ - "recalculate" - ], - "default": "recalculate" + "name": { + "type": "string" }, - "column_ids": { + "evaluated_column_ids": { "type": "array", - "nullable": true, "items": { - "type": "string", - "format": "uuid" + "type": "string" }, - "description": "Columns to recalculate. Text columns cannot be recalculated." + "default": [] }, - "row_ids": { + "steps": { "type": "array", - "nullable": true, "items": { - "type": "integer", - "minimum": 0 + "type": "object", + "additionalProperties": true }, - "description": "Zero-based row indices to recalculate. If omitted, matching cells across all rows are considered." + "default": [] }, - "statuses": { - "type": "array", + "aggregation": { + "type": "object", + "additionalProperties": true + }, + "display_config": { + "type": "object", "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." + "additionalProperties": true }, - "confirmation_token": { - "type": "string", + "baseline_config": { + "type": "object", "nullable": true, - "description": "Confirmation token returned when the operation exceeds the confirmation threshold." + "additionalProperties": true } }, "additionalProperties": false }, - "CreateTableSheetOperationResponse": { - "title": "CreateTableSheetOperationResponse", - "oneOf": [ - { - "$ref": "#/components/schemas/CreateTableSheetOperationQueuedResponse" + "ConfigureTableSheetScorecardResponse": { + "type": "object", + "required": [ + "success", + "scorecard", + "version" + ], + "properties": { + "success": { + "type": "boolean" }, - { - "$ref": "#/components/schemas/CreateTableSheetOperationNoopResponse" + "scorecard": { + "$ref": "#/components/schemas/TableSheetScorecard" }, - { - "$ref": "#/components/schemas/CreateTableSheetOperationConfirmationResponse" + "version": { + "type": "integer" } - ] + }, + "additionalProperties": true }, - "GetTableSheetOperationResponse": { + "DeleteTableSheetScorecardResponse": { "type": "object", - "title": "GetTableSheetOperationResponse", "required": [ - "success", - "operation" + "success" ], "properties": { "success": { "type": "boolean" - }, - "operation": { - "$ref": "#/components/schemas/TableSheetOperation" } }, "additionalProperties": false }, - "CancelTableSheetOperationResponse": { + "MigrateLegacyTableSheetScoreRequest": { + "type": "object", + "properties": { + "delete_legacy_score": { + "type": "boolean", + "default": false + } + }, + "additionalProperties": false + }, + "MigrateLegacyTableSheetScoreResponse": { "type": "object", - "title": "CancelTableSheetOperationResponse", "required": [ "success", - "message", - "operation_id", - "execution_ids", - "cancelled_cell_count" + "scorecard", + "converted_count", + "skipped", + "legacy_score_deleted", + "version" ], "properties": { "success": { "type": "boolean" }, - "message": { - "type": "string" + "scorecard": { + "$ref": "#/components/schemas/TableSheetScorecard" }, - "operation_id": { - "type": "string" + "converted_count": { + "type": "integer" }, - "execution_ids": { + "skipped": { "type": "array", "items": { - "type": "string" + "type": "object", + "properties": { + "reason": { + "type": "string" + }, + "score_type": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": true } }, - "cancelled_cell_count": { - "type": "integer" + "legacy_score_deleted": { + "type": "boolean" }, - "not_started_reset_count": { + "version": { "type": "integer" + } + }, + "additionalProperties": true + }, + "RecalculateTableSheetScorecardRequest": { + "type": "object", + "properties": { + "row_indices": { + "type": "array", + "items": { + "type": "integer", + "minimum": 0 + } }, - "running_invalidated_count": { - "type": "integer" + "step_ids": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } } - } + }, + "additionalProperties": false }, - "TableSheetScoreResponse": { + "RecalculateTableSheetScorecardResponse": { "type": "object", - "title": "TableSheetScoreResponse", "required": [ "success", - "sheet_id", - "scoring_type", - "columns", - "aggregate_score", - "total_rows", - "scored_rows", - "excluded_rows", - "calculated_at", - "score_matrix", - "score_matrix_metrics", + "calculation_id", "status", - "score_calculation_error", - "has_custom_scoring", - "score_configuration", - "score_type", - "overall_score", - "details", - "aggregate", - "per_column" + "version" ], "properties": { "success": { "type": "boolean" }, - "sheet_id": { + "calculation_id": { "type": "string", "format": "uuid" }, - "scoring_type": { + "status": { "type": "string", "enum": [ - "auto", - "boolean", - "numeric", - "custom", - null - ], - "nullable": true + "queued", + "running", + "completed", + "failed", + "cancelled" + ] }, - "columns": { + "version": { + "type": "integer" + } + }, + "additionalProperties": false + }, + "CancelTableSheetScorecardRequest": { + "type": "object", + "properties": { + "row_indices": { "type": "array", "items": { - "$ref": "#/components/schemas/TableSheetScoreColumn" + "type": "integer", + "minimum": 0 } }, - "aggregate_score": { - "type": "number", - "nullable": true - }, - "total_rows": { - "type": "integer" - }, - "scored_rows": { - "type": "integer" - }, - "excluded_rows": { - "type": "integer" - }, - "calculated_at": { - "type": "string", - "format": "date-time", - "nullable": true - }, - "score_matrix": { + "step_ids": { "type": "array", - "nullable": true, "items": { - "type": "array", - "items": { - "nullable": true, - "oneOf": [ - { - "type": "number" - }, - { - "type": "string" - }, - { - "$ref": "#/components/schemas/TableSheetScoreCellObject" - } - ] + "type": "string", + "format": "uuid" + } + } + }, + "additionalProperties": false + }, + "CancelTableSheetScorecardResponse": { + "type": "object", + "required": [ + "success", + "message", + "scorecard", + "cancelled_count", + "execution_ids", + "calculation_id" + ], + "properties": { + "success": { + "type": "boolean" + }, + "message": { + "type": "string" + }, + "scorecard": { + "type": "object", + "required": [ + "id" + ], + "properties": { + "id": { + "type": "string", + "format": "uuid" } - } + }, + "additionalProperties": true }, - "score_matrix_metrics": { + "cancelled_count": { + "type": "integer" + }, + "execution_ids": { "type": "array", - "nullable": true, "items": { - "$ref": "#/components/schemas/TableSheetScoreMetric" + "type": "string" } }, - "status": { - "type": "string", - "enum": [ - "queued", - "running", - "completed", - "failed", - null - ], - "nullable": true - }, - "score_calculation_error": { + "calculation_id": { "type": "string", + "format": "uuid", "nullable": true - }, - "has_custom_scoring": { + } + }, + "additionalProperties": true + }, + "GetTableSheetScorecardCalculationResponse": { + "type": "object", + "required": [ + "success", + "calculation", + "criterion_summaries", + "drift_summary" + ], + "properties": { + "success": { "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 + "calculation": { + "$ref": "#/components/schemas/TableSheetScorecardCalculation" }, - "aggregate": { + "criterion_summaries": { "type": "object", + "nullable": true, "additionalProperties": true }, - "per_column": { + "drift_summary": { "type": "object", + "nullable": true, "additionalProperties": true } }, - "additionalProperties": false + "additionalProperties": true }, - "ConfigureTableSheetScoreRequest": { + "TableSheetScorecardRowSummary": { "type": "object", - "title": "ConfigureTableSheetScoreRequest", + "required": [ + "row_index", + "aggregate_score", + "aggregate_verdict", + "drift_summary", + "stale_state", + "error_summary" + ], "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." + "row_index": { + "type": "integer", + "minimum": 0 }, - "column_names": { - "type": "array", - "nullable": true, - "items": { - "type": "string" - }, - "description": "Column titles to score. Titles must be unique in the sheet." + "aggregate_score": { + "type": "number", + "nullable": true }, - "code": { + "aggregate_verdict": { "type": "string", - "minLength": 1, - "maxLength": 50000, "nullable": true, - "description": "Custom scoring code." - }, - "code_language": { - "type": "string", "enum": [ - "PYTHON", - "JAVASCRIPT" - ], - "default": "PYTHON" + "pass", + "warn", + "fail", + "error", + "skipped", + null + ] }, - "true_values": { - "type": "array", + "drift_summary": { + "type": "object", "nullable": true, - "items": { - "type": "string" - }, - "description": "Values treated as true for boolean scoring." + "additionalProperties": true }, - "false_values": { - "type": "array", + "stale_state": { + "type": "object", "nullable": true, - "items": { - "type": "string" - }, - "description": "Values treated as false for boolean scoring." + "additionalProperties": true }, - "assertion_aggregation": { - "type": "string", - "enum": [ - "all", - "any", - "mean" - ], + "error_summary": { + "type": "object", "nullable": true, - "description": "Aggregation mode for assertion-style boolean scoring." + "additionalProperties": true } }, - "additionalProperties": false + "additionalProperties": true }, - "ConfigureTableSheetScoreResponse": { + "ListTableSheetScorecardRowsResponse": { "type": "object", - "title": "ConfigureTableSheetScoreResponse", "required": [ "success", - "message", - "score_configuration_id", - "status", - "requires_recalculation", - "version" + "calculation_id", + "rows", + "next_cursor" ], "properties": { "success": { "type": "boolean" }, - "message": { - "type": "string" - }, - "score_configuration_id": { + "calculation_id": { "type": "string", "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." + "rows": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TableSheetScorecardRowSummary" + } }, - "version": { - "type": "integer" + "next_cursor": { + "type": "integer", + "nullable": true } - } + }, + "additionalProperties": false }, - "RecalculateTableSheetScoreResponse": { + "GetTableSheetScorecardRowResponse": { "type": "object", - "title": "RecalculateTableSheetScoreResponse", "required": [ "success", - "score_configuration_id", - "status" + "id", + "calculation_id", + "scorecard_id", + "sheet_id", + "row_index", + "aggregate_score", + "aggregate_verdict", + "step_results", + "drift_summary", + "stale_state", + "error_summary", + "config_hash", + "input_hash", + "computed_at" ], "properties": { "success": { "type": "boolean" }, - "score_configuration_id": { + "id": { "type": "string", "format": "uuid" }, - "status": { + "calculation_id": { + "type": "string", + "format": "uuid" + }, + "scorecard_id": { + "type": "string", + "format": "uuid" + }, + "sheet_id": { + "type": "string", + "format": "uuid" + }, + "row_index": { + "type": "integer", + "minimum": 0 + }, + "aggregate_score": { + "type": "number", + "nullable": true + }, + "aggregate_verdict": { "type": "string", "nullable": true, "enum": [ - "queued", - "running", - "completed", - "failed", + "pass", + "warn", + "fail", + "error", + "skipped", null ] + }, + "step_results": { + "type": "object", + "additionalProperties": true + }, + "drift_summary": { + "type": "object", + "nullable": true, + "additionalProperties": true + }, + "stale_state": { + "type": "object", + "nullable": true, + "additionalProperties": true + }, + "error_summary": { + "type": "object", + "nullable": true, + "additionalProperties": true + }, + "config_hash": { + "type": "string", + "nullable": true + }, + "input_hash": { + "type": "string", + "nullable": true + }, + "computed_at": { + "type": "string", + "format": "date-time", + "nullable": true } - } + }, + "additionalProperties": true }, "ListTableSheetVersionsResponse": { "type": "object",