From 5278d5c3b6b94a2d2dbc75890b2ea07069025a2b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sat, 31 Oct 2026 04:59:04 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...lphaExtractions.JsonSerializerContext.g.cs | 109 + ...nRouter.AlphaExtractionsClient.Create.g.cs | 952 ++++ .../OpenRouter.AlphaExtractionsClient.g.cs | 187 + .../OpenRouter.ApiKeysClient.Create.g.cs | 2 +- .../OpenRouter.ApiKeysClient.Delete.g.cs | 37 + .../OpenRouter.ApiKeysClient.Get.g.cs | 37 + .../OpenRouter.ApiKeysClient.List.g.cs | 41 +- ...Router.IAlphaExtractionsClient.Create.g.cs | 76 + .../OpenRouter.IAlphaExtractionsClient.g.cs | 53 + .../OpenRouter.IApiKeysClient.Create.g.cs | 2 +- .../OpenRouter.IApiKeysClient.List.g.cs | 4 +- .../OpenRouter.IImagesClient.Generate.g.cs | 4 +- ...Router.IImagesClient.GenerateAsStream.g.cs | 4 +- .../OpenRouter.IModelsClient.ListForUser.g.cs | 4 +- .../OpenRouter.IOpenRouterClient.g.cs | 5 + ...IPresetsClient.CreatePresetsResponses.g.cs | 5 + .../OpenRouter.IResponsesClient.Send.g.cs | 5 + ...nRouter.IResponsesClient.SendAsStream.g.cs | 5 + .../OpenRouter.ImagesClient.Generate.g.cs | 4 +- ...nRouter.ImagesClient.GenerateAsStream.g.cs | 4 +- .../OpenRouter.JsonConverters.Answers2.g.cs | 177 + ....JsonConverters.ExtractionAssetFormat.g.cs | 48 + ...verters.ExtractionAssetFormatNullable.g.cs | 55 + ...er.JsonConverters.ExtractionAssetType.g.cs | 48 + ...onverters.ExtractionAssetTypeNullable.g.cs | 55 + ...Converters.ExtractionDateAnswerSource.g.cs | 48 + ...rs.ExtractionDateAnswerSourceNullable.g.cs | 55 + ...onConverters.ExtractionDateAnswerType.g.cs | 53 + ...ters.ExtractionDateAnswerTypeNullable.g.cs | 60 + ...sonConverters.ExtractionDateFieldType.g.cs | 53 + ...rters.ExtractionDateFieldTypeNullable.g.cs | 60 + ...erters.ExtractionDatetimeAnswerSource.g.cs | 48 + ...xtractionDatetimeAnswerSourceNullable.g.cs | 55 + ...nverters.ExtractionDatetimeAnswerType.g.cs | 53 + ....ExtractionDatetimeAnswerTypeNullable.g.cs | 60 + ...onverters.ExtractionDatetimeFieldType.g.cs | 53 + ...s.ExtractionDatetimeFieldTypeNullable.g.cs | 60 + ...erters.ExtractionDurationAnswerSource.g.cs | 48 + ...xtractionDurationAnswerSourceNullable.g.cs | 55 + ...nverters.ExtractionDurationAnswerType.g.cs | 53 + ....ExtractionDurationAnswerTypeNullable.g.cs | 60 + ...onverters.ExtractionDurationFieldType.g.cs | 53 + ...s.ExtractionDurationFieldTypeNullable.g.cs | 60 + ...erters.ExtractionEstimateAnswerSource.g.cs | 48 + ...xtractionEstimateAnswerSourceNullable.g.cs | 55 + ...nverters.ExtractionEstimateAnswerType.g.cs | 53 + ....ExtractionEstimateAnswerTypeNullable.g.cs | 60 + ...nverters.ExtractionEstimateFieldScale.g.cs | 48 + ....ExtractionEstimateFieldScaleNullable.g.cs | 55 + ...s.ExtractionEstimateFieldStepVariant2.g.cs | 53 + ...tionEstimateFieldStepVariant2Nullable.g.cs | 60 + ...s.ExtractionEstimateFieldStepVariant3.g.cs | 53 + ...tionEstimateFieldStepVariant3Nullable.g.cs | 60 + ...onverters.ExtractionEstimateFieldType.g.cs | 53 + ...s.ExtractionEstimateFieldTypeNullable.g.cs | 60 + ...erters.ExtractionForecastAnswerSource.g.cs | 48 + ...xtractionForecastAnswerSourceNullable.g.cs | 55 + ...nverters.ExtractionForecastAnswerType.g.cs | 53 + ....ExtractionForecastAnswerTypeNullable.g.cs | 60 + ...rters.ExtractionForecastFieldInterval.g.cs | 48 + ...tractionForecastFieldIntervalNullable.g.cs | 55 + ...nverters.ExtractionForecastFieldScale.g.cs | 48 + ....ExtractionForecastFieldScaleNullable.g.cs | 55 + ...s.ExtractionForecastFieldStepVariant2.g.cs | 53 + ...tionForecastFieldStepVariant2Nullable.g.cs | 60 + ...s.ExtractionForecastFieldStepVariant3.g.cs | 53 + ...tionForecastFieldStepVariant3Nullable.g.cs | 60 + ...onverters.ExtractionForecastFieldType.g.cs | 53 + ...s.ExtractionForecastFieldTypeNullable.g.cs | 60 + ...Converters.ExtractionListAnswerSource.g.cs | 48 + ...rs.ExtractionListAnswerSourceNullable.g.cs | 55 + ...onConverters.ExtractionListAnswerType.g.cs | 53 + ...ters.ExtractionListAnswerTypeNullable.g.cs | 60 + ...onConverters.ExtractionListFieldItems.g.cs | 48 + ...ters.ExtractionListFieldItemsNullable.g.cs | 55 + ...sonConverters.ExtractionListFieldType.g.cs | 53 + ...rters.ExtractionListFieldTypeNullable.g.cs | 60 + ...nverters.ExtractionNumberAnswerSource.g.cs | 48 + ....ExtractionNumberAnswerSourceNullable.g.cs | 55 + ...Converters.ExtractionNumberAnswerType.g.cs | 53 + ...rs.ExtractionNumberAnswerTypeNullable.g.cs | 60 + ...nConverters.ExtractionNumberFieldType.g.cs | 53 + ...ers.ExtractionNumberFieldTypeNullable.g.cs | 60 + ...Converters.ExtractionTextAnswerSource.g.cs | 48 + ...rs.ExtractionTextAnswerSourceNullable.g.cs | 55 + ...onConverters.ExtractionTextAnswerType.g.cs | 53 + ...ters.ExtractionTextAnswerTypeNullable.g.cs | 60 + ...sonConverters.ExtractionTextFieldType.g.cs | 53 + ...rters.ExtractionTextFieldTypeNullable.g.cs | 60 + ...Converters.ExtractionTimeAnswerSource.g.cs | 48 + ...rs.ExtractionTimeAnswerSourceNullable.g.cs | 55 + ...onConverters.ExtractionTimeAnswerType.g.cs | 53 + ...ters.ExtractionTimeAnswerTypeNullable.g.cs | 60 + ...sonConverters.ExtractionTimeFieldType.g.cs | 53 + ...rters.ExtractionTimeFieldTypeNullable.g.cs | 60 + ...actionsRequestFieldsDiscriminatorType.g.cs | 53 + ...equestFieldsDiscriminatorTypeNullable.g.cs | 60 + ...tionsResponseAnswersDiscriminatorType.g.cs | 53 + ...ponseAnswersDiscriminatorTypeNullable.g.cs | 60 + .../OpenRouter.JsonConverters.Fields.g.cs | 177 + ...nsesResultVariant2AccessProgramsCyber.g.cs | 48 + ...ltVariant2AccessProgramsCyberNullable.g.cs | 55 + ...uter.JsonConverters.PublicZdrEndpoint.g.cs | 116 + ...s.ResponsesRequestAccessProgramsCyber.g.cs | 48 + ...sesRequestAccessProgramsCyberNullable.g.cs | 55 + .../OpenRouter.JsonSerializerContext.g.cs | 2006 ++++++--- ...OpenRouter.JsonSerializerContextTypes.g.cs | 3848 +++++++++-------- ...s => OpenRouter.Models.Answers2.Json.g.cs} | 26 +- .../Generated/OpenRouter.Models.Answers2.g.cs | 884 ++++ .../OpenRouter.Models.CreateKeysRequest.g.cs | 4 +- ... => OpenRouter.Models.Decisions.Json.g.cs} | 26 +- ....g.cs => OpenRouter.Models.Decisions.g.cs} | 10 +- ...enRouter.Models.DecisionsLatency.Json.g.cs | 141 + ...> OpenRouter.Models.DecisionsLatency.g.cs} | 2 +- ...outer.Models.DecisionsThroughput.Json.g.cs | 141 + ...penRouter.Models.DecisionsThroughput.g.cs} | 2 +- .../OpenRouter.Models.Embeddings.Json.g.cs | 141 + ...g.cs => OpenRouter.Models.Embeddings.g.cs} | 10 +- ...nRouter.Models.EmbeddingsLatency.Json.g.cs | 141 + ... OpenRouter.Models.EmbeddingsLatency.g.cs} | 2 +- ...uter.Models.EmbeddingsThroughput.Json.g.cs | 141 + ...enRouter.Models.EmbeddingsThroughput.g.cs} | 2 +- ...penRouter.Models.ExtractionAsset.Json.g.cs | 141 + .../OpenRouter.Models.ExtractionAsset.g.cs | 66 + ...enRouter.Models.ExtractionAssetFormat.g.cs | 134 + ...OpenRouter.Models.ExtractionAssetType.g.cs | 120 + ...uter.Models.ExtractionDateAnswer.Json.g.cs | 141 + ...penRouter.Models.ExtractionDateAnswer.g.cs | 119 + ...ter.Models.ExtractionDateAnswerSource.g.cs | 127 + ...outer.Models.ExtractionDateAnswerType.g.cs | 45 + ...outer.Models.ExtractionDateField.Json.g.cs | 141 + ...OpenRouter.Models.ExtractionDateField.g.cs | 67 + ...Router.Models.ExtractionDateFieldType.g.cs | 45 + ....Models.ExtractionDatetimeAnswer.Json.g.cs | 141 + ...outer.Models.ExtractionDatetimeAnswer.g.cs | 119 + ...Models.ExtractionDatetimeAnswerSource.g.cs | 127 + ...r.Models.ExtractionDatetimeAnswerType.g.cs | 45 + ...r.Models.ExtractionDatetimeField.Json.g.cs | 141 + ...Router.Models.ExtractionDatetimeField.g.cs | 67 + ...er.Models.ExtractionDatetimeFieldType.g.cs | 45 + ....Models.ExtractionDurationAnswer.Json.g.cs | 141 + ...outer.Models.ExtractionDurationAnswer.g.cs | 130 + ...Models.ExtractionDurationAnswerSource.g.cs | 127 + ...r.Models.ExtractionDurationAnswerType.g.cs | 45 + ...r.Models.ExtractionDurationField.Json.g.cs | 141 + ...Router.Models.ExtractionDurationField.g.cs | 98 + ...er.Models.ExtractionDurationFieldType.g.cs | 45 + ....Models.ExtractionEstimateAnswer.Json.g.cs | 141 + ...outer.Models.ExtractionEstimateAnswer.g.cs | 183 + ...Models.ExtractionEstimateAnswerSource.g.cs | 127 + ...r.Models.ExtractionEstimateAnswerType.g.cs | 45 + ....Models.ExtractionEstimateField.Json.g.cs} | 26 +- ...Router.Models.ExtractionEstimateField.g.cs | 118 + ...r.Models.ExtractionEstimateFieldScale.g.cs | 120 + ...s.ExtractionEstimateFieldStepVariant2.g.cs | 45 + ...s.ExtractionEstimateFieldStepVariant3.g.cs | 45 + ...er.Models.ExtractionEstimateFieldType.g.cs | 45 + ....Models.ExtractionForecastAnswer.Json.g.cs | 141 + ...outer.Models.ExtractionForecastAnswer.g.cs | 153 + ...Models.ExtractionForecastAnswerSource.g.cs | 127 + ...r.Models.ExtractionForecastAnswerType.g.cs | 45 + ...r.Models.ExtractionForecastField.Json.g.cs | 141 + ...Router.Models.ExtractionForecastField.g.cs | 141 + ...odels.ExtractionForecastFieldInterval.g.cs | 162 + ...r.Models.ExtractionForecastFieldScale.g.cs | 120 + ...s.ExtractionForecastFieldStepVariant2.g.cs | 45 + ...s.ExtractionForecastFieldStepVariant3.g.cs | 45 + ...er.Models.ExtractionForecastFieldType.g.cs | 45 + ...er.Models.ExtractionForecastStep.Json.g.cs | 141 + ...nRouter.Models.ExtractionForecastStep.g.cs | 118 + ...uter.Models.ExtractionListAnswer.Json.g.cs | 141 + ...penRouter.Models.ExtractionListAnswer.g.cs | 128 + ...ter.Models.ExtractionListAnswerSource.g.cs | 127 + ...outer.Models.ExtractionListAnswerType.g.cs | 45 + ...outer.Models.ExtractionListField.Json.g.cs | 141 + ...OpenRouter.Models.ExtractionListField.g.cs | 89 + ...outer.Models.ExtractionListFieldItems.g.cs | 127 + ...Router.Models.ExtractionListFieldType.g.cs | 45 + ...er.Models.ExtractionNumberAnswer.Json.g.cs | 141 + ...nRouter.Models.ExtractionNumberAnswer.g.cs | 119 + ...r.Models.ExtractionNumberAnswerSource.g.cs | 127 + ...ter.Models.ExtractionNumberAnswerType.g.cs | 45 + ...ter.Models.ExtractionNumberField.Json.g.cs | 141 + ...enRouter.Models.ExtractionNumberField.g.cs | 96 + ...uter.Models.ExtractionNumberFieldType.g.cs | 45 + ...uter.Models.ExtractionTextAnswer.Json.g.cs | 141 + ...penRouter.Models.ExtractionTextAnswer.g.cs | 119 + ...ter.Models.ExtractionTextAnswerSource.g.cs | 127 + ...outer.Models.ExtractionTextAnswerType.g.cs | 45 + ...outer.Models.ExtractionTextField.Json.g.cs | 141 + ...OpenRouter.Models.ExtractionTextField.g.cs | 67 + ...Router.Models.ExtractionTextFieldType.g.cs | 45 + ...uter.Models.ExtractionTimeAnswer.Json.g.cs | 141 + ...penRouter.Models.ExtractionTimeAnswer.g.cs | 119 + ...ter.Models.ExtractionTimeAnswerSource.g.cs | 127 + ...outer.Models.ExtractionTimeAnswerType.g.cs | 45 + ...outer.Models.ExtractionTimeField.Json.g.cs | 141 + ...OpenRouter.Models.ExtractionTimeField.g.cs | 67 + ...Router.Models.ExtractionTimeFieldType.g.cs | 45 + ...Router.Models.ExtractionsRequest.Json.g.cs | 141 + .../OpenRouter.Models.ExtractionsRequest.g.cs | 138 + ....Models.ExtractionsRequestAssets.Json.g.cs | 141 + ...outer.Models.ExtractionsRequestAssets.g.cs | 19 + ....Models.ExtractionsRequestFields.Json.g.cs | 141 + ...outer.Models.ExtractionsRequestFields.g.cs | 19 + ...ctionsRequestFieldsDiscriminator.Json.g.cs | 141 + ...ExtractionsRequestFieldsDiscriminator.g.cs | 45 + ...actionsRequestFieldsDiscriminatorType.g.cs | 93 + ...odels.ExtractionsRequestProvider.Json.g.cs | 141 + ...ter.Models.ExtractionsRequestProvider.g.cs | 19 + ...outer.Models.ExtractionsResponse.Json.g.cs | 141 + ...OpenRouter.Models.ExtractionsResponse.g.cs | 105 + ...odels.ExtractionsResponseAnswers.Json.g.cs | 141 + ...ter.Models.ExtractionsResponseAnswers.g.cs | 19 + ...onsResponseAnswersDiscriminator.Json.g.cs} | 26 +- ...tractionsResponseAnswersDiscriminator.g.cs | 45 + ...tionsResponseAnswersDiscriminatorType.g.cs | 93 + ...enRouter.Models.ExtractionsUsage.Json.g.cs | 141 + .../OpenRouter.Models.ExtractionsUsage.g.cs | 102 + .../OpenRouter.Models.Fields.Json.g.cs | 141 + .../Generated/OpenRouter.Models.Fields.g.cs | 884 ++++ ....Models.GenerationResponseDataApiType.g.cs | 7 + ...penRouter.Models.ImageGeneration.Json.g.cs | 141 + ...=> OpenRouter.Models.ImageGeneration.g.cs} | 10 +- ...er.Models.ImageGenerationLatency.Json.g.cs | 141 + ...Router.Models.ImageGenerationLatency.g.cs} | 2 +- ...nRouter.Models.ImageGenerationRequest.g.cs | 8 +- ...Models.ImageGenerationThroughput.Json.g.cs | 141 + ...ter.Models.ImageGenerationThroughput.g.cs} | 2 +- ...outer.Models.ListEndpointsZdrResponse.g.cs | 6 +- ...penRouter.Models.ListModelsUserClient.g.cs | 8 +- .../Generated/OpenRouter.Models.Model.g.cs | 15 + .../OpenRouter.Models.ModelResponse.g.cs | 2 +- .../OpenRouter.Models.NativeTools.Json.g.cs | 141 + ....cs => OpenRouter.Models.NativeTools.g.cs} | 10 +- ...er.Models.OpenResponsesResultVariant2.g.cs | 16 + ...sesResultVariant2AccessPrograms.Json.g.cs} | 26 +- ...ResponsesResultVariant2AccessPrograms.g.cs | 48 + ...nsesResultVariant2AccessProgramsCyber.g.cs | 127 + ...ter.Models.PerfLast30mByWorkload.Json.g.cs | 141 + ...nRouter.Models.PerfLast30mByWorkload.g.cs} | 46 +- .../OpenRouter.Models.Pricing.Json.g.cs | 141 + ...ng.g.cs => OpenRouter.Models.Pricing.g.cs} | 10 +- .../OpenRouter.Models.ProviderOptions.g.cs | 2 +- ...OpenRouter.Models.ProviderPreferences.g.cs | 4 +- .../OpenRouter.Models.PublicEndpoint.g.cs | 12 +- ...ntPerfLast30mByWorkloadDecisions.Json.g.cs | 141 - ...ndpointPerfLast30mByWorkloadDecisions.g.cs | 68 - ...ast30mByWorkloadDecisionsLatency.Json.g.cs | 141 - ...PerfLast30mByWorkloadDecisionsLatency.g.cs | 19 - ...30mByWorkloadDecisionsThroughput.Json.g.cs | 141 - ...fLast30mByWorkloadDecisionsThroughput.g.cs | 19 - ...tPerfLast30mByWorkloadEmbeddings.Json.g.cs | 141 - ...dpointPerfLast30mByWorkloadEmbeddings.g.cs | 68 - ...st30mByWorkloadEmbeddingsLatency.Json.g.cs | 141 - ...erfLast30mByWorkloadEmbeddingsLatency.g.cs | 19 - ...0mByWorkloadEmbeddingsThroughput.Json.g.cs | 141 - ...Last30mByWorkloadEmbeddingsThroughput.g.cs | 19 - ...Last30mByWorkloadImageGeneration.Json.g.cs | 141 - ...tPerfLast30mByWorkloadImageGeneration.g.cs | 68 - ...ByWorkloadImageGenerationLatency.Json.g.cs | 141 - ...st30mByWorkloadImageGenerationLatency.g.cs | 19 - ...orkloadImageGenerationThroughput.Json.g.cs | 141 - ...0mByWorkloadImageGenerationThroughput.g.cs | 19 - ...rfLast30mByWorkloadRerankLatency.Json.g.cs | 141 - ...ast30mByWorkloadRerankThroughput.Json.g.cs | 141 - ...tPerfLast30mByWorkloadSttLatency.Json.g.cs | 141 - ...rfLast30mByWorkloadSttThroughput.Json.g.cs | 141 - ...fLast30mByWorkloadTextGeneration.Json.g.cs | 141 - ...ntPerfLast30mByWorkloadTextGeneration.g.cs | 68 - ...mByWorkloadTextGenerationLatency.Json.g.cs | 141 - ...ast30mByWorkloadTextGenerationLatency.g.cs | 19 - ...WorkloadTextGenerationThroughput.Json.g.cs | 141 - ...30mByWorkloadTextGenerationThroughput.g.cs | 19 - ...tPerfLast30mByWorkloadTtsLatency.Json.g.cs | 141 - ...rfLast30mByWorkloadTtsThroughput.Json.g.cs | 141 - ...fLast30mByWorkloadUnknownLatency.Json.g.cs | 141 - ...st30mByWorkloadUnknownThroughput.Json.g.cs | 141 - ...Last30mByWorkloadVideoGeneration.Json.g.cs | 141 - ...tPerfLast30mByWorkloadVideoGeneration.g.cs | 68 - ...ByWorkloadVideoGenerationLatency.Json.g.cs | 141 - ...st30mByWorkloadVideoGenerationLatency.g.cs | 19 - ...orkloadVideoGenerationThroughput.Json.g.cs | 141 - ...0mByWorkloadVideoGenerationThroughput.g.cs | 19 - ...Router.Models.PublicZdrEndpoint.Json.g.cs} | 26 +- .../OpenRouter.Models.PublicZdrEndpoint.g.cs | 297 ++ ...odels.PublicZdrEndpointVariant2.Json.g.cs} | 26 +- ...uter.Models.PublicZdrEndpointVariant2.g.cs | 50 + .../OpenRouter.Models.Rerank.Json.g.cs | 141 + ...own.g.cs => OpenRouter.Models.Rerank.g.cs} | 10 +- .../OpenRouter.Models.RerankLatency.Json.g.cs | 141 + ...s => OpenRouter.Models.RerankLatency.g.cs} | 2 +- ...enRouter.Models.RerankThroughput.Json.g.cs | 141 + ...> OpenRouter.Models.RerankThroughput.g.cs} | 2 +- .../OpenRouter.Models.ResponsesRequest.g.cs | 14 + ...s.ResponsesRequestAccessPrograms.Json.g.cs | 141 + ...Models.ResponsesRequestAccessPrograms.g.cs | 46 + ...s.ResponsesRequestAccessProgramsCyber.g.cs | 127 + .../OpenRouter.Models.STTRequestProvider.g.cs | 4 +- ...enRouter.Models.SpeechRequestProvider.g.cs | 4 +- .../Generated/OpenRouter.Models.Stt.Json.g.cs | 141 + .../Generated/OpenRouter.Models.Stt.g.cs | 68 + .../OpenRouter.Models.SttLatency.Json.g.cs | 141 + .../OpenRouter.Models.SttLatency.g.cs | 19 + .../OpenRouter.Models.SttThroughput.Json.g.cs | 141 + .../OpenRouter.Models.SttThroughput.g.cs | 19 + ...OpenRouter.Models.TextGeneration.Json.g.cs | 141 + .../OpenRouter.Models.TextGeneration.g.cs | 68 + ...ter.Models.TextGenerationLatency.Json.g.cs | 141 + ...enRouter.Models.TextGenerationLatency.g.cs | 19 + ....Models.TextGenerationThroughput.Json.g.cs | 141 + ...outer.Models.TextGenerationThroughput.g.cs | 19 + .../Generated/OpenRouter.Models.Tts.Json.g.cs | 141 + .../Generated/OpenRouter.Models.Tts.g.cs | 68 + .../OpenRouter.Models.TtsLatency.Json.g.cs | 141 + .../OpenRouter.Models.TtsLatency.g.cs | 19 + .../OpenRouter.Models.TtsThroughput.Json.g.cs | 141 + .../OpenRouter.Models.TtsThroughput.g.cs | 19 + .../OpenRouter.Models.Unknown.Json.g.cs | 141 + .../Generated/OpenRouter.Models.Unknown.g.cs | 68 + ...OpenRouter.Models.UnknownLatency.Json.g.cs | 141 + .../OpenRouter.Models.UnknownLatency.g.cs | 19 + ...nRouter.Models.UnknownThroughput.Json.g.cs | 141 + .../OpenRouter.Models.UnknownThroughput.g.cs | 19 + ...penRouter.Models.VideoGeneration.Json.g.cs | 141 + .../OpenRouter.Models.VideoGeneration.g.cs | 68 + ...er.Models.VideoGenerationLatency.Json.g.cs | 141 + ...nRouter.Models.VideoGenerationLatency.g.cs | 19 + ...Models.VideoGenerationThroughput.Json.g.cs | 141 + ...uter.Models.VideoGenerationThroughput.g.cs | 19 + .../OpenRouter.ModelsClient.ListForUser.g.cs | 4 +- .../OpenRouter.OpenRouterClient.g.cs | 11 + ....PresetsClient.CreatePresetsResponses.g.cs | 6 + .../OpenRouter.ResponsesClient.Send.g.cs | 7 + ...enRouter.ResponsesClient.SendAsStream.g.cs | 7 + .../Generated/autosdk.generated-examples.json | 301 +- src/libs/OpenRouter/openapi.yaml | 3417 ++++++++++++--- 337 files changed, 30036 insertions(+), 7194 deletions(-) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.AlphaExtractions.JsonSerializerContext.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.AlphaExtractionsClient.Create.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.AlphaExtractionsClient.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.IAlphaExtractionsClient.Create.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.IAlphaExtractionsClient.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.Answers2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionAssetFormat.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionAssetFormatNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionAssetType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionAssetTypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDateAnswerSource.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDateAnswerSourceNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDateAnswerType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDateAnswerTypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDateFieldType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDateFieldTypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDatetimeAnswerSource.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDatetimeAnswerSourceNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDatetimeAnswerType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDatetimeAnswerTypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDatetimeFieldType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDatetimeFieldTypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDurationAnswerSource.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDurationAnswerSourceNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDurationAnswerType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDurationAnswerTypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDurationFieldType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDurationFieldTypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateAnswerSource.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateAnswerSourceNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateAnswerType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateAnswerTypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldScale.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldScaleNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldStepVariant2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldStepVariant2Nullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldStepVariant3.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldStepVariant3Nullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldTypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastAnswerSource.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastAnswerSourceNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastAnswerType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastAnswerTypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldInterval.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldIntervalNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldScale.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldScaleNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldStepVariant2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldStepVariant2Nullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldStepVariant3.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldStepVariant3Nullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldTypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListAnswerSource.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListAnswerSourceNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListAnswerType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListAnswerTypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListFieldItems.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListFieldItemsNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListFieldType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListFieldTypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionNumberAnswerSource.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionNumberAnswerSourceNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionNumberAnswerType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionNumberAnswerTypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionNumberFieldType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionNumberFieldTypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTextAnswerSource.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTextAnswerSourceNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTextAnswerType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTextAnswerTypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTextFieldType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTextFieldTypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTimeAnswerSource.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTimeAnswerSourceNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTimeAnswerType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTimeAnswerTypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTimeFieldType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTimeFieldTypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionsRequestFieldsDiscriminatorType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionsRequestFieldsDiscriminatorTypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionsResponseAnswersDiscriminatorType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionsResponseAnswersDiscriminatorTypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.Fields.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenResponsesResultVariant2AccessProgramsCyber.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenResponsesResultVariant2AccessProgramsCyberNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PublicZdrEndpoint.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestAccessProgramsCyber.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestAccessProgramsCyberNullable.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.PublicEndpointPerfLast30mByWorkload.Json.g.cs => OpenRouter.Models.Answers2.Json.g.cs} (85%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.Answers2.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadTts.Json.g.cs => OpenRouter.Models.Decisions.Json.g.cs} (85%) rename src/libs/OpenRouter/Generated/{OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadTts.g.cs => OpenRouter.Models.Decisions.g.cs} (86%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.DecisionsLatency.Json.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadTtsLatency.g.cs => OpenRouter.Models.DecisionsLatency.g.cs} (90%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.DecisionsThroughput.Json.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadSttThroughput.g.cs => OpenRouter.Models.DecisionsThroughput.g.cs} (89%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.Embeddings.Json.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadStt.g.cs => OpenRouter.Models.Embeddings.g.cs} (86%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.EmbeddingsLatency.Json.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadSttLatency.g.cs => OpenRouter.Models.EmbeddingsLatency.g.cs} (90%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.EmbeddingsThroughput.Json.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadTtsThroughput.g.cs => OpenRouter.Models.EmbeddingsThroughput.g.cs} (89%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionAsset.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionAsset.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionAssetFormat.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionAssetType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDateAnswer.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDateAnswer.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDateAnswerSource.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDateAnswerType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDateField.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDateField.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDateFieldType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDatetimeAnswer.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDatetimeAnswer.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDatetimeAnswerSource.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDatetimeAnswerType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDatetimeField.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDatetimeField.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDatetimeFieldType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDurationAnswer.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDurationAnswer.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDurationAnswerSource.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDurationAnswerType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDurationField.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDurationField.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDurationFieldType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionEstimateAnswer.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionEstimateAnswer.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionEstimateAnswerSource.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionEstimateAnswerType.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadUnknown.Json.g.cs => OpenRouter.Models.ExtractionEstimateField.Json.g.cs} (85%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionEstimateField.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionEstimateFieldScale.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionEstimateFieldStepVariant2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionEstimateFieldStepVariant3.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionEstimateFieldType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastAnswer.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastAnswer.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastAnswerSource.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastAnswerType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastField.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastField.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastFieldInterval.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastFieldScale.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastFieldStepVariant2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastFieldStepVariant3.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastFieldType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastStep.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastStep.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionListAnswer.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionListAnswer.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionListAnswerSource.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionListAnswerType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionListField.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionListField.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionListFieldItems.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionListFieldType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionNumberAnswer.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionNumberAnswer.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionNumberAnswerSource.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionNumberAnswerType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionNumberField.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionNumberField.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionNumberFieldType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTextAnswer.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTextAnswer.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTextAnswerSource.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTextAnswerType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTextField.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTextField.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTextFieldType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTimeAnswer.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTimeAnswer.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTimeAnswerSource.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTimeAnswerType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTimeField.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTimeField.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTimeFieldType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsRequest.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsRequest.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsRequestAssets.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsRequestAssets.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsRequestFields.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsRequestFields.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsRequestFieldsDiscriminator.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsRequestFieldsDiscriminator.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsRequestFieldsDiscriminatorType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsRequestProvider.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsRequestProvider.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsResponse.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsResponse.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsResponseAnswers.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsResponseAnswers.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadStt.Json.g.cs => OpenRouter.Models.ExtractionsResponseAnswersDiscriminator.Json.g.cs} (85%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsResponseAnswersDiscriminator.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsResponseAnswersDiscriminatorType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsUsage.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsUsage.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.Fields.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.Fields.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGeneration.Json.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadRerank.g.cs => OpenRouter.Models.ImageGeneration.g.cs} (85%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationLatency.Json.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadRerankLatency.g.cs => OpenRouter.Models.ImageGenerationLatency.g.cs} (89%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationThroughput.Json.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadRerankThroughput.g.cs => OpenRouter.Models.ImageGenerationThroughput.g.cs} (89%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.NativeTools.Json.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.PublicEndpointNativeTools2.g.cs => OpenRouter.Models.NativeTools.g.cs} (81%) rename src/libs/OpenRouter/Generated/{OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadRerank.Json.g.cs => OpenRouter.Models.OpenResponsesResultVariant2AccessPrograms.Json.g.cs} (85%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.OpenResponsesResultVariant2AccessPrograms.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.OpenResponsesResultVariant2AccessProgramsCyber.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.PerfLast30mByWorkload.Json.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.PublicEndpointPerfLast30mByWorkload.g.cs => OpenRouter.Models.PerfLast30mByWorkload.g.cs} (58%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.Pricing.Json.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.PublicEndpointPricing.g.cs => OpenRouter.Models.Pricing.g.cs} (96%) delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadDecisions.Json.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadDecisions.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadDecisionsLatency.Json.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadDecisionsLatency.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadDecisionsThroughput.Json.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadDecisionsThroughput.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadEmbeddings.Json.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadEmbeddings.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadEmbeddingsLatency.Json.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadEmbeddingsLatency.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadEmbeddingsThroughput.Json.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadEmbeddingsThroughput.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadImageGeneration.Json.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadImageGeneration.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadImageGenerationLatency.Json.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadImageGenerationLatency.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadImageGenerationThroughput.Json.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadImageGenerationThroughput.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadRerankLatency.Json.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadRerankThroughput.Json.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadSttLatency.Json.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadSttThroughput.Json.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadTextGeneration.Json.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadTextGeneration.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadTextGenerationLatency.Json.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadTextGenerationLatency.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadTextGenerationThroughput.Json.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadTextGenerationThroughput.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadTtsLatency.Json.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadTtsThroughput.Json.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadUnknownLatency.Json.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadUnknownThroughput.Json.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadVideoGeneration.Json.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadVideoGeneration.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadVideoGenerationLatency.Json.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadVideoGenerationLatency.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadVideoGenerationThroughput.Json.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadVideoGenerationThroughput.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.PublicEndpointPricing.Json.g.cs => OpenRouter.Models.PublicZdrEndpoint.Json.g.cs} (88%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.PublicZdrEndpoint.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.PublicEndpointNativeTools2.Json.g.cs => OpenRouter.Models.PublicZdrEndpointVariant2.Json.g.cs} (88%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.PublicZdrEndpointVariant2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.Rerank.Json.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadUnknown.g.cs => OpenRouter.Models.Rerank.g.cs} (85%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.RerankLatency.Json.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadUnknownLatency.g.cs => OpenRouter.Models.RerankLatency.g.cs} (89%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.RerankThroughput.Json.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadUnknownThroughput.g.cs => OpenRouter.Models.RerankThroughput.g.cs} (89%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestAccessPrograms.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestAccessPrograms.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestAccessProgramsCyber.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.Stt.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.Stt.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.SttLatency.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.SttLatency.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.SttThroughput.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.SttThroughput.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.TextGeneration.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.TextGeneration.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.TextGenerationLatency.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.TextGenerationLatency.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.TextGenerationThroughput.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.TextGenerationThroughput.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.Tts.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.Tts.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.TtsLatency.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.TtsLatency.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.TtsThroughput.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.TtsThroughput.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.Unknown.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.Unknown.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UnknownLatency.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UnknownLatency.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UnknownThroughput.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UnknownThroughput.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGeneration.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGeneration.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationLatency.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationLatency.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationThroughput.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationThroughput.g.cs diff --git a/src/libs/OpenRouter/Generated/OpenRouter.AlphaExtractions.JsonSerializerContext.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.AlphaExtractions.JsonSerializerContext.g.cs new file mode 100644 index 000000000..761616e3c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.AlphaExtractions.JsonSerializerContext.g.cs @@ -0,0 +1,109 @@ + +#nullable enable + +namespace OpenRouter +{ /// + /// + /// + public sealed partial class AlphaExtractionsSourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext + { + private static readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver Resolver = new LazyChunkResolver(); + + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + internal static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver TypeInfoResolver => Resolver; + + + private static readonly global::System.Text.Json.JsonSerializerOptions DefaultOptions = CreateDefaultOptions(); + + /// + /// + /// + public static AlphaExtractionsSourceGenerationContext Default { get; } = new(DefaultOptions); + + private AlphaExtractionsSourceGenerationContext(global::System.Text.Json.JsonSerializerOptions options) + : base(options) + { + } + + /// + protected override global::System.Text.Json.JsonSerializerOptions? GeneratedSerializerOptions => DefaultOptions; + + /// + public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) + { + return Resolver.GetTypeInfo(type, Options); + } + + /// + /// Adds this package's converters to . + /// + /// + /// A converter has to be on the options a chained resolver builds its JsonTypeInfo against, + /// and a context resolves types from every package below it. Each package contributes only + /// what it owns and calls down the chain for the rest, so the family's converter table is + /// written once rather than copied into all of them. + /// + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) + { + global::OpenRouter.SourceGenerationContext.AddConverters(options); + } + + private static global::System.Text.Json.JsonSerializerOptions CreateDefaultOptions() + { + var options = new global::System.Text.Json.JsonSerializerOptions + { + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, + TypeInfoResolver = Resolver, + }; + AddConverters(options); + + return options; + } + + private sealed class LazyChunkResolver : global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver + { + private readonly object _gate = new(); + private readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[] _resolvers = new global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[1]; + + public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo( + global::System.Type type, + global::System.Text.Json.JsonSerializerOptions options) + { + for (var index = 0; index < _resolvers.Length; index++) + { + var typeInfo = GetResolver(index).GetTypeInfo(type, options); + if (typeInfo is not null) + { + return typeInfo; + } + } + + return null; + } + + private global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver GetResolver(int index) + { + var resolver = global::System.Threading.Volatile.Read(ref _resolvers[index]); + if (resolver is not null) + { + return resolver; + } + + lock (_gate) + { + return _resolvers[index] ??= CreateResolver(index); + } + } + + private static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver CreateResolver(int index) + { + return index switch + { + 0 => global::OpenRouter.SourceGenerationContext.TypeInfoResolver, + _ => throw new global::System.ArgumentOutOfRangeException(nameof(index)), + }; + } + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.AlphaExtractionsClient.Create.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.AlphaExtractionsClient.Create.g.cs new file mode 100644 index 000000000..4f1b77f58 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.AlphaExtractionsClient.Create.g.cs @@ -0,0 +1,952 @@ + +#nullable enable + +namespace OpenRouter +{ + public partial class AlphaExtractionsClient + { + + private static readonly global::OpenRouter.AutoSDKServer[] s_CreateServers = new global::OpenRouter.AutoSDKServer[] + { new global::OpenRouter.AutoSDKServer( + id: "https-openrouter-ai", + name: "openrouter.ai", + url: "https://openrouter.ai/", + description: ""), + }; + + + private static readonly global::OpenRouter.EndPointSecurityRequirement s_CreateSecurityRequirement0 = + new global::OpenRouter.EndPointSecurityRequirement + { + Authorizations = new global::OpenRouter.EndPointAuthorizationRequirement[] + { new global::OpenRouter.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "Bearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::OpenRouter.EndPointSecurityRequirement[] s_CreateSecurityRequirements = + new global::OpenRouter.EndPointSecurityRequirement[] + { s_CreateSecurityRequirement0, + }; + partial void PrepareCreateArguments( + global::System.Net.Http.HttpClient httpClient, + global::OpenRouter.ExtractionsRequest request); + partial void PrepareCreateRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::OpenRouter.ExtractionsRequest request); + partial void ProcessCreateResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessCreateResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Submit an Extractions request
+ /// Extracts, computes, estimates or forecasts typed fields from a state string and image assets using an extraction-style System One model. Alpha: the shape is not stable. + ///
+ /// + /// 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 CreateAsync( + + global::OpenRouter.ExtractionsRequest request, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await CreateAsResponseAsync( + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Submit an Extractions request
+ /// Extracts, computes, estimates or forecasts typed fields from a state string and image assets using an extraction-style System One model. Alpha: the shape is not stable. + ///
+ /// + /// 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> CreateAsResponseAsync( + + global::OpenRouter.ExtractionsRequest request, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareCreateArguments( + httpClient: HttpClient, + request: request); + + + var __authorizations = global::OpenRouter.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateSecurityRequirements, + operationName: "CreateAsync"); + + using var __timeoutCancellationTokenSource = global::OpenRouter.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::OpenRouter.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::OpenRouter.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::OpenRouter.PathBuilder( + path: "/api/alpha/extractions", + baseUri: ResolveBaseUri( + servers: s_CreateServers, + defaultBaseUrl: "https://openrouter.ai/")); + var __path = __pathBuilder.ToString(); + __path = global::OpenRouter.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::OpenRouter.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareCreateRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + 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::OpenRouter.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "Create", + methodName: "CreateAsync", + pathTemplate: "\"/api/alpha/extractions\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + 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::OpenRouter.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "Create", + methodName: "CreateAsync", + pathTemplate: "\"/api/alpha/extractions\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + 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::OpenRouter.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::OpenRouter.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::OpenRouter.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "Create", + methodName: "CreateAsync", + pathTemplate: "\"/api/alpha/extractions\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + 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::OpenRouter.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); + ProcessCreateResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "Create", + methodName: "CreateAsync", + pathTemplate: "\"/api/alpha/extractions\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + 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::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "Create", + methodName: "CreateAsync", + pathTemplate: "\"/api/alpha/extractions\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + 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); + } + // Bad Request - Invalid request parameters or malformed input + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::OpenRouter.BadRequestResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::OpenRouter.BadRequestResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::OpenRouter.BadRequestResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::OpenRouter.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)); + } + // Unauthorized - Authentication required or invalid credentials + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::OpenRouter.UnauthorizedResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::OpenRouter.UnauthorizedResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::OpenRouter.UnauthorizedResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::OpenRouter.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)); + } + // Payment Required - Insufficient credits or quota to complete request + if ((int)__response.StatusCode == 402) + { + string? __content_402 = null; + global::System.Exception? __exception_402 = null; + global::OpenRouter.PaymentRequiredResponse? __value_402 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_402 = global::OpenRouter.PaymentRequiredResponse.FromJson(__content_402, JsonSerializerContext); + } + else + { + __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_402 = global::OpenRouter.PaymentRequiredResponse.FromJson(__content_402, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_402 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_402, + responseBody: __content_402, + responseObject: __value_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Forbidden - Authentication successful but insufficient permissions + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::OpenRouter.ForbiddenResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::OpenRouter.ForbiddenResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::OpenRouter.ForbiddenResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Not Found - Resource does not exist + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::OpenRouter.NotFoundResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::OpenRouter.NotFoundResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::OpenRouter.NotFoundResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::OpenRouter.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)); + } + // Payload Too Large - Request payload exceeds size limits + if ((int)__response.StatusCode == 413) + { + string? __content_413 = null; + global::System.Exception? __exception_413 = null; + global::OpenRouter.PayloadTooLargeResponse? __value_413 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_413 = global::OpenRouter.PayloadTooLargeResponse.FromJson(__content_413, JsonSerializerContext); + } + else + { + __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_413 = global::OpenRouter.PayloadTooLargeResponse.FromJson(__content_413, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_413 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_413, + responseBody: __content_413, + responseObject: __value_413, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too Many Requests - Rate limit exceeded + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::OpenRouter.TooManyRequestsResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::OpenRouter.TooManyRequestsResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::OpenRouter.TooManyRequestsResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Internal Server Error - Unexpected server error + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::OpenRouter.InternalServerResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::OpenRouter.InternalServerResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::OpenRouter.InternalServerResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Bad Gateway - Provider/upstream API failure + if ((int)__response.StatusCode == 502) + { + string? __content_502 = null; + global::System.Exception? __exception_502 = null; + global::OpenRouter.BadGatewayResponse? __value_502 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_502 = global::OpenRouter.BadGatewayResponse.FromJson(__content_502, JsonSerializerContext); + } + else + { + __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_502 = global::OpenRouter.BadGatewayResponse.FromJson(__content_502, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_502 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_502 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_502, + responseBody: __content_502, + responseObject: __value_502, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Service Unavailable - Service temporarily unavailable + if ((int)__response.StatusCode == 503) + { + string? __content_503 = null; + global::System.Exception? __exception_503 = null; + global::OpenRouter.ServiceUnavailableResponse? __value_503 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_503 = global::OpenRouter.ServiceUnavailableResponse.FromJson(__content_503, JsonSerializerContext); + } + else + { + __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_503 = global::OpenRouter.ServiceUnavailableResponse.FromJson(__content_503, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_503 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_503, + responseBody: __content_503, + responseObject: __value_503, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Infrastructure Timeout - Provider request timed out at edge network + if ((int)__response.StatusCode == 524) + { + string? __content_524 = null; + global::System.Exception? __exception_524 = null; + global::OpenRouter.EdgeNetworkTimeoutResponse? __value_524 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_524 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_524 = global::OpenRouter.EdgeNetworkTimeoutResponse.FromJson(__content_524, JsonSerializerContext); + } + else + { + __content_524 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_524 = global::OpenRouter.EdgeNetworkTimeoutResponse.FromJson(__content_524, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_524 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_524 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_524, + responseBody: __content_524, + responseObject: __value_524, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Provider Overloaded - Provider is temporarily overloaded + if ((int)__response.StatusCode == 529) + { + string? __content_529 = null; + global::System.Exception? __exception_529 = null; + global::OpenRouter.ProviderOverloadedResponse? __value_529 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_529 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_529 = global::OpenRouter.ProviderOverloadedResponse.FromJson(__content_529, JsonSerializerContext); + } + else + { + __content_529 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_529 = global::OpenRouter.ProviderOverloadedResponse.FromJson(__content_529, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_529 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_529 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_529, + responseBody: __content_529, + responseObject: __value_529, + 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); + ProcessCreateResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::OpenRouter.ExtractionsResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::OpenRouter.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::OpenRouter.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::OpenRouter.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::OpenRouter.ExtractionsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::OpenRouter.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::OpenRouter.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::OpenRouter.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(); + } + } + /// + /// Submit an Extractions request
+ /// Extracts, computes, estimates or forecasts typed fields from a state string and image assets using an extraction-style System One model. Alpha: the shape is not stable. + ///
+ /// + /// Assets keyed by reference string. Write a reference wherever the asset belongs in `state` or a field `instructions`; every asset must be referenced at least once. A `state` that is exactly the sole asset's key carries no text of its own and is read as file-only. A model that reads either text or a document per request, not both (ScaleDown Extract with a PDF), needs that form: any other text around the key is state text and is rejected with 400. + /// + /// + /// Map of field name to typed field spec. + /// + /// + /// + /// + /// ISO date that anchors dates written without a year. + /// + /// + /// A unique identifier for grouping related requests (e.g., a conversation or agent workflow). Used for observability grouping in Broadcast and private logging; never sent to the provider. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 256 characters.
+ /// Example: session-1234 + /// + /// + /// The text to read from. May be empty only when the request carries image assets. + /// + /// + /// Metadata for observability and tracing. Known keys (trace_id, trace_name, span_name, generation_name, parent_span_id) have special handling. Additional keys are passed through as custom metadata to configured broadcast destinations.
+ /// Example: {"trace_id":"trace-abc123","trace_name":"my-app-trace"} + /// + /// + /// 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 CreateAsync( + object fields, + string model, + string state, + global::System.Collections.Generic.Dictionary? assets = default, + global::OpenRouter.AllOf? provider = default, + string? referenceDate = default, + string? sessionId = default, + global::OpenRouter.TraceConfig? trace = default, + string? user = default, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::OpenRouter.ExtractionsRequest + { + Assets = assets, + Fields = fields, + Model = model, + Provider = provider, + ReferenceDate = referenceDate, + SessionId = sessionId, + State = state, + Trace = trace, + User = user, + }; + + return await CreateAsync( + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.AlphaExtractionsClient.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.AlphaExtractionsClient.g.cs new file mode 100644 index 000000000..0c0da48ed --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.AlphaExtractionsClient.g.cs @@ -0,0 +1,187 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Alpha feature endpoints for Extractions requests
+ /// If no httpClient is provided, a new one will be created.
+ /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + ///
+ public sealed partial class AlphaExtractionsClient : global::OpenRouter.IAlphaExtractionsClient, global::System.IDisposable + { + /// + /// + /// + public const string DefaultBaseUrl = "https://openrouter.ai/"; + + private bool _disposeHttpClient = true; + + /// + public global::System.Net.Http.HttpClient HttpClient { get; } + + /// + public System.Uri? BaseUri => HttpClient.BaseAddress; + + /// + public global::System.Collections.Generic.List Authorizations { get; } + + /// + public bool ReadResponseAsString { get; set; } +#if DEBUG + = true; +#endif + + /// + public global::OpenRouter.AutoSDKClientOptions Options { get; } + + + /// + public global::System.Func CreateIdempotencyKey { get; set; } = () => global::System.Guid.NewGuid().ToString("D"); + + + internal global::OpenRouter.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::OpenRouter.AutoSDKServerConfiguration(); + + internal global::System.Lazy? JsonSerializerContextProvider { get; set; } + + /// + /// + /// + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext + { + get => JsonSerializerContextProvider?.Value ?? global::OpenRouter.AlphaExtractionsSourceGenerationContext.Default; + set => JsonSerializerContextProvider = new(() => value); + } + + + /// + /// Creates a new instance of the AlphaExtractionsClient. + /// If no httpClient is provided, a new one will be created. + /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. + /// The authorizations to use for the requests. + /// Dispose the HttpClient when the instance is disposed. True by default. + public AlphaExtractionsClient( + global::System.Net.Http.HttpClient? httpClient = null, + global::System.Uri? baseUri = null, + global::System.Collections.Generic.List? authorizations = null, + bool disposeHttpClient = true) : this( + httpClient, + baseUri, + authorizations, + options: null, + disposeHttpClient: disposeHttpClient) + { + } + + /// + /// Creates a new instance of the AlphaExtractionsClient with explicit options but no base URL override. + /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public AlphaExtractionsClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Collections.Generic.List? authorizations, + global::OpenRouter.AutoSDKClientOptions? options, + bool disposeHttpClient = true) : this( + httpClient, + baseUri: null, + authorizations, + options, + disposeHttpClient: disposeHttpClient) + { + } + + /// + /// Creates a new instance of the AlphaExtractionsClient. + /// If no httpClient is provided, a new one will be created. + /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public AlphaExtractionsClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Uri? baseUri, + global::System.Collections.Generic.List? authorizations, + global::OpenRouter.AutoSDKClientOptions? options, + bool disposeHttpClient = true) + { + + HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); + if (baseUri is not null) + { + HttpClient.BaseAddress ??= baseUri; + } + Authorizations = authorizations ?? new global::System.Collections.Generic.List(); + Options = options ?? new global::OpenRouter.AutoSDKClientOptions(); + _disposeHttpClient = disposeHttpClient; + + AutoSDKServerConfiguration.ExplicitBaseUri = baseUri ?? httpClient?.BaseAddress; + + Initialized(HttpClient); + } + + /// + public void Dispose() + { + if (_disposeHttpClient) + { + HttpClient.Dispose(); + } + } + + partial void Initialized( + global::System.Net.Http.HttpClient client); + partial void PrepareArguments( + global::System.Net.Http.HttpClient client); + partial void PrepareRequest( + global::System.Net.Http.HttpClient client, + global::System.Net.Http.HttpRequestMessage request); + partial void ProcessResponse( + global::System.Net.Http.HttpClient client, + global::System.Net.Http.HttpResponseMessage response); + partial void ProcessResponseContent( + global::System.Net.Http.HttpClient client, + global::System.Net.Http.HttpResponseMessage response, + ref string content); + + + private global::System.Uri? ResolveBaseUri( + global::OpenRouter.AutoSDKServer[] servers, + string defaultBaseUrl) + { + if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri) + { + return explicitBaseUri; + } + + if (AutoSDKServerConfiguration.SelectedServer is global::OpenRouter.AutoSDKServer selectedServer) + { + foreach (var server in servers) + { + if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal)) + { + return server.Uri; + } + } + } + + if (servers.Length > 0) + { + return servers[0].Uri; + } + + return string.IsNullOrWhiteSpace(defaultBaseUrl) + ? HttpClient.BaseAddress + : new global::System.Uri(defaultBaseUrl, global::System.UriKind.RelativeOrAbsolute); + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.Create.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.Create.g.cs index 710c39e77..005ded82f 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.Create.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.Create.g.cs @@ -650,7 +650,7 @@ partial void ProcessCreateResponseContent( /// Example: My New API Key /// /// - /// The workspace to create the API key in. Defaults to the default workspace if not provided.
+ /// The workspace to create the API key in. Defaults to the default workspace for an organization-scoped management key, or to the management key's own workspace for a workspace-scoped one, which cannot create keys elsewhere.
/// Example: 0df9e665-d932-5740-b2c7-b52af166bc11 /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.Delete.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.Delete.g.cs index 75f0cd8cb..172e3d9d3 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.Delete.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.Delete.g.cs @@ -369,6 +369,43 @@ partial void ProcessDeleteResponseContent( h => h.Key, h => h.Value)); } + // Forbidden - Authentication successful but insufficient permissions + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::OpenRouter.ForbiddenResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::OpenRouter.ForbiddenResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::OpenRouter.ForbiddenResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // Not Found - Resource does not exist if ((int)__response.StatusCode == 404) { diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.Get.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.Get.g.cs index 8c1390133..2c5a4c346 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.Get.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.Get.g.cs @@ -369,6 +369,43 @@ partial void ProcessGetResponseContent( h => h.Key, h => h.Value)); } + // Forbidden - Authentication successful but insufficient permissions + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::OpenRouter.ForbiddenResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::OpenRouter.ForbiddenResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::OpenRouter.ForbiddenResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // Not Found - Resource does not exist if ((int)__response.StatusCode == 404) { diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.List.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.List.g.cs index 5ffbab306..19445991c 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.List.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.List.g.cs @@ -64,7 +64,7 @@ partial void ProcessListResponseContent( /// Example: 0 /// /// - /// Filter API keys by workspace ID. By default, keys in the default workspace are returned.
+ /// Filter API keys by workspace ID. By default an organization-scoped management key gets the default workspace; a workspace-scoped management key always gets its own workspace and cannot list another.
/// Example: 0df9e665-d932-5740-b2c7-b52af166bc11 /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -106,7 +106,7 @@ partial void ProcessListResponseContent( /// Example: 0 /// /// - /// Filter API keys by workspace ID. By default, keys in the default workspace are returned.
+ /// Filter API keys by workspace ID. By default an organization-scoped management key gets the default workspace; a workspace-scoped management key always gets its own workspace and cannot list another.
/// Example: 0df9e665-d932-5740-b2c7-b52af166bc11 /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -457,6 +457,43 @@ partial void ProcessListResponseContent( h => h.Key, h => h.Value)); } + // Forbidden - Authentication successful but insufficient permissions + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::OpenRouter.ForbiddenResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::OpenRouter.ForbiddenResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::OpenRouter.ForbiddenResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::OpenRouter.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // Not Found - Resource does not exist if ((int)__response.StatusCode == 404) { diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IAlphaExtractionsClient.Create.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IAlphaExtractionsClient.Create.g.cs new file mode 100644 index 000000000..198fbd707 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.IAlphaExtractionsClient.Create.g.cs @@ -0,0 +1,76 @@ +#nullable enable + +namespace OpenRouter +{ + public partial interface IAlphaExtractionsClient + { + /// + /// Submit an Extractions request
+ /// Extracts, computes, estimates or forecasts typed fields from a state string and image assets using an extraction-style System One model. Alpha: the shape is not stable. + ///
+ /// + /// 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 CreateAsync( + + global::OpenRouter.ExtractionsRequest request, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Submit an Extractions request
+ /// Extracts, computes, estimates or forecasts typed fields from a state string and image assets using an extraction-style System One model. Alpha: the shape is not stable. + ///
+ /// + /// 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> CreateAsResponseAsync( + + global::OpenRouter.ExtractionsRequest request, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Submit an Extractions request
+ /// Extracts, computes, estimates or forecasts typed fields from a state string and image assets using an extraction-style System One model. Alpha: the shape is not stable. + ///
+ /// + /// Assets keyed by reference string. Write a reference wherever the asset belongs in `state` or a field `instructions`; every asset must be referenced at least once. A `state` that is exactly the sole asset's key carries no text of its own and is read as file-only. A model that reads either text or a document per request, not both (ScaleDown Extract with a PDF), needs that form: any other text around the key is state text and is rejected with 400. + /// + /// + /// Map of field name to typed field spec. + /// + /// + /// + /// + /// ISO date that anchors dates written without a year. + /// + /// + /// A unique identifier for grouping related requests (e.g., a conversation or agent workflow). Used for observability grouping in Broadcast and private logging; never sent to the provider. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 256 characters.
+ /// Example: session-1234 + /// + /// + /// The text to read from. May be empty only when the request carries image assets. + /// + /// + /// Metadata for observability and tracing. Known keys (trace_id, trace_name, span_name, generation_name, parent_span_id) have special handling. Additional keys are passed through as custom metadata to configured broadcast destinations.
+ /// Example: {"trace_id":"trace-abc123","trace_name":"my-app-trace"} + /// + /// + /// 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 CreateAsync( + object fields, + string model, + string state, + global::System.Collections.Generic.Dictionary? assets = default, + global::OpenRouter.AllOf? provider = default, + string? referenceDate = default, + string? sessionId = default, + global::OpenRouter.TraceConfig? trace = default, + string? user = default, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IAlphaExtractionsClient.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IAlphaExtractionsClient.g.cs new file mode 100644 index 000000000..8843f340d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.IAlphaExtractionsClient.g.cs @@ -0,0 +1,53 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Alpha feature endpoints for Extractions requests
+ /// If no httpClient is provided, a new one will be created.
+ /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + ///
+ public partial interface IAlphaExtractionsClient : global::System.IDisposable + { + /// + /// The HttpClient instance. + /// + public global::System.Net.Http.HttpClient HttpClient { get; } + + /// + /// The base URL for the API. + /// + public System.Uri? BaseUri { get; } + + /// + /// The authorizations to use for the requests. + /// + public global::System.Collections.Generic.List Authorizations { get; } + + /// + /// Gets or sets a value indicating whether the response content should be read as a string. + /// True by default in debug builds, false otherwise. + /// When false, successful responses are deserialized directly from the response stream for better performance. + /// Error responses are always read as strings regardless of this setting, + /// ensuring is populated. + /// + public bool ReadResponseAsString { get; set; } + /// + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// + public global::OpenRouter.AutoSDKClientOptions Options { get; } + + /// + /// Creates idempotency keys for generated idempotent requests when the caller does not provide one. + /// + public global::System.Func CreateIdempotencyKey { get; set; } + + /// + /// + /// + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IApiKeysClient.Create.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IApiKeysClient.Create.g.cs index ba98fb929..666e386b3 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IApiKeysClient.Create.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IApiKeysClient.Create.g.cs @@ -62,7 +62,7 @@ public partial interface IApiKeysClient /// Example: My New API Key /// /// - /// The workspace to create the API key in. Defaults to the default workspace if not provided.
+ /// The workspace to create the API key in. Defaults to the default workspace for an organization-scoped management key, or to the management key's own workspace for a workspace-scoped one, which cannot create keys elsewhere.
/// Example: 0df9e665-d932-5740-b2c7-b52af166bc11 /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IApiKeysClient.List.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IApiKeysClient.List.g.cs index 57a314105..5c6c46388 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IApiKeysClient.List.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IApiKeysClient.List.g.cs @@ -21,7 +21,7 @@ public partial interface IApiKeysClient /// Example: 0 /// /// - /// Filter API keys by workspace ID. By default, keys in the default workspace are returned.
+ /// Filter API keys by workspace ID. By default an organization-scoped management key gets the default workspace; a workspace-scoped management key always gets its own workspace and cannot list another.
/// Example: 0df9e665-d932-5740-b2c7-b52af166bc11 /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -51,7 +51,7 @@ public partial interface IApiKeysClient /// Example: 0 /// /// - /// Filter API keys by workspace ID. By default, keys in the default workspace are returned.
+ /// Filter API keys by workspace ID. By default an organization-scoped management key gets the default workspace; a workspace-scoped management key always gets its own workspace and cannot list another.
/// Example: 0df9e665-d932-5740-b2c7-b52af166bc11 /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IImagesClient.Generate.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IImagesClient.Generate.g.cs index f37aa6a44..52f3d3274 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IImagesClient.Generate.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IImagesClient.Generate.g.cs @@ -54,7 +54,7 @@ public partial interface IImagesClient /// Example: 1 /// /// - /// Compression level (0-100) for webp/jpeg output. Ignored for png and by providers without a compression knob.
+ /// Compression level (0-100) for jpeg/webp output. Ignored by providers without a compression knob; providers that honor it may reject it with other output formats (e.g. OpenAI requires output_format "jpeg" or "webp").
/// Example: 100 /// /// @@ -85,7 +85,7 @@ public partial interface IImagesClient /// Example: session-1234 /// /// - /// Optional. A convenience shorthand for output dimensions — pass a tier ("2K", "4K") or explicit pixels ("2048x2048") and we normalize it to the right dimensions for the chosen provider. A tier size is equivalent to setting `resolution` and combines with `aspect_ratio`. An explicit pixel size is authoritative: a mismatched `resolution` or `aspect_ratio` alongside it is rejected with a 400.
+ /// Optional. A convenience shorthand for output dimensions — pass a tier ("2K", "4K") or explicit pixels ("2048x2048"). A tier size is equivalent to setting `resolution` and combines with `aspect_ratio`. Explicit pixel sizes are provider-dependent: providers that accept them treat the value as authoritative and reject a mismatched `resolution` or `aspect_ratio` alongside it with a 400. xAI and Sourceful V2/V2.5 reject explicit pixel sizes (use `resolution` and `aspect_ratio` there); Sourceful V2.6 supports them within its dimension limits and does not allow combining them with `resolution` or `aspect_ratio`.
/// Example: 2K /// /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IImagesClient.GenerateAsStream.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IImagesClient.GenerateAsStream.g.cs index 802369430..b4446073b 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IImagesClient.GenerateAsStream.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IImagesClient.GenerateAsStream.g.cs @@ -41,7 +41,7 @@ public partial interface IImagesClient /// Example: 1 /// /// - /// Compression level (0-100) for webp/jpeg output. Ignored for png and by providers without a compression knob.
+ /// Compression level (0-100) for jpeg/webp output. Ignored by providers without a compression knob; providers that honor it may reject it with other output formats (e.g. OpenAI requires output_format "jpeg" or "webp").
/// Example: 100 /// /// @@ -72,7 +72,7 @@ public partial interface IImagesClient /// Example: session-1234 /// /// - /// Optional. A convenience shorthand for output dimensions — pass a tier ("2K", "4K") or explicit pixels ("2048x2048") and we normalize it to the right dimensions for the chosen provider. A tier size is equivalent to setting `resolution` and combines with `aspect_ratio`. An explicit pixel size is authoritative: a mismatched `resolution` or `aspect_ratio` alongside it is rejected with a 400.
+ /// Optional. A convenience shorthand for output dimensions — pass a tier ("2K", "4K") or explicit pixels ("2048x2048"). A tier size is equivalent to setting `resolution` and combines with `aspect_ratio`. Explicit pixel sizes are provider-dependent: providers that accept them treat the value as authoritative and reject a mismatched `resolution` or `aspect_ratio` alongside it with a 400. xAI and Sourceful V2/V2.5 reject explicit pixel sizes (use `resolution` and `aspect_ratio` there); Sourceful V2.6 supports them within its dimension limits and does not allow combining them with `resolution` or `aspect_ratio`.
/// Example: 2K /// /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IModelsClient.ListForUser.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IModelsClient.ListForUser.g.cs index 904849d3b..d208c1a25 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IModelsClient.ListForUser.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IModelsClient.ListForUser.g.cs @@ -27,7 +27,7 @@ public partial interface IModelsClient /// Example: newest /// /// - /// Return only the models and presets the named harness offers: those that support tool calling, and, when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor's own models (OpenAI for codex, Anthropic for claude_code and claude_desktop). One of: claude_code, claude_desktop, codex. Omit it to get every model you can use.
+ /// Filter models and presets by the named harness's eligibility policy: tool calling is required, and when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor's own models remain (OpenAI for codex, Anthropic for claude_code and claude_desktop). When your workspace's Managed Machines policy sets a model list for that harness, only the listed models remain, and a preset remains only while every model it routes to is listed. This filter doesn't apply the harness's ranking, caps or Claude Desktop model ID aliases, so returned IDs stay routable. One of: claude_code, claude_desktop, codex. Omit it to get every model you can use.
/// Example: codex /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -64,7 +64,7 @@ public partial interface IModelsClient /// Example: newest /// /// - /// Return only the models and presets the named harness offers: those that support tool calling, and, when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor's own models (OpenAI for codex, Anthropic for claude_code and claude_desktop). One of: claude_code, claude_desktop, codex. Omit it to get every model you can use.
+ /// Filter models and presets by the named harness's eligibility policy: tool calling is required, and when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor's own models remain (OpenAI for codex, Anthropic for claude_code and claude_desktop). When your workspace's Managed Machines policy sets a model list for that harness, only the listed models remain, and a preset remains only while every model it routes to is listed. This filter doesn't apply the harness's ranking, caps or Claude Desktop model ID aliases, so returned IDs stay routable. One of: claude_code, claude_desktop, codex. Omit it to get every model you can use.
/// Example: codex /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IOpenRouterClient.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IOpenRouterClient.g.cs index c4e69762b..24fb71fd8 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IOpenRouterClient.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IOpenRouterClient.g.cs @@ -75,6 +75,11 @@ public partial interface IOpenRouterClient : global::System.IDisposable /// public AlphaDecisionsClient AlphaDecisions { get; } + /// + /// Alpha feature endpoints for Extractions requests. + /// + public AlphaExtractionsClient AlphaExtractions { get; } + /// /// Analytics and usage endpoints. /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IPresetsClient.CreatePresetsResponses.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IPresetsClient.CreatePresetsResponses.g.cs index 517eff0e8..83cc2731e 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IPresetsClient.CreatePresetsResponses.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IPresetsClient.CreatePresetsResponses.g.cs @@ -50,6 +50,10 @@ public partial interface IPresetsClient /// URL-safe slug identifying the preset. Created if it does not exist.
/// Example: my-preset /// + /// + /// OpenAI access programs for this request. `cyber` selects the Cyber access program: `standard`, `daybreak_blue`, or `daybreak_red`. A program other than `standard` is supported only on BYOK requests that run on your own OpenAI key enrolled in that program; any other endpoint, including OpenRouter's own OpenAI credentials, rejects it with a 400 error. Requests on OpenRouter's OpenAI credentials always run `standard`. Omit the field unless your key is enrolled in a Daybreak program.
+ /// Example: {"cyber":"standard"} + /// /// /// /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.
@@ -165,6 +169,7 @@ public partial interface IPresetsClient /// global::System.Threading.Tasks.Task CreatePresetsResponsesAsync( string slug, + global::OpenRouter.ResponsesRequestAccessPrograms? accessPrograms = default, bool? background = default, global::OpenRouter.AnthropicCacheControlDirective? cacheControl = default, global::OpenRouter.ChatDebugOptions? debug = default, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IResponsesClient.Send.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IResponsesClient.Send.g.cs index 7a18e414c..9366a4c70 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IResponsesClient.Send.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IResponsesClient.Send.g.cs @@ -50,6 +50,10 @@ public partial interface IResponsesClient /// Opt-in level for surfacing routing metadata on the response under `openrouter_metadata`.
/// Example: enabled /// + /// + /// OpenAI access programs for this request. `cyber` selects the Cyber access program: `standard`, `daybreak_blue`, or `daybreak_red`. A program other than `standard` is supported only on BYOK requests that run on your own OpenAI key enrolled in that program; any other endpoint, including OpenRouter's own OpenAI credentials, rejects it with a 400 error. Requests on OpenRouter's OpenAI credentials always run `standard`. Omit the field unless your key is enrolled in a Daybreak program.
+ /// Example: {"cyber":"standard"} + /// /// /// /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.
@@ -162,6 +166,7 @@ public partial interface IResponsesClient /// global::System.Threading.Tasks.Task SendAsync( global::OpenRouter.MetadataLevel? xOpenRouterMetadata = default, + global::OpenRouter.ResponsesRequestAccessPrograms? accessPrograms = default, bool? background = default, global::OpenRouter.AnthropicCacheControlDirective? cacheControl = default, global::OpenRouter.ChatDebugOptions? debug = default, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IResponsesClient.SendAsStream.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IResponsesClient.SendAsStream.g.cs index 010c18fae..cb72e0cc1 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IResponsesClient.SendAsStream.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IResponsesClient.SendAsStream.g.cs @@ -32,6 +32,10 @@ public partial interface IResponsesClient /// Opt-in level for surfacing routing metadata on the response under `openrouter_metadata`.
/// Example: enabled /// + /// + /// OpenAI access programs for this request. `cyber` selects the Cyber access program: `standard`, `daybreak_blue`, or `daybreak_red`. A program other than `standard` is supported only on BYOK requests that run on your own OpenAI key enrolled in that program; any other endpoint, including OpenRouter's own OpenAI credentials, rejects it with a 400 error. Requests on OpenRouter's OpenAI credentials always run `standard`. Omit the field unless your key is enrolled in a Daybreak program.
+ /// Example: {"cyber":"standard"} + /// /// /// /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.
@@ -144,6 +148,7 @@ public partial interface IResponsesClient /// global::System.Collections.Generic.IAsyncEnumerable SendAsStreamAsync( global::OpenRouter.MetadataLevel? xOpenRouterMetadata = default, + global::OpenRouter.ResponsesRequestAccessPrograms? accessPrograms = default, bool? background = default, global::OpenRouter.AnthropicCacheControlDirective? cacheControl = default, global::OpenRouter.ChatDebugOptions? debug = default, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ImagesClient.Generate.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ImagesClient.Generate.g.cs index c9365b39f..cb7086c44 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.ImagesClient.Generate.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.ImagesClient.Generate.g.cs @@ -888,7 +888,7 @@ partial void ProcessGenerateResponseContent( /// Example: 1 /// /// - /// Compression level (0-100) for webp/jpeg output. Ignored for png and by providers without a compression knob.
+ /// Compression level (0-100) for jpeg/webp output. Ignored by providers without a compression knob; providers that honor it may reject it with other output formats (e.g. OpenAI requires output_format "jpeg" or "webp").
/// Example: 100 /// /// @@ -919,7 +919,7 @@ partial void ProcessGenerateResponseContent( /// Example: session-1234 /// /// - /// Optional. A convenience shorthand for output dimensions — pass a tier ("2K", "4K") or explicit pixels ("2048x2048") and we normalize it to the right dimensions for the chosen provider. A tier size is equivalent to setting `resolution` and combines with `aspect_ratio`. An explicit pixel size is authoritative: a mismatched `resolution` or `aspect_ratio` alongside it is rejected with a 400.
+ /// Optional. A convenience shorthand for output dimensions — pass a tier ("2K", "4K") or explicit pixels ("2048x2048"). A tier size is equivalent to setting `resolution` and combines with `aspect_ratio`. Explicit pixel sizes are provider-dependent: providers that accept them treat the value as authoritative and reject a mismatched `resolution` or `aspect_ratio` alongside it with a 400. xAI and Sourceful V2/V2.5 reject explicit pixel sizes (use `resolution` and `aspect_ratio` there); Sourceful V2.6 supports them within its dimension limits and does not allow combining them with `resolution` or `aspect_ratio`.
/// Example: 2K /// /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ImagesClient.GenerateAsStream.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ImagesClient.GenerateAsStream.g.cs index da6039e98..3d0410e75 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.ImagesClient.GenerateAsStream.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.ImagesClient.GenerateAsStream.g.cs @@ -424,7 +424,7 @@ partial void ProcessGenerateAsStreamResponse( /// Example: 1 /// /// - /// Compression level (0-100) for webp/jpeg output. Ignored for png and by providers without a compression knob.
+ /// Compression level (0-100) for jpeg/webp output. Ignored by providers without a compression knob; providers that honor it may reject it with other output formats (e.g. OpenAI requires output_format "jpeg" or "webp").
/// Example: 100 /// /// @@ -455,7 +455,7 @@ partial void ProcessGenerateAsStreamResponse( /// Example: session-1234 /// /// - /// Optional. A convenience shorthand for output dimensions — pass a tier ("2K", "4K") or explicit pixels ("2048x2048") and we normalize it to the right dimensions for the chosen provider. A tier size is equivalent to setting `resolution` and combines with `aspect_ratio`. An explicit pixel size is authoritative: a mismatched `resolution` or `aspect_ratio` alongside it is rejected with a 400.
+ /// Optional. A convenience shorthand for output dimensions — pass a tier ("2K", "4K") or explicit pixels ("2048x2048"). A tier size is equivalent to setting `resolution` and combines with `aspect_ratio`. Explicit pixel sizes are provider-dependent: providers that accept them treat the value as authoritative and reject a mismatched `resolution` or `aspect_ratio` alongside it with a 400. xAI and Sourceful V2/V2.5 reject explicit pixel sizes (use `resolution` and `aspect_ratio` there); Sourceful V2.6 supports them within its dimension limits and does not allow combining them with `resolution` or `aspect_ratio`.
/// Example: 2K /// /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.Answers2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.Answers2.g.cs new file mode 100644 index 000000000..8b4deb5f0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.Answers2.g.cs @@ -0,0 +1,177 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace OpenRouter.JsonConverters +{ + /// + public class Answers2JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.Answers2 Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionsResponseAnswersDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ExtractionsResponseAnswersDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); + + global::OpenRouter.ExtractionTextAnswer? text = default; + if (discriminator?.Type == global::OpenRouter.ExtractionsResponseAnswersDiscriminatorType.Text) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionTextAnswer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ExtractionTextAnswer)}"); + text = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.ExtractionNumberAnswer? number = default; + if (discriminator?.Type == global::OpenRouter.ExtractionsResponseAnswersDiscriminatorType.Number) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionNumberAnswer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ExtractionNumberAnswer)}"); + number = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.ExtractionDateAnswer? date = default; + if (discriminator?.Type == global::OpenRouter.ExtractionsResponseAnswersDiscriminatorType.Date) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionDateAnswer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ExtractionDateAnswer)}"); + date = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.ExtractionTimeAnswer? time = default; + if (discriminator?.Type == global::OpenRouter.ExtractionsResponseAnswersDiscriminatorType.Time) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionTimeAnswer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ExtractionTimeAnswer)}"); + time = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.ExtractionDatetimeAnswer? datetime = default; + if (discriminator?.Type == global::OpenRouter.ExtractionsResponseAnswersDiscriminatorType.Datetime) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionDatetimeAnswer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ExtractionDatetimeAnswer)}"); + datetime = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.ExtractionDurationAnswer? duration = default; + if (discriminator?.Type == global::OpenRouter.ExtractionsResponseAnswersDiscriminatorType.Duration) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionDurationAnswer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ExtractionDurationAnswer)}"); + duration = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.ExtractionListAnswer? list = default; + if (discriminator?.Type == global::OpenRouter.ExtractionsResponseAnswersDiscriminatorType.List) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionListAnswer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ExtractionListAnswer)}"); + list = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.ExtractionEstimateAnswer? estimate = default; + if (discriminator?.Type == global::OpenRouter.ExtractionsResponseAnswersDiscriminatorType.Estimate) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionEstimateAnswer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ExtractionEstimateAnswer)}"); + estimate = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.ExtractionForecastAnswer? forecast = default; + if (discriminator?.Type == global::OpenRouter.ExtractionsResponseAnswersDiscriminatorType.Forecast) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionForecastAnswer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ExtractionForecastAnswer)}"); + forecast = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + var __value = new global::OpenRouter.Answers2( + discriminator?.Type, + text, + + number, + + date, + + time, + + datetime, + + duration, + + list, + + estimate, + + forecast + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.Answers2 value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsText) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionTextAnswer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ExtractionTextAnswer).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo); + } + else if (value.IsNumber) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionNumberAnswer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ExtractionNumberAnswer).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickNumber(), typeInfo); + } + else if (value.IsDate) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionDateAnswer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ExtractionDateAnswer).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDate(), typeInfo); + } + else if (value.IsTime) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionTimeAnswer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ExtractionTimeAnswer).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTime(), typeInfo); + } + else if (value.IsDatetime) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionDatetimeAnswer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ExtractionDatetimeAnswer).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDatetime(), typeInfo); + } + else if (value.IsDuration) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionDurationAnswer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ExtractionDurationAnswer).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDuration(), typeInfo); + } + else if (value.IsList) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionListAnswer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ExtractionListAnswer).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickList(), typeInfo); + } + else if (value.IsEstimate) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionEstimateAnswer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ExtractionEstimateAnswer).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEstimate(), typeInfo); + } + else if (value.IsForecast) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionForecastAnswer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ExtractionForecastAnswer).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickForecast(), typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionAssetFormat.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionAssetFormat.g.cs new file mode 100644 index 000000000..907c3d43a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionAssetFormat.g.cs @@ -0,0 +1,48 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionAssetFormatJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionAssetFormat 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::OpenRouter.ExtractionAssetFormatExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionAssetFormat); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionAssetFormat value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ExtractionAssetFormatExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionAssetFormatNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionAssetFormatNullable.g.cs new file mode 100644 index 000000000..c65b0954f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionAssetFormatNullable.g.cs @@ -0,0 +1,55 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionAssetFormatNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionAssetFormat? 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::OpenRouter.ExtractionAssetFormatExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionAssetFormat?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionAssetFormat? 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::OpenRouter.ExtractionAssetFormatExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionAssetType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionAssetType.g.cs new file mode 100644 index 000000000..49dd651df --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionAssetType.g.cs @@ -0,0 +1,48 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionAssetTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionAssetType 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::OpenRouter.ExtractionAssetTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionAssetType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionAssetType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ExtractionAssetTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionAssetTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionAssetTypeNullable.g.cs new file mode 100644 index 000000000..de0c40d02 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionAssetTypeNullable.g.cs @@ -0,0 +1,55 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionAssetTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionAssetType? 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::OpenRouter.ExtractionAssetTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionAssetType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionAssetType? 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::OpenRouter.ExtractionAssetTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDateAnswerSource.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDateAnswerSource.g.cs new file mode 100644 index 000000000..e6ee90e33 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDateAnswerSource.g.cs @@ -0,0 +1,48 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionDateAnswerSourceJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionDateAnswerSource 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::OpenRouter.ExtractionDateAnswerSourceExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionDateAnswerSource); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionDateAnswerSource value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ExtractionDateAnswerSourceExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDateAnswerSourceNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDateAnswerSourceNullable.g.cs new file mode 100644 index 000000000..843c62737 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDateAnswerSourceNullable.g.cs @@ -0,0 +1,55 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionDateAnswerSourceNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionDateAnswerSource? 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::OpenRouter.ExtractionDateAnswerSourceExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionDateAnswerSource?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionDateAnswerSource? 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::OpenRouter.ExtractionDateAnswerSourceExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDateAnswerType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDateAnswerType.g.cs new file mode 100644 index 000000000..942f5bef6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDateAnswerType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionDateAnswerTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionDateAnswerType 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::OpenRouter.ExtractionDateAnswerTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ExtractionDateAnswerType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionDateAnswerType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionDateAnswerType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ExtractionDateAnswerTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDateAnswerTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDateAnswerTypeNullable.g.cs new file mode 100644 index 000000000..b36508595 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDateAnswerTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionDateAnswerTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionDateAnswerType? 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::OpenRouter.ExtractionDateAnswerTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ExtractionDateAnswerType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionDateAnswerType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionDateAnswerType? 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::OpenRouter.ExtractionDateAnswerTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDateFieldType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDateFieldType.g.cs new file mode 100644 index 000000000..5c8c8cb38 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDateFieldType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionDateFieldTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionDateFieldType 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::OpenRouter.ExtractionDateFieldTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ExtractionDateFieldType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionDateFieldType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionDateFieldType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ExtractionDateFieldTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDateFieldTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDateFieldTypeNullable.g.cs new file mode 100644 index 000000000..7dd5d0c38 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDateFieldTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionDateFieldTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionDateFieldType? 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::OpenRouter.ExtractionDateFieldTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ExtractionDateFieldType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionDateFieldType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionDateFieldType? 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::OpenRouter.ExtractionDateFieldTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDatetimeAnswerSource.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDatetimeAnswerSource.g.cs new file mode 100644 index 000000000..76e749fa1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDatetimeAnswerSource.g.cs @@ -0,0 +1,48 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionDatetimeAnswerSourceJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionDatetimeAnswerSource 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::OpenRouter.ExtractionDatetimeAnswerSourceExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionDatetimeAnswerSource); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionDatetimeAnswerSource value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ExtractionDatetimeAnswerSourceExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDatetimeAnswerSourceNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDatetimeAnswerSourceNullable.g.cs new file mode 100644 index 000000000..fd0605403 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDatetimeAnswerSourceNullable.g.cs @@ -0,0 +1,55 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionDatetimeAnswerSourceNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionDatetimeAnswerSource? 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::OpenRouter.ExtractionDatetimeAnswerSourceExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionDatetimeAnswerSource?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionDatetimeAnswerSource? 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::OpenRouter.ExtractionDatetimeAnswerSourceExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDatetimeAnswerType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDatetimeAnswerType.g.cs new file mode 100644 index 000000000..17a7f284b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDatetimeAnswerType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionDatetimeAnswerTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionDatetimeAnswerType 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::OpenRouter.ExtractionDatetimeAnswerTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ExtractionDatetimeAnswerType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionDatetimeAnswerType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionDatetimeAnswerType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ExtractionDatetimeAnswerTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDatetimeAnswerTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDatetimeAnswerTypeNullable.g.cs new file mode 100644 index 000000000..1e7e35ed5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDatetimeAnswerTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionDatetimeAnswerTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionDatetimeAnswerType? 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::OpenRouter.ExtractionDatetimeAnswerTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ExtractionDatetimeAnswerType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionDatetimeAnswerType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionDatetimeAnswerType? 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::OpenRouter.ExtractionDatetimeAnswerTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDatetimeFieldType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDatetimeFieldType.g.cs new file mode 100644 index 000000000..68a2e5870 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDatetimeFieldType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionDatetimeFieldTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionDatetimeFieldType 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::OpenRouter.ExtractionDatetimeFieldTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ExtractionDatetimeFieldType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionDatetimeFieldType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionDatetimeFieldType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ExtractionDatetimeFieldTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDatetimeFieldTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDatetimeFieldTypeNullable.g.cs new file mode 100644 index 000000000..99cbfbe00 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDatetimeFieldTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionDatetimeFieldTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionDatetimeFieldType? 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::OpenRouter.ExtractionDatetimeFieldTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ExtractionDatetimeFieldType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionDatetimeFieldType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionDatetimeFieldType? 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::OpenRouter.ExtractionDatetimeFieldTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDurationAnswerSource.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDurationAnswerSource.g.cs new file mode 100644 index 000000000..c56b55874 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDurationAnswerSource.g.cs @@ -0,0 +1,48 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionDurationAnswerSourceJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionDurationAnswerSource 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::OpenRouter.ExtractionDurationAnswerSourceExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionDurationAnswerSource); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionDurationAnswerSource value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ExtractionDurationAnswerSourceExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDurationAnswerSourceNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDurationAnswerSourceNullable.g.cs new file mode 100644 index 000000000..6245bbce7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDurationAnswerSourceNullable.g.cs @@ -0,0 +1,55 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionDurationAnswerSourceNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionDurationAnswerSource? 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::OpenRouter.ExtractionDurationAnswerSourceExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionDurationAnswerSource?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionDurationAnswerSource? 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::OpenRouter.ExtractionDurationAnswerSourceExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDurationAnswerType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDurationAnswerType.g.cs new file mode 100644 index 000000000..73e53ce29 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDurationAnswerType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionDurationAnswerTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionDurationAnswerType 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::OpenRouter.ExtractionDurationAnswerTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ExtractionDurationAnswerType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionDurationAnswerType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionDurationAnswerType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ExtractionDurationAnswerTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDurationAnswerTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDurationAnswerTypeNullable.g.cs new file mode 100644 index 000000000..c2b52a471 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDurationAnswerTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionDurationAnswerTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionDurationAnswerType? 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::OpenRouter.ExtractionDurationAnswerTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ExtractionDurationAnswerType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionDurationAnswerType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionDurationAnswerType? 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::OpenRouter.ExtractionDurationAnswerTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDurationFieldType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDurationFieldType.g.cs new file mode 100644 index 000000000..7e85d0795 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDurationFieldType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionDurationFieldTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionDurationFieldType 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::OpenRouter.ExtractionDurationFieldTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ExtractionDurationFieldType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionDurationFieldType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionDurationFieldType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ExtractionDurationFieldTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDurationFieldTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDurationFieldTypeNullable.g.cs new file mode 100644 index 000000000..bdc0b6c46 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionDurationFieldTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionDurationFieldTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionDurationFieldType? 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::OpenRouter.ExtractionDurationFieldTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ExtractionDurationFieldType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionDurationFieldType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionDurationFieldType? 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::OpenRouter.ExtractionDurationFieldTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateAnswerSource.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateAnswerSource.g.cs new file mode 100644 index 000000000..abaab3e04 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateAnswerSource.g.cs @@ -0,0 +1,48 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionEstimateAnswerSourceJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionEstimateAnswerSource 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::OpenRouter.ExtractionEstimateAnswerSourceExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionEstimateAnswerSource); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionEstimateAnswerSource value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ExtractionEstimateAnswerSourceExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateAnswerSourceNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateAnswerSourceNullable.g.cs new file mode 100644 index 000000000..91fe47311 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateAnswerSourceNullable.g.cs @@ -0,0 +1,55 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionEstimateAnswerSourceNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionEstimateAnswerSource? 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::OpenRouter.ExtractionEstimateAnswerSourceExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionEstimateAnswerSource?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionEstimateAnswerSource? 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::OpenRouter.ExtractionEstimateAnswerSourceExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateAnswerType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateAnswerType.g.cs new file mode 100644 index 000000000..ec736b551 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateAnswerType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionEstimateAnswerTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionEstimateAnswerType 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::OpenRouter.ExtractionEstimateAnswerTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ExtractionEstimateAnswerType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionEstimateAnswerType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionEstimateAnswerType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ExtractionEstimateAnswerTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateAnswerTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateAnswerTypeNullable.g.cs new file mode 100644 index 000000000..090db4848 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateAnswerTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionEstimateAnswerTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionEstimateAnswerType? 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::OpenRouter.ExtractionEstimateAnswerTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ExtractionEstimateAnswerType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionEstimateAnswerType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionEstimateAnswerType? 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::OpenRouter.ExtractionEstimateAnswerTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldScale.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldScale.g.cs new file mode 100644 index 000000000..db5edb336 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldScale.g.cs @@ -0,0 +1,48 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionEstimateFieldScaleJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionEstimateFieldScale 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::OpenRouter.ExtractionEstimateFieldScaleExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionEstimateFieldScale); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionEstimateFieldScale value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ExtractionEstimateFieldScaleExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldScaleNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldScaleNullable.g.cs new file mode 100644 index 000000000..7857b3836 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldScaleNullable.g.cs @@ -0,0 +1,55 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionEstimateFieldScaleNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionEstimateFieldScale? 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::OpenRouter.ExtractionEstimateFieldScaleExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionEstimateFieldScale?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionEstimateFieldScale? 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::OpenRouter.ExtractionEstimateFieldScaleExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldStepVariant2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldStepVariant2.g.cs new file mode 100644 index 000000000..621cb6eb4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldStepVariant2.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionEstimateFieldStepVariant2JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionEstimateFieldStepVariant2 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::OpenRouter.ExtractionEstimateFieldStepVariant2Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ExtractionEstimateFieldStepVariant2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionEstimateFieldStepVariant2); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionEstimateFieldStepVariant2 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ExtractionEstimateFieldStepVariant2Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldStepVariant2Nullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldStepVariant2Nullable.g.cs new file mode 100644 index 000000000..7e2a1a98f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldStepVariant2Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionEstimateFieldStepVariant2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionEstimateFieldStepVariant2? 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::OpenRouter.ExtractionEstimateFieldStepVariant2Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ExtractionEstimateFieldStepVariant2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionEstimateFieldStepVariant2?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionEstimateFieldStepVariant2? 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::OpenRouter.ExtractionEstimateFieldStepVariant2Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldStepVariant3.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldStepVariant3.g.cs new file mode 100644 index 000000000..907aa4e3a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldStepVariant3.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionEstimateFieldStepVariant3JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionEstimateFieldStepVariant3 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::OpenRouter.ExtractionEstimateFieldStepVariant3Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ExtractionEstimateFieldStepVariant3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionEstimateFieldStepVariant3); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionEstimateFieldStepVariant3 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ExtractionEstimateFieldStepVariant3Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldStepVariant3Nullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldStepVariant3Nullable.g.cs new file mode 100644 index 000000000..92d816461 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldStepVariant3Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionEstimateFieldStepVariant3NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionEstimateFieldStepVariant3? 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::OpenRouter.ExtractionEstimateFieldStepVariant3Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ExtractionEstimateFieldStepVariant3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionEstimateFieldStepVariant3?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionEstimateFieldStepVariant3? 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::OpenRouter.ExtractionEstimateFieldStepVariant3Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldType.g.cs new file mode 100644 index 000000000..d8ae3bc77 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionEstimateFieldTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionEstimateFieldType 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::OpenRouter.ExtractionEstimateFieldTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ExtractionEstimateFieldType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionEstimateFieldType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionEstimateFieldType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ExtractionEstimateFieldTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldTypeNullable.g.cs new file mode 100644 index 000000000..baf55ba89 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionEstimateFieldTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionEstimateFieldTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionEstimateFieldType? 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::OpenRouter.ExtractionEstimateFieldTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ExtractionEstimateFieldType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionEstimateFieldType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionEstimateFieldType? 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::OpenRouter.ExtractionEstimateFieldTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastAnswerSource.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastAnswerSource.g.cs new file mode 100644 index 000000000..bec9390ed --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastAnswerSource.g.cs @@ -0,0 +1,48 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionForecastAnswerSourceJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionForecastAnswerSource 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::OpenRouter.ExtractionForecastAnswerSourceExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionForecastAnswerSource); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionForecastAnswerSource value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ExtractionForecastAnswerSourceExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastAnswerSourceNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastAnswerSourceNullable.g.cs new file mode 100644 index 000000000..55e5cb97d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastAnswerSourceNullable.g.cs @@ -0,0 +1,55 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionForecastAnswerSourceNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionForecastAnswerSource? 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::OpenRouter.ExtractionForecastAnswerSourceExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionForecastAnswerSource?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionForecastAnswerSource? 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::OpenRouter.ExtractionForecastAnswerSourceExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastAnswerType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastAnswerType.g.cs new file mode 100644 index 000000000..8a3dfb076 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastAnswerType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionForecastAnswerTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionForecastAnswerType 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::OpenRouter.ExtractionForecastAnswerTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ExtractionForecastAnswerType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionForecastAnswerType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionForecastAnswerType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ExtractionForecastAnswerTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastAnswerTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastAnswerTypeNullable.g.cs new file mode 100644 index 000000000..475c07132 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastAnswerTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionForecastAnswerTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionForecastAnswerType? 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::OpenRouter.ExtractionForecastAnswerTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ExtractionForecastAnswerType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionForecastAnswerType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionForecastAnswerType? 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::OpenRouter.ExtractionForecastAnswerTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldInterval.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldInterval.g.cs new file mode 100644 index 000000000..ae5b8a6d3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldInterval.g.cs @@ -0,0 +1,48 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionForecastFieldIntervalJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionForecastFieldInterval 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::OpenRouter.ExtractionForecastFieldIntervalExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionForecastFieldInterval); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionForecastFieldInterval value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ExtractionForecastFieldIntervalExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldIntervalNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldIntervalNullable.g.cs new file mode 100644 index 000000000..3c8eb177e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldIntervalNullable.g.cs @@ -0,0 +1,55 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionForecastFieldIntervalNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionForecastFieldInterval? 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::OpenRouter.ExtractionForecastFieldIntervalExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionForecastFieldInterval?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionForecastFieldInterval? 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::OpenRouter.ExtractionForecastFieldIntervalExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldScale.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldScale.g.cs new file mode 100644 index 000000000..b3555c4c9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldScale.g.cs @@ -0,0 +1,48 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionForecastFieldScaleJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionForecastFieldScale 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::OpenRouter.ExtractionForecastFieldScaleExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionForecastFieldScale); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionForecastFieldScale value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ExtractionForecastFieldScaleExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldScaleNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldScaleNullable.g.cs new file mode 100644 index 000000000..584e9821f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldScaleNullable.g.cs @@ -0,0 +1,55 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionForecastFieldScaleNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionForecastFieldScale? 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::OpenRouter.ExtractionForecastFieldScaleExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionForecastFieldScale?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionForecastFieldScale? 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::OpenRouter.ExtractionForecastFieldScaleExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldStepVariant2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldStepVariant2.g.cs new file mode 100644 index 000000000..34adc5ff7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldStepVariant2.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionForecastFieldStepVariant2JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionForecastFieldStepVariant2 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::OpenRouter.ExtractionForecastFieldStepVariant2Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ExtractionForecastFieldStepVariant2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionForecastFieldStepVariant2); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionForecastFieldStepVariant2 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ExtractionForecastFieldStepVariant2Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldStepVariant2Nullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldStepVariant2Nullable.g.cs new file mode 100644 index 000000000..9c6f735b0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldStepVariant2Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionForecastFieldStepVariant2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionForecastFieldStepVariant2? 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::OpenRouter.ExtractionForecastFieldStepVariant2Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ExtractionForecastFieldStepVariant2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionForecastFieldStepVariant2?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionForecastFieldStepVariant2? 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::OpenRouter.ExtractionForecastFieldStepVariant2Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldStepVariant3.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldStepVariant3.g.cs new file mode 100644 index 000000000..d629c992a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldStepVariant3.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionForecastFieldStepVariant3JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionForecastFieldStepVariant3 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::OpenRouter.ExtractionForecastFieldStepVariant3Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ExtractionForecastFieldStepVariant3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionForecastFieldStepVariant3); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionForecastFieldStepVariant3 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ExtractionForecastFieldStepVariant3Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldStepVariant3Nullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldStepVariant3Nullable.g.cs new file mode 100644 index 000000000..74764ba8c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldStepVariant3Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionForecastFieldStepVariant3NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionForecastFieldStepVariant3? 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::OpenRouter.ExtractionForecastFieldStepVariant3Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ExtractionForecastFieldStepVariant3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionForecastFieldStepVariant3?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionForecastFieldStepVariant3? 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::OpenRouter.ExtractionForecastFieldStepVariant3Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldType.g.cs new file mode 100644 index 000000000..10433d330 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionForecastFieldTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionForecastFieldType 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::OpenRouter.ExtractionForecastFieldTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ExtractionForecastFieldType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionForecastFieldType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionForecastFieldType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ExtractionForecastFieldTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldTypeNullable.g.cs new file mode 100644 index 000000000..bf48e1206 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionForecastFieldTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionForecastFieldTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionForecastFieldType? 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::OpenRouter.ExtractionForecastFieldTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ExtractionForecastFieldType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionForecastFieldType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionForecastFieldType? 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::OpenRouter.ExtractionForecastFieldTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListAnswerSource.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListAnswerSource.g.cs new file mode 100644 index 000000000..45b2b1601 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListAnswerSource.g.cs @@ -0,0 +1,48 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionListAnswerSourceJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionListAnswerSource 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::OpenRouter.ExtractionListAnswerSourceExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionListAnswerSource); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionListAnswerSource value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ExtractionListAnswerSourceExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListAnswerSourceNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListAnswerSourceNullable.g.cs new file mode 100644 index 000000000..93a5c13bd --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListAnswerSourceNullable.g.cs @@ -0,0 +1,55 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionListAnswerSourceNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionListAnswerSource? 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::OpenRouter.ExtractionListAnswerSourceExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionListAnswerSource?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionListAnswerSource? 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::OpenRouter.ExtractionListAnswerSourceExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListAnswerType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListAnswerType.g.cs new file mode 100644 index 000000000..452d9b0bf --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListAnswerType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionListAnswerTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionListAnswerType 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::OpenRouter.ExtractionListAnswerTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ExtractionListAnswerType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionListAnswerType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionListAnswerType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ExtractionListAnswerTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListAnswerTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListAnswerTypeNullable.g.cs new file mode 100644 index 000000000..5c2842586 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListAnswerTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionListAnswerTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionListAnswerType? 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::OpenRouter.ExtractionListAnswerTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ExtractionListAnswerType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionListAnswerType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionListAnswerType? 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::OpenRouter.ExtractionListAnswerTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListFieldItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListFieldItems.g.cs new file mode 100644 index 000000000..556d68ea4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListFieldItems.g.cs @@ -0,0 +1,48 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionListFieldItemsJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionListFieldItems 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::OpenRouter.ExtractionListFieldItemsExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionListFieldItems); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionListFieldItems value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ExtractionListFieldItemsExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListFieldItemsNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListFieldItemsNullable.g.cs new file mode 100644 index 000000000..4f7e4ea77 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListFieldItemsNullable.g.cs @@ -0,0 +1,55 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionListFieldItemsNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionListFieldItems? 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::OpenRouter.ExtractionListFieldItemsExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionListFieldItems?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionListFieldItems? 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::OpenRouter.ExtractionListFieldItemsExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListFieldType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListFieldType.g.cs new file mode 100644 index 000000000..368679c7d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListFieldType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionListFieldTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionListFieldType 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::OpenRouter.ExtractionListFieldTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ExtractionListFieldType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionListFieldType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionListFieldType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ExtractionListFieldTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListFieldTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListFieldTypeNullable.g.cs new file mode 100644 index 000000000..dbd0b91d3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionListFieldTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionListFieldTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionListFieldType? 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::OpenRouter.ExtractionListFieldTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ExtractionListFieldType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionListFieldType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionListFieldType? 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::OpenRouter.ExtractionListFieldTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionNumberAnswerSource.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionNumberAnswerSource.g.cs new file mode 100644 index 000000000..187043441 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionNumberAnswerSource.g.cs @@ -0,0 +1,48 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionNumberAnswerSourceJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionNumberAnswerSource 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::OpenRouter.ExtractionNumberAnswerSourceExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionNumberAnswerSource); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionNumberAnswerSource value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ExtractionNumberAnswerSourceExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionNumberAnswerSourceNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionNumberAnswerSourceNullable.g.cs new file mode 100644 index 000000000..2afafcc4b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionNumberAnswerSourceNullable.g.cs @@ -0,0 +1,55 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionNumberAnswerSourceNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionNumberAnswerSource? 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::OpenRouter.ExtractionNumberAnswerSourceExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionNumberAnswerSource?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionNumberAnswerSource? 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::OpenRouter.ExtractionNumberAnswerSourceExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionNumberAnswerType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionNumberAnswerType.g.cs new file mode 100644 index 000000000..c9c002a8a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionNumberAnswerType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionNumberAnswerTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionNumberAnswerType 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::OpenRouter.ExtractionNumberAnswerTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ExtractionNumberAnswerType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionNumberAnswerType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionNumberAnswerType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ExtractionNumberAnswerTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionNumberAnswerTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionNumberAnswerTypeNullable.g.cs new file mode 100644 index 000000000..e1fb8c914 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionNumberAnswerTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionNumberAnswerTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionNumberAnswerType? 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::OpenRouter.ExtractionNumberAnswerTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ExtractionNumberAnswerType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionNumberAnswerType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionNumberAnswerType? 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::OpenRouter.ExtractionNumberAnswerTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionNumberFieldType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionNumberFieldType.g.cs new file mode 100644 index 000000000..b0d6f1689 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionNumberFieldType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionNumberFieldTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionNumberFieldType 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::OpenRouter.ExtractionNumberFieldTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ExtractionNumberFieldType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionNumberFieldType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionNumberFieldType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ExtractionNumberFieldTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionNumberFieldTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionNumberFieldTypeNullable.g.cs new file mode 100644 index 000000000..84537c5ce --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionNumberFieldTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionNumberFieldTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionNumberFieldType? 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::OpenRouter.ExtractionNumberFieldTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ExtractionNumberFieldType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionNumberFieldType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionNumberFieldType? 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::OpenRouter.ExtractionNumberFieldTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTextAnswerSource.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTextAnswerSource.g.cs new file mode 100644 index 000000000..539ab1669 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTextAnswerSource.g.cs @@ -0,0 +1,48 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionTextAnswerSourceJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionTextAnswerSource 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::OpenRouter.ExtractionTextAnswerSourceExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionTextAnswerSource); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionTextAnswerSource value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ExtractionTextAnswerSourceExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTextAnswerSourceNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTextAnswerSourceNullable.g.cs new file mode 100644 index 000000000..ae089b369 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTextAnswerSourceNullable.g.cs @@ -0,0 +1,55 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionTextAnswerSourceNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionTextAnswerSource? 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::OpenRouter.ExtractionTextAnswerSourceExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionTextAnswerSource?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionTextAnswerSource? 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::OpenRouter.ExtractionTextAnswerSourceExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTextAnswerType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTextAnswerType.g.cs new file mode 100644 index 000000000..83fd54893 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTextAnswerType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionTextAnswerTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionTextAnswerType 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::OpenRouter.ExtractionTextAnswerTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ExtractionTextAnswerType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionTextAnswerType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionTextAnswerType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ExtractionTextAnswerTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTextAnswerTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTextAnswerTypeNullable.g.cs new file mode 100644 index 000000000..250afd6ed --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTextAnswerTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionTextAnswerTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionTextAnswerType? 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::OpenRouter.ExtractionTextAnswerTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ExtractionTextAnswerType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionTextAnswerType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionTextAnswerType? 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::OpenRouter.ExtractionTextAnswerTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTextFieldType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTextFieldType.g.cs new file mode 100644 index 000000000..a0afb7426 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTextFieldType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionTextFieldTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionTextFieldType 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::OpenRouter.ExtractionTextFieldTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ExtractionTextFieldType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionTextFieldType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionTextFieldType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ExtractionTextFieldTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTextFieldTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTextFieldTypeNullable.g.cs new file mode 100644 index 000000000..1495edf65 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTextFieldTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionTextFieldTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionTextFieldType? 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::OpenRouter.ExtractionTextFieldTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ExtractionTextFieldType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionTextFieldType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionTextFieldType? 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::OpenRouter.ExtractionTextFieldTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTimeAnswerSource.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTimeAnswerSource.g.cs new file mode 100644 index 000000000..52c9898e4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTimeAnswerSource.g.cs @@ -0,0 +1,48 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionTimeAnswerSourceJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionTimeAnswerSource 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::OpenRouter.ExtractionTimeAnswerSourceExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionTimeAnswerSource); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionTimeAnswerSource value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ExtractionTimeAnswerSourceExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTimeAnswerSourceNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTimeAnswerSourceNullable.g.cs new file mode 100644 index 000000000..5fddbf141 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTimeAnswerSourceNullable.g.cs @@ -0,0 +1,55 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionTimeAnswerSourceNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionTimeAnswerSource? 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::OpenRouter.ExtractionTimeAnswerSourceExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionTimeAnswerSource?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionTimeAnswerSource? 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::OpenRouter.ExtractionTimeAnswerSourceExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTimeAnswerType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTimeAnswerType.g.cs new file mode 100644 index 000000000..49bdc8b82 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTimeAnswerType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionTimeAnswerTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionTimeAnswerType 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::OpenRouter.ExtractionTimeAnswerTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ExtractionTimeAnswerType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionTimeAnswerType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionTimeAnswerType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ExtractionTimeAnswerTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTimeAnswerTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTimeAnswerTypeNullable.g.cs new file mode 100644 index 000000000..9a577b24f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTimeAnswerTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionTimeAnswerTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionTimeAnswerType? 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::OpenRouter.ExtractionTimeAnswerTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ExtractionTimeAnswerType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionTimeAnswerType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionTimeAnswerType? 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::OpenRouter.ExtractionTimeAnswerTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTimeFieldType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTimeFieldType.g.cs new file mode 100644 index 000000000..4e860833b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTimeFieldType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionTimeFieldTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionTimeFieldType 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::OpenRouter.ExtractionTimeFieldTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ExtractionTimeFieldType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionTimeFieldType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionTimeFieldType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ExtractionTimeFieldTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTimeFieldTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTimeFieldTypeNullable.g.cs new file mode 100644 index 000000000..bed6da9a2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionTimeFieldTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionTimeFieldTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionTimeFieldType? 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::OpenRouter.ExtractionTimeFieldTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ExtractionTimeFieldType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionTimeFieldType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionTimeFieldType? 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::OpenRouter.ExtractionTimeFieldTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionsRequestFieldsDiscriminatorType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionsRequestFieldsDiscriminatorType.g.cs new file mode 100644 index 000000000..62f81870e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionsRequestFieldsDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionsRequestFieldsDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionsRequestFieldsDiscriminatorType 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::OpenRouter.ExtractionsRequestFieldsDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ExtractionsRequestFieldsDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionsRequestFieldsDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionsRequestFieldsDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ExtractionsRequestFieldsDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionsRequestFieldsDiscriminatorTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionsRequestFieldsDiscriminatorTypeNullable.g.cs new file mode 100644 index 000000000..4c7bfdf3e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionsRequestFieldsDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionsRequestFieldsDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionsRequestFieldsDiscriminatorType? 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::OpenRouter.ExtractionsRequestFieldsDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ExtractionsRequestFieldsDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionsRequestFieldsDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionsRequestFieldsDiscriminatorType? 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::OpenRouter.ExtractionsRequestFieldsDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionsResponseAnswersDiscriminatorType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionsResponseAnswersDiscriminatorType.g.cs new file mode 100644 index 000000000..345f15b61 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionsResponseAnswersDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionsResponseAnswersDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionsResponseAnswersDiscriminatorType 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::OpenRouter.ExtractionsResponseAnswersDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ExtractionsResponseAnswersDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionsResponseAnswersDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionsResponseAnswersDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ExtractionsResponseAnswersDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionsResponseAnswersDiscriminatorTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionsResponseAnswersDiscriminatorTypeNullable.g.cs new file mode 100644 index 000000000..75be452a6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ExtractionsResponseAnswersDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ExtractionsResponseAnswersDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ExtractionsResponseAnswersDiscriminatorType? 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::OpenRouter.ExtractionsResponseAnswersDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ExtractionsResponseAnswersDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ExtractionsResponseAnswersDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ExtractionsResponseAnswersDiscriminatorType? 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::OpenRouter.ExtractionsResponseAnswersDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.Fields.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.Fields.g.cs new file mode 100644 index 000000000..434da78db --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.Fields.g.cs @@ -0,0 +1,177 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace OpenRouter.JsonConverters +{ + /// + public class FieldsJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.Fields Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionsRequestFieldsDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ExtractionsRequestFieldsDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); + + global::OpenRouter.ExtractionTextField? text = default; + if (discriminator?.Type == global::OpenRouter.ExtractionsRequestFieldsDiscriminatorType.Text) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionTextField), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ExtractionTextField)}"); + text = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.ExtractionNumberField? number = default; + if (discriminator?.Type == global::OpenRouter.ExtractionsRequestFieldsDiscriminatorType.Number) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionNumberField), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ExtractionNumberField)}"); + number = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.ExtractionDateField? date = default; + if (discriminator?.Type == global::OpenRouter.ExtractionsRequestFieldsDiscriminatorType.Date) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionDateField), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ExtractionDateField)}"); + date = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.ExtractionTimeField? time = default; + if (discriminator?.Type == global::OpenRouter.ExtractionsRequestFieldsDiscriminatorType.Time) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionTimeField), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ExtractionTimeField)}"); + time = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.ExtractionDatetimeField? datetime = default; + if (discriminator?.Type == global::OpenRouter.ExtractionsRequestFieldsDiscriminatorType.Datetime) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionDatetimeField), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ExtractionDatetimeField)}"); + datetime = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.ExtractionDurationField? duration = default; + if (discriminator?.Type == global::OpenRouter.ExtractionsRequestFieldsDiscriminatorType.Duration) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionDurationField), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ExtractionDurationField)}"); + duration = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.ExtractionListField? list = default; + if (discriminator?.Type == global::OpenRouter.ExtractionsRequestFieldsDiscriminatorType.List) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionListField), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ExtractionListField)}"); + list = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.ExtractionEstimateField? estimate = default; + if (discriminator?.Type == global::OpenRouter.ExtractionsRequestFieldsDiscriminatorType.Estimate) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionEstimateField), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ExtractionEstimateField)}"); + estimate = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.ExtractionForecastField? forecast = default; + if (discriminator?.Type == global::OpenRouter.ExtractionsRequestFieldsDiscriminatorType.Forecast) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionForecastField), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.ExtractionForecastField)}"); + forecast = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + var __value = new global::OpenRouter.Fields( + discriminator?.Type, + text, + + number, + + date, + + time, + + datetime, + + duration, + + list, + + estimate, + + forecast + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.Fields value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsText) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionTextField), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ExtractionTextField).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo); + } + else if (value.IsNumber) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionNumberField), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ExtractionNumberField).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickNumber(), typeInfo); + } + else if (value.IsDate) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionDateField), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ExtractionDateField).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDate(), typeInfo); + } + else if (value.IsTime) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionTimeField), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ExtractionTimeField).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTime(), typeInfo); + } + else if (value.IsDatetime) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionDatetimeField), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ExtractionDatetimeField).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDatetime(), typeInfo); + } + else if (value.IsDuration) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionDurationField), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ExtractionDurationField).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDuration(), typeInfo); + } + else if (value.IsList) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionListField), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ExtractionListField).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickList(), typeInfo); + } + else if (value.IsEstimate) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionEstimateField), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ExtractionEstimateField).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEstimate(), typeInfo); + } + else if (value.IsForecast) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ExtractionForecastField), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ExtractionForecastField).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickForecast(), typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenResponsesResultVariant2AccessProgramsCyber.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenResponsesResultVariant2AccessProgramsCyber.g.cs new file mode 100644 index 000000000..136f12523 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenResponsesResultVariant2AccessProgramsCyber.g.cs @@ -0,0 +1,48 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class OpenResponsesResultVariant2AccessProgramsCyberJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OpenResponsesResultVariant2AccessProgramsCyber 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::OpenRouter.OpenResponsesResultVariant2AccessProgramsCyberExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.OpenResponsesResultVariant2AccessProgramsCyber); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OpenResponsesResultVariant2AccessProgramsCyber value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.OpenResponsesResultVariant2AccessProgramsCyberExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenResponsesResultVariant2AccessProgramsCyberNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenResponsesResultVariant2AccessProgramsCyberNullable.g.cs new file mode 100644 index 000000000..6d5177492 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenResponsesResultVariant2AccessProgramsCyberNullable.g.cs @@ -0,0 +1,55 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class OpenResponsesResultVariant2AccessProgramsCyberNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.OpenResponsesResultVariant2AccessProgramsCyber? 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::OpenRouter.OpenResponsesResultVariant2AccessProgramsCyberExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.OpenResponsesResultVariant2AccessProgramsCyber?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.OpenResponsesResultVariant2AccessProgramsCyber? 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::OpenRouter.OpenResponsesResultVariant2AccessProgramsCyberExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PublicZdrEndpoint.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PublicZdrEndpoint.g.cs new file mode 100644 index 000000000..a8f5a0c01 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PublicZdrEndpoint.g.cs @@ -0,0 +1,116 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace OpenRouter.JsonConverters +{ + /// + public class PublicZdrEndpointJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.PublicZdrEndpoint Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); + var __rawJson = __jsonDocument.RootElement.GetRawText(); + + global::OpenRouter.PublicEndpoint? publicEndpoint = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.PublicEndpoint), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.PublicEndpoint).Name}"); + publicEndpoint = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } + + global::OpenRouter.PublicZdrEndpointVariant2? publicZdrEndpointVariant2 = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.PublicZdrEndpointVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.PublicZdrEndpointVariant2).Name}"); + publicZdrEndpointVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } + var __value = new global::OpenRouter.PublicZdrEndpoint( + publicEndpoint, + + publicZdrEndpointVariant2 + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.PublicZdrEndpoint value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + + writer.WriteStartObject(); + var __writtenPropertyNames = new global::System.Collections.Generic.HashSet(global::System.StringComparer.Ordinal); + if (value.IsPublicEndpoint) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.PublicEndpoint), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.PublicEndpoint).Name}"); + var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickPublicEndpoint(), typeInfo); + if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object) + { + throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); + } + + foreach (var __property in __element0.EnumerateObject()) + { + if (__writtenPropertyNames.Add(__property.Name)) + { + __property.WriteTo(writer); + } + } + } + if (value.IsPublicZdrEndpointVariant2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.PublicZdrEndpointVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.PublicZdrEndpointVariant2).Name}"); + var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickPublicZdrEndpointVariant2(), typeInfo); + if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object) + { + throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); + } + + foreach (var __property in __element1.EnumerateObject()) + { + if (__writtenPropertyNames.Add(__property.Name)) + { + __property.WriteTo(writer); + } + } + } + writer.WriteEndObject(); + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestAccessProgramsCyber.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestAccessProgramsCyber.g.cs new file mode 100644 index 000000000..d0beb27e2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestAccessProgramsCyber.g.cs @@ -0,0 +1,48 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ResponsesRequestAccessProgramsCyberJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ResponsesRequestAccessProgramsCyber 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::OpenRouter.ResponsesRequestAccessProgramsCyberExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ResponsesRequestAccessProgramsCyber); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ResponsesRequestAccessProgramsCyber value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ResponsesRequestAccessProgramsCyberExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestAccessProgramsCyberNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestAccessProgramsCyberNullable.g.cs new file mode 100644 index 000000000..a21846454 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestAccessProgramsCyberNullable.g.cs @@ -0,0 +1,55 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ResponsesRequestAccessProgramsCyberNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ResponsesRequestAccessProgramsCyber? 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::OpenRouter.ResponsesRequestAccessProgramsCyberExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ResponsesRequestAccessProgramsCyber?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ResponsesRequestAccessProgramsCyber? 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::OpenRouter.ResponsesRequestAccessProgramsCyberExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs index 8d895a5c2..a6a912ff7 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs @@ -1310,6 +1310,9 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DebugEventDebugTimings))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DebugEventDebugTimingsEvent), TypeInfoPropertyName = "DebugEventDebugTimingsEvent2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DebugEventType), TypeInfoPropertyName = "DebugEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Decisions))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AllOf), TypeInfoPropertyName = "AllOfPercentileStatsObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PercentileStats))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DecisionsBoxAnswer))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DecisionsBoxAnswerBox))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DecisionsBoxAnswerType), TypeInfoPropertyName = "DecisionsBoxAnswerType2")] @@ -1336,7 +1339,7 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DecisionsRequestQuestionsDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DecisionsRequestQuestionsDiscriminatorType), TypeInfoPropertyName = "DecisionsRequestQuestionsDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DecisionsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Answers), TypeInfoPropertyName = "Answers2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Answers), TypeInfoPropertyName = "Answers2_3")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DecisionsScoreAnswer))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DecisionsResponseAnswersDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DecisionsResponseAnswersDiscriminatorType), TypeInfoPropertyName = "DecisionsResponseAnswersDiscriminatorType2")] @@ -1381,6 +1384,7 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EasyInputMessageType), TypeInfoPropertyName = "EasyInputMessageType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EdgeNetworkTimeoutResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EdgeNetworkTimeoutResponseErrorData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Embeddings))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EndpointInfo))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EndpointsMetadata))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -1388,6 +1392,79 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ErrorEvent), TypeInfoPropertyName = "ErrorEvent2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExternalUser))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExternalUserResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionAsset))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionAssetFormat), TypeInfoPropertyName = "ExtractionAssetFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionAssetType), TypeInfoPropertyName = "ExtractionAssetType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionDateAnswer))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionDateAnswerSource), TypeInfoPropertyName = "ExtractionDateAnswerSource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionDateAnswerType), TypeInfoPropertyName = "ExtractionDateAnswerType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionDateField))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionDateFieldType), TypeInfoPropertyName = "ExtractionDateFieldType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionDatetimeAnswer))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionDatetimeAnswerSource), TypeInfoPropertyName = "ExtractionDatetimeAnswerSource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionDatetimeAnswerType), TypeInfoPropertyName = "ExtractionDatetimeAnswerType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionDatetimeField))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionDatetimeFieldType), TypeInfoPropertyName = "ExtractionDatetimeFieldType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionDurationAnswer))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionDurationAnswerSource), TypeInfoPropertyName = "ExtractionDurationAnswerSource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionDurationAnswerType), TypeInfoPropertyName = "ExtractionDurationAnswerType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionDurationField))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionDurationFieldType), TypeInfoPropertyName = "ExtractionDurationFieldType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionEstimateAnswer))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "AnyOfDoubleString2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionEstimateAnswerSource), TypeInfoPropertyName = "ExtractionEstimateAnswerSource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionEstimateAnswerType), TypeInfoPropertyName = "ExtractionEstimateAnswerType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionEstimateField))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionEstimateFieldScale), TypeInfoPropertyName = "ExtractionEstimateFieldScale2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "AnyOfDoubleExtractionEstimateFieldStepVariant2ExtractionEstimateFieldStepVariant32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionEstimateFieldStepVariant2), TypeInfoPropertyName = "ExtractionEstimateFieldStepVariant22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionEstimateFieldStepVariant3), TypeInfoPropertyName = "ExtractionEstimateFieldStepVariant32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionEstimateFieldType), TypeInfoPropertyName = "ExtractionEstimateFieldType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionForecastAnswer))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionForecastAnswerSource), TypeInfoPropertyName = "ExtractionForecastAnswerSource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionForecastStep))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionForecastAnswerType), TypeInfoPropertyName = "ExtractionForecastAnswerType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionForecastField))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionForecastFieldInterval), TypeInfoPropertyName = "ExtractionForecastFieldInterval2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionForecastFieldScale), TypeInfoPropertyName = "ExtractionForecastFieldScale2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "AnyOfDoubleExtractionForecastFieldStepVariant2ExtractionForecastFieldStepVariant32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionForecastFieldStepVariant2), TypeInfoPropertyName = "ExtractionForecastFieldStepVariant22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionForecastFieldStepVariant3), TypeInfoPropertyName = "ExtractionForecastFieldStepVariant32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionForecastFieldType), TypeInfoPropertyName = "ExtractionForecastFieldType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionListAnswer))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionListAnswerSource), TypeInfoPropertyName = "ExtractionListAnswerSource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionListAnswerType), TypeInfoPropertyName = "ExtractionListAnswerType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionListField))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionListFieldItems), TypeInfoPropertyName = "ExtractionListFieldItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionListFieldType), TypeInfoPropertyName = "ExtractionListFieldType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionNumberAnswer))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionNumberAnswerSource), TypeInfoPropertyName = "ExtractionNumberAnswerSource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionNumberAnswerType), TypeInfoPropertyName = "ExtractionNumberAnswerType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionNumberField))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionNumberFieldType), TypeInfoPropertyName = "ExtractionNumberFieldType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionsRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Fields), TypeInfoPropertyName = "Fields2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionTextField))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionTimeField))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionsRequestFieldsDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionsRequestFieldsDiscriminatorType), TypeInfoPropertyName = "ExtractionsRequestFieldsDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Answers2), TypeInfoPropertyName = "Answers22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionTextAnswer))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionTimeAnswer))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionsResponseAnswersDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionsResponseAnswersDiscriminatorType), TypeInfoPropertyName = "ExtractionsResponseAnswersDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionsUsage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionTextAnswerSource), TypeInfoPropertyName = "ExtractionTextAnswerSource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionTextAnswerType), TypeInfoPropertyName = "ExtractionTextAnswerType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionTextFieldType), TypeInfoPropertyName = "ExtractionTextFieldType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionTimeAnswerSource), TypeInfoPropertyName = "ExtractionTimeAnswerSource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionTimeAnswerType), TypeInfoPropertyName = "ExtractionTimeAnswerType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionTimeFieldType), TypeInfoPropertyName = "ExtractionTimeFieldType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FailableToolCallStatus), TypeInfoPropertyName = "FailableToolCallStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FailedEvent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FailedEventType), TypeInfoPropertyName = "FailedEventType2")] @@ -1458,83 +1535,6 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionAnalysisResultUniqueInsight))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallAnalysisCompletedEvent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallAnalysisCompletedEventType), TypeInfoPropertyName = "FusionCallAnalysisCompletedEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallAnalysisInProgressEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallAnalysisInProgressEventType), TypeInfoPropertyName = "FusionCallAnalysisInProgressEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallCompletedEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallCompletedEventType), TypeInfoPropertyName = "FusionCallCompletedEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallInProgressEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallInProgressEventType), TypeInfoPropertyName = "FusionCallInProgressEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallPanelAddedEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallPanelAddedEventType), TypeInfoPropertyName = "FusionCallPanelAddedEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallPanelCompletedEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallPanelCompletedEventType), TypeInfoPropertyName = "FusionCallPanelCompletedEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallPanelDeltaEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallPanelDeltaEventType), TypeInfoPropertyName = "FusionCallPanelDeltaEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallPanelFailedEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallPanelFailedEventType), TypeInfoPropertyName = "FusionCallPanelFailedEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallPanelReasoningDeltaEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallPanelReasoningDeltaEventType), TypeInfoPropertyName = "FusionCallPanelReasoningDeltaEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionPluginId), TypeInfoPropertyName = "FusionPluginId2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionPluginPreset), TypeInfoPropertyName = "FusionPluginPreset2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionPluginTool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?>, object>), TypeInfoPropertyName = "AnyOfStringDoubleBooleanIListAnyOfStringDoubleBooleanObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList?>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "AnyOfStringDoubleBoolean2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionServerToolConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionServerToolOpenRouterType), TypeInfoPropertyName = "FusionServerToolOpenRouterType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionServerToolConfigReasoning))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionServerToolConfigReasoningEffort), TypeInfoPropertyName = "FusionServerToolConfigReasoningEffort2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionServerToolConfigTool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionSource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GatewayTimeoutResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GatewayTimeoutResponseErrorData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationContentData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationContentError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "AnyOfGenerationContentDataInputVariant1GenerationContentDataInputVariant22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationContentDataInputVariant1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationContentDataInputVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationContentDataOutput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationContentErrorAttempt))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationContentResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationResponseData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationResponseDataApiType), TypeInfoPropertyName = "GenerationResponseDataApiType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationResponseDataDataRegion), TypeInfoPropertyName = "GenerationResponseDataDataRegion2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetBYOKKeyResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetGuardrailResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetPresetResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetPresetVersionResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PresetDesignatedVersion))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetScimGroupMappingResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetScimSyncJobResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetToolResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ServerToolDetails), TypeInfoPropertyName = "ServerToolDetails2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetWorkspaceBudgetResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AllOf), TypeInfoPropertyName = "AllOfWorkspaceBudgetObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WorkspaceBudget))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetWorkspaceResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GoneResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GoneResponseErrorData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf>), TypeInfoPropertyName = "AnyOfStringDoubleIListObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageEndpoint))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImagePricingEntry))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AllOf, object>), TypeInfoPropertyName = "AllOfDictionaryStringCapabilityDescriptorObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenCallCompletedEvent), TypeInfoPropertyName = "ImageGenCallCompletedEvent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAIResponsesImageGenCallCompleted))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenCallGeneratingEvent), TypeInfoPropertyName = "ImageGenCallGeneratingEvent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAIResponsesImageGenCallGenerating))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenCallInProgressEvent), TypeInfoPropertyName = "ImageGenCallInProgressEvent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAIResponsesImageGenCallInProgress))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenCallPartialImageEvent), TypeInfoPropertyName = "ImageGenCallPartialImageEvent2")] internal sealed partial class SourceGenerationContextChunk2 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -1630,10 +1630,88 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool>>), TypeInfoPropertyName = "ToolSearchServerTool_ba88f27f2f078735")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool, global::OpenRouter.ToolSearchOutputItemTool2>>), TypeInfoPropertyName = "ToolSearchOutputItemTool2_8ae2a759aff9dd26")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "ContentPartInputFile_8471d29128267302")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallAnalysisInProgressEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallAnalysisInProgressEventType), TypeInfoPropertyName = "FusionCallAnalysisInProgressEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallCompletedEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallCompletedEventType), TypeInfoPropertyName = "FusionCallCompletedEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallInProgressEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallInProgressEventType), TypeInfoPropertyName = "FusionCallInProgressEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallPanelAddedEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallPanelAddedEventType), TypeInfoPropertyName = "FusionCallPanelAddedEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallPanelCompletedEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallPanelCompletedEventType), TypeInfoPropertyName = "FusionCallPanelCompletedEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallPanelDeltaEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallPanelDeltaEventType), TypeInfoPropertyName = "FusionCallPanelDeltaEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallPanelFailedEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallPanelFailedEventType), TypeInfoPropertyName = "FusionCallPanelFailedEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallPanelReasoningDeltaEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionCallPanelReasoningDeltaEventType), TypeInfoPropertyName = "FusionCallPanelReasoningDeltaEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionPluginId), TypeInfoPropertyName = "FusionPluginId2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionPluginPreset), TypeInfoPropertyName = "FusionPluginPreset2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionPluginTool))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?>, object>), TypeInfoPropertyName = "AnyOfStringDoubleBooleanIListAnyOfStringDoubleBooleanObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList?>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "AnyOfStringDoubleBoolean2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionServerToolConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionServerToolOpenRouterType), TypeInfoPropertyName = "FusionServerToolOpenRouterType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionServerToolConfigReasoning))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionServerToolConfigReasoningEffort), TypeInfoPropertyName = "FusionServerToolConfigReasoningEffort2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionServerToolConfigTool))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FusionSource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GatewayTimeoutResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GatewayTimeoutResponseErrorData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationContentData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationContentError))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "AnyOfGenerationContentDataInputVariant1GenerationContentDataInputVariant22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationContentDataInputVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationContentDataInputVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationContentDataOutput))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationContentErrorAttempt))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationContentResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationResponseData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationResponseDataApiType), TypeInfoPropertyName = "GenerationResponseDataApiType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GenerationResponseDataDataRegion), TypeInfoPropertyName = "GenerationResponseDataDataRegion2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetBYOKKeyResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetGuardrailResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetPresetResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetPresetVersionResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PresetDesignatedVersion))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetScimGroupMappingResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetScimSyncJobResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetToolResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ServerToolDetails), TypeInfoPropertyName = "ServerToolDetails2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetWorkspaceBudgetResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AllOf), TypeInfoPropertyName = "AllOfWorkspaceBudgetObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WorkspaceBudget))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetWorkspaceResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GoneResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GoneResponseErrorData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf>), TypeInfoPropertyName = "AnyOfStringDoubleIListObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageEndpoint))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImagePricingEntry))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AllOf, object>), TypeInfoPropertyName = "AllOfDictionaryStringCapabilityDescriptorObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenCallCompletedEvent), TypeInfoPropertyName = "ImageGenCallCompletedEvent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAIResponsesImageGenCallCompleted))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenCallGeneratingEvent), TypeInfoPropertyName = "ImageGenCallGeneratingEvent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAIResponsesImageGenCallGenerating))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenCallInProgressEvent), TypeInfoPropertyName = "ImageGenCallInProgressEvent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAIResponsesImageGenCallInProgress))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenCallPartialImageEvent), TypeInfoPropertyName = "ImageGenCallPartialImageEvent2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAIResponsesImageGenCallPartialImage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenCompletedEvent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenCompletedEventType), TypeInfoPropertyName = "ImageGenCompletedEventType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationUsage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGeneration))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationProviderPreferences))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AllOf), TypeInfoPropertyName = "AllOfProviderOptionsObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderOptions))] @@ -1973,84 +2051,6 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolChoiceVariant2Type), TypeInfoPropertyName = "MessagesRequestToolChoiceVariant2Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolChoiceVariant3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolChoiceVariant3Type), TypeInfoPropertyName = "MessagesRequestToolChoiceVariant3Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolChoiceVariant4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolChoiceVariant4Type), TypeInfoPropertyName = "MessagesRequestToolChoiceVariant4Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant1InputSchema))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant1Type), TypeInfoPropertyName = "MessagesRequestToolVariant1Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant2Name), TypeInfoPropertyName = "MessagesRequestToolVariant2Name2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant2Type), TypeInfoPropertyName = "MessagesRequestToolVariant2Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant3Name), TypeInfoPropertyName = "MessagesRequestToolVariant3Name2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant3Type), TypeInfoPropertyName = "MessagesRequestToolVariant3Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant4Name), TypeInfoPropertyName = "MessagesRequestToolVariant4Name2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant4Type), TypeInfoPropertyName = "MessagesRequestToolVariant4Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant5Name), TypeInfoPropertyName = "MessagesRequestToolVariant5Name2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant5Type), TypeInfoPropertyName = "MessagesRequestToolVariant5Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant6Name), TypeInfoPropertyName = "MessagesRequestToolVariant6Name2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant6Type), TypeInfoPropertyName = "MessagesRequestToolVariant6Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesSearchModelsServerTool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant13))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesResult), TypeInfoPropertyName = "MessagesResult2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesResultVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesResultVariant2ContextManagement))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesResultVariant2ContextManagementAppliedEdit))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AllOf), TypeInfoPropertyName = "AllOfAnthropicUsageMessagesResultVariant2Usage2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesResultVariant2Usage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesSearchModelsServerToolType), TypeInfoPropertyName = "MessagesSearchModelsServerToolType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesShellToolResultBlockFile))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesShellToolResultBlockFileType), TypeInfoPropertyName = "MessagesShellToolResultBlockFileType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesShellToolResultBlockType), TypeInfoPropertyName = "MessagesShellToolResultBlockType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStartEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStartEventMessage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStartEventMessageProvider), TypeInfoPropertyName = "MessagesStartEventMessageProvider2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStartEventMessageRole), TypeInfoPropertyName = "MessagesStartEventMessageRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStartEventMessageType), TypeInfoPropertyName = "MessagesStartEventMessageType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AllOf), TypeInfoPropertyName = "AllOfAnthropicUsageMessagesStartEventMessageUsage2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStartEventMessageUsage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStartEventType), TypeInfoPropertyName = "MessagesStartEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStopEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStopEventType), TypeInfoPropertyName = "MessagesStopEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStreamEvents), TypeInfoPropertyName = "MessagesStreamEvents2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStreamEventsDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStreamEventsDiscriminatorType), TypeInfoPropertyName = "MessagesStreamEventsDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStreamingResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolAdditionBlockToolVariant1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolAdditionBlockToolVariant1Type), TypeInfoPropertyName = "MessagesToolAdditionBlockToolVariant1Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolAdditionBlockToolVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolAdditionBlockToolVariant2Type), TypeInfoPropertyName = "MessagesToolAdditionBlockToolVariant2Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolAdditionBlockToolVariant3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolAdditionBlockToolVariant3Type), TypeInfoPropertyName = "MessagesToolAdditionBlockToolVariant3Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolAdditionBlockToolVariant4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolAdditionBlockToolVariant4Type), TypeInfoPropertyName = "MessagesToolAdditionBlockToolVariant4Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolAdditionBlockType), TypeInfoPropertyName = "MessagesToolAdditionBlockType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfMessagesToolRemovalBlockToolVariant1MessagesToolRemovalBlockToolVariant2MessagesToolRemovalBlockToolVariant32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolRemovalBlockToolVariant1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolRemovalBlockToolVariant1Type), TypeInfoPropertyName = "MessagesToolRemovalBlockToolVariant1Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolRemovalBlockToolVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolRemovalBlockToolVariant2Type), TypeInfoPropertyName = "MessagesToolRemovalBlockToolVariant2Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolRemovalBlockToolVariant3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolRemovalBlockToolVariant3Type), TypeInfoPropertyName = "MessagesToolRemovalBlockToolVariant3Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolRemovalBlockType), TypeInfoPropertyName = "MessagesToolRemovalBlockType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MetadataLevel), TypeInfoPropertyName = "MetadataLevel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Model))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelAliasTarget))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelBenchmarks))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelLinks))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PerRequestLimits))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PublicPricing))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelReasoning))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Parameter), TypeInfoPropertyName = "Parameter2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.TopProviderInfo))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AllOf), TypeInfoPropertyName = "AllOfReasoningEffortObject2")] internal sealed partial class SourceGenerationContextChunk3 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -2146,28 +2146,107 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool>>), TypeInfoPropertyName = "ToolSearchServerTool_ba88f27f2f078735")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool, global::OpenRouter.ToolSearchOutputItemTool2>>), TypeInfoPropertyName = "ToolSearchOutputItemTool2_8ae2a759aff9dd26")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "ContentPartInputFile_8471d29128267302")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelsCountResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelsCountResponseData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelsListResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelsListResponseLinks))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModerationPluginId), TypeInfoPropertyName = "ModerationPluginId2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.NamespaceFunctionTool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.NamespaceFunctionToolAllowedCaller), TypeInfoPropertyName = "NamespaceFunctionToolAllowedCaller2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.NamespaceFunctionToolType), TypeInfoPropertyName = "NamespaceFunctionToolType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "AnyOfNamespaceFunctionToolCustomTool2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.NamespaceToolType), TypeInfoPropertyName = "NamespaceToolType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.NotFoundResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.NotFoundResponseErrorData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OAuthErrorResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OAuthErrorResponseError), TypeInfoPropertyName = "OAuthErrorResponseError2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OAuthJwks))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OAuthJwksKey))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolChoiceVariant4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolChoiceVariant4Type), TypeInfoPropertyName = "MessagesRequestToolChoiceVariant4Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant1InputSchema))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant1Type), TypeInfoPropertyName = "MessagesRequestToolVariant1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant2Name), TypeInfoPropertyName = "MessagesRequestToolVariant2Name2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant2Type), TypeInfoPropertyName = "MessagesRequestToolVariant2Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant3Name), TypeInfoPropertyName = "MessagesRequestToolVariant3Name2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant3Type), TypeInfoPropertyName = "MessagesRequestToolVariant3Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant4Name), TypeInfoPropertyName = "MessagesRequestToolVariant4Name2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant4Type), TypeInfoPropertyName = "MessagesRequestToolVariant4Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant5))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant5Name), TypeInfoPropertyName = "MessagesRequestToolVariant5Name2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant5Type), TypeInfoPropertyName = "MessagesRequestToolVariant5Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant6))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant6Name), TypeInfoPropertyName = "MessagesRequestToolVariant6Name2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant6Type), TypeInfoPropertyName = "MessagesRequestToolVariant6Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesSearchModelsServerTool))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestToolVariant13))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesResult), TypeInfoPropertyName = "MessagesResult2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesResultVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesResultVariant2ContextManagement))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesResultVariant2ContextManagementAppliedEdit))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AllOf), TypeInfoPropertyName = "AllOfAnthropicUsageMessagesResultVariant2Usage2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesResultVariant2Usage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesSearchModelsServerToolType), TypeInfoPropertyName = "MessagesSearchModelsServerToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesShellToolResultBlockFile))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesShellToolResultBlockFileType), TypeInfoPropertyName = "MessagesShellToolResultBlockFileType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesShellToolResultBlockType), TypeInfoPropertyName = "MessagesShellToolResultBlockType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStartEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStartEventMessage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStartEventMessageProvider), TypeInfoPropertyName = "MessagesStartEventMessageProvider2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStartEventMessageRole), TypeInfoPropertyName = "MessagesStartEventMessageRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStartEventMessageType), TypeInfoPropertyName = "MessagesStartEventMessageType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AllOf), TypeInfoPropertyName = "AllOfAnthropicUsageMessagesStartEventMessageUsage2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStartEventMessageUsage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStartEventType), TypeInfoPropertyName = "MessagesStartEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStopEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStopEventType), TypeInfoPropertyName = "MessagesStopEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStreamEvents), TypeInfoPropertyName = "MessagesStreamEvents2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStreamEventsDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStreamEventsDiscriminatorType), TypeInfoPropertyName = "MessagesStreamEventsDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesStreamingResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolAdditionBlockToolVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolAdditionBlockToolVariant1Type), TypeInfoPropertyName = "MessagesToolAdditionBlockToolVariant1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolAdditionBlockToolVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolAdditionBlockToolVariant2Type), TypeInfoPropertyName = "MessagesToolAdditionBlockToolVariant2Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolAdditionBlockToolVariant3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolAdditionBlockToolVariant3Type), TypeInfoPropertyName = "MessagesToolAdditionBlockToolVariant3Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolAdditionBlockToolVariant4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolAdditionBlockToolVariant4Type), TypeInfoPropertyName = "MessagesToolAdditionBlockToolVariant4Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolAdditionBlockType), TypeInfoPropertyName = "MessagesToolAdditionBlockType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfMessagesToolRemovalBlockToolVariant1MessagesToolRemovalBlockToolVariant2MessagesToolRemovalBlockToolVariant32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolRemovalBlockToolVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolRemovalBlockToolVariant1Type), TypeInfoPropertyName = "MessagesToolRemovalBlockToolVariant1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolRemovalBlockToolVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolRemovalBlockToolVariant2Type), TypeInfoPropertyName = "MessagesToolRemovalBlockToolVariant2Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolRemovalBlockToolVariant3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolRemovalBlockToolVariant3Type), TypeInfoPropertyName = "MessagesToolRemovalBlockToolVariant3Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesToolRemovalBlockType), TypeInfoPropertyName = "MessagesToolRemovalBlockType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MetadataLevel), TypeInfoPropertyName = "MetadataLevel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Model))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelAliasTarget))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelBenchmarks))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelLinks))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PerRequestLimits))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PublicPricing))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelReasoning))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Parameter), TypeInfoPropertyName = "Parameter2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.TopProviderInfo))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AllOf), TypeInfoPropertyName = "AllOfReasoningEffortObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelsCountResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelsCountResponseData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelsListResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelsListResponseLinks))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModerationPluginId), TypeInfoPropertyName = "ModerationPluginId2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.NamespaceFunctionTool))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.NamespaceFunctionToolAllowedCaller), TypeInfoPropertyName = "NamespaceFunctionToolAllowedCaller2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.NamespaceFunctionToolType), TypeInfoPropertyName = "NamespaceFunctionToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "AnyOfNamespaceFunctionToolCustomTool2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.NamespaceToolType), TypeInfoPropertyName = "NamespaceToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.NativeTools))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.NotFoundResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.NotFoundResponseErrorData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OAuthErrorResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OAuthErrorResponseError), TypeInfoPropertyName = "OAuthErrorResponseError2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OAuthJwks))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OAuthJwksKey))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OAuthJwksKeyAlg), TypeInfoPropertyName = "OAuthJwksKeyAlg2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OAuthJwksKeyCrv), TypeInfoPropertyName = "OAuthJwksKeyCrv2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OAuthJwksKeyKty), TypeInfoPropertyName = "OAuthJwksKeyKty2")] @@ -2318,6 +2397,8 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenResponsesTopLogprobs))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenResponsesResultVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenResponsesResultVariant2AccessPrograms))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenResponsesResultVariant2AccessProgramsCyber), TypeInfoPropertyName = "OpenResponsesResultVariant2AccessProgramsCyber2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItems), TypeInfoPropertyName = "OutputItems2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.TextExtendedConfig), TypeInfoPropertyName = "TextExtendedConfig2")] @@ -2480,87 +2561,6 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputToolSearchServerToolItemMatche))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputToolSearchServerToolItemType), TypeInfoPropertyName = "OutputToolSearchServerToolItemType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputWebFetchServerToolItemType), TypeInfoPropertyName = "OutputWebFetchServerToolItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputWebSearchServerToolItemAction))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputWebSearchServerToolItemActionSource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputWebSearchServerToolItemActionSourceType), TypeInfoPropertyName = "OutputWebSearchServerToolItemActionSourceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputWebSearchServerToolItemActionType), TypeInfoPropertyName = "OutputWebSearchServerToolItemActionType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputWebSearchServerToolItemType), TypeInfoPropertyName = "OutputWebSearchServerToolItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ParetoRouterPluginId), TypeInfoPropertyName = "ParetoRouterPluginId2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ParetoRouterPluginPriceSource), TypeInfoPropertyName = "ParetoRouterPluginPriceSource2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PayloadTooLargeResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PayloadTooLargeResponseErrorData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PaymentRequiredResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PaymentRequiredResponseErrorData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PDFParserEngine), TypeInfoPropertyName = "PDFParserEngine2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PDFParserEngineVariant1), TypeInfoPropertyName = "PDFParserEngineVariant12")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PDFParserEngineVariant2), TypeInfoPropertyName = "PDFParserEngineVariant22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PercentileLatencyCutoffs))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PercentileStats))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PercentileThroughputCutoffs))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PipelineStageType), TypeInfoPropertyName = "PipelineStageType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf>), TypeInfoPropertyName = "AnyOfStringIListPredictionContentText2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PredictionContentText))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PredictionType), TypeInfoPropertyName = "PredictionType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PredictionContentTextType), TypeInfoPropertyName = "PredictionContentTextType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PreferredMaxLatency), TypeInfoPropertyName = "PreferredMaxLatency2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PreferredMinThroughput), TypeInfoPropertyName = "PreferredMinThroughput2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PresetStatus), TypeInfoPropertyName = "PresetStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PresetWithDesignatedVersionVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Preview20250311WebSearchServerToolType), TypeInfoPropertyName = "Preview20250311WebSearchServerToolType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PreviewWebSearchUserLocation))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PreviewWebSearchServerToolType), TypeInfoPropertyName = "PreviewWebSearchServerToolType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PreviewWebSearchUserLocationType), TypeInfoPropertyName = "PreviewWebSearchUserLocationType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PricingOverride))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PricingOverrideUtcDay), TypeInfoPropertyName = "PricingOverrideUtcDay2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateEndpoint))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateEndpointSettings))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateEndpointStatus), TypeInfoPropertyName = "PrivateEndpointStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateEndpointCheck))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateEndpointCheckReason), TypeInfoPropertyName = "PrivateEndpointCheckReason2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateEndpointParameterCheck))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateEndpointQuantization), TypeInfoPropertyName = "PrivateEndpointQuantization2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateEndpointReasoningReturnMechanism), TypeInfoPropertyName = "PrivateEndpointReasoningReturnMechanism2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateEndpointResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateEndpointSettingsCompletions))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateEndpointSettingsExcludedParameter), TypeInfoPropertyName = "PrivateEndpointSettingsExcludedParameter2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateEndpointSettingsInputs))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateEndpointSettingsReasoning))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateEndpointSettingsToolChoice))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateEndpointValidation))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateEndpointValidationResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateProvider))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateProviderDataPolicy))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PromptCacheBreakpointMode), TypeInfoPropertyName = "PromptCacheBreakpointMode2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PromptCacheOptionsMode), TypeInfoPropertyName = "PromptCacheOptionsMode2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderOverloadedResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderOverloadedResponseErrorData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderPreferencesDataCollection), TypeInfoPropertyName = "ProviderPreferencesDataCollection2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderPreferencesMaxPrice))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Quantization), TypeInfoPropertyName = "Quantization2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderResponseProviderName), TypeInfoPropertyName = "ProviderResponseProviderName2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderResponseRoutedServiceTier), TypeInfoPropertyName = "ProviderResponseRoutedServiceTier2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderSortConfigBy), TypeInfoPropertyName = "ProviderSortConfigBy2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderSortConfigPartition), TypeInfoPropertyName = "ProviderSortConfigPartition2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PublicEndpointNativeTools2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PublicEndpointPerfLast30mByWorkload))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PublicEndpointPerfLast30mByWorkloadDecisions))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AllOf), TypeInfoPropertyName = "AllOfPercentileStatsObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PublicEndpointPerfLast30mByWorkloadEmbeddings))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PublicEndpointPerfLast30mByWorkloadImageGeneration))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PublicEndpointPerfLast30mByWorkloadRerank))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PublicEndpointPerfLast30mByWorkloadStt))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PublicEndpointPerfLast30mByWorkloadTextGeneration))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PublicEndpointPerfLast30mByWorkloadTts))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PublicEndpointPerfLast30mByWorkloadUnknown))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PublicEndpointPerfLast30mByWorkloadVideoGeneration))] internal sealed partial class SourceGenerationContextChunk4 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -2656,10 +2656,87 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool>>), TypeInfoPropertyName = "ToolSearchServerTool_ba88f27f2f078735")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool, global::OpenRouter.ToolSearchOutputItemTool2>>), TypeInfoPropertyName = "ToolSearchOutputItemTool2_8ae2a759aff9dd26")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "ContentPartInputFile_8471d29128267302")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PublicEndpointPricing))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputWebSearchServerToolItemAction))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputWebSearchServerToolItemActionSource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputWebSearchServerToolItemActionSourceType), TypeInfoPropertyName = "OutputWebSearchServerToolItemActionSourceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputWebSearchServerToolItemActionType), TypeInfoPropertyName = "OutputWebSearchServerToolItemActionType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputWebSearchServerToolItemType), TypeInfoPropertyName = "OutputWebSearchServerToolItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ParetoRouterPluginId), TypeInfoPropertyName = "ParetoRouterPluginId2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ParetoRouterPluginPriceSource), TypeInfoPropertyName = "ParetoRouterPluginPriceSource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PayloadTooLargeResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PayloadTooLargeResponseErrorData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PaymentRequiredResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PaymentRequiredResponseErrorData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PDFParserEngine), TypeInfoPropertyName = "PDFParserEngine2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PDFParserEngineVariant1), TypeInfoPropertyName = "PDFParserEngineVariant12")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PDFParserEngineVariant2), TypeInfoPropertyName = "PDFParserEngineVariant22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PercentileLatencyCutoffs))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PercentileThroughputCutoffs))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PerfLast30mByWorkload))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Rerank))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Stt))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.TextGeneration))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Tts))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Unknown))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoGeneration))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PipelineStageType), TypeInfoPropertyName = "PipelineStageType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf>), TypeInfoPropertyName = "AnyOfStringIListPredictionContentText2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PredictionContentText))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PredictionType), TypeInfoPropertyName = "PredictionType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PredictionContentTextType), TypeInfoPropertyName = "PredictionContentTextType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PreferredMaxLatency), TypeInfoPropertyName = "PreferredMaxLatency2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PreferredMinThroughput), TypeInfoPropertyName = "PreferredMinThroughput2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PresetStatus), TypeInfoPropertyName = "PresetStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PresetWithDesignatedVersionVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Preview20250311WebSearchServerToolType), TypeInfoPropertyName = "Preview20250311WebSearchServerToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PreviewWebSearchUserLocation))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PreviewWebSearchServerToolType), TypeInfoPropertyName = "PreviewWebSearchServerToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PreviewWebSearchUserLocationType), TypeInfoPropertyName = "PreviewWebSearchUserLocationType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Pricing))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PricingOverride))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PricingOverrideUtcDay), TypeInfoPropertyName = "PricingOverrideUtcDay2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateEndpoint))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateEndpointSettings))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateEndpointStatus), TypeInfoPropertyName = "PrivateEndpointStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateEndpointCheck))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateEndpointCheckReason), TypeInfoPropertyName = "PrivateEndpointCheckReason2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateEndpointParameterCheck))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateEndpointQuantization), TypeInfoPropertyName = "PrivateEndpointQuantization2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateEndpointReasoningReturnMechanism), TypeInfoPropertyName = "PrivateEndpointReasoningReturnMechanism2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateEndpointResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateEndpointSettingsCompletions))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateEndpointSettingsExcludedParameter), TypeInfoPropertyName = "PrivateEndpointSettingsExcludedParameter2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateEndpointSettingsInputs))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateEndpointSettingsReasoning))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateEndpointSettingsToolChoice))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateEndpointValidation))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateEndpointValidationResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateProvider))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PrivateProviderDataPolicy))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PromptCacheBreakpointMode), TypeInfoPropertyName = "PromptCacheBreakpointMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PromptCacheOptionsMode), TypeInfoPropertyName = "PromptCacheOptionsMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderOverloadedResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderOverloadedResponseErrorData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderPreferencesDataCollection), TypeInfoPropertyName = "ProviderPreferencesDataCollection2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderPreferencesMaxPrice))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Quantization), TypeInfoPropertyName = "Quantization2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderResponseProviderName), TypeInfoPropertyName = "ProviderResponseProviderName2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderResponseRoutedServiceTier), TypeInfoPropertyName = "ProviderResponseRoutedServiceTier2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderSortConfigBy), TypeInfoPropertyName = "ProviderSortConfigBy2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderSortConfigPartition), TypeInfoPropertyName = "ProviderSortConfigPartition2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PublicServiceTier), TypeInfoPropertyName = "PublicServiceTier2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ToolChoiceSupport))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PublicZdrEndpoint), TypeInfoPropertyName = "PublicZdrEndpoint2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PublicZdrEndpointVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RangeCapabilityType), TypeInfoPropertyName = "RangeCapabilityType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RankingsDailyItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RankingsDailyMetaVersion), TypeInfoPropertyName = "RankingsDailyMetaVersion2")] @@ -2696,6 +2773,8 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponseOutputTextType), TypeInfoPropertyName = "ResponseOutputTextType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesErrorFieldCode), TypeInfoPropertyName = "ResponsesErrorFieldCode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestAccessPrograms))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestAccessProgramsCyber), TypeInfoPropertyName = "ResponsesRequestAccessProgramsCyber2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -2992,85 +3071,6 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VaultRoutingTableSecret))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VaultRoutingTableSecretScope), TypeInfoPropertyName = "VaultRoutingTableSecretScope2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VaultRoutingTableSlack))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VaultRoutingTableSlackMemberLink))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VaultSecret))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VaultSecretCopyRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VaultSecretCopyResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VaultSecretListResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VaultSecretResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VaultSecretWriteRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoGenerationRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoGenerationRequestAspectRatio), TypeInfoPropertyName = "VideoGenerationRequestAspectRatio2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoGenerationRequestProvider))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoGenerationRequestResolution), TypeInfoPropertyName = "VideoGenerationRequestResolution2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoGenerationResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoGenerationResponseStatus), TypeInfoPropertyName = "VideoGenerationResponseStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoGenerationUsage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoModel))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoModelSupportedAspectRatio), TypeInfoPropertyName = "VideoModelSupportedAspectRatio2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoModelSupportedFrameImage), TypeInfoPropertyName = "VideoModelSupportedFrameImage2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoModelSupportedResolution), TypeInfoPropertyName = "VideoModelSupportedResolution2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoModelSupportedSize), TypeInfoPropertyName = "VideoModelSupportedSize2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoModelUpscaleFactor))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoModelsListResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebFetchEngineEnum), TypeInfoPropertyName = "WebFetchEngineEnum2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebFetchPluginId), TypeInfoPropertyName = "WebFetchPluginId2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebFetchServerToolConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebFetchServerToolType), TypeInfoPropertyName = "WebFetchServerToolType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebSearchEngine), TypeInfoPropertyName = "WebSearchEngine2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebSearchPluginId), TypeInfoPropertyName = "WebSearchPluginId2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AllOf), TypeInfoPropertyName = "AllOfWebSearchUserLocationObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebSearchServerToolType), TypeInfoPropertyName = "WebSearchServerToolType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebSearchServerToolConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebSearchServerToolOpenRouterType), TypeInfoPropertyName = "WebSearchServerToolOpenRouterType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebSearchSourceType), TypeInfoPropertyName = "WebSearchSourceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebSearchUserLocationType), TypeInfoPropertyName = "WebSearchUserLocationType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebSearchUserLocationServerToolType), TypeInfoPropertyName = "WebSearchUserLocationServerToolType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WorkspaceBudgetResetInterval), TypeInfoPropertyName = "WorkspaceBudgetResetInterval2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WorkspaceBudgetInterval), TypeInfoPropertyName = "WorkspaceBudgetInterval2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WorkspaceMemberRole), TypeInfoPropertyName = "WorkspaceMemberRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.QueryAnalyticsRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.QueryAnalyticsRequestClassifierDimensions))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.QueryAnalyticsRequestClassifierFilters))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.QueryAnalyticsRequestOrderBy))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.QueryAnalyticsRequestOrderByDirection), TypeInfoPropertyName = "QueryAnalyticsRequestOrderByDirection2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.QueryAnalyticsRequestTimeRange))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateAudioTranscriptionsRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateAudioTranscriptionsRequestResponseFormat), TypeInfoPropertyName = "CreateAudioTranscriptionsRequestResponseFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateAudioTranscriptionsRequestTimestampGranularitie), TypeInfoPropertyName = "CreateAudioTranscriptionsRequestTimestampGranularitie2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExchangeAuthCodeForAPIKeyRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExchangeAuthCodeForAPIKeyRequestCodeChallengeMethod), TypeInfoPropertyName = "ExchangeAuthCodeForAPIKeyRequestCodeChallengeMethod2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateAuthKeysCodeRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateAuthKeysCodeRequestCodeChallengeMethod), TypeInfoPropertyName = "CreateAuthKeysCodeRequestCodeChallengeMethod2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateAuthKeysCodeRequestUsageLimitType), TypeInfoPropertyName = "CreateAuthKeysCodeRequestUsageLimitType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateEmbeddingsRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateEmbeddingsRequestEncodingFormat), TypeInfoPropertyName = "CreateEmbeddingsRequestEncodingFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>, global::System.Collections.Generic.IList>), TypeInfoPropertyName = "AnyOfStringIListStringIListDoubleIListIListDoubleIListCreateEmbeddingsRequestInputVariant5Item2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateEmbeddingsRequestInputVariant5Item))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateEmbeddingsRequestInputVariant5ItemContentItemVariant1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateEmbeddingsRequestInputVariant5ItemContentItemVariant1Type), TypeInfoPropertyName = "CreateEmbeddingsRequestInputVariant5ItemContentItemVariant1Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateEmbeddingsRequestInputVariant5ItemContentItemVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateEmbeddingsRequestInputVariant5ItemContentItemVariant2ImageUrl))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateEmbeddingsRequestInputVariant5ItemContentItemVariant2Type), TypeInfoPropertyName = "CreateEmbeddingsRequestInputVariant5ItemContentItemVariant2Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UploadFileRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateKeysRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateKeysRequestExternal))] internal sealed partial class SourceGenerationContextChunk5 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -3166,6 +3166,85 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool>>), TypeInfoPropertyName = "ToolSearchServerTool_ba88f27f2f078735")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool, global::OpenRouter.ToolSearchOutputItemTool2>>), TypeInfoPropertyName = "ToolSearchOutputItemTool2_8ae2a759aff9dd26")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "ContentPartInputFile_8471d29128267302")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VaultRoutingTableSlack))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VaultRoutingTableSlackMemberLink))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VaultSecret))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VaultSecretCopyRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VaultSecretCopyResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VaultSecretListResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VaultSecretResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VaultSecretWriteRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoGenerationRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoGenerationRequestAspectRatio), TypeInfoPropertyName = "VideoGenerationRequestAspectRatio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoGenerationRequestProvider))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoGenerationRequestResolution), TypeInfoPropertyName = "VideoGenerationRequestResolution2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoGenerationResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoGenerationResponseStatus), TypeInfoPropertyName = "VideoGenerationResponseStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoGenerationUsage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoModel))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoModelSupportedAspectRatio), TypeInfoPropertyName = "VideoModelSupportedAspectRatio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoModelSupportedFrameImage), TypeInfoPropertyName = "VideoModelSupportedFrameImage2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoModelSupportedResolution), TypeInfoPropertyName = "VideoModelSupportedResolution2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoModelSupportedSize), TypeInfoPropertyName = "VideoModelSupportedSize2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoModelUpscaleFactor))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoModelsListResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebFetchEngineEnum), TypeInfoPropertyName = "WebFetchEngineEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebFetchPluginId), TypeInfoPropertyName = "WebFetchPluginId2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebFetchServerToolConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebFetchServerToolType), TypeInfoPropertyName = "WebFetchServerToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebSearchEngine), TypeInfoPropertyName = "WebSearchEngine2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebSearchPluginId), TypeInfoPropertyName = "WebSearchPluginId2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AllOf), TypeInfoPropertyName = "AllOfWebSearchUserLocationObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebSearchServerToolType), TypeInfoPropertyName = "WebSearchServerToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebSearchServerToolConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebSearchServerToolOpenRouterType), TypeInfoPropertyName = "WebSearchServerToolOpenRouterType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebSearchSourceType), TypeInfoPropertyName = "WebSearchSourceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebSearchUserLocationType), TypeInfoPropertyName = "WebSearchUserLocationType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebSearchUserLocationServerToolType), TypeInfoPropertyName = "WebSearchUserLocationServerToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WorkspaceBudgetResetInterval), TypeInfoPropertyName = "WorkspaceBudgetResetInterval2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WorkspaceBudgetInterval), TypeInfoPropertyName = "WorkspaceBudgetInterval2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WorkspaceMemberRole), TypeInfoPropertyName = "WorkspaceMemberRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.QueryAnalyticsRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.QueryAnalyticsRequestClassifierDimensions))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.QueryAnalyticsRequestClassifierFilters))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.QueryAnalyticsRequestOrderBy))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.QueryAnalyticsRequestOrderByDirection), TypeInfoPropertyName = "QueryAnalyticsRequestOrderByDirection2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.QueryAnalyticsRequestTimeRange))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateAudioTranscriptionsRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateAudioTranscriptionsRequestResponseFormat), TypeInfoPropertyName = "CreateAudioTranscriptionsRequestResponseFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateAudioTranscriptionsRequestTimestampGranularitie), TypeInfoPropertyName = "CreateAudioTranscriptionsRequestTimestampGranularitie2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExchangeAuthCodeForAPIKeyRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExchangeAuthCodeForAPIKeyRequestCodeChallengeMethod), TypeInfoPropertyName = "ExchangeAuthCodeForAPIKeyRequestCodeChallengeMethod2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateAuthKeysCodeRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateAuthKeysCodeRequestCodeChallengeMethod), TypeInfoPropertyName = "CreateAuthKeysCodeRequestCodeChallengeMethod2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateAuthKeysCodeRequestUsageLimitType), TypeInfoPropertyName = "CreateAuthKeysCodeRequestUsageLimitType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateEmbeddingsRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateEmbeddingsRequestEncodingFormat), TypeInfoPropertyName = "CreateEmbeddingsRequestEncodingFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>, global::System.Collections.Generic.IList>), TypeInfoPropertyName = "AnyOfStringIListStringIListDoubleIListIListDoubleIListCreateEmbeddingsRequestInputVariant5Item2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateEmbeddingsRequestInputVariant5Item))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateEmbeddingsRequestInputVariant5ItemContentItemVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateEmbeddingsRequestInputVariant5ItemContentItemVariant1Type), TypeInfoPropertyName = "CreateEmbeddingsRequestInputVariant5ItemContentItemVariant1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateEmbeddingsRequestInputVariant5ItemContentItemVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateEmbeddingsRequestInputVariant5ItemContentItemVariant2ImageUrl))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateEmbeddingsRequestInputVariant5ItemContentItemVariant2Type), TypeInfoPropertyName = "CreateEmbeddingsRequestInputVariant5ItemContentItemVariant2Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UploadFileRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateKeysRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateKeysRequestExternal))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateKeysRequestLimitReset), TypeInfoPropertyName = "CreateKeysRequestLimitReset2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateKeysRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateKeysRequestLimitReset), TypeInfoPropertyName = "UpdateKeysRequestLimitReset2")] @@ -3231,6 +3310,7 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateEmbeddingsResponseUsage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateEmbeddingsResponseUsagePromptTokensDetails))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ListEndpointsZdrResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetCurrentKeyResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetCurrentKeyResponseData))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -3505,86 +3585,6 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BaseInputsVariant2ItemRoleVariant3?), TypeInfoPropertyName = "NullableBaseInputsVariant2ItemRoleVariant32")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BaseInputsVariant2ItemRoleVariant4?), TypeInfoPropertyName = "NullableBaseInputsVariant2ItemRoleVariant42")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BaseInputsVariant2ItemType?), TypeInfoPropertyName = "NullableBaseInputsVariant2ItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlock?), TypeInfoPropertyName = "NullableORAnthropicContentBlock2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BaseMessagesResultRole?), TypeInfoPropertyName = "NullableBaseMessagesResultRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicStopReason?), TypeInfoPropertyName = "NullableORAnthropicStopReason2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BaseMessagesResultType?), TypeInfoPropertyName = "NullableBaseMessagesResultType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AllOf?), TypeInfoPropertyName = "NullableAllOfAnthropicUsageBaseMessagesResultUsage2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningContext?), TypeInfoPropertyName = "NullableReasoningContext2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningEffort?), TypeInfoPropertyName = "NullableReasoningEffort2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningMode?), TypeInfoPropertyName = "NullableReasoningMode2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningSummaryVerbosity?), TypeInfoPropertyName = "NullableReasoningSummaryVerbosity2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BaseReasoningDeltaEventType?), TypeInfoPropertyName = "NullableBaseReasoningDeltaEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BaseReasoningDoneEventType?), TypeInfoPropertyName = "NullableBaseReasoningDoneEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BaseReasoningSummaryPartAddedEventType?), TypeInfoPropertyName = "NullableBaseReasoningSummaryPartAddedEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BaseReasoningSummaryPartDoneEventType?), TypeInfoPropertyName = "NullableBaseReasoningSummaryPartDoneEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BaseReasoningSummaryTextDeltaEventType?), TypeInfoPropertyName = "NullableBaseReasoningSummaryTextDeltaEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BaseReasoningSummaryTextDoneEventType?), TypeInfoPropertyName = "NullableBaseReasoningSummaryTextDoneEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BaseRefusalDeltaEventType?), TypeInfoPropertyName = "NullableBaseRefusalDeltaEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BaseRefusalDoneEventType?), TypeInfoPropertyName = "NullableBaseRefusalDoneEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BaseResponsesResultObject?), TypeInfoPropertyName = "NullableBaseResponsesResultObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItem?), TypeInfoPropertyName = "NullableOutputItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BaseResponsesResultOutputItemDiscriminatorType?), TypeInfoPropertyName = "NullableBaseResponsesResultOutputItemDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ServiceTier?), TypeInfoPropertyName = "NullableServiceTier2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAIResponsesResponseStatus?), TypeInfoPropertyName = "NullableOpenAIResponsesResponseStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAIResponsesToolChoice?), TypeInfoPropertyName = "NullableOpenAIResponsesToolChoice2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AllOf?), TypeInfoPropertyName = "NullableAllOfFunctionToolBaseResponsesResultToolVariant12")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BaseResponsesResultToolVariant1AllowedCaller?), TypeInfoPropertyName = "NullableBaseResponsesResultToolVariant1AllowedCaller2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Truncation?), TypeInfoPropertyName = "NullableTruncation2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BaseTextDeltaEventType?), TypeInfoPropertyName = "NullableBaseTextDeltaEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BaseTextDoneEventType?), TypeInfoPropertyName = "NullableBaseTextDoneEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BashServerToolType?), TypeInfoPropertyName = "NullableBashServerToolType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BashServerToolEngine?), TypeInfoPropertyName = "NullableBashServerToolEngine2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BashServerToolEnvironment?), TypeInfoPropertyName = "NullableBashServerToolEnvironment2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BashServerToolEnvironmentDiscriminatorType?), TypeInfoPropertyName = "NullableBashServerToolEnvironmentDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchDeletedObjectObject?), TypeInfoPropertyName = "NullableBatchDeletedObjectObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchDeletionOutcome?), TypeInfoPropertyName = "NullableBatchDeletionOutcome2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchDeletionTargetsOpenrouter?), TypeInfoPropertyName = "NullableBatchDeletionTargetsOpenrouter2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchListItemCompletionWindow?), TypeInfoPropertyName = "NullableBatchListItemCompletionWindow2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTimeOffset?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchListItemObject?), TypeInfoPropertyName = "NullableBatchListItemObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchListItemStatus?), TypeInfoPropertyName = "NullableBatchListItemStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchListResponseObject?), TypeInfoPropertyName = "NullableBatchListResponseObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchListStatus?), TypeInfoPropertyName = "NullableBatchListStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchListTimestamp?), TypeInfoPropertyName = "NullableBatchListTimestamp2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchObjectCompletionWindow?), TypeInfoPropertyName = "NullableBatchObjectCompletionWindow2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchObjectObject?), TypeInfoPropertyName = "NullableBatchObjectObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FinishReason?), TypeInfoPropertyName = "NullableFinishReason2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant1FileContentItemVariant1Type?), TypeInfoPropertyName = "NullableBatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant1FileContentItemVariant1Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant1FileContentItemVariant2Type?), TypeInfoPropertyName = "NullableBatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant1FileContentItemVariant2Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant1Type?), TypeInfoPropertyName = "NullableBatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant1Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant2Type?), TypeInfoPropertyName = "NullableBatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant2Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant3Type?), TypeInfoPropertyName = "NullableBatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant3Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchObjectResultResponseBodyVariant1ChoiceMessageImageType?), TypeInfoPropertyName = "NullableBatchObjectResultResponseBodyVariant1ChoiceMessageImageType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "NullableAnyOfReasoningDetailSummaryReasoningDetailEncryptedReasoningDetailTextReasoningDetailServerToolCall2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchObjectResultResponseBodyVariant1ChoiceMessageRole?), TypeInfoPropertyName = "NullableBatchObjectResultResponseBodyVariant1ChoiceMessageRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchObjectResultResponseBodyVariant1ChoiceMessageToolCallType?), TypeInfoPropertyName = "NullableBatchObjectResultResponseBodyVariant1ChoiceMessageToolCallType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchObjectResultResponseBodyVariant1DebugTimingsEvent?), TypeInfoPropertyName = "NullableBatchObjectResultResponseBodyVariant1DebugTimingsEvent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchObjectResultResponseBodyVariant1Object?), TypeInfoPropertyName = "NullableBatchObjectResultResponseBodyVariant1Object2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenResponsesResult?), TypeInfoPropertyName = "NullableOpenResponsesResult2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchObjectResultResponseBodyVariant3Role?), TypeInfoPropertyName = "NullableBatchObjectResultResponseBodyVariant3Role2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchObjectResultResponseBodyVariant3Type?), TypeInfoPropertyName = "NullableBatchObjectResultResponseBodyVariant3Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AllOf?), TypeInfoPropertyName = "NullableAllOfAnthropicUsageBatchObjectResultResponseBodyVariant3Usage2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf, string>?), TypeInfoPropertyName = "NullableAnyOfIListDoubleString2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchObjectResultResponseBodyVariant4DataItemObject?), TypeInfoPropertyName = "NullableBatchObjectResultResponseBodyVariant4DataItemObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchObjectResultResponseBodyVariant4Object?), TypeInfoPropertyName = "NullableBatchObjectResultResponseBodyVariant4Object2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchObjectStatus?), TypeInfoPropertyName = "NullableBatchObjectStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchPaymentRequiredResponseCompletionWindow?), TypeInfoPropertyName = "NullableBatchPaymentRequiredResponseCompletionWindow2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchPaymentRequiredResponseObject?), TypeInfoPropertyName = "NullableBatchPaymentRequiredResponseObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchPaymentRequiredResponseStatus?), TypeInfoPropertyName = "NullableBatchPaymentRequiredResponseStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "NullableAnyOfProviderNameString2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderName?), TypeInfoPropertyName = "NullableProviderName2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchSubmitBodyCompletionWindow?), TypeInfoPropertyName = "NullableBatchSubmitBodyCompletionWindow2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchSubmitBodyEndpoint?), TypeInfoPropertyName = "NullableBatchSubmitBodyEndpoint2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BooleanCapabilityType?), TypeInfoPropertyName = "NullableBooleanCapabilityType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BYOKKeyDeclaredRegion?), TypeInfoPropertyName = "NullableBYOKKeyDeclaredRegion2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Guid?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BYOKProviderSlug?), TypeInfoPropertyName = "NullableBYOKProviderSlug2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CapabilityDescriptor?), TypeInfoPropertyName = "NullableCapabilityDescriptor2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CapabilityDescriptorDiscriminatorType?), TypeInfoPropertyName = "NullableCapabilityDescriptorDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf>?), TypeInfoPropertyName = "NullableAnyOfStringIListChatContentItems2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatContentItems?), TypeInfoPropertyName = "NullableChatContentItems2")] internal sealed partial class SourceGenerationContextChunk6 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -3680,6 +3680,86 @@ internal sealed partial class SourceGenerationContextChunk6 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool>>), TypeInfoPropertyName = "ToolSearchServerTool_ba88f27f2f078735")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool, global::OpenRouter.ToolSearchOutputItemTool2>>), TypeInfoPropertyName = "ToolSearchOutputItemTool2_8ae2a759aff9dd26")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "ContentPartInputFile_8471d29128267302")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicContentBlock?), TypeInfoPropertyName = "NullableORAnthropicContentBlock2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BaseMessagesResultRole?), TypeInfoPropertyName = "NullableBaseMessagesResultRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ORAnthropicStopReason?), TypeInfoPropertyName = "NullableORAnthropicStopReason2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BaseMessagesResultType?), TypeInfoPropertyName = "NullableBaseMessagesResultType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AllOf?), TypeInfoPropertyName = "NullableAllOfAnthropicUsageBaseMessagesResultUsage2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningContext?), TypeInfoPropertyName = "NullableReasoningContext2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningEffort?), TypeInfoPropertyName = "NullableReasoningEffort2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningMode?), TypeInfoPropertyName = "NullableReasoningMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningSummaryVerbosity?), TypeInfoPropertyName = "NullableReasoningSummaryVerbosity2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BaseReasoningDeltaEventType?), TypeInfoPropertyName = "NullableBaseReasoningDeltaEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BaseReasoningDoneEventType?), TypeInfoPropertyName = "NullableBaseReasoningDoneEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BaseReasoningSummaryPartAddedEventType?), TypeInfoPropertyName = "NullableBaseReasoningSummaryPartAddedEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BaseReasoningSummaryPartDoneEventType?), TypeInfoPropertyName = "NullableBaseReasoningSummaryPartDoneEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BaseReasoningSummaryTextDeltaEventType?), TypeInfoPropertyName = "NullableBaseReasoningSummaryTextDeltaEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BaseReasoningSummaryTextDoneEventType?), TypeInfoPropertyName = "NullableBaseReasoningSummaryTextDoneEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BaseRefusalDeltaEventType?), TypeInfoPropertyName = "NullableBaseRefusalDeltaEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BaseRefusalDoneEventType?), TypeInfoPropertyName = "NullableBaseRefusalDoneEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BaseResponsesResultObject?), TypeInfoPropertyName = "NullableBaseResponsesResultObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItem?), TypeInfoPropertyName = "NullableOutputItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BaseResponsesResultOutputItemDiscriminatorType?), TypeInfoPropertyName = "NullableBaseResponsesResultOutputItemDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ServiceTier?), TypeInfoPropertyName = "NullableServiceTier2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAIResponsesResponseStatus?), TypeInfoPropertyName = "NullableOpenAIResponsesResponseStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAIResponsesToolChoice?), TypeInfoPropertyName = "NullableOpenAIResponsesToolChoice2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AllOf?), TypeInfoPropertyName = "NullableAllOfFunctionToolBaseResponsesResultToolVariant12")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BaseResponsesResultToolVariant1AllowedCaller?), TypeInfoPropertyName = "NullableBaseResponsesResultToolVariant1AllowedCaller2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Truncation?), TypeInfoPropertyName = "NullableTruncation2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BaseTextDeltaEventType?), TypeInfoPropertyName = "NullableBaseTextDeltaEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BaseTextDoneEventType?), TypeInfoPropertyName = "NullableBaseTextDoneEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BashServerToolType?), TypeInfoPropertyName = "NullableBashServerToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BashServerToolEngine?), TypeInfoPropertyName = "NullableBashServerToolEngine2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BashServerToolEnvironment?), TypeInfoPropertyName = "NullableBashServerToolEnvironment2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BashServerToolEnvironmentDiscriminatorType?), TypeInfoPropertyName = "NullableBashServerToolEnvironmentDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchDeletedObjectObject?), TypeInfoPropertyName = "NullableBatchDeletedObjectObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchDeletionOutcome?), TypeInfoPropertyName = "NullableBatchDeletionOutcome2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchDeletionTargetsOpenrouter?), TypeInfoPropertyName = "NullableBatchDeletionTargetsOpenrouter2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchListItemCompletionWindow?), TypeInfoPropertyName = "NullableBatchListItemCompletionWindow2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTimeOffset?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchListItemObject?), TypeInfoPropertyName = "NullableBatchListItemObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchListItemStatus?), TypeInfoPropertyName = "NullableBatchListItemStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchListResponseObject?), TypeInfoPropertyName = "NullableBatchListResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchListStatus?), TypeInfoPropertyName = "NullableBatchListStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchListTimestamp?), TypeInfoPropertyName = "NullableBatchListTimestamp2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchObjectCompletionWindow?), TypeInfoPropertyName = "NullableBatchObjectCompletionWindow2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchObjectObject?), TypeInfoPropertyName = "NullableBatchObjectObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FinishReason?), TypeInfoPropertyName = "NullableFinishReason2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant1FileContentItemVariant1Type?), TypeInfoPropertyName = "NullableBatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant1FileContentItemVariant1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant1FileContentItemVariant2Type?), TypeInfoPropertyName = "NullableBatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant1FileContentItemVariant2Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant1Type?), TypeInfoPropertyName = "NullableBatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant2Type?), TypeInfoPropertyName = "NullableBatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant2Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant3Type?), TypeInfoPropertyName = "NullableBatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant3Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchObjectResultResponseBodyVariant1ChoiceMessageImageType?), TypeInfoPropertyName = "NullableBatchObjectResultResponseBodyVariant1ChoiceMessageImageType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "NullableAnyOfReasoningDetailSummaryReasoningDetailEncryptedReasoningDetailTextReasoningDetailServerToolCall2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchObjectResultResponseBodyVariant1ChoiceMessageRole?), TypeInfoPropertyName = "NullableBatchObjectResultResponseBodyVariant1ChoiceMessageRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchObjectResultResponseBodyVariant1ChoiceMessageToolCallType?), TypeInfoPropertyName = "NullableBatchObjectResultResponseBodyVariant1ChoiceMessageToolCallType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchObjectResultResponseBodyVariant1DebugTimingsEvent?), TypeInfoPropertyName = "NullableBatchObjectResultResponseBodyVariant1DebugTimingsEvent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchObjectResultResponseBodyVariant1Object?), TypeInfoPropertyName = "NullableBatchObjectResultResponseBodyVariant1Object2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenResponsesResult?), TypeInfoPropertyName = "NullableOpenResponsesResult2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchObjectResultResponseBodyVariant3Role?), TypeInfoPropertyName = "NullableBatchObjectResultResponseBodyVariant3Role2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchObjectResultResponseBodyVariant3Type?), TypeInfoPropertyName = "NullableBatchObjectResultResponseBodyVariant3Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AllOf?), TypeInfoPropertyName = "NullableAllOfAnthropicUsageBatchObjectResultResponseBodyVariant3Usage2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf, string>?), TypeInfoPropertyName = "NullableAnyOfIListDoubleString2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchObjectResultResponseBodyVariant4DataItemObject?), TypeInfoPropertyName = "NullableBatchObjectResultResponseBodyVariant4DataItemObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchObjectResultResponseBodyVariant4Object?), TypeInfoPropertyName = "NullableBatchObjectResultResponseBodyVariant4Object2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchObjectStatus?), TypeInfoPropertyName = "NullableBatchObjectStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchPaymentRequiredResponseCompletionWindow?), TypeInfoPropertyName = "NullableBatchPaymentRequiredResponseCompletionWindow2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchPaymentRequiredResponseObject?), TypeInfoPropertyName = "NullableBatchPaymentRequiredResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchPaymentRequiredResponseStatus?), TypeInfoPropertyName = "NullableBatchPaymentRequiredResponseStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "NullableAnyOfProviderNameString2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderName?), TypeInfoPropertyName = "NullableProviderName2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchSubmitBodyCompletionWindow?), TypeInfoPropertyName = "NullableBatchSubmitBodyCompletionWindow2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BatchSubmitBodyEndpoint?), TypeInfoPropertyName = "NullableBatchSubmitBodyEndpoint2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BooleanCapabilityType?), TypeInfoPropertyName = "NullableBooleanCapabilityType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BYOKKeyDeclaredRegion?), TypeInfoPropertyName = "NullableBYOKKeyDeclaredRegion2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Guid?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BYOKProviderSlug?), TypeInfoPropertyName = "NullableBYOKProviderSlug2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CapabilityDescriptor?), TypeInfoPropertyName = "NullableCapabilityDescriptor2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CapabilityDescriptorDiscriminatorType?), TypeInfoPropertyName = "NullableCapabilityDescriptorDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf>?), TypeInfoPropertyName = "NullableAnyOfStringIListChatContentItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatContentItems?), TypeInfoPropertyName = "NullableChatContentItems2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatAssistantMessageRole?), TypeInfoPropertyName = "NullableChatAssistantMessageRole2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatFinishReasonEnum?), TypeInfoPropertyName = "NullableChatFinishReasonEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatContentAudioType?), TypeInfoPropertyName = "NullableChatContentAudioType2")] @@ -3817,6 +3897,7 @@ internal sealed partial class SourceGenerationContextChunk6 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DatetimeServerToolType?), TypeInfoPropertyName = "NullableDatetimeServerToolType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DebugEventDebugTimingsEvent?), TypeInfoPropertyName = "NullableDebugEventDebugTimingsEvent2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DebugEventType?), TypeInfoPropertyName = "NullableDebugEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AllOf?), TypeInfoPropertyName = "NullableAllOfPercentileStatsObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DecisionsBoxAnswerType?), TypeInfoPropertyName = "NullableDecisionsBoxAnswerType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf>?), TypeInfoPropertyName = "NullableAnyOfStringObjectIListObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DecisionsBoxQuestionType?), TypeInfoPropertyName = "NullableDecisionsBoxQuestionType2")] @@ -3829,7 +3910,7 @@ internal sealed partial class SourceGenerationContextChunk6 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AllOf?), TypeInfoPropertyName = "NullableAllOfProviderPreferencesObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Questions?), TypeInfoPropertyName = "NullableQuestions2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DecisionsRequestQuestionsDiscriminatorType?), TypeInfoPropertyName = "NullableDecisionsRequestQuestionsDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Answers?), TypeInfoPropertyName = "NullableAnswers2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Answers?), TypeInfoPropertyName = "NullableAnswers2_3")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DecisionsResponseAnswersDiscriminatorType?), TypeInfoPropertyName = "NullableDecisionsResponseAnswersDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DecisionsScoreAnswerType?), TypeInfoPropertyName = "NullableDecisionsScoreAnswerType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DecisionsScoreQuestionType?), TypeInfoPropertyName = "NullableDecisionsScoreQuestionType2")] @@ -3853,6 +3934,50 @@ internal sealed partial class SourceGenerationContextChunk6 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EasyInputMessageType?), TypeInfoPropertyName = "NullableEasyInputMessageType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EnumCapabilityType?), TypeInfoPropertyName = "NullableEnumCapabilityType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ErrorEvent?), TypeInfoPropertyName = "NullableErrorEvent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionAssetFormat?), TypeInfoPropertyName = "NullableExtractionAssetFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionAssetType?), TypeInfoPropertyName = "NullableExtractionAssetType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionDateAnswerSource?), TypeInfoPropertyName = "NullableExtractionDateAnswerSource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionDateAnswerType?), TypeInfoPropertyName = "NullableExtractionDateAnswerType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionDateFieldType?), TypeInfoPropertyName = "NullableExtractionDateFieldType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionDatetimeAnswerSource?), TypeInfoPropertyName = "NullableExtractionDatetimeAnswerSource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionDatetimeAnswerType?), TypeInfoPropertyName = "NullableExtractionDatetimeAnswerType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionDatetimeFieldType?), TypeInfoPropertyName = "NullableExtractionDatetimeFieldType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionDurationAnswerSource?), TypeInfoPropertyName = "NullableExtractionDurationAnswerSource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionDurationAnswerType?), TypeInfoPropertyName = "NullableExtractionDurationAnswerType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionDurationFieldType?), TypeInfoPropertyName = "NullableExtractionDurationFieldType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "NullableAnyOfDoubleString2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionEstimateAnswerSource?), TypeInfoPropertyName = "NullableExtractionEstimateAnswerSource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionEstimateAnswerType?), TypeInfoPropertyName = "NullableExtractionEstimateAnswerType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionEstimateFieldScale?), TypeInfoPropertyName = "NullableExtractionEstimateFieldScale2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "NullableAnyOfDoubleExtractionEstimateFieldStepVariant2ExtractionEstimateFieldStepVariant32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionEstimateFieldStepVariant2?), TypeInfoPropertyName = "NullableExtractionEstimateFieldStepVariant22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionEstimateFieldStepVariant3?), TypeInfoPropertyName = "NullableExtractionEstimateFieldStepVariant32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionEstimateFieldType?), TypeInfoPropertyName = "NullableExtractionEstimateFieldType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionForecastAnswerSource?), TypeInfoPropertyName = "NullableExtractionForecastAnswerSource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionForecastAnswerType?), TypeInfoPropertyName = "NullableExtractionForecastAnswerType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionForecastFieldInterval?), TypeInfoPropertyName = "NullableExtractionForecastFieldInterval2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionForecastFieldScale?), TypeInfoPropertyName = "NullableExtractionForecastFieldScale2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "NullableAnyOfDoubleExtractionForecastFieldStepVariant2ExtractionForecastFieldStepVariant32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionForecastFieldStepVariant2?), TypeInfoPropertyName = "NullableExtractionForecastFieldStepVariant22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionForecastFieldStepVariant3?), TypeInfoPropertyName = "NullableExtractionForecastFieldStepVariant32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionForecastFieldType?), TypeInfoPropertyName = "NullableExtractionForecastFieldType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionListAnswerSource?), TypeInfoPropertyName = "NullableExtractionListAnswerSource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionListAnswerType?), TypeInfoPropertyName = "NullableExtractionListAnswerType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionListFieldItems?), TypeInfoPropertyName = "NullableExtractionListFieldItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionListFieldType?), TypeInfoPropertyName = "NullableExtractionListFieldType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionNumberAnswerSource?), TypeInfoPropertyName = "NullableExtractionNumberAnswerSource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionNumberAnswerType?), TypeInfoPropertyName = "NullableExtractionNumberAnswerType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionNumberFieldType?), TypeInfoPropertyName = "NullableExtractionNumberFieldType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Fields?), TypeInfoPropertyName = "NullableFields2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionsRequestFieldsDiscriminatorType?), TypeInfoPropertyName = "NullableExtractionsRequestFieldsDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Answers2?), TypeInfoPropertyName = "NullableAnswers22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionsResponseAnswersDiscriminatorType?), TypeInfoPropertyName = "NullableExtractionsResponseAnswersDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionTextAnswerSource?), TypeInfoPropertyName = "NullableExtractionTextAnswerSource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionTextAnswerType?), TypeInfoPropertyName = "NullableExtractionTextAnswerType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionTextFieldType?), TypeInfoPropertyName = "NullableExtractionTextFieldType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionTimeAnswerSource?), TypeInfoPropertyName = "NullableExtractionTimeAnswerSource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionTimeAnswerType?), TypeInfoPropertyName = "NullableExtractionTimeAnswerType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExtractionTimeFieldType?), TypeInfoPropertyName = "NullableExtractionTimeFieldType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FailableToolCallStatus?), TypeInfoPropertyName = "NullableFailableToolCallStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FailedEventType?), TypeInfoPropertyName = "NullableFailedEventType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FileCitationType?), TypeInfoPropertyName = "NullableFileCitationType2")] @@ -3974,6 +4099,101 @@ internal sealed partial class SourceGenerationContextChunk6 : global::System.Tex #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.LegacyChatContentVideoType?), TypeInfoPropertyName = "NullableLegacyChatContentVideoType2")] #pragma warning restore CS0618 + internal sealed partial class SourceGenerationContextChunk7 : global::System.Text.Json.Serialization.JsonSerializerContext + { + } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool, global::OpenRouter.AdditionalToolsItemTool2>>), TypeInfoPropertyName = "AdditionalToolsItemTool2_bf7774b59504ff43")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool, global::OpenRouter.AdditionalToolsItemTool2>), TypeInfoPropertyName = "AdditionalToolsItemTool2_b5f7952f57d49aa1")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "AnthropicFileDocumentSource_59970a182a07e0fb")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "ArmorSafeguardResultStatusToolUsesVariant3_67eca205cfb623db")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "ConfigurationUpdateItem_9a27921b3bfede0f")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "ConfigurationUpdateItem_10780467a36301be")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "BaseInputsVariant2ItemRoleVariant4_540f51064ad9fbb4")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool>>), TypeInfoPropertyName = "NamespaceTool_49484aac0f2cfe6f")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool>), TypeInfoPropertyName = "NamespaceTool_5f1b468ec79e4d2b")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "BatchObjectResultResponseBodyVariant4_973b1a7fa70038f7")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "BatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant3_fa69c7e94f9ea141")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "BatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant3_e0a5ce64df593465")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "BatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant1FileContentItemVariant2_6338ce728809f718")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "BatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant1FileContentItemVariant2_35bc5f8745b02e33")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList?, global::OpenRouter.AllOf?, global::OpenRouter.OutputWebSearchCallItem?, global::OpenRouter.OutputFileSearchCallItem?, global::OpenRouter.OutputImageGenerationCallItem?, global::OpenRouter.OutputCodeInterpreterCallItem?, global::OpenRouter.OutputComputerCallItem, global::OpenRouter.OutputDatetimeItem, global::OpenRouter.OutputWebSearchServerToolItem, global::OpenRouter.OutputCodeInterpreterServerToolItem, global::OpenRouter.OutputFileSearchServerToolItem, global::OpenRouter.OutputImageGenerationServerToolItem, global::OpenRouter.OutputBrowserUseServerToolItem, global::OpenRouter.OutputBashServerToolItem, global::OpenRouter.OutputTextEditorServerToolItem, global::OpenRouter.OutputApplyPatchServerToolItem, global::OpenRouter.OutputWebFetchServerToolItem, global::OpenRouter.OutputToolSearchServerToolItem, global::OpenRouter.OutputMemoryServerToolItem, global::OpenRouter.OutputArmorBlockedItem, global::OpenRouter.OutputMcpServerToolItem, global::OpenRouter.OutputSearchModelsServerToolItem, global::OpenRouter.OutputFusionServerToolItem, global::OpenRouter.OutputAdvisorServerToolItem, global::OpenRouter.OutputSubagentServerToolItem, global::OpenRouter.OutputFilesServerToolItem, global::OpenRouter.OutputShellServerToolItem, global::OpenRouter.LocalShellCallItem, global::OpenRouter.LocalShellCallOutputItem, global::OpenRouter.ShellCallItem, global::OpenRouter.ShellCallOutputItem, global::OpenRouter.McpListToolsItem, global::OpenRouter.McpApprovalRequestItem, global::OpenRouter.McpApprovalResponseItem, global::OpenRouter.McpCallItem, global::OpenRouter.CustomToolCallItem, global::OpenRouter.CustomToolCallOutputItem?, global::OpenRouter.CompactionItem, global::OpenRouter.ContextCompactionItem, global::OpenRouter.ItemReferenceItem, global::OpenRouter.AdditionalToolsItem, global::OpenRouter.AgentMessageItem, global::OpenRouter.ConfigurationUpdateItem, global::OpenRouter.ToolSearchCallItem, global::OpenRouter.ToolSearchOutputItem>>), TypeInfoPropertyName = "ToolSearchOutputItem_57b89895b7a4c944")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?, global::OpenRouter.AllOf?, global::OpenRouter.OutputWebSearchCallItem?, global::OpenRouter.OutputFileSearchCallItem?, global::OpenRouter.OutputImageGenerationCallItem?, global::OpenRouter.OutputCodeInterpreterCallItem?, global::OpenRouter.OutputComputerCallItem, global::OpenRouter.OutputDatetimeItem, global::OpenRouter.OutputWebSearchServerToolItem, global::OpenRouter.OutputCodeInterpreterServerToolItem, global::OpenRouter.OutputFileSearchServerToolItem, global::OpenRouter.OutputImageGenerationServerToolItem, global::OpenRouter.OutputBrowserUseServerToolItem, global::OpenRouter.OutputBashServerToolItem, global::OpenRouter.OutputTextEditorServerToolItem, global::OpenRouter.OutputApplyPatchServerToolItem, global::OpenRouter.OutputWebFetchServerToolItem, global::OpenRouter.OutputToolSearchServerToolItem, global::OpenRouter.OutputMemoryServerToolItem, global::OpenRouter.OutputArmorBlockedItem, global::OpenRouter.OutputMcpServerToolItem, global::OpenRouter.OutputSearchModelsServerToolItem, global::OpenRouter.OutputFusionServerToolItem, global::OpenRouter.OutputAdvisorServerToolItem, global::OpenRouter.OutputSubagentServerToolItem, global::OpenRouter.OutputFilesServerToolItem, global::OpenRouter.OutputShellServerToolItem, global::OpenRouter.LocalShellCallItem, global::OpenRouter.LocalShellCallOutputItem, global::OpenRouter.ShellCallItem, global::OpenRouter.ShellCallOutputItem, global::OpenRouter.McpListToolsItem, global::OpenRouter.McpApprovalRequestItem, global::OpenRouter.McpApprovalResponseItem, global::OpenRouter.McpCallItem, global::OpenRouter.CustomToolCallItem, global::OpenRouter.CustomToolCallOutputItem?, global::OpenRouter.CompactionItem, global::OpenRouter.ContextCompactionItem, global::OpenRouter.ItemReferenceItem, global::OpenRouter.AdditionalToolsItem, global::OpenRouter.AgentMessageItem, global::OpenRouter.ConfigurationUpdateItem, global::OpenRouter.ToolSearchCallItem, global::OpenRouter.ToolSearchOutputItem>), TypeInfoPropertyName = "ToolSearchOutputItem_9e5946c472e6fa57")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "MessagesContentBlockDeltaEventDeltaVariant6_85bf23ef95be663d")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "MessagesContentBlockStartEventContentBlock_25db2b9007507e22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf>>), TypeInfoPropertyName = "ORAnthropicToolSearchResultParam_a830fbfb5e9626e3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "ORAnthropicToolSearchResultParam_852e8dbebe67306b")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "ORAnthropicToolSearchResultParam_31a1b30890f9e262")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf>>), TypeInfoPropertyName = "AnthropicDocumentBlockParam_8b902d8f07b55d71")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "AnthropicDocumentBlockParam_3427b79e8e4441c6")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "AnthropicDocumentBlockParam_5665f86286336860")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "MessagesRequestContextManagementEditVariant3_50233d14798654a0")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "MessagesRequestContextManagementEditVariant3_ffde3f722316314d")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "MessagesRequestContextManagementEditVariant2KeepEnum2_fd34ecaec78d7e5f")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "MessagesRequestThinkingVariant4_b2b4342cf8a50666")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "MessagesRequestToolChoiceVariant4_b179c4b756214df6")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "ToolSearchServerTool_1b9b412e0eef803d")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "ToolSearchServerTool_9479becc269e0f9f")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "MessagesToolAdditionBlockToolVariant4_9c3740427ae32fc0")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "OpenAIResponseInputMessageItemRoleVariant3_24a3e4d5fd4f5c62")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool>>), TypeInfoPropertyName = "ToolSearchServerTool_2c059dd05c149ed4")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool>), TypeInfoPropertyName = "ToolSearchServerTool_d7753f2fe5fa4111")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool, global::OpenRouter.ToolSearchOutputItemTool2>>), TypeInfoPropertyName = "ToolSearchOutputItemTool2_972e34c028ad9bed")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool, global::OpenRouter.ToolSearchOutputItemTool2>), TypeInfoPropertyName = "ToolSearchOutputItemTool2_55c7f0fa1267d7c0")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "ContentPartInputFile_2aea3d229536f75d")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "ContentPartInputFile_538ae37a361ed1d9")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool, global::OpenRouter.AdditionalToolsItemTool2>?), TypeInfoPropertyName = "AdditionalToolsItemTool2_09e240cd95900634")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "AnthropicFileDocumentSource_814636ad8bcd4bd6")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "ArmorSafeguardResultStatusToolUsesVariant3_3a04ed8b27915257")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "ConfigurationUpdateItem_5362c7233928ae2f")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "BaseInputsVariant2ItemRoleVariant4_5aeb29d58bd76aba")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool>?), TypeInfoPropertyName = "NamespaceTool_6f69561a8e6df433")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "BatchObjectResultResponseBodyVariant4_b512db3eec98d92a")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "BatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant3_3e6e941c2ae064c9")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "BatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant1FileContentItemVariant2_f5555bff6884da83")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "EasyInputMessageRoleVariant4_a381c85a2ffefca7")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?, global::OpenRouter.AllOf?, global::OpenRouter.OutputWebSearchCallItem?, global::OpenRouter.OutputFileSearchCallItem?, global::OpenRouter.OutputImageGenerationCallItem?, global::OpenRouter.OutputCodeInterpreterCallItem?, global::OpenRouter.OutputComputerCallItem, global::OpenRouter.OutputDatetimeItem, global::OpenRouter.OutputWebSearchServerToolItem, global::OpenRouter.OutputCodeInterpreterServerToolItem, global::OpenRouter.OutputFileSearchServerToolItem, global::OpenRouter.OutputImageGenerationServerToolItem, global::OpenRouter.OutputBrowserUseServerToolItem, global::OpenRouter.OutputBashServerToolItem, global::OpenRouter.OutputTextEditorServerToolItem, global::OpenRouter.OutputApplyPatchServerToolItem, global::OpenRouter.OutputWebFetchServerToolItem, global::OpenRouter.OutputToolSearchServerToolItem, global::OpenRouter.OutputMemoryServerToolItem, global::OpenRouter.OutputArmorBlockedItem, global::OpenRouter.OutputMcpServerToolItem, global::OpenRouter.OutputSearchModelsServerToolItem, global::OpenRouter.OutputFusionServerToolItem, global::OpenRouter.OutputAdvisorServerToolItem, global::OpenRouter.OutputSubagentServerToolItem, global::OpenRouter.OutputFilesServerToolItem, global::OpenRouter.OutputShellServerToolItem, global::OpenRouter.LocalShellCallItem, global::OpenRouter.LocalShellCallOutputItem, global::OpenRouter.ShellCallItem, global::OpenRouter.ShellCallOutputItem, global::OpenRouter.McpListToolsItem, global::OpenRouter.McpApprovalRequestItem, global::OpenRouter.McpApprovalResponseItem, global::OpenRouter.McpCallItem, global::OpenRouter.CustomToolCallItem, global::OpenRouter.CustomToolCallOutputItem?, global::OpenRouter.CompactionItem, global::OpenRouter.ContextCompactionItem, global::OpenRouter.ItemReferenceItem, global::OpenRouter.AdditionalToolsItem, global::OpenRouter.AgentMessageItem, global::OpenRouter.ConfigurationUpdateItem, global::OpenRouter.ToolSearchCallItem, global::OpenRouter.ToolSearchOutputItem>?), TypeInfoPropertyName = "ToolSearchOutputItem_036349029b52cd4b")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "McpServerToolRequireApprovalVariant3_9e80cf046f55ac7f")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "MessagesContentBlockDeltaEventDeltaVariant6_b04a01a634d385af")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "MessagesContentBlockStartEventContentBlock_a7f8131972d9612b")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf>>?), TypeInfoPropertyName = "ORAnthropicToolSearchResultParam_da2025d9555d1b10")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "ORAnthropicToolSearchResultParam_e3ef77e98141e736")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf>>?), TypeInfoPropertyName = "AnthropicDocumentBlockParam_48af57af66f09051")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "AnthropicDocumentBlockParam_c612fce51eacfc73")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "MessagesRequestContextManagementEditVariant3_71052b93d707ee6b")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "MessagesRequestContextManagementEditVariant2KeepEnum2_b4b489f1330d5b4d")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "MessagesRequestThinkingVariant4_03c7f1a2acca5c12")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "MessagesRequestToolChoiceVariant4_80ddd5e547c6a6f9")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "ToolSearchServerTool_dafe8db55066d0a4")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "MessagesToolAdditionBlockToolVariant4_9cf1c265585be329")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "MessagesToolRemovalBlockToolVariant3_b8be7edf70121998")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "OpenAIResponseInputMessageItemRoleVariant3_30be2933991f4490")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "OutputItemFunctionCallStatusVariant3_c3e100bad4156ae5")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "OutputItemWebSearchCallActionVariant3_bff9cc86d44cf6cd")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool>?), TypeInfoPropertyName = "ToolSearchServerTool_eab303d51ff5e405")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool, global::OpenRouter.ToolSearchOutputItemTool2>?), TypeInfoPropertyName = "ToolSearchOutputItemTool2_bed65d36a3ed2391")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "ContentPartInputFile_1886f3bcc3b70a36")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool, global::OpenRouter.AdditionalToolsItemTool2>>), TypeInfoPropertyName = "AdditionalToolsItemTool2_3a8a4fe12a71a6e9")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "ConfigurationUpdateItem_0a716e7029f70194")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool>>), TypeInfoPropertyName = "NamespaceTool_5415e4f11a497d7a")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "BatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant3_a2cea693150f9456")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "BatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant1FileContentItemVariant2_d4b31f98111658ec")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List?, global::OpenRouter.AllOf?, global::OpenRouter.OutputWebSearchCallItem?, global::OpenRouter.OutputFileSearchCallItem?, global::OpenRouter.OutputImageGenerationCallItem?, global::OpenRouter.OutputCodeInterpreterCallItem?, global::OpenRouter.OutputComputerCallItem, global::OpenRouter.OutputDatetimeItem, global::OpenRouter.OutputWebSearchServerToolItem, global::OpenRouter.OutputCodeInterpreterServerToolItem, global::OpenRouter.OutputFileSearchServerToolItem, global::OpenRouter.OutputImageGenerationServerToolItem, global::OpenRouter.OutputBrowserUseServerToolItem, global::OpenRouter.OutputBashServerToolItem, global::OpenRouter.OutputTextEditorServerToolItem, global::OpenRouter.OutputApplyPatchServerToolItem, global::OpenRouter.OutputWebFetchServerToolItem, global::OpenRouter.OutputToolSearchServerToolItem, global::OpenRouter.OutputMemoryServerToolItem, global::OpenRouter.OutputArmorBlockedItem, global::OpenRouter.OutputMcpServerToolItem, global::OpenRouter.OutputSearchModelsServerToolItem, global::OpenRouter.OutputFusionServerToolItem, global::OpenRouter.OutputAdvisorServerToolItem, global::OpenRouter.OutputSubagentServerToolItem, global::OpenRouter.OutputFilesServerToolItem, global::OpenRouter.OutputShellServerToolItem, global::OpenRouter.LocalShellCallItem, global::OpenRouter.LocalShellCallOutputItem, global::OpenRouter.ShellCallItem, global::OpenRouter.ShellCallOutputItem, global::OpenRouter.McpListToolsItem, global::OpenRouter.McpApprovalRequestItem, global::OpenRouter.McpApprovalResponseItem, global::OpenRouter.McpCallItem, global::OpenRouter.CustomToolCallItem, global::OpenRouter.CustomToolCallOutputItem?, global::OpenRouter.CompactionItem, global::OpenRouter.ContextCompactionItem, global::OpenRouter.ItemReferenceItem, global::OpenRouter.AdditionalToolsItem, global::OpenRouter.AgentMessageItem, global::OpenRouter.ConfigurationUpdateItem, global::OpenRouter.ToolSearchCallItem, global::OpenRouter.ToolSearchOutputItem>>), TypeInfoPropertyName = "ToolSearchOutputItem_dc70dbe556ae312d")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf>>), TypeInfoPropertyName = "ORAnthropicToolSearchResultParam_cfed1a0da3b80605")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "ORAnthropicToolSearchResultParam_e090d91717704994")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf>>), TypeInfoPropertyName = "AnthropicDocumentBlockParam_ff603e3e1c6bb3fa")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "AnthropicDocumentBlockParam_dfe4b95a03f67e89")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessagesRequestContextManagementEditVariant3_6c983e238fc95563")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "ToolSearchServerTool_01f1dc7626f092a4")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool>>), TypeInfoPropertyName = "ToolSearchServerTool_ba88f27f2f078735")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool, global::OpenRouter.ToolSearchOutputItemTool2>>), TypeInfoPropertyName = "ToolSearchOutputItemTool2_8ae2a759aff9dd26")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "ContentPartInputFile_8471d29128267302")] #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.LegacyChatContentVideoInputProcessing?), TypeInfoPropertyName = "NullableLegacyChatContentVideoInputProcessing2")] #pragma warning restore CS0618 @@ -4101,101 +4321,6 @@ internal sealed partial class SourceGenerationContextChunk6 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDataRegion?), TypeInfoPropertyName = "NullableObservabilityDataRegion2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityArizeDestinationType?), TypeInfoPropertyName = "NullableObservabilityArizeDestinationType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityBraintrustDestinationType?), TypeInfoPropertyName = "NullableObservabilityBraintrustDestinationType2")] - internal sealed partial class SourceGenerationContextChunk7 : global::System.Text.Json.Serialization.JsonSerializerContext - { - } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull - )] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool, global::OpenRouter.AdditionalToolsItemTool2>>), TypeInfoPropertyName = "AdditionalToolsItemTool2_bf7774b59504ff43")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool, global::OpenRouter.AdditionalToolsItemTool2>), TypeInfoPropertyName = "AdditionalToolsItemTool2_b5f7952f57d49aa1")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "AnthropicFileDocumentSource_59970a182a07e0fb")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "ArmorSafeguardResultStatusToolUsesVariant3_67eca205cfb623db")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "ConfigurationUpdateItem_9a27921b3bfede0f")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "ConfigurationUpdateItem_10780467a36301be")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "BaseInputsVariant2ItemRoleVariant4_540f51064ad9fbb4")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool>>), TypeInfoPropertyName = "NamespaceTool_49484aac0f2cfe6f")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool>), TypeInfoPropertyName = "NamespaceTool_5f1b468ec79e4d2b")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "BatchObjectResultResponseBodyVariant4_973b1a7fa70038f7")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "BatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant3_fa69c7e94f9ea141")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "BatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant3_e0a5ce64df593465")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "BatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant1FileContentItemVariant2_6338ce728809f718")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "BatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant1FileContentItemVariant2_35bc5f8745b02e33")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList?, global::OpenRouter.AllOf?, global::OpenRouter.OutputWebSearchCallItem?, global::OpenRouter.OutputFileSearchCallItem?, global::OpenRouter.OutputImageGenerationCallItem?, global::OpenRouter.OutputCodeInterpreterCallItem?, global::OpenRouter.OutputComputerCallItem, global::OpenRouter.OutputDatetimeItem, global::OpenRouter.OutputWebSearchServerToolItem, global::OpenRouter.OutputCodeInterpreterServerToolItem, global::OpenRouter.OutputFileSearchServerToolItem, global::OpenRouter.OutputImageGenerationServerToolItem, global::OpenRouter.OutputBrowserUseServerToolItem, global::OpenRouter.OutputBashServerToolItem, global::OpenRouter.OutputTextEditorServerToolItem, global::OpenRouter.OutputApplyPatchServerToolItem, global::OpenRouter.OutputWebFetchServerToolItem, global::OpenRouter.OutputToolSearchServerToolItem, global::OpenRouter.OutputMemoryServerToolItem, global::OpenRouter.OutputArmorBlockedItem, global::OpenRouter.OutputMcpServerToolItem, global::OpenRouter.OutputSearchModelsServerToolItem, global::OpenRouter.OutputFusionServerToolItem, global::OpenRouter.OutputAdvisorServerToolItem, global::OpenRouter.OutputSubagentServerToolItem, global::OpenRouter.OutputFilesServerToolItem, global::OpenRouter.OutputShellServerToolItem, global::OpenRouter.LocalShellCallItem, global::OpenRouter.LocalShellCallOutputItem, global::OpenRouter.ShellCallItem, global::OpenRouter.ShellCallOutputItem, global::OpenRouter.McpListToolsItem, global::OpenRouter.McpApprovalRequestItem, global::OpenRouter.McpApprovalResponseItem, global::OpenRouter.McpCallItem, global::OpenRouter.CustomToolCallItem, global::OpenRouter.CustomToolCallOutputItem?, global::OpenRouter.CompactionItem, global::OpenRouter.ContextCompactionItem, global::OpenRouter.ItemReferenceItem, global::OpenRouter.AdditionalToolsItem, global::OpenRouter.AgentMessageItem, global::OpenRouter.ConfigurationUpdateItem, global::OpenRouter.ToolSearchCallItem, global::OpenRouter.ToolSearchOutputItem>>), TypeInfoPropertyName = "ToolSearchOutputItem_57b89895b7a4c944")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?, global::OpenRouter.AllOf?, global::OpenRouter.OutputWebSearchCallItem?, global::OpenRouter.OutputFileSearchCallItem?, global::OpenRouter.OutputImageGenerationCallItem?, global::OpenRouter.OutputCodeInterpreterCallItem?, global::OpenRouter.OutputComputerCallItem, global::OpenRouter.OutputDatetimeItem, global::OpenRouter.OutputWebSearchServerToolItem, global::OpenRouter.OutputCodeInterpreterServerToolItem, global::OpenRouter.OutputFileSearchServerToolItem, global::OpenRouter.OutputImageGenerationServerToolItem, global::OpenRouter.OutputBrowserUseServerToolItem, global::OpenRouter.OutputBashServerToolItem, global::OpenRouter.OutputTextEditorServerToolItem, global::OpenRouter.OutputApplyPatchServerToolItem, global::OpenRouter.OutputWebFetchServerToolItem, global::OpenRouter.OutputToolSearchServerToolItem, global::OpenRouter.OutputMemoryServerToolItem, global::OpenRouter.OutputArmorBlockedItem, global::OpenRouter.OutputMcpServerToolItem, global::OpenRouter.OutputSearchModelsServerToolItem, global::OpenRouter.OutputFusionServerToolItem, global::OpenRouter.OutputAdvisorServerToolItem, global::OpenRouter.OutputSubagentServerToolItem, global::OpenRouter.OutputFilesServerToolItem, global::OpenRouter.OutputShellServerToolItem, global::OpenRouter.LocalShellCallItem, global::OpenRouter.LocalShellCallOutputItem, global::OpenRouter.ShellCallItem, global::OpenRouter.ShellCallOutputItem, global::OpenRouter.McpListToolsItem, global::OpenRouter.McpApprovalRequestItem, global::OpenRouter.McpApprovalResponseItem, global::OpenRouter.McpCallItem, global::OpenRouter.CustomToolCallItem, global::OpenRouter.CustomToolCallOutputItem?, global::OpenRouter.CompactionItem, global::OpenRouter.ContextCompactionItem, global::OpenRouter.ItemReferenceItem, global::OpenRouter.AdditionalToolsItem, global::OpenRouter.AgentMessageItem, global::OpenRouter.ConfigurationUpdateItem, global::OpenRouter.ToolSearchCallItem, global::OpenRouter.ToolSearchOutputItem>), TypeInfoPropertyName = "ToolSearchOutputItem_9e5946c472e6fa57")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "MessagesContentBlockDeltaEventDeltaVariant6_85bf23ef95be663d")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "MessagesContentBlockStartEventContentBlock_25db2b9007507e22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf>>), TypeInfoPropertyName = "ORAnthropicToolSearchResultParam_a830fbfb5e9626e3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "ORAnthropicToolSearchResultParam_852e8dbebe67306b")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "ORAnthropicToolSearchResultParam_31a1b30890f9e262")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf>>), TypeInfoPropertyName = "AnthropicDocumentBlockParam_8b902d8f07b55d71")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "AnthropicDocumentBlockParam_3427b79e8e4441c6")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "AnthropicDocumentBlockParam_5665f86286336860")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "MessagesRequestContextManagementEditVariant3_50233d14798654a0")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "MessagesRequestContextManagementEditVariant3_ffde3f722316314d")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "MessagesRequestContextManagementEditVariant2KeepEnum2_fd34ecaec78d7e5f")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "MessagesRequestThinkingVariant4_b2b4342cf8a50666")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "MessagesRequestToolChoiceVariant4_b179c4b756214df6")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "ToolSearchServerTool_1b9b412e0eef803d")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "ToolSearchServerTool_9479becc269e0f9f")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "MessagesToolAdditionBlockToolVariant4_9c3740427ae32fc0")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "OpenAIResponseInputMessageItemRoleVariant3_24a3e4d5fd4f5c62")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool>>), TypeInfoPropertyName = "ToolSearchServerTool_2c059dd05c149ed4")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool>), TypeInfoPropertyName = "ToolSearchServerTool_d7753f2fe5fa4111")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool, global::OpenRouter.ToolSearchOutputItemTool2>>), TypeInfoPropertyName = "ToolSearchOutputItemTool2_972e34c028ad9bed")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool, global::OpenRouter.ToolSearchOutputItemTool2>), TypeInfoPropertyName = "ToolSearchOutputItemTool2_55c7f0fa1267d7c0")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "ContentPartInputFile_2aea3d229536f75d")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "ContentPartInputFile_538ae37a361ed1d9")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool, global::OpenRouter.AdditionalToolsItemTool2>?), TypeInfoPropertyName = "AdditionalToolsItemTool2_09e240cd95900634")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "AnthropicFileDocumentSource_814636ad8bcd4bd6")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "ArmorSafeguardResultStatusToolUsesVariant3_3a04ed8b27915257")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "ConfigurationUpdateItem_5362c7233928ae2f")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "BaseInputsVariant2ItemRoleVariant4_5aeb29d58bd76aba")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool>?), TypeInfoPropertyName = "NamespaceTool_6f69561a8e6df433")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "BatchObjectResultResponseBodyVariant4_b512db3eec98d92a")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "BatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant3_3e6e941c2ae064c9")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "BatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant1FileContentItemVariant2_f5555bff6884da83")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "EasyInputMessageRoleVariant4_a381c85a2ffefca7")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?, global::OpenRouter.AllOf?, global::OpenRouter.OutputWebSearchCallItem?, global::OpenRouter.OutputFileSearchCallItem?, global::OpenRouter.OutputImageGenerationCallItem?, global::OpenRouter.OutputCodeInterpreterCallItem?, global::OpenRouter.OutputComputerCallItem, global::OpenRouter.OutputDatetimeItem, global::OpenRouter.OutputWebSearchServerToolItem, global::OpenRouter.OutputCodeInterpreterServerToolItem, global::OpenRouter.OutputFileSearchServerToolItem, global::OpenRouter.OutputImageGenerationServerToolItem, global::OpenRouter.OutputBrowserUseServerToolItem, global::OpenRouter.OutputBashServerToolItem, global::OpenRouter.OutputTextEditorServerToolItem, global::OpenRouter.OutputApplyPatchServerToolItem, global::OpenRouter.OutputWebFetchServerToolItem, global::OpenRouter.OutputToolSearchServerToolItem, global::OpenRouter.OutputMemoryServerToolItem, global::OpenRouter.OutputArmorBlockedItem, global::OpenRouter.OutputMcpServerToolItem, global::OpenRouter.OutputSearchModelsServerToolItem, global::OpenRouter.OutputFusionServerToolItem, global::OpenRouter.OutputAdvisorServerToolItem, global::OpenRouter.OutputSubagentServerToolItem, global::OpenRouter.OutputFilesServerToolItem, global::OpenRouter.OutputShellServerToolItem, global::OpenRouter.LocalShellCallItem, global::OpenRouter.LocalShellCallOutputItem, global::OpenRouter.ShellCallItem, global::OpenRouter.ShellCallOutputItem, global::OpenRouter.McpListToolsItem, global::OpenRouter.McpApprovalRequestItem, global::OpenRouter.McpApprovalResponseItem, global::OpenRouter.McpCallItem, global::OpenRouter.CustomToolCallItem, global::OpenRouter.CustomToolCallOutputItem?, global::OpenRouter.CompactionItem, global::OpenRouter.ContextCompactionItem, global::OpenRouter.ItemReferenceItem, global::OpenRouter.AdditionalToolsItem, global::OpenRouter.AgentMessageItem, global::OpenRouter.ConfigurationUpdateItem, global::OpenRouter.ToolSearchCallItem, global::OpenRouter.ToolSearchOutputItem>?), TypeInfoPropertyName = "ToolSearchOutputItem_036349029b52cd4b")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "McpServerToolRequireApprovalVariant3_9e80cf046f55ac7f")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "MessagesContentBlockDeltaEventDeltaVariant6_b04a01a634d385af")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "MessagesContentBlockStartEventContentBlock_a7f8131972d9612b")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf>>?), TypeInfoPropertyName = "ORAnthropicToolSearchResultParam_da2025d9555d1b10")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "ORAnthropicToolSearchResultParam_e3ef77e98141e736")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf>>?), TypeInfoPropertyName = "AnthropicDocumentBlockParam_48af57af66f09051")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "AnthropicDocumentBlockParam_c612fce51eacfc73")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "MessagesRequestContextManagementEditVariant3_71052b93d707ee6b")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "MessagesRequestContextManagementEditVariant2KeepEnum2_b4b489f1330d5b4d")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "MessagesRequestThinkingVariant4_03c7f1a2acca5c12")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "MessagesRequestToolChoiceVariant4_80ddd5e547c6a6f9")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "ToolSearchServerTool_dafe8db55066d0a4")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "MessagesToolAdditionBlockToolVariant4_9cf1c265585be329")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "MessagesToolRemovalBlockToolVariant3_b8be7edf70121998")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "OpenAIResponseInputMessageItemRoleVariant3_30be2933991f4490")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "OutputItemFunctionCallStatusVariant3_c3e100bad4156ae5")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "OutputItemWebSearchCallActionVariant3_bff9cc86d44cf6cd")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool>?), TypeInfoPropertyName = "ToolSearchServerTool_eab303d51ff5e405")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool, global::OpenRouter.ToolSearchOutputItemTool2>?), TypeInfoPropertyName = "ToolSearchOutputItemTool2_bed65d36a3ed2391")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "ContentPartInputFile_1886f3bcc3b70a36")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool, global::OpenRouter.AdditionalToolsItemTool2>>), TypeInfoPropertyName = "AdditionalToolsItemTool2_3a8a4fe12a71a6e9")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "ConfigurationUpdateItem_0a716e7029f70194")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool>>), TypeInfoPropertyName = "NamespaceTool_5415e4f11a497d7a")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "BatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant3_a2cea693150f9456")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "BatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant1FileContentItemVariant2_d4b31f98111658ec")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List?, global::OpenRouter.AllOf?, global::OpenRouter.OutputWebSearchCallItem?, global::OpenRouter.OutputFileSearchCallItem?, global::OpenRouter.OutputImageGenerationCallItem?, global::OpenRouter.OutputCodeInterpreterCallItem?, global::OpenRouter.OutputComputerCallItem, global::OpenRouter.OutputDatetimeItem, global::OpenRouter.OutputWebSearchServerToolItem, global::OpenRouter.OutputCodeInterpreterServerToolItem, global::OpenRouter.OutputFileSearchServerToolItem, global::OpenRouter.OutputImageGenerationServerToolItem, global::OpenRouter.OutputBrowserUseServerToolItem, global::OpenRouter.OutputBashServerToolItem, global::OpenRouter.OutputTextEditorServerToolItem, global::OpenRouter.OutputApplyPatchServerToolItem, global::OpenRouter.OutputWebFetchServerToolItem, global::OpenRouter.OutputToolSearchServerToolItem, global::OpenRouter.OutputMemoryServerToolItem, global::OpenRouter.OutputArmorBlockedItem, global::OpenRouter.OutputMcpServerToolItem, global::OpenRouter.OutputSearchModelsServerToolItem, global::OpenRouter.OutputFusionServerToolItem, global::OpenRouter.OutputAdvisorServerToolItem, global::OpenRouter.OutputSubagentServerToolItem, global::OpenRouter.OutputFilesServerToolItem, global::OpenRouter.OutputShellServerToolItem, global::OpenRouter.LocalShellCallItem, global::OpenRouter.LocalShellCallOutputItem, global::OpenRouter.ShellCallItem, global::OpenRouter.ShellCallOutputItem, global::OpenRouter.McpListToolsItem, global::OpenRouter.McpApprovalRequestItem, global::OpenRouter.McpApprovalResponseItem, global::OpenRouter.McpCallItem, global::OpenRouter.CustomToolCallItem, global::OpenRouter.CustomToolCallOutputItem?, global::OpenRouter.CompactionItem, global::OpenRouter.ContextCompactionItem, global::OpenRouter.ItemReferenceItem, global::OpenRouter.AdditionalToolsItem, global::OpenRouter.AgentMessageItem, global::OpenRouter.ConfigurationUpdateItem, global::OpenRouter.ToolSearchCallItem, global::OpenRouter.ToolSearchOutputItem>>), TypeInfoPropertyName = "ToolSearchOutputItem_dc70dbe556ae312d")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf>>), TypeInfoPropertyName = "ORAnthropicToolSearchResultParam_cfed1a0da3b80605")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "ORAnthropicToolSearchResultParam_e090d91717704994")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf>>), TypeInfoPropertyName = "AnthropicDocumentBlockParam_ff603e3e1c6bb3fa")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "AnthropicDocumentBlockParam_dfe4b95a03f67e89")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessagesRequestContextManagementEditVariant3_6c983e238fc95563")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "ToolSearchServerTool_01f1dc7626f092a4")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool>>), TypeInfoPropertyName = "ToolSearchServerTool_ba88f27f2f078735")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool, global::OpenRouter.ToolSearchOutputItemTool2>>), TypeInfoPropertyName = "ToolSearchOutputItemTool2_8ae2a759aff9dd26")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "ContentPartInputFile_8471d29128267302")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityClickhouseDestinationType?), TypeInfoPropertyName = "NullableObservabilityClickhouseDestinationType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDatadogDestinationType?), TypeInfoPropertyName = "NullableObservabilityDatadogDestinationType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationDiscriminatorType?), TypeInfoPropertyName = "NullableObservabilityDestinationDiscriminatorType2")] @@ -4270,6 +4395,7 @@ internal sealed partial class SourceGenerationContextChunk7 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenResponsesErrorFieldCode?), TypeInfoPropertyName = "NullableOpenResponsesErrorFieldCode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AllOf?), TypeInfoPropertyName = "NullableAllOfAlignmentOpenResponsesErrorMetadataAlignment2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenResponsesInProgressEvent?), TypeInfoPropertyName = "NullableOpenResponsesInProgressEvent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenResponsesResultVariant2AccessProgramsCyber?), TypeInfoPropertyName = "NullableOpenResponsesResultVariant2AccessProgramsCyber2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputItems?), TypeInfoPropertyName = "NullableOutputItems2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.TextExtendedConfig?), TypeInfoPropertyName = "NullableTextExtendedConfig2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenRouterFileShape?), TypeInfoPropertyName = "NullableOpenRouterFileShape2")] @@ -4403,8 +4529,8 @@ internal sealed partial class SourceGenerationContextChunk7 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderResponseRoutedServiceTier?), TypeInfoPropertyName = "NullableProviderResponseRoutedServiceTier2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderSortConfigBy?), TypeInfoPropertyName = "NullableProviderSortConfigBy2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderSortConfigPartition?), TypeInfoPropertyName = "NullableProviderSortConfigPartition2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AllOf?), TypeInfoPropertyName = "NullableAllOfPercentileStatsObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PublicServiceTier?), TypeInfoPropertyName = "NullablePublicServiceTier2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PublicZdrEndpoint?), TypeInfoPropertyName = "NullablePublicZdrEndpoint2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RangeCapabilityType?), TypeInfoPropertyName = "NullableRangeCapabilityType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RankingsDailyMetaVersion?), TypeInfoPropertyName = "NullableRankingsDailyMetaVersion2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningDeltaEvent?), TypeInfoPropertyName = "NullableReasoningDeltaEvent2")] @@ -4426,6 +4552,7 @@ internal sealed partial class SourceGenerationContextChunk7 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponseIncludesEnum?), TypeInfoPropertyName = "NullableResponseIncludesEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponseOutputTextType?), TypeInfoPropertyName = "NullableResponseOutputTextType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesErrorFieldCode?), TypeInfoPropertyName = "NullableResponsesErrorFieldCode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestAccessProgramsCyber?), TypeInfoPropertyName = "NullableResponsesRequestAccessProgramsCyber2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.PluginsItem3?), TypeInfoPropertyName = "NullablePluginsItem32")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestPluginDiscriminatorId?), TypeInfoPropertyName = "NullableResponsesRequestPluginDiscriminatorId2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestServiceTier?), TypeInfoPropertyName = "NullableResponsesRequestServiceTier2")] @@ -4484,6 +4611,101 @@ internal sealed partial class SourceGenerationContextChunk7 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.TextDoneEvent?), TypeInfoPropertyName = "NullableTextDoneEvent2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebSearchCallInProgressEvent?), TypeInfoPropertyName = "NullableWebSearchCallInProgressEvent2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebSearchCallSearchingEvent?), TypeInfoPropertyName = "NullableWebSearchCallSearchingEvent2")] + internal sealed partial class SourceGenerationContextChunk8 : global::System.Text.Json.Serialization.JsonSerializerContext + { + } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool, global::OpenRouter.AdditionalToolsItemTool2>>), TypeInfoPropertyName = "AdditionalToolsItemTool2_bf7774b59504ff43")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool, global::OpenRouter.AdditionalToolsItemTool2>), TypeInfoPropertyName = "AdditionalToolsItemTool2_b5f7952f57d49aa1")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "AnthropicFileDocumentSource_59970a182a07e0fb")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "ArmorSafeguardResultStatusToolUsesVariant3_67eca205cfb623db")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "ConfigurationUpdateItem_9a27921b3bfede0f")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "ConfigurationUpdateItem_10780467a36301be")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "BaseInputsVariant2ItemRoleVariant4_540f51064ad9fbb4")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool>>), TypeInfoPropertyName = "NamespaceTool_49484aac0f2cfe6f")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool>), TypeInfoPropertyName = "NamespaceTool_5f1b468ec79e4d2b")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "BatchObjectResultResponseBodyVariant4_973b1a7fa70038f7")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "BatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant3_fa69c7e94f9ea141")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "BatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant3_e0a5ce64df593465")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "BatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant1FileContentItemVariant2_6338ce728809f718")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "BatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant1FileContentItemVariant2_35bc5f8745b02e33")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList?, global::OpenRouter.AllOf?, global::OpenRouter.OutputWebSearchCallItem?, global::OpenRouter.OutputFileSearchCallItem?, global::OpenRouter.OutputImageGenerationCallItem?, global::OpenRouter.OutputCodeInterpreterCallItem?, global::OpenRouter.OutputComputerCallItem, global::OpenRouter.OutputDatetimeItem, global::OpenRouter.OutputWebSearchServerToolItem, global::OpenRouter.OutputCodeInterpreterServerToolItem, global::OpenRouter.OutputFileSearchServerToolItem, global::OpenRouter.OutputImageGenerationServerToolItem, global::OpenRouter.OutputBrowserUseServerToolItem, global::OpenRouter.OutputBashServerToolItem, global::OpenRouter.OutputTextEditorServerToolItem, global::OpenRouter.OutputApplyPatchServerToolItem, global::OpenRouter.OutputWebFetchServerToolItem, global::OpenRouter.OutputToolSearchServerToolItem, global::OpenRouter.OutputMemoryServerToolItem, global::OpenRouter.OutputArmorBlockedItem, global::OpenRouter.OutputMcpServerToolItem, global::OpenRouter.OutputSearchModelsServerToolItem, global::OpenRouter.OutputFusionServerToolItem, global::OpenRouter.OutputAdvisorServerToolItem, global::OpenRouter.OutputSubagentServerToolItem, global::OpenRouter.OutputFilesServerToolItem, global::OpenRouter.OutputShellServerToolItem, global::OpenRouter.LocalShellCallItem, global::OpenRouter.LocalShellCallOutputItem, global::OpenRouter.ShellCallItem, global::OpenRouter.ShellCallOutputItem, global::OpenRouter.McpListToolsItem, global::OpenRouter.McpApprovalRequestItem, global::OpenRouter.McpApprovalResponseItem, global::OpenRouter.McpCallItem, global::OpenRouter.CustomToolCallItem, global::OpenRouter.CustomToolCallOutputItem?, global::OpenRouter.CompactionItem, global::OpenRouter.ContextCompactionItem, global::OpenRouter.ItemReferenceItem, global::OpenRouter.AdditionalToolsItem, global::OpenRouter.AgentMessageItem, global::OpenRouter.ConfigurationUpdateItem, global::OpenRouter.ToolSearchCallItem, global::OpenRouter.ToolSearchOutputItem>>), TypeInfoPropertyName = "ToolSearchOutputItem_57b89895b7a4c944")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?, global::OpenRouter.AllOf?, global::OpenRouter.OutputWebSearchCallItem?, global::OpenRouter.OutputFileSearchCallItem?, global::OpenRouter.OutputImageGenerationCallItem?, global::OpenRouter.OutputCodeInterpreterCallItem?, global::OpenRouter.OutputComputerCallItem, global::OpenRouter.OutputDatetimeItem, global::OpenRouter.OutputWebSearchServerToolItem, global::OpenRouter.OutputCodeInterpreterServerToolItem, global::OpenRouter.OutputFileSearchServerToolItem, global::OpenRouter.OutputImageGenerationServerToolItem, global::OpenRouter.OutputBrowserUseServerToolItem, global::OpenRouter.OutputBashServerToolItem, global::OpenRouter.OutputTextEditorServerToolItem, global::OpenRouter.OutputApplyPatchServerToolItem, global::OpenRouter.OutputWebFetchServerToolItem, global::OpenRouter.OutputToolSearchServerToolItem, global::OpenRouter.OutputMemoryServerToolItem, global::OpenRouter.OutputArmorBlockedItem, global::OpenRouter.OutputMcpServerToolItem, global::OpenRouter.OutputSearchModelsServerToolItem, global::OpenRouter.OutputFusionServerToolItem, global::OpenRouter.OutputAdvisorServerToolItem, global::OpenRouter.OutputSubagentServerToolItem, global::OpenRouter.OutputFilesServerToolItem, global::OpenRouter.OutputShellServerToolItem, global::OpenRouter.LocalShellCallItem, global::OpenRouter.LocalShellCallOutputItem, global::OpenRouter.ShellCallItem, global::OpenRouter.ShellCallOutputItem, global::OpenRouter.McpListToolsItem, global::OpenRouter.McpApprovalRequestItem, global::OpenRouter.McpApprovalResponseItem, global::OpenRouter.McpCallItem, global::OpenRouter.CustomToolCallItem, global::OpenRouter.CustomToolCallOutputItem?, global::OpenRouter.CompactionItem, global::OpenRouter.ContextCompactionItem, global::OpenRouter.ItemReferenceItem, global::OpenRouter.AdditionalToolsItem, global::OpenRouter.AgentMessageItem, global::OpenRouter.ConfigurationUpdateItem, global::OpenRouter.ToolSearchCallItem, global::OpenRouter.ToolSearchOutputItem>), TypeInfoPropertyName = "ToolSearchOutputItem_9e5946c472e6fa57")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "MessagesContentBlockDeltaEventDeltaVariant6_85bf23ef95be663d")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "MessagesContentBlockStartEventContentBlock_25db2b9007507e22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf>>), TypeInfoPropertyName = "ORAnthropicToolSearchResultParam_a830fbfb5e9626e3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "ORAnthropicToolSearchResultParam_852e8dbebe67306b")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "ORAnthropicToolSearchResultParam_31a1b30890f9e262")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf>>), TypeInfoPropertyName = "AnthropicDocumentBlockParam_8b902d8f07b55d71")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "AnthropicDocumentBlockParam_3427b79e8e4441c6")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "AnthropicDocumentBlockParam_5665f86286336860")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "MessagesRequestContextManagementEditVariant3_50233d14798654a0")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "MessagesRequestContextManagementEditVariant3_ffde3f722316314d")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "MessagesRequestContextManagementEditVariant2KeepEnum2_fd34ecaec78d7e5f")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "MessagesRequestThinkingVariant4_b2b4342cf8a50666")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "MessagesRequestToolChoiceVariant4_b179c4b756214df6")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "ToolSearchServerTool_1b9b412e0eef803d")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "ToolSearchServerTool_9479becc269e0f9f")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "MessagesToolAdditionBlockToolVariant4_9c3740427ae32fc0")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "OpenAIResponseInputMessageItemRoleVariant3_24a3e4d5fd4f5c62")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool>>), TypeInfoPropertyName = "ToolSearchServerTool_2c059dd05c149ed4")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool>), TypeInfoPropertyName = "ToolSearchServerTool_d7753f2fe5fa4111")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool, global::OpenRouter.ToolSearchOutputItemTool2>>), TypeInfoPropertyName = "ToolSearchOutputItemTool2_972e34c028ad9bed")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool, global::OpenRouter.ToolSearchOutputItemTool2>), TypeInfoPropertyName = "ToolSearchOutputItemTool2_55c7f0fa1267d7c0")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "ContentPartInputFile_2aea3d229536f75d")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "ContentPartInputFile_538ae37a361ed1d9")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool, global::OpenRouter.AdditionalToolsItemTool2>?), TypeInfoPropertyName = "AdditionalToolsItemTool2_09e240cd95900634")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "AnthropicFileDocumentSource_814636ad8bcd4bd6")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "ArmorSafeguardResultStatusToolUsesVariant3_3a04ed8b27915257")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "ConfigurationUpdateItem_5362c7233928ae2f")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "BaseInputsVariant2ItemRoleVariant4_5aeb29d58bd76aba")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool>?), TypeInfoPropertyName = "NamespaceTool_6f69561a8e6df433")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "BatchObjectResultResponseBodyVariant4_b512db3eec98d92a")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "BatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant3_3e6e941c2ae064c9")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "BatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant1FileContentItemVariant2_f5555bff6884da83")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "EasyInputMessageRoleVariant4_a381c85a2ffefca7")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?, global::OpenRouter.AllOf?, global::OpenRouter.OutputWebSearchCallItem?, global::OpenRouter.OutputFileSearchCallItem?, global::OpenRouter.OutputImageGenerationCallItem?, global::OpenRouter.OutputCodeInterpreterCallItem?, global::OpenRouter.OutputComputerCallItem, global::OpenRouter.OutputDatetimeItem, global::OpenRouter.OutputWebSearchServerToolItem, global::OpenRouter.OutputCodeInterpreterServerToolItem, global::OpenRouter.OutputFileSearchServerToolItem, global::OpenRouter.OutputImageGenerationServerToolItem, global::OpenRouter.OutputBrowserUseServerToolItem, global::OpenRouter.OutputBashServerToolItem, global::OpenRouter.OutputTextEditorServerToolItem, global::OpenRouter.OutputApplyPatchServerToolItem, global::OpenRouter.OutputWebFetchServerToolItem, global::OpenRouter.OutputToolSearchServerToolItem, global::OpenRouter.OutputMemoryServerToolItem, global::OpenRouter.OutputArmorBlockedItem, global::OpenRouter.OutputMcpServerToolItem, global::OpenRouter.OutputSearchModelsServerToolItem, global::OpenRouter.OutputFusionServerToolItem, global::OpenRouter.OutputAdvisorServerToolItem, global::OpenRouter.OutputSubagentServerToolItem, global::OpenRouter.OutputFilesServerToolItem, global::OpenRouter.OutputShellServerToolItem, global::OpenRouter.LocalShellCallItem, global::OpenRouter.LocalShellCallOutputItem, global::OpenRouter.ShellCallItem, global::OpenRouter.ShellCallOutputItem, global::OpenRouter.McpListToolsItem, global::OpenRouter.McpApprovalRequestItem, global::OpenRouter.McpApprovalResponseItem, global::OpenRouter.McpCallItem, global::OpenRouter.CustomToolCallItem, global::OpenRouter.CustomToolCallOutputItem?, global::OpenRouter.CompactionItem, global::OpenRouter.ContextCompactionItem, global::OpenRouter.ItemReferenceItem, global::OpenRouter.AdditionalToolsItem, global::OpenRouter.AgentMessageItem, global::OpenRouter.ConfigurationUpdateItem, global::OpenRouter.ToolSearchCallItem, global::OpenRouter.ToolSearchOutputItem>?), TypeInfoPropertyName = "ToolSearchOutputItem_036349029b52cd4b")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "McpServerToolRequireApprovalVariant3_9e80cf046f55ac7f")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "MessagesContentBlockDeltaEventDeltaVariant6_b04a01a634d385af")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "MessagesContentBlockStartEventContentBlock_a7f8131972d9612b")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf>>?), TypeInfoPropertyName = "ORAnthropicToolSearchResultParam_da2025d9555d1b10")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "ORAnthropicToolSearchResultParam_e3ef77e98141e736")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf>>?), TypeInfoPropertyName = "AnthropicDocumentBlockParam_48af57af66f09051")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "AnthropicDocumentBlockParam_c612fce51eacfc73")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "MessagesRequestContextManagementEditVariant3_71052b93d707ee6b")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "MessagesRequestContextManagementEditVariant2KeepEnum2_b4b489f1330d5b4d")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "MessagesRequestThinkingVariant4_03c7f1a2acca5c12")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "MessagesRequestToolChoiceVariant4_80ddd5e547c6a6f9")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "ToolSearchServerTool_dafe8db55066d0a4")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "MessagesToolAdditionBlockToolVariant4_9cf1c265585be329")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "MessagesToolRemovalBlockToolVariant3_b8be7edf70121998")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "OpenAIResponseInputMessageItemRoleVariant3_30be2933991f4490")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "OutputItemFunctionCallStatusVariant3_c3e100bad4156ae5")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "OutputItemWebSearchCallActionVariant3_bff9cc86d44cf6cd")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool>?), TypeInfoPropertyName = "ToolSearchServerTool_eab303d51ff5e405")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool, global::OpenRouter.ToolSearchOutputItemTool2>?), TypeInfoPropertyName = "ToolSearchOutputItemTool2_bed65d36a3ed2391")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "ContentPartInputFile_1886f3bcc3b70a36")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool, global::OpenRouter.AdditionalToolsItemTool2>>), TypeInfoPropertyName = "AdditionalToolsItemTool2_3a8a4fe12a71a6e9")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "ConfigurationUpdateItem_0a716e7029f70194")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool>>), TypeInfoPropertyName = "NamespaceTool_5415e4f11a497d7a")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "BatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant3_a2cea693150f9456")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "BatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant1FileContentItemVariant2_d4b31f98111658ec")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List?, global::OpenRouter.AllOf?, global::OpenRouter.OutputWebSearchCallItem?, global::OpenRouter.OutputFileSearchCallItem?, global::OpenRouter.OutputImageGenerationCallItem?, global::OpenRouter.OutputCodeInterpreterCallItem?, global::OpenRouter.OutputComputerCallItem, global::OpenRouter.OutputDatetimeItem, global::OpenRouter.OutputWebSearchServerToolItem, global::OpenRouter.OutputCodeInterpreterServerToolItem, global::OpenRouter.OutputFileSearchServerToolItem, global::OpenRouter.OutputImageGenerationServerToolItem, global::OpenRouter.OutputBrowserUseServerToolItem, global::OpenRouter.OutputBashServerToolItem, global::OpenRouter.OutputTextEditorServerToolItem, global::OpenRouter.OutputApplyPatchServerToolItem, global::OpenRouter.OutputWebFetchServerToolItem, global::OpenRouter.OutputToolSearchServerToolItem, global::OpenRouter.OutputMemoryServerToolItem, global::OpenRouter.OutputArmorBlockedItem, global::OpenRouter.OutputMcpServerToolItem, global::OpenRouter.OutputSearchModelsServerToolItem, global::OpenRouter.OutputFusionServerToolItem, global::OpenRouter.OutputAdvisorServerToolItem, global::OpenRouter.OutputSubagentServerToolItem, global::OpenRouter.OutputFilesServerToolItem, global::OpenRouter.OutputShellServerToolItem, global::OpenRouter.LocalShellCallItem, global::OpenRouter.LocalShellCallOutputItem, global::OpenRouter.ShellCallItem, global::OpenRouter.ShellCallOutputItem, global::OpenRouter.McpListToolsItem, global::OpenRouter.McpApprovalRequestItem, global::OpenRouter.McpApprovalResponseItem, global::OpenRouter.McpCallItem, global::OpenRouter.CustomToolCallItem, global::OpenRouter.CustomToolCallOutputItem?, global::OpenRouter.CompactionItem, global::OpenRouter.ContextCompactionItem, global::OpenRouter.ItemReferenceItem, global::OpenRouter.AdditionalToolsItem, global::OpenRouter.AgentMessageItem, global::OpenRouter.ConfigurationUpdateItem, global::OpenRouter.ToolSearchCallItem, global::OpenRouter.ToolSearchOutputItem>>), TypeInfoPropertyName = "ToolSearchOutputItem_dc70dbe556ae312d")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf>>), TypeInfoPropertyName = "ORAnthropicToolSearchResultParam_cfed1a0da3b80605")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "ORAnthropicToolSearchResultParam_e090d91717704994")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf>>), TypeInfoPropertyName = "AnthropicDocumentBlockParam_ff603e3e1c6bb3fa")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "AnthropicDocumentBlockParam_dfe4b95a03f67e89")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessagesRequestContextManagementEditVariant3_6c983e238fc95563")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "ToolSearchServerTool_01f1dc7626f092a4")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool>>), TypeInfoPropertyName = "ToolSearchServerTool_ba88f27f2f078735")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool, global::OpenRouter.ToolSearchOutputItemTool2>>), TypeInfoPropertyName = "ToolSearchOutputItemTool2_8ae2a759aff9dd26")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "ContentPartInputFile_8471d29128267302")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WebSearchCallCompletedEvent?), TypeInfoPropertyName = "NullableWebSearchCallCompletedEvent2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.StreamEventsDiscriminatorType?), TypeInfoPropertyName = "NullableStreamEventsDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.StreamLogprob?), TypeInfoPropertyName = "NullableStreamLogprob2")] @@ -4611,101 +4833,6 @@ internal sealed partial class SourceGenerationContextChunk7 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ListModelsUserSort?), TypeInfoPropertyName = "NullableListModelsUserSort2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ListModelsUserClient?), TypeInfoPropertyName = "NullableListModelsUserClient2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DeletePrivateEndpointDraftOnly?), TypeInfoPropertyName = "NullableDeletePrivateEndpointDraftOnly2")] - internal sealed partial class SourceGenerationContextChunk8 : global::System.Text.Json.Serialization.JsonSerializerContext - { - } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull - )] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool, global::OpenRouter.AdditionalToolsItemTool2>>), TypeInfoPropertyName = "AdditionalToolsItemTool2_bf7774b59504ff43")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool, global::OpenRouter.AdditionalToolsItemTool2>), TypeInfoPropertyName = "AdditionalToolsItemTool2_b5f7952f57d49aa1")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "AnthropicFileDocumentSource_59970a182a07e0fb")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "ArmorSafeguardResultStatusToolUsesVariant3_67eca205cfb623db")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "ConfigurationUpdateItem_9a27921b3bfede0f")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "ConfigurationUpdateItem_10780467a36301be")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "BaseInputsVariant2ItemRoleVariant4_540f51064ad9fbb4")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool>>), TypeInfoPropertyName = "NamespaceTool_49484aac0f2cfe6f")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool>), TypeInfoPropertyName = "NamespaceTool_5f1b468ec79e4d2b")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "BatchObjectResultResponseBodyVariant4_973b1a7fa70038f7")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "BatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant3_fa69c7e94f9ea141")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "BatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant3_e0a5ce64df593465")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "BatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant1FileContentItemVariant2_6338ce728809f718")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "BatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant1FileContentItemVariant2_35bc5f8745b02e33")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList?, global::OpenRouter.AllOf?, global::OpenRouter.OutputWebSearchCallItem?, global::OpenRouter.OutputFileSearchCallItem?, global::OpenRouter.OutputImageGenerationCallItem?, global::OpenRouter.OutputCodeInterpreterCallItem?, global::OpenRouter.OutputComputerCallItem, global::OpenRouter.OutputDatetimeItem, global::OpenRouter.OutputWebSearchServerToolItem, global::OpenRouter.OutputCodeInterpreterServerToolItem, global::OpenRouter.OutputFileSearchServerToolItem, global::OpenRouter.OutputImageGenerationServerToolItem, global::OpenRouter.OutputBrowserUseServerToolItem, global::OpenRouter.OutputBashServerToolItem, global::OpenRouter.OutputTextEditorServerToolItem, global::OpenRouter.OutputApplyPatchServerToolItem, global::OpenRouter.OutputWebFetchServerToolItem, global::OpenRouter.OutputToolSearchServerToolItem, global::OpenRouter.OutputMemoryServerToolItem, global::OpenRouter.OutputArmorBlockedItem, global::OpenRouter.OutputMcpServerToolItem, global::OpenRouter.OutputSearchModelsServerToolItem, global::OpenRouter.OutputFusionServerToolItem, global::OpenRouter.OutputAdvisorServerToolItem, global::OpenRouter.OutputSubagentServerToolItem, global::OpenRouter.OutputFilesServerToolItem, global::OpenRouter.OutputShellServerToolItem, global::OpenRouter.LocalShellCallItem, global::OpenRouter.LocalShellCallOutputItem, global::OpenRouter.ShellCallItem, global::OpenRouter.ShellCallOutputItem, global::OpenRouter.McpListToolsItem, global::OpenRouter.McpApprovalRequestItem, global::OpenRouter.McpApprovalResponseItem, global::OpenRouter.McpCallItem, global::OpenRouter.CustomToolCallItem, global::OpenRouter.CustomToolCallOutputItem?, global::OpenRouter.CompactionItem, global::OpenRouter.ContextCompactionItem, global::OpenRouter.ItemReferenceItem, global::OpenRouter.AdditionalToolsItem, global::OpenRouter.AgentMessageItem, global::OpenRouter.ConfigurationUpdateItem, global::OpenRouter.ToolSearchCallItem, global::OpenRouter.ToolSearchOutputItem>>), TypeInfoPropertyName = "ToolSearchOutputItem_57b89895b7a4c944")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?, global::OpenRouter.AllOf?, global::OpenRouter.OutputWebSearchCallItem?, global::OpenRouter.OutputFileSearchCallItem?, global::OpenRouter.OutputImageGenerationCallItem?, global::OpenRouter.OutputCodeInterpreterCallItem?, global::OpenRouter.OutputComputerCallItem, global::OpenRouter.OutputDatetimeItem, global::OpenRouter.OutputWebSearchServerToolItem, global::OpenRouter.OutputCodeInterpreterServerToolItem, global::OpenRouter.OutputFileSearchServerToolItem, global::OpenRouter.OutputImageGenerationServerToolItem, global::OpenRouter.OutputBrowserUseServerToolItem, global::OpenRouter.OutputBashServerToolItem, global::OpenRouter.OutputTextEditorServerToolItem, global::OpenRouter.OutputApplyPatchServerToolItem, global::OpenRouter.OutputWebFetchServerToolItem, global::OpenRouter.OutputToolSearchServerToolItem, global::OpenRouter.OutputMemoryServerToolItem, global::OpenRouter.OutputArmorBlockedItem, global::OpenRouter.OutputMcpServerToolItem, global::OpenRouter.OutputSearchModelsServerToolItem, global::OpenRouter.OutputFusionServerToolItem, global::OpenRouter.OutputAdvisorServerToolItem, global::OpenRouter.OutputSubagentServerToolItem, global::OpenRouter.OutputFilesServerToolItem, global::OpenRouter.OutputShellServerToolItem, global::OpenRouter.LocalShellCallItem, global::OpenRouter.LocalShellCallOutputItem, global::OpenRouter.ShellCallItem, global::OpenRouter.ShellCallOutputItem, global::OpenRouter.McpListToolsItem, global::OpenRouter.McpApprovalRequestItem, global::OpenRouter.McpApprovalResponseItem, global::OpenRouter.McpCallItem, global::OpenRouter.CustomToolCallItem, global::OpenRouter.CustomToolCallOutputItem?, global::OpenRouter.CompactionItem, global::OpenRouter.ContextCompactionItem, global::OpenRouter.ItemReferenceItem, global::OpenRouter.AdditionalToolsItem, global::OpenRouter.AgentMessageItem, global::OpenRouter.ConfigurationUpdateItem, global::OpenRouter.ToolSearchCallItem, global::OpenRouter.ToolSearchOutputItem>), TypeInfoPropertyName = "ToolSearchOutputItem_9e5946c472e6fa57")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "MessagesContentBlockDeltaEventDeltaVariant6_85bf23ef95be663d")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "MessagesContentBlockStartEventContentBlock_25db2b9007507e22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf>>), TypeInfoPropertyName = "ORAnthropicToolSearchResultParam_a830fbfb5e9626e3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "ORAnthropicToolSearchResultParam_852e8dbebe67306b")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "ORAnthropicToolSearchResultParam_31a1b30890f9e262")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf>>), TypeInfoPropertyName = "AnthropicDocumentBlockParam_8b902d8f07b55d71")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "AnthropicDocumentBlockParam_3427b79e8e4441c6")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "AnthropicDocumentBlockParam_5665f86286336860")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "MessagesRequestContextManagementEditVariant3_50233d14798654a0")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "MessagesRequestContextManagementEditVariant3_ffde3f722316314d")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "MessagesRequestContextManagementEditVariant2KeepEnum2_fd34ecaec78d7e5f")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "MessagesRequestThinkingVariant4_b2b4342cf8a50666")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "MessagesRequestToolChoiceVariant4_b179c4b756214df6")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "ToolSearchServerTool_1b9b412e0eef803d")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "ToolSearchServerTool_9479becc269e0f9f")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "MessagesToolAdditionBlockToolVariant4_9c3740427ae32fc0")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf), TypeInfoPropertyName = "OpenAIResponseInputMessageItemRoleVariant3_24a3e4d5fd4f5c62")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool>>), TypeInfoPropertyName = "ToolSearchServerTool_2c059dd05c149ed4")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool>), TypeInfoPropertyName = "ToolSearchServerTool_d7753f2fe5fa4111")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool, global::OpenRouter.ToolSearchOutputItemTool2>>), TypeInfoPropertyName = "ToolSearchOutputItemTool2_972e34c028ad9bed")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool, global::OpenRouter.ToolSearchOutputItemTool2>), TypeInfoPropertyName = "ToolSearchOutputItemTool2_55c7f0fa1267d7c0")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "ContentPartInputFile_2aea3d229536f75d")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "ContentPartInputFile_538ae37a361ed1d9")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool, global::OpenRouter.AdditionalToolsItemTool2>?), TypeInfoPropertyName = "AdditionalToolsItemTool2_09e240cd95900634")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "AnthropicFileDocumentSource_814636ad8bcd4bd6")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "ArmorSafeguardResultStatusToolUsesVariant3_3a04ed8b27915257")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "ConfigurationUpdateItem_5362c7233928ae2f")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "BaseInputsVariant2ItemRoleVariant4_5aeb29d58bd76aba")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool>?), TypeInfoPropertyName = "NamespaceTool_6f69561a8e6df433")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "BatchObjectResultResponseBodyVariant4_b512db3eec98d92a")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "BatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant3_3e6e941c2ae064c9")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "BatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant1FileContentItemVariant2_f5555bff6884da83")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "EasyInputMessageRoleVariant4_a381c85a2ffefca7")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?, global::OpenRouter.AllOf?, global::OpenRouter.OutputWebSearchCallItem?, global::OpenRouter.OutputFileSearchCallItem?, global::OpenRouter.OutputImageGenerationCallItem?, global::OpenRouter.OutputCodeInterpreterCallItem?, global::OpenRouter.OutputComputerCallItem, global::OpenRouter.OutputDatetimeItem, global::OpenRouter.OutputWebSearchServerToolItem, global::OpenRouter.OutputCodeInterpreterServerToolItem, global::OpenRouter.OutputFileSearchServerToolItem, global::OpenRouter.OutputImageGenerationServerToolItem, global::OpenRouter.OutputBrowserUseServerToolItem, global::OpenRouter.OutputBashServerToolItem, global::OpenRouter.OutputTextEditorServerToolItem, global::OpenRouter.OutputApplyPatchServerToolItem, global::OpenRouter.OutputWebFetchServerToolItem, global::OpenRouter.OutputToolSearchServerToolItem, global::OpenRouter.OutputMemoryServerToolItem, global::OpenRouter.OutputArmorBlockedItem, global::OpenRouter.OutputMcpServerToolItem, global::OpenRouter.OutputSearchModelsServerToolItem, global::OpenRouter.OutputFusionServerToolItem, global::OpenRouter.OutputAdvisorServerToolItem, global::OpenRouter.OutputSubagentServerToolItem, global::OpenRouter.OutputFilesServerToolItem, global::OpenRouter.OutputShellServerToolItem, global::OpenRouter.LocalShellCallItem, global::OpenRouter.LocalShellCallOutputItem, global::OpenRouter.ShellCallItem, global::OpenRouter.ShellCallOutputItem, global::OpenRouter.McpListToolsItem, global::OpenRouter.McpApprovalRequestItem, global::OpenRouter.McpApprovalResponseItem, global::OpenRouter.McpCallItem, global::OpenRouter.CustomToolCallItem, global::OpenRouter.CustomToolCallOutputItem?, global::OpenRouter.CompactionItem, global::OpenRouter.ContextCompactionItem, global::OpenRouter.ItemReferenceItem, global::OpenRouter.AdditionalToolsItem, global::OpenRouter.AgentMessageItem, global::OpenRouter.ConfigurationUpdateItem, global::OpenRouter.ToolSearchCallItem, global::OpenRouter.ToolSearchOutputItem>?), TypeInfoPropertyName = "ToolSearchOutputItem_036349029b52cd4b")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "McpServerToolRequireApprovalVariant3_9e80cf046f55ac7f")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "MessagesContentBlockDeltaEventDeltaVariant6_b04a01a634d385af")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "MessagesContentBlockStartEventContentBlock_a7f8131972d9612b")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf>>?), TypeInfoPropertyName = "ORAnthropicToolSearchResultParam_da2025d9555d1b10")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "ORAnthropicToolSearchResultParam_e3ef77e98141e736")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf>>?), TypeInfoPropertyName = "AnthropicDocumentBlockParam_48af57af66f09051")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "AnthropicDocumentBlockParam_c612fce51eacfc73")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "MessagesRequestContextManagementEditVariant3_71052b93d707ee6b")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "MessagesRequestContextManagementEditVariant2KeepEnum2_b4b489f1330d5b4d")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "MessagesRequestThinkingVariant4_03c7f1a2acca5c12")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "MessagesRequestToolChoiceVariant4_80ddd5e547c6a6f9")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "ToolSearchServerTool_dafe8db55066d0a4")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "MessagesToolAdditionBlockToolVariant4_9cf1c265585be329")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "MessagesToolRemovalBlockToolVariant3_b8be7edf70121998")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "OpenAIResponseInputMessageItemRoleVariant3_30be2933991f4490")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "OutputItemFunctionCallStatusVariant3_c3e100bad4156ae5")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "OutputItemWebSearchCallActionVariant3_bff9cc86d44cf6cd")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool>?), TypeInfoPropertyName = "ToolSearchServerTool_eab303d51ff5e405")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool, global::OpenRouter.ToolSearchOutputItemTool2>?), TypeInfoPropertyName = "ToolSearchOutputItemTool2_bed65d36a3ed2391")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf?), TypeInfoPropertyName = "ContentPartInputFile_1886f3bcc3b70a36")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool, global::OpenRouter.AdditionalToolsItemTool2>>), TypeInfoPropertyName = "AdditionalToolsItemTool2_3a8a4fe12a71a6e9")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "ConfigurationUpdateItem_0a716e7029f70194")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool>>), TypeInfoPropertyName = "NamespaceTool_5415e4f11a497d7a")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "BatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant3_a2cea693150f9456")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "BatchObjectResultResponseBodyVariant1ChoiceMessageAnnotationVariant1FileContentItemVariant2_d4b31f98111658ec")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List?, global::OpenRouter.AllOf?, global::OpenRouter.OutputWebSearchCallItem?, global::OpenRouter.OutputFileSearchCallItem?, global::OpenRouter.OutputImageGenerationCallItem?, global::OpenRouter.OutputCodeInterpreterCallItem?, global::OpenRouter.OutputComputerCallItem, global::OpenRouter.OutputDatetimeItem, global::OpenRouter.OutputWebSearchServerToolItem, global::OpenRouter.OutputCodeInterpreterServerToolItem, global::OpenRouter.OutputFileSearchServerToolItem, global::OpenRouter.OutputImageGenerationServerToolItem, global::OpenRouter.OutputBrowserUseServerToolItem, global::OpenRouter.OutputBashServerToolItem, global::OpenRouter.OutputTextEditorServerToolItem, global::OpenRouter.OutputApplyPatchServerToolItem, global::OpenRouter.OutputWebFetchServerToolItem, global::OpenRouter.OutputToolSearchServerToolItem, global::OpenRouter.OutputMemoryServerToolItem, global::OpenRouter.OutputArmorBlockedItem, global::OpenRouter.OutputMcpServerToolItem, global::OpenRouter.OutputSearchModelsServerToolItem, global::OpenRouter.OutputFusionServerToolItem, global::OpenRouter.OutputAdvisorServerToolItem, global::OpenRouter.OutputSubagentServerToolItem, global::OpenRouter.OutputFilesServerToolItem, global::OpenRouter.OutputShellServerToolItem, global::OpenRouter.LocalShellCallItem, global::OpenRouter.LocalShellCallOutputItem, global::OpenRouter.ShellCallItem, global::OpenRouter.ShellCallOutputItem, global::OpenRouter.McpListToolsItem, global::OpenRouter.McpApprovalRequestItem, global::OpenRouter.McpApprovalResponseItem, global::OpenRouter.McpCallItem, global::OpenRouter.CustomToolCallItem, global::OpenRouter.CustomToolCallOutputItem?, global::OpenRouter.CompactionItem, global::OpenRouter.ContextCompactionItem, global::OpenRouter.ItemReferenceItem, global::OpenRouter.AdditionalToolsItem, global::OpenRouter.AgentMessageItem, global::OpenRouter.ConfigurationUpdateItem, global::OpenRouter.ToolSearchCallItem, global::OpenRouter.ToolSearchOutputItem>>), TypeInfoPropertyName = "ToolSearchOutputItem_dc70dbe556ae312d")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf>>), TypeInfoPropertyName = "ORAnthropicToolSearchResultParam_cfed1a0da3b80605")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "ORAnthropicToolSearchResultParam_e090d91717704994")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf>>), TypeInfoPropertyName = "AnthropicDocumentBlockParam_ff603e3e1c6bb3fa")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "AnthropicDocumentBlockParam_dfe4b95a03f67e89")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessagesRequestContextManagementEditVariant3_6c983e238fc95563")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "ToolSearchServerTool_01f1dc7626f092a4")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool>>), TypeInfoPropertyName = "ToolSearchServerTool_ba88f27f2f078735")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool, global::OpenRouter.ToolSearchOutputItemTool2>>), TypeInfoPropertyName = "ToolSearchOutputItemTool2_8ae2a759aff9dd26")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "ContentPartInputFile_8471d29128267302")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?), TypeInfoPropertyName = "NullableAnyOfDeleteScimGroupMappingKeepMembers2Boolean2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DeleteScimGroupMappingKeepMembers2?), TypeInfoPropertyName = "NullableDeleteScimGroupMappingKeepMembers22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ListToolsApiFormat?), TypeInfoPropertyName = "NullableListToolsApiFormat2")] @@ -4810,6 +4937,9 @@ internal sealed partial class SourceGenerationContextChunk8 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf?, global::OpenRouter.InputFile, global::OpenRouter.InputAudio, global::OpenRouter.InputVideo>>, string>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List?, global::OpenRouter.InputFile, global::OpenRouter.InputAudio, global::OpenRouter.InputVideo>>))] [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::OpenRouter.AnyOf>>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -4905,12 +5035,12 @@ internal sealed partial class SourceGenerationContextChunk8 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnyOf>))] [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))] @@ -4978,6 +5108,7 @@ internal sealed partial class SourceGenerationContextChunk8 : 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))] @@ -5075,6 +5206,8 @@ internal static void AddConverters(global::System.Text.Json.JsonSerializerOption options.Converters.Add(new global::OpenRouter.JsonConverters.AnswersJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.DeferredToolsSearchStrategyJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ErrorEventJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.FieldsJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.Answers2JsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.FileDeleteResponseJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.FileListResponseJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.FileResponseJsonConverter()); @@ -5124,6 +5257,7 @@ internal static void AddConverters(global::System.Text.Json.JsonSerializerOption options.Converters.Add(new global::OpenRouter.JsonConverters.PreferredMaxLatencyJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.PreferredMinThroughputJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.PresetWithDesignatedVersionJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.PublicZdrEndpointJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ReasoningDeltaEventJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ReasoningDetailUnionJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ReasoningDoneEventJsonConverter()); @@ -5205,6 +5339,8 @@ internal static void AddConverters(global::System.Text.Json.JsonSerializerOption options.Converters.Add(new global::OpenRouter.JsonConverters.AnyOfJsonConverter?, global::OpenRouter.InputFile>>>()); options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter?, global::OpenRouter.InputFile>()); options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AnyOfJsonConverter>()); options.Converters.Add(new global::OpenRouter.JsonConverters.AnyOfJsonConverter>()); options.Converters.Add(new global::OpenRouter.JsonConverters.AnyOfJsonConverter>()); @@ -5221,6 +5357,36 @@ internal static void AddConverters(global::System.Text.Json.JsonSerializerOption options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AnyOfJsonConverter>>()); options.Converters.Add(new global::OpenRouter.JsonConverters.AnyOfJsonConverter()); @@ -5237,6 +5403,8 @@ internal static void AddConverters(global::System.Text.Json.JsonSerializerOption options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AnyOfJsonConverter>()); options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter, object>()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); @@ -5295,25 +5463,9 @@ internal static void AddConverters(global::System.Text.Json.JsonSerializerOption options.Converters.Add(new global::OpenRouter.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AnyOfJsonConverter>()); options.Converters.Add(new global::OpenRouter.JsonConverters.AnyOfJsonConverter?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool>()); options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); @@ -5322,10 +5474,18 @@ internal static void AddConverters(global::System.Text.Json.JsonSerializerOption options.Converters.Add(new global::OpenRouter.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AnyOfJsonConverter?, global::OpenRouter.PreviewWebSearchServerTool, global::OpenRouter.Preview20250311WebSearchServerTool, global::OpenRouter.LegacyWebSearchServerTool, global::OpenRouter.WebSearchServerTool, global::OpenRouter.FileSearchServerTool, global::OpenRouter.ComputerUseServerTool, global::OpenRouter.CodeInterpreterServerTool, global::OpenRouter.McpServerTool, global::OpenRouter.ImageGenerationServerTool, global::OpenRouter.CodexLocalShellTool, global::OpenRouter.ShellServerTool, global::OpenRouter.ApplyPatchServerTool, global::OpenRouter.CustomTool, global::OpenRouter.NamespaceTool, global::OpenRouter.AdvisorServerToolOpenRouter, global::OpenRouter.SubagentServerToolOpenRouter, global::OpenRouter.DatetimeServerTool, global::OpenRouter.FilesServerTool, global::OpenRouter.FusionServerToolOpenRouter, global::OpenRouter.ImageGenerationServerToolOpenRouter, global::OpenRouter.SearchModelsServerToolOpenRouter, global::OpenRouter.WebFetchServerTool, global::OpenRouter.WebSearchServerToolOpenRouter, global::OpenRouter.ApplyPatchServerToolOpenRouter, global::OpenRouter.BashServerTool, global::OpenRouter.ShellServerToolOpenRouter, global::OpenRouter.ToolSearchServerTool, global::OpenRouter.ToolSearchOutputItemTool2>()); options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); @@ -5334,6 +5494,8 @@ internal static void AddConverters(global::System.Text.Json.JsonSerializerOption options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AnyOfJsonConverter, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>, global::System.Collections.Generic.IList>()); @@ -6759,17 +6921,173 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::OpenRouter.EasyInputMessageRoleVariant3?) - || typeToConvert == typeof(global::OpenRouter.EasyInputMessageRoleVariant4) + || typeToConvert == typeof(global::OpenRouter.EasyInputMessageRoleVariant4) + + || typeToConvert == typeof(global::OpenRouter.EasyInputMessageRoleVariant4?) + + || typeToConvert == typeof(global::OpenRouter.EasyInputMessageType) + + || typeToConvert == typeof(global::OpenRouter.EasyInputMessageType?) + + || typeToConvert == typeof(global::OpenRouter.EnumCapabilityType) + + || typeToConvert == typeof(global::OpenRouter.EnumCapabilityType?) + + || typeToConvert == typeof(global::OpenRouter.ExtractionAssetFormat) + + || typeToConvert == typeof(global::OpenRouter.ExtractionAssetFormat?) + + || typeToConvert == typeof(global::OpenRouter.ExtractionAssetType) + + || typeToConvert == typeof(global::OpenRouter.ExtractionAssetType?) + + || typeToConvert == typeof(global::OpenRouter.ExtractionDateAnswerSource) + + || typeToConvert == typeof(global::OpenRouter.ExtractionDateAnswerSource?) + + || typeToConvert == typeof(global::OpenRouter.ExtractionDateAnswerType) + + || typeToConvert == typeof(global::OpenRouter.ExtractionDateAnswerType?) + + || typeToConvert == typeof(global::OpenRouter.ExtractionDateFieldType) + + || typeToConvert == typeof(global::OpenRouter.ExtractionDateFieldType?) + + || typeToConvert == typeof(global::OpenRouter.ExtractionDatetimeAnswerSource) + + || typeToConvert == typeof(global::OpenRouter.ExtractionDatetimeAnswerSource?) + + || typeToConvert == typeof(global::OpenRouter.ExtractionDatetimeAnswerType) + + || typeToConvert == typeof(global::OpenRouter.ExtractionDatetimeAnswerType?) + + || typeToConvert == typeof(global::OpenRouter.ExtractionDatetimeFieldType) + + || typeToConvert == typeof(global::OpenRouter.ExtractionDatetimeFieldType?) + + || typeToConvert == typeof(global::OpenRouter.ExtractionDurationAnswerSource) + + || typeToConvert == typeof(global::OpenRouter.ExtractionDurationAnswerSource?) + + || typeToConvert == typeof(global::OpenRouter.ExtractionDurationAnswerType) + + || typeToConvert == typeof(global::OpenRouter.ExtractionDurationAnswerType?) + + || typeToConvert == typeof(global::OpenRouter.ExtractionDurationFieldType) + + || typeToConvert == typeof(global::OpenRouter.ExtractionDurationFieldType?) + + || typeToConvert == typeof(global::OpenRouter.ExtractionEstimateAnswerSource) + + || typeToConvert == typeof(global::OpenRouter.ExtractionEstimateAnswerSource?) + + || typeToConvert == typeof(global::OpenRouter.ExtractionEstimateAnswerType) + + || typeToConvert == typeof(global::OpenRouter.ExtractionEstimateAnswerType?) + + || typeToConvert == typeof(global::OpenRouter.ExtractionEstimateFieldScale) + + || typeToConvert == typeof(global::OpenRouter.ExtractionEstimateFieldScale?) + + || typeToConvert == typeof(global::OpenRouter.ExtractionEstimateFieldStepVariant2) + + || typeToConvert == typeof(global::OpenRouter.ExtractionEstimateFieldStepVariant2?) + + || typeToConvert == typeof(global::OpenRouter.ExtractionEstimateFieldStepVariant3) + + || typeToConvert == typeof(global::OpenRouter.ExtractionEstimateFieldStepVariant3?) + + || typeToConvert == typeof(global::OpenRouter.ExtractionEstimateFieldType) + + || typeToConvert == typeof(global::OpenRouter.ExtractionEstimateFieldType?) + + || typeToConvert == typeof(global::OpenRouter.ExtractionForecastAnswerSource) + + || typeToConvert == typeof(global::OpenRouter.ExtractionForecastAnswerSource?) + + || typeToConvert == typeof(global::OpenRouter.ExtractionForecastAnswerType) + + || typeToConvert == typeof(global::OpenRouter.ExtractionForecastAnswerType?) + + || typeToConvert == typeof(global::OpenRouter.ExtractionForecastFieldInterval) + + || typeToConvert == typeof(global::OpenRouter.ExtractionForecastFieldInterval?) + + || typeToConvert == typeof(global::OpenRouter.ExtractionForecastFieldScale) + + || typeToConvert == typeof(global::OpenRouter.ExtractionForecastFieldScale?) + + || typeToConvert == typeof(global::OpenRouter.ExtractionForecastFieldStepVariant2) + + || typeToConvert == typeof(global::OpenRouter.ExtractionForecastFieldStepVariant2?) + + || typeToConvert == typeof(global::OpenRouter.ExtractionForecastFieldStepVariant3) + + || typeToConvert == typeof(global::OpenRouter.ExtractionForecastFieldStepVariant3?) + + || typeToConvert == typeof(global::OpenRouter.ExtractionForecastFieldType) + + || typeToConvert == typeof(global::OpenRouter.ExtractionForecastFieldType?) + + || typeToConvert == typeof(global::OpenRouter.ExtractionListAnswerSource) + + || typeToConvert == typeof(global::OpenRouter.ExtractionListAnswerSource?) + + || typeToConvert == typeof(global::OpenRouter.ExtractionListAnswerType) + + || typeToConvert == typeof(global::OpenRouter.ExtractionListAnswerType?) + + || typeToConvert == typeof(global::OpenRouter.ExtractionListFieldItems) + + || typeToConvert == typeof(global::OpenRouter.ExtractionListFieldItems?) + + || typeToConvert == typeof(global::OpenRouter.ExtractionListFieldType) + + || typeToConvert == typeof(global::OpenRouter.ExtractionListFieldType?) + + || typeToConvert == typeof(global::OpenRouter.ExtractionNumberAnswerSource) + + || typeToConvert == typeof(global::OpenRouter.ExtractionNumberAnswerSource?) + + || typeToConvert == typeof(global::OpenRouter.ExtractionNumberAnswerType) + + || typeToConvert == typeof(global::OpenRouter.ExtractionNumberAnswerType?) + + || typeToConvert == typeof(global::OpenRouter.ExtractionNumberFieldType) + + || typeToConvert == typeof(global::OpenRouter.ExtractionNumberFieldType?) + + || typeToConvert == typeof(global::OpenRouter.ExtractionsRequestFieldsDiscriminatorType) + + || typeToConvert == typeof(global::OpenRouter.ExtractionsRequestFieldsDiscriminatorType?) + + || typeToConvert == typeof(global::OpenRouter.ExtractionsResponseAnswersDiscriminatorType) + + || typeToConvert == typeof(global::OpenRouter.ExtractionsResponseAnswersDiscriminatorType?) + + || typeToConvert == typeof(global::OpenRouter.ExtractionTextAnswerSource) + + || typeToConvert == typeof(global::OpenRouter.ExtractionTextAnswerSource?) + + || typeToConvert == typeof(global::OpenRouter.ExtractionTextAnswerType) + + || typeToConvert == typeof(global::OpenRouter.ExtractionTextAnswerType?) + + || typeToConvert == typeof(global::OpenRouter.ExtractionTextFieldType) + + || typeToConvert == typeof(global::OpenRouter.ExtractionTextFieldType?) + + || typeToConvert == typeof(global::OpenRouter.ExtractionTimeAnswerSource) - || typeToConvert == typeof(global::OpenRouter.EasyInputMessageRoleVariant4?) + || typeToConvert == typeof(global::OpenRouter.ExtractionTimeAnswerSource?) - || typeToConvert == typeof(global::OpenRouter.EasyInputMessageType) + || typeToConvert == typeof(global::OpenRouter.ExtractionTimeAnswerType) - || typeToConvert == typeof(global::OpenRouter.EasyInputMessageType?) + || typeToConvert == typeof(global::OpenRouter.ExtractionTimeAnswerType?) - || typeToConvert == typeof(global::OpenRouter.EnumCapabilityType) + || typeToConvert == typeof(global::OpenRouter.ExtractionTimeFieldType) - || typeToConvert == typeof(global::OpenRouter.EnumCapabilityType?) + || typeToConvert == typeof(global::OpenRouter.ExtractionTimeFieldType?) || typeToConvert == typeof(global::OpenRouter.FailableToolCallStatus) @@ -7791,6 +8109,10 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::OpenRouter.OpenResponsesErrorFieldCode?) + || typeToConvert == typeof(global::OpenRouter.OpenResponsesResultVariant2AccessProgramsCyber) + + || typeToConvert == typeof(global::OpenRouter.OpenResponsesResultVariant2AccessProgramsCyber?) + || typeToConvert == typeof(global::OpenRouter.OpenRouterFileShape) || typeToConvert == typeof(global::OpenRouter.OpenRouterFileShape?) @@ -8355,6 +8677,10 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::OpenRouter.ResponsesErrorFieldCode?) + || typeToConvert == typeof(global::OpenRouter.ResponsesRequestAccessProgramsCyber) + + || typeToConvert == typeof(global::OpenRouter.ResponsesRequestAccessProgramsCyber?) + || typeToConvert == typeof(global::OpenRouter.ResponsesRequestPluginDiscriminatorId) || typeToConvert == typeof(global::OpenRouter.ResponsesRequestPluginDiscriminatorId?) @@ -12548,6 +12874,396 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::OpenRouter.JsonConverters.EnumCapabilityTypeNullableJsonConverter(); } + if (typeToConvert == typeof(global::OpenRouter.ExtractionAssetFormat)) + { + return new global::OpenRouter.JsonConverters.ExtractionAssetFormatJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionAssetFormat?)) + { + return new global::OpenRouter.JsonConverters.ExtractionAssetFormatNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionAssetType)) + { + return new global::OpenRouter.JsonConverters.ExtractionAssetTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionAssetType?)) + { + return new global::OpenRouter.JsonConverters.ExtractionAssetTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionDateAnswerSource)) + { + return new global::OpenRouter.JsonConverters.ExtractionDateAnswerSourceJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionDateAnswerSource?)) + { + return new global::OpenRouter.JsonConverters.ExtractionDateAnswerSourceNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionDateAnswerType)) + { + return new global::OpenRouter.JsonConverters.ExtractionDateAnswerTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionDateAnswerType?)) + { + return new global::OpenRouter.JsonConverters.ExtractionDateAnswerTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionDateFieldType)) + { + return new global::OpenRouter.JsonConverters.ExtractionDateFieldTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionDateFieldType?)) + { + return new global::OpenRouter.JsonConverters.ExtractionDateFieldTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionDatetimeAnswerSource)) + { + return new global::OpenRouter.JsonConverters.ExtractionDatetimeAnswerSourceJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionDatetimeAnswerSource?)) + { + return new global::OpenRouter.JsonConverters.ExtractionDatetimeAnswerSourceNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionDatetimeAnswerType)) + { + return new global::OpenRouter.JsonConverters.ExtractionDatetimeAnswerTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionDatetimeAnswerType?)) + { + return new global::OpenRouter.JsonConverters.ExtractionDatetimeAnswerTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionDatetimeFieldType)) + { + return new global::OpenRouter.JsonConverters.ExtractionDatetimeFieldTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionDatetimeFieldType?)) + { + return new global::OpenRouter.JsonConverters.ExtractionDatetimeFieldTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionDurationAnswerSource)) + { + return new global::OpenRouter.JsonConverters.ExtractionDurationAnswerSourceJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionDurationAnswerSource?)) + { + return new global::OpenRouter.JsonConverters.ExtractionDurationAnswerSourceNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionDurationAnswerType)) + { + return new global::OpenRouter.JsonConverters.ExtractionDurationAnswerTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionDurationAnswerType?)) + { + return new global::OpenRouter.JsonConverters.ExtractionDurationAnswerTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionDurationFieldType)) + { + return new global::OpenRouter.JsonConverters.ExtractionDurationFieldTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionDurationFieldType?)) + { + return new global::OpenRouter.JsonConverters.ExtractionDurationFieldTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionEstimateAnswerSource)) + { + return new global::OpenRouter.JsonConverters.ExtractionEstimateAnswerSourceJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionEstimateAnswerSource?)) + { + return new global::OpenRouter.JsonConverters.ExtractionEstimateAnswerSourceNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionEstimateAnswerType)) + { + return new global::OpenRouter.JsonConverters.ExtractionEstimateAnswerTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionEstimateAnswerType?)) + { + return new global::OpenRouter.JsonConverters.ExtractionEstimateAnswerTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionEstimateFieldScale)) + { + return new global::OpenRouter.JsonConverters.ExtractionEstimateFieldScaleJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionEstimateFieldScale?)) + { + return new global::OpenRouter.JsonConverters.ExtractionEstimateFieldScaleNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionEstimateFieldStepVariant2)) + { + return new global::OpenRouter.JsonConverters.ExtractionEstimateFieldStepVariant2JsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionEstimateFieldStepVariant2?)) + { + return new global::OpenRouter.JsonConverters.ExtractionEstimateFieldStepVariant2NullableJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionEstimateFieldStepVariant3)) + { + return new global::OpenRouter.JsonConverters.ExtractionEstimateFieldStepVariant3JsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionEstimateFieldStepVariant3?)) + { + return new global::OpenRouter.JsonConverters.ExtractionEstimateFieldStepVariant3NullableJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionEstimateFieldType)) + { + return new global::OpenRouter.JsonConverters.ExtractionEstimateFieldTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionEstimateFieldType?)) + { + return new global::OpenRouter.JsonConverters.ExtractionEstimateFieldTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionForecastAnswerSource)) + { + return new global::OpenRouter.JsonConverters.ExtractionForecastAnswerSourceJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionForecastAnswerSource?)) + { + return new global::OpenRouter.JsonConverters.ExtractionForecastAnswerSourceNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionForecastAnswerType)) + { + return new global::OpenRouter.JsonConverters.ExtractionForecastAnswerTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionForecastAnswerType?)) + { + return new global::OpenRouter.JsonConverters.ExtractionForecastAnswerTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionForecastFieldInterval)) + { + return new global::OpenRouter.JsonConverters.ExtractionForecastFieldIntervalJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionForecastFieldInterval?)) + { + return new global::OpenRouter.JsonConverters.ExtractionForecastFieldIntervalNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionForecastFieldScale)) + { + return new global::OpenRouter.JsonConverters.ExtractionForecastFieldScaleJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionForecastFieldScale?)) + { + return new global::OpenRouter.JsonConverters.ExtractionForecastFieldScaleNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionForecastFieldStepVariant2)) + { + return new global::OpenRouter.JsonConverters.ExtractionForecastFieldStepVariant2JsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionForecastFieldStepVariant2?)) + { + return new global::OpenRouter.JsonConverters.ExtractionForecastFieldStepVariant2NullableJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionForecastFieldStepVariant3)) + { + return new global::OpenRouter.JsonConverters.ExtractionForecastFieldStepVariant3JsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionForecastFieldStepVariant3?)) + { + return new global::OpenRouter.JsonConverters.ExtractionForecastFieldStepVariant3NullableJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionForecastFieldType)) + { + return new global::OpenRouter.JsonConverters.ExtractionForecastFieldTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionForecastFieldType?)) + { + return new global::OpenRouter.JsonConverters.ExtractionForecastFieldTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionListAnswerSource)) + { + return new global::OpenRouter.JsonConverters.ExtractionListAnswerSourceJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionListAnswerSource?)) + { + return new global::OpenRouter.JsonConverters.ExtractionListAnswerSourceNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionListAnswerType)) + { + return new global::OpenRouter.JsonConverters.ExtractionListAnswerTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionListAnswerType?)) + { + return new global::OpenRouter.JsonConverters.ExtractionListAnswerTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionListFieldItems)) + { + return new global::OpenRouter.JsonConverters.ExtractionListFieldItemsJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionListFieldItems?)) + { + return new global::OpenRouter.JsonConverters.ExtractionListFieldItemsNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionListFieldType)) + { + return new global::OpenRouter.JsonConverters.ExtractionListFieldTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionListFieldType?)) + { + return new global::OpenRouter.JsonConverters.ExtractionListFieldTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionNumberAnswerSource)) + { + return new global::OpenRouter.JsonConverters.ExtractionNumberAnswerSourceJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionNumberAnswerSource?)) + { + return new global::OpenRouter.JsonConverters.ExtractionNumberAnswerSourceNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionNumberAnswerType)) + { + return new global::OpenRouter.JsonConverters.ExtractionNumberAnswerTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionNumberAnswerType?)) + { + return new global::OpenRouter.JsonConverters.ExtractionNumberAnswerTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionNumberFieldType)) + { + return new global::OpenRouter.JsonConverters.ExtractionNumberFieldTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionNumberFieldType?)) + { + return new global::OpenRouter.JsonConverters.ExtractionNumberFieldTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionsRequestFieldsDiscriminatorType)) + { + return new global::OpenRouter.JsonConverters.ExtractionsRequestFieldsDiscriminatorTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionsRequestFieldsDiscriminatorType?)) + { + return new global::OpenRouter.JsonConverters.ExtractionsRequestFieldsDiscriminatorTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionsResponseAnswersDiscriminatorType)) + { + return new global::OpenRouter.JsonConverters.ExtractionsResponseAnswersDiscriminatorTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionsResponseAnswersDiscriminatorType?)) + { + return new global::OpenRouter.JsonConverters.ExtractionsResponseAnswersDiscriminatorTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionTextAnswerSource)) + { + return new global::OpenRouter.JsonConverters.ExtractionTextAnswerSourceJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionTextAnswerSource?)) + { + return new global::OpenRouter.JsonConverters.ExtractionTextAnswerSourceNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionTextAnswerType)) + { + return new global::OpenRouter.JsonConverters.ExtractionTextAnswerTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionTextAnswerType?)) + { + return new global::OpenRouter.JsonConverters.ExtractionTextAnswerTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionTextFieldType)) + { + return new global::OpenRouter.JsonConverters.ExtractionTextFieldTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionTextFieldType?)) + { + return new global::OpenRouter.JsonConverters.ExtractionTextFieldTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionTimeAnswerSource)) + { + return new global::OpenRouter.JsonConverters.ExtractionTimeAnswerSourceJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionTimeAnswerSource?)) + { + return new global::OpenRouter.JsonConverters.ExtractionTimeAnswerSourceNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionTimeAnswerType)) + { + return new global::OpenRouter.JsonConverters.ExtractionTimeAnswerTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionTimeAnswerType?)) + { + return new global::OpenRouter.JsonConverters.ExtractionTimeAnswerTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionTimeFieldType)) + { + return new global::OpenRouter.JsonConverters.ExtractionTimeFieldTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ExtractionTimeFieldType?)) + { + return new global::OpenRouter.JsonConverters.ExtractionTimeFieldTypeNullableJsonConverter(); + } + if (typeToConvert == typeof(global::OpenRouter.FailableToolCallStatus)) { return new global::OpenRouter.JsonConverters.FailableToolCallStatusJsonConverter(); @@ -15098,6 +15814,16 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::OpenRouter.JsonConverters.OpenResponsesErrorFieldCodeNullableJsonConverter(); } + if (typeToConvert == typeof(global::OpenRouter.OpenResponsesResultVariant2AccessProgramsCyber)) + { + return new global::OpenRouter.JsonConverters.OpenResponsesResultVariant2AccessProgramsCyberJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.OpenResponsesResultVariant2AccessProgramsCyber?)) + { + return new global::OpenRouter.JsonConverters.OpenResponsesResultVariant2AccessProgramsCyberNullableJsonConverter(); + } + if (typeToConvert == typeof(global::OpenRouter.OpenRouterFileShape)) { return new global::OpenRouter.JsonConverters.OpenRouterFileShapeJsonConverter(); @@ -16508,6 +17234,16 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::OpenRouter.JsonConverters.ResponsesErrorFieldCodeNullableJsonConverter(); } + if (typeToConvert == typeof(global::OpenRouter.ResponsesRequestAccessProgramsCyber)) + { + return new global::OpenRouter.JsonConverters.ResponsesRequestAccessProgramsCyberJsonConverter(); + } + + if (typeToConvert == typeof(global::OpenRouter.ResponsesRequestAccessProgramsCyber?)) + { + return new global::OpenRouter.JsonConverters.ResponsesRequestAccessProgramsCyberNullableJsonConverter(); + } + if (typeToConvert == typeof(global::OpenRouter.ResponsesRequestPluginDiscriminatorId)) { return new global::OpenRouter.JsonConverters.ResponsesRequestPluginDiscriminatorIdJsonConverter(); diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs index 076143a89..6a1c12776 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs @@ -4102,6319 +4102,6639 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::OpenRouter.DecisionsBoxAnswer? Type1016 { get; set; } + public global::OpenRouter.Decisions? Type1016 { get; set; } /// /// /// - public global::OpenRouter.DecisionsBoxAnswerBox? Type1017 { get; set; } + public global::OpenRouter.AllOf? Type1017 { get; set; } /// /// /// - public global::OpenRouter.DecisionsBoxAnswerType? Type1018 { get; set; } + public global::OpenRouter.PercentileStats? Type1018 { get; set; } /// /// /// - public global::OpenRouter.DecisionsBoxQuestion? Type1019 { get; set; } + public global::OpenRouter.DecisionsBoxAnswer? Type1019 { get; set; } /// /// /// - public global::OpenRouter.AnyOf>? Type1020 { get; set; } + public global::OpenRouter.DecisionsBoxAnswerBox? Type1020 { get; set; } /// /// /// - public global::OpenRouter.DecisionsBoxQuestionType? Type1021 { get; set; } + public global::OpenRouter.DecisionsBoxAnswerType? Type1021 { get; set; } /// /// /// - public global::OpenRouter.DecisionsChoiceAnswer? Type1022 { get; set; } + public global::OpenRouter.DecisionsBoxQuestion? Type1022 { get; set; } /// /// /// - public global::OpenRouter.DecisionsChoiceAnswerType? Type1023 { get; set; } + public global::OpenRouter.AnyOf>? Type1023 { get; set; } /// /// /// - public global::OpenRouter.DecisionsChoiceQuestion? Type1024 { get; set; } + public global::OpenRouter.DecisionsBoxQuestionType? Type1024 { get; set; } /// /// /// - public global::OpenRouter.DecisionsChoiceQuestionType? Type1025 { get; set; } + public global::OpenRouter.DecisionsChoiceAnswer? Type1025 { get; set; } /// /// /// - public global::OpenRouter.DecisionsImageAsset? Type1026 { get; set; } + public global::OpenRouter.DecisionsChoiceAnswerType? Type1026 { get; set; } /// /// /// - public global::OpenRouter.DecisionsImageAssetFormat? Type1027 { get; set; } + public global::OpenRouter.DecisionsChoiceQuestion? Type1027 { get; set; } /// /// /// - public global::OpenRouter.DecisionsImageAssetType? Type1028 { get; set; } + public global::OpenRouter.DecisionsChoiceQuestionType? Type1028 { get; set; } /// /// /// - public global::OpenRouter.DecisionsNoulAnswer? Type1029 { get; set; } + public global::OpenRouter.DecisionsImageAsset? Type1029 { get; set; } /// /// /// - public global::OpenRouter.DecisionsNoulAnswerType? Type1030 { get; set; } + public global::OpenRouter.DecisionsImageAssetFormat? Type1030 { get; set; } /// /// /// - public global::OpenRouter.DecisionsNoulQuestion? Type1031 { get; set; } + public global::OpenRouter.DecisionsImageAssetType? Type1031 { get; set; } /// /// /// - public global::OpenRouter.DecisionsNoulQuestionCriteria? Type1032 { get; set; } + public global::OpenRouter.DecisionsNoulAnswer? Type1032 { get; set; } /// /// /// - public global::OpenRouter.DecisionsNoulQuestionType? Type1033 { get; set; } + public global::OpenRouter.DecisionsNoulAnswerType? Type1033 { get; set; } /// /// /// - public global::OpenRouter.DecisionsRequest? Type1034 { get; set; } + public global::OpenRouter.DecisionsNoulQuestion? Type1034 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type1035 { get; set; } + public global::OpenRouter.DecisionsNoulQuestionCriteria? Type1035 { get; set; } /// /// /// - public global::OpenRouter.AllOf? Type1036 { get; set; } + public global::OpenRouter.DecisionsNoulQuestionType? Type1036 { get; set; } /// /// /// - public global::OpenRouter.Questions? Type1037 { get; set; } + public global::OpenRouter.DecisionsRequest? Type1037 { get; set; } /// /// /// - public global::OpenRouter.DecisionsScoreQuestion? Type1038 { get; set; } + public global::System.Collections.Generic.Dictionary? Type1038 { get; set; } /// /// /// - public global::OpenRouter.DecisionsRequestQuestionsDiscriminator? Type1039 { get; set; } + public global::OpenRouter.AllOf? Type1039 { get; set; } /// /// /// - public global::OpenRouter.DecisionsRequestQuestionsDiscriminatorType? Type1040 { get; set; } + public global::OpenRouter.Questions? Type1040 { get; set; } /// /// /// - public global::OpenRouter.DecisionsResponse? Type1041 { get; set; } + public global::OpenRouter.DecisionsScoreQuestion? Type1041 { get; set; } /// /// /// - public global::OpenRouter.Answers? Type1042 { get; set; } + public global::OpenRouter.DecisionsRequestQuestionsDiscriminator? Type1042 { get; set; } /// /// /// - public global::OpenRouter.DecisionsScoreAnswer? Type1043 { get; set; } + public global::OpenRouter.DecisionsRequestQuestionsDiscriminatorType? Type1043 { get; set; } /// /// /// - public global::OpenRouter.DecisionsResponseAnswersDiscriminator? Type1044 { get; set; } + public global::OpenRouter.DecisionsResponse? Type1044 { get; set; } /// /// /// - public global::OpenRouter.DecisionsResponseAnswersDiscriminatorType? Type1045 { get; set; } + public global::OpenRouter.Answers? Type1045 { get; set; } /// /// /// - public global::OpenRouter.DecisionsResponseUsage? Type1046 { get; set; } + public global::OpenRouter.DecisionsScoreAnswer? Type1046 { get; set; } /// /// /// - public global::OpenRouter.DecisionsScoreAnswerType? Type1047 { get; set; } + public global::OpenRouter.DecisionsResponseAnswersDiscriminator? Type1047 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>>? Type1048 { get; set; } + public global::OpenRouter.DecisionsResponseAnswersDiscriminatorType? Type1048 { get; set; } /// /// /// - public global::OpenRouter.DecisionsScoreQuestionType? Type1049 { get; set; } + public global::OpenRouter.DecisionsResponseUsage? Type1049 { get; set; } /// /// /// - public global::OpenRouter.DefaultParameters? Type1050 { get; set; } + public global::OpenRouter.DecisionsScoreAnswerType? Type1050 { get; set; } /// /// /// - public global::OpenRouter.DeferredBm25Search? Type1051 { get; set; } + public global::System.Collections.Generic.IList>>? Type1051 { get; set; } /// /// /// - public global::OpenRouter.DeferredBm25SearchType? Type1052 { get; set; } + public global::OpenRouter.DecisionsScoreQuestionType? Type1052 { get; set; } /// /// /// - public global::OpenRouter.DeferredCustomSearch? Type1053 { get; set; } + public global::OpenRouter.DefaultParameters? Type1053 { get; set; } /// /// /// - public global::OpenRouter.DeferredCustomSearchType? Type1054 { get; set; } + public global::OpenRouter.DeferredBm25Search? Type1054 { get; set; } /// /// /// - public global::OpenRouter.DeferredRegexSearch? Type1055 { get; set; } + public global::OpenRouter.DeferredBm25SearchType? Type1055 { get; set; } /// /// /// - public global::OpenRouter.DeferredRegexSearchType? Type1056 { get; set; } + public global::OpenRouter.DeferredCustomSearch? Type1056 { get; set; } /// /// /// - public global::OpenRouter.DeferredToolsControlProfile? Type1057 { get; set; } + public global::OpenRouter.DeferredCustomSearchType? Type1057 { get; set; } /// /// /// - public global::OpenRouter.DeferredToolsControlProtocol? Type1058 { get; set; } + public global::OpenRouter.DeferredRegexSearch? Type1058 { get; set; } /// /// /// - public global::OpenRouter.DeferredToolsSearchStrategy? Type1059 { get; set; } + public global::OpenRouter.DeferredRegexSearchType? Type1059 { get; set; } /// /// /// - public global::OpenRouter.DeferredToolsControlValidation? Type1060 { get; set; } + public global::OpenRouter.DeferredToolsControlProfile? Type1060 { get; set; } /// /// /// - public global::OpenRouter.DeferredToolsSearchStrategyDiscriminator? Type1061 { get; set; } + public global::OpenRouter.DeferredToolsControlProtocol? Type1061 { get; set; } /// /// /// - public global::OpenRouter.DeferredToolsSearchStrategyDiscriminatorType? Type1062 { get; set; } + public global::OpenRouter.DeferredToolsSearchStrategy? Type1062 { get; set; } /// /// /// - public global::OpenRouter.DeleteBYOKKeyResponse? Type1063 { get; set; } + public global::OpenRouter.DeferredToolsControlValidation? Type1063 { get; set; } /// /// /// - public global::OpenRouter.DeleteGuardrailResponse? Type1064 { get; set; } + public global::OpenRouter.DeferredToolsSearchStrategyDiscriminator? Type1064 { get; set; } /// /// /// - public global::OpenRouter.DeleteObservabilityDestinationResponse? Type1065 { get; set; } + public global::OpenRouter.DeferredToolsSearchStrategyDiscriminatorType? Type1065 { get; set; } /// /// /// - public global::OpenRouter.DeletePrivateEndpointResponse? Type1066 { get; set; } + public global::OpenRouter.DeleteBYOKKeyResponse? Type1066 { get; set; } /// /// /// - public global::OpenRouter.DeletePrivateEndpointResponseData? Type1067 { get; set; } + public global::OpenRouter.DeleteGuardrailResponse? Type1067 { get; set; } /// /// /// - public global::OpenRouter.DeleteScimGroupMappingResponse? Type1068 { get; set; } + public global::OpenRouter.DeleteObservabilityDestinationResponse? Type1068 { get; set; } /// /// /// - public global::OpenRouter.DeleteWorkspaceBudgetResponse? Type1069 { get; set; } + public global::OpenRouter.DeletePrivateEndpointResponse? Type1069 { get; set; } /// /// /// - public global::OpenRouter.DeleteWorkspaceResponse? Type1070 { get; set; } + public global::OpenRouter.DeletePrivateEndpointResponseData? Type1070 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessage? Type1071 { get; set; } + public global::OpenRouter.DeleteScimGroupMappingResponse? Type1071 { get; set; } /// /// /// - public global::OpenRouter.AnyOf?, global::OpenRouter.InputFile, global::OpenRouter.InputAudio, global::OpenRouter.InputVideo>>, string>? Type1072 { get; set; } + public global::OpenRouter.DeleteWorkspaceBudgetResponse? Type1072 { get; set; } /// /// /// - public global::System.Collections.Generic.IList?, global::OpenRouter.InputFile, global::OpenRouter.InputAudio, global::OpenRouter.InputVideo>>? Type1073 { get; set; } + public global::OpenRouter.DeleteWorkspaceResponse? Type1073 { get; set; } /// /// /// - public global::OpenRouter.OneOf?, global::OpenRouter.InputFile, global::OpenRouter.InputAudio, global::OpenRouter.InputVideo>? Type1074 { get; set; } + public global::OpenRouter.EasyInputMessage? Type1074 { get; set; } /// /// /// - public global::OpenRouter.InputVideo? Type1075 { get; set; } + public global::OpenRouter.AnyOf?, global::OpenRouter.InputFile, global::OpenRouter.InputAudio, global::OpenRouter.InputVideo>>, string>? Type1075 { get; set; } /// /// /// - public global::OpenRouter.AnyOf? Type1076 { get; set; } + public global::System.Collections.Generic.IList?, global::OpenRouter.InputFile, global::OpenRouter.InputAudio, global::OpenRouter.InputVideo>>? Type1076 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessagePhaseVariant1? Type1077 { get; set; } + public global::OpenRouter.OneOf?, global::OpenRouter.InputFile, global::OpenRouter.InputAudio, global::OpenRouter.InputVideo>? Type1077 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessagePhaseVariant2? Type1078 { get; set; } + public global::OpenRouter.InputVideo? Type1078 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessageRoleVariant1? Type1079 { get; set; } + public global::OpenRouter.AnyOf? Type1079 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessageRoleVariant2? Type1080 { get; set; } + public global::OpenRouter.EasyInputMessagePhaseVariant1? Type1080 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessageRoleVariant3? Type1081 { get; set; } + public global::OpenRouter.EasyInputMessagePhaseVariant2? Type1081 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessageRoleVariant4? Type1082 { get; set; } + public global::OpenRouter.EasyInputMessageRoleVariant1? Type1082 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessageType? Type1083 { get; set; } + public global::OpenRouter.EasyInputMessageRoleVariant2? Type1083 { get; set; } /// /// /// - public global::OpenRouter.EdgeNetworkTimeoutResponse? Type1084 { get; set; } + public global::OpenRouter.EasyInputMessageRoleVariant3? Type1084 { get; set; } /// /// /// - public global::OpenRouter.EdgeNetworkTimeoutResponseErrorData? Type1085 { get; set; } + public global::OpenRouter.EasyInputMessageRoleVariant4? Type1085 { get; set; } /// /// /// - public global::OpenRouter.EndpointInfo? Type1086 { get; set; } + public global::OpenRouter.EasyInputMessageType? Type1086 { get; set; } /// /// /// - public global::OpenRouter.EndpointsMetadata? Type1087 { get; set; } + public global::OpenRouter.EdgeNetworkTimeoutResponse? Type1087 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1088 { get; set; } + public global::OpenRouter.EdgeNetworkTimeoutResponseErrorData? Type1088 { get; set; } /// /// /// - public global::OpenRouter.EnumCapabilityType? Type1089 { get; set; } + public global::OpenRouter.Embeddings? Type1089 { get; set; } /// /// /// - public global::OpenRouter.ErrorEvent? Type1090 { get; set; } + public global::OpenRouter.EndpointInfo? Type1090 { get; set; } /// /// /// - public global::OpenRouter.ExternalUser? Type1091 { get; set; } + public global::OpenRouter.EndpointsMetadata? Type1091 { get; set; } /// /// /// - public global::OpenRouter.ExternalUserResponse? Type1092 { get; set; } + public global::System.Collections.Generic.IList? Type1092 { get; set; } /// /// /// - public global::OpenRouter.FailableToolCallStatus? Type1093 { get; set; } + public global::OpenRouter.EnumCapabilityType? Type1093 { get; set; } /// /// /// - public global::OpenRouter.FailedEvent? Type1094 { get; set; } + public global::OpenRouter.ErrorEvent? Type1094 { get; set; } /// /// /// - public global::OpenRouter.FailedEventType? Type1095 { get; set; } + public global::OpenRouter.ExternalUser? Type1095 { get; set; } /// /// /// - public global::OpenRouter.FileCitation? Type1096 { get; set; } + public global::OpenRouter.ExternalUserResponse? Type1096 { get; set; } /// /// /// - public global::OpenRouter.FileCitationType? Type1097 { get; set; } + public global::OpenRouter.ExtractionAsset? Type1097 { get; set; } /// /// /// - public global::OpenRouter.FileDeleteResponse? Type1098 { get; set; } + public global::OpenRouter.ExtractionAssetFormat? Type1098 { get; set; } /// /// /// - public global::OpenRouter.OpenRouterFileDeleted? Type1099 { get; set; } + public global::OpenRouter.ExtractionAssetType? Type1099 { get; set; } /// /// /// - public global::OpenRouter.OpenAIFileDeleted? Type1100 { get; set; } + public global::OpenRouter.ExtractionDateAnswer? Type1100 { get; set; } /// /// /// - public global::OpenRouter.FileDeleteResponseDiscriminator? Type1101 { get; set; } + public global::OpenRouter.ExtractionDateAnswerSource? Type1101 { get; set; } /// /// /// - public global::OpenRouter.FileDeleteResponseDiscriminatorShape? Type1102 { get; set; } + public global::OpenRouter.ExtractionDateAnswerType? Type1102 { get; set; } /// /// /// - public global::OpenRouter.FileListResponse? Type1103 { get; set; } + public global::OpenRouter.ExtractionDateField? Type1103 { get; set; } /// /// /// - public global::OpenRouter.OpenRouterFileList? Type1104 { get; set; } + public global::OpenRouter.ExtractionDateFieldType? Type1104 { get; set; } /// /// /// - public global::OpenRouter.OpenAIFileList? Type1105 { get; set; } + public global::OpenRouter.ExtractionDatetimeAnswer? Type1105 { get; set; } /// /// /// - public global::OpenRouter.FileListResponseDiscriminator? Type1106 { get; set; } + public global::OpenRouter.ExtractionDatetimeAnswerSource? Type1106 { get; set; } /// /// /// - public global::OpenRouter.FileListResponseDiscriminatorShape? Type1107 { get; set; } + public global::OpenRouter.ExtractionDatetimeAnswerType? Type1107 { get; set; } /// /// /// - public global::OpenRouter.FileParserPluginId? Type1108 { get; set; } + public global::OpenRouter.ExtractionDatetimeField? Type1108 { get; set; } /// /// /// - public global::OpenRouter.PDFParserOptions? Type1109 { get; set; } + public global::OpenRouter.ExtractionDatetimeFieldType? Type1109 { get; set; } /// /// /// - public global::OpenRouter.FilePath? Type1110 { get; set; } + public global::OpenRouter.ExtractionDurationAnswer? Type1110 { get; set; } /// /// /// - public global::OpenRouter.FilePathType? Type1111 { get; set; } + public global::OpenRouter.ExtractionDurationAnswerSource? Type1111 { get; set; } /// /// /// - public global::OpenRouter.FileProvider? Type1112 { get; set; } + public global::OpenRouter.ExtractionDurationAnswerType? Type1112 { get; set; } /// /// /// - public global::OpenRouter.FileResponse? Type1113 { get; set; } + public global::OpenRouter.ExtractionDurationField? Type1113 { get; set; } /// /// /// - public global::OpenRouter.OpenRouterFile? Type1114 { get; set; } + public global::OpenRouter.ExtractionDurationFieldType? Type1114 { get; set; } /// /// /// - public global::OpenRouter.OpenAIFile? Type1115 { get; set; } + public global::OpenRouter.ExtractionEstimateAnswer? Type1115 { get; set; } /// /// /// - public global::OpenRouter.FileResponseDiscriminator? Type1116 { get; set; } + public global::OpenRouter.AnyOf? Type1116 { get; set; } /// /// /// - public global::OpenRouter.FileResponseDiscriminatorShape? Type1117 { get; set; } + public global::System.Collections.Generic.IList>? Type1117 { get; set; } /// /// /// - public global::OpenRouter.AnyOf? Type1118 { get; set; } + public global::OpenRouter.ExtractionEstimateAnswerSource? Type1118 { get; set; } /// /// /// - public global::OpenRouter.FileSearchServerToolFilters? Type1119 { get; set; } + public global::OpenRouter.ExtractionEstimateAnswerType? Type1119 { get; set; } /// /// /// - public global::OpenRouter.FileSearchServerToolFiltersType? Type1120 { get; set; } + public global::OpenRouter.ExtractionEstimateField? Type1120 { get; set; } /// /// /// - public global::OpenRouter.AnyOf>>? Type1121 { get; set; } + public global::OpenRouter.ExtractionEstimateFieldScale? Type1121 { get; set; } /// /// /// - public global::OpenRouter.FileSearchServerToolRankingOptions? Type1122 { get; set; } + public global::OpenRouter.AnyOf? Type1122 { get; set; } /// /// /// - public global::OpenRouter.FileSearchServerToolRankingOptionsRanker? Type1123 { get; set; } + public global::OpenRouter.ExtractionEstimateFieldStepVariant2? Type1123 { get; set; } /// /// /// - public global::OpenRouter.FileSearchServerToolType? Type1124 { get; set; } + public global::OpenRouter.ExtractionEstimateFieldStepVariant3? Type1124 { get; set; } /// /// /// - public global::OpenRouter.FilesServerToolConfig? Type1125 { get; set; } + public global::OpenRouter.ExtractionEstimateFieldType? Type1125 { get; set; } /// /// /// - public global::OpenRouter.FilesServerToolType? Type1126 { get; set; } + public global::OpenRouter.ExtractionForecastAnswer? Type1126 { get; set; } /// /// /// - public global::OpenRouter.Filter? Type1127 { get; set; } + public global::OpenRouter.ExtractionForecastAnswerSource? Type1127 { get; set; } /// /// /// - public global::OpenRouter.ScalarFilter? Type1128 { get; set; } + public global::System.Collections.Generic.IList? Type1128 { get; set; } /// /// /// - public global::OpenRouter.SetFilter? Type1129 { get; set; } + public global::OpenRouter.ExtractionForecastStep? Type1129 { get; set; } /// /// /// - public global::OpenRouter.ForbiddenResponse? Type1130 { get; set; } + public global::OpenRouter.ExtractionForecastAnswerType? Type1130 { get; set; } /// /// /// - public global::OpenRouter.ForbiddenResponseErrorData? Type1131 { get; set; } + public global::OpenRouter.ExtractionForecastField? Type1131 { get; set; } /// /// /// - public global::OpenRouter.FormatJsonObjectConfig? Type1132 { get; set; } + public global::OpenRouter.ExtractionForecastFieldInterval? Type1132 { get; set; } /// /// /// - public global::OpenRouter.FormatJsonObjectConfigType? Type1133 { get; set; } + public global::OpenRouter.ExtractionForecastFieldScale? Type1133 { get; set; } /// /// /// - public global::OpenRouter.FormatJsonSchemaConfig? Type1134 { get; set; } + public global::OpenRouter.AnyOf? Type1134 { get; set; } /// /// /// - public global::OpenRouter.FormatJsonSchemaConfigType? Type1135 { get; set; } + public global::OpenRouter.ExtractionForecastFieldStepVariant2? Type1135 { get; set; } /// /// /// - public global::OpenRouter.Formats? Type1136 { get; set; } + public global::OpenRouter.ExtractionForecastFieldStepVariant3? Type1136 { get; set; } /// /// /// - public global::OpenRouter.FormatTextConfig? Type1137 { get; set; } + public global::OpenRouter.ExtractionForecastFieldType? Type1137 { get; set; } /// /// /// - public global::OpenRouter.FormatTextConfigType? Type1138 { get; set; } + public global::OpenRouter.ExtractionListAnswer? Type1138 { get; set; } /// /// /// - public global::OpenRouter.FrameImage? Type1139 { get; set; } + public global::OpenRouter.ExtractionListAnswerSource? Type1139 { get; set; } /// /// /// - public global::OpenRouter.FrameImageVariant2? Type1140 { get; set; } + public global::System.Collections.Generic.IList>? Type1140 { get; set; } /// /// /// - public global::OpenRouter.FrameImageVariant2FrameType? Type1141 { get; set; } + public global::OpenRouter.ExtractionListAnswerType? Type1141 { get; set; } /// /// /// - public global::OpenRouter.FreeModelDailyRequests? Type1142 { get; set; } + public global::OpenRouter.ExtractionListField? Type1142 { get; set; } /// /// /// - public global::OpenRouter.FunctionCallArgsDeltaEvent? Type1143 { get; set; } + public global::OpenRouter.ExtractionListFieldItems? Type1143 { get; set; } /// /// /// - public global::OpenRouter.FunctionCallArgsDoneEvent? Type1144 { get; set; } + public global::OpenRouter.ExtractionListFieldType? Type1144 { get; set; } /// /// /// - public global::OpenRouter.FunctionCallItem? Type1145 { get; set; } + public global::OpenRouter.ExtractionNumberAnswer? Type1145 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1146 { get; set; } + public global::OpenRouter.ExtractionNumberAnswerSource? Type1146 { get; set; } /// /// /// - public global::OpenRouter.FunctionCallItemSubagentItem? Type1147 { get; set; } + public global::OpenRouter.ExtractionNumberAnswerType? Type1147 { get; set; } /// /// /// - public global::OpenRouter.FunctionCallItemType? Type1148 { get; set; } + public global::OpenRouter.ExtractionNumberField? Type1148 { get; set; } /// /// /// - public global::OpenRouter.FunctionCallOutputItem? Type1149 { get; set; } + public global::OpenRouter.ExtractionNumberFieldType? Type1149 { get; set; } /// /// /// - public global::OpenRouter.FunctionCallOutputItemVariant2? Type1150 { get; set; } + public global::OpenRouter.ExtractionsRequest? Type1150 { get; set; } /// /// /// - public global::OpenRouter.FunctionToolType? Type1151 { get; set; } + public global::System.Collections.Generic.Dictionary? Type1151 { get; set; } /// /// /// - public global::OpenRouter.FusionAnalysisResult? Type1152 { get; set; } + public global::OpenRouter.Fields? Type1152 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1153 { get; set; } + public global::OpenRouter.ExtractionTextField? Type1153 { get; set; } /// /// /// - public global::OpenRouter.FusionAnalysisResultContradiction? Type1154 { get; set; } + public global::OpenRouter.ExtractionTimeField? Type1154 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1155 { get; set; } + public global::OpenRouter.ExtractionsRequestFieldsDiscriminator? Type1155 { get; set; } /// /// /// - public global::OpenRouter.FusionAnalysisResultContradictionStance? Type1156 { get; set; } + public global::OpenRouter.ExtractionsRequestFieldsDiscriminatorType? Type1156 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1157 { get; set; } + public global::OpenRouter.ExtractionsResponse? Type1157 { get; set; } /// /// /// - public global::OpenRouter.FusionAnalysisResultPartialCoverageItem? Type1158 { get; set; } + public global::OpenRouter.Answers2? Type1158 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1159 { get; set; } + public global::OpenRouter.ExtractionTextAnswer? Type1159 { get; set; } /// /// /// - public global::OpenRouter.FusionAnalysisResultUniqueInsight? Type1160 { get; set; } + public global::OpenRouter.ExtractionTimeAnswer? Type1160 { get; set; } /// /// /// - public global::OpenRouter.FusionCallAnalysisCompletedEvent? Type1161 { get; set; } + public global::OpenRouter.ExtractionsResponseAnswersDiscriminator? Type1161 { get; set; } /// /// /// - public global::OpenRouter.FusionCallAnalysisCompletedEventType? Type1162 { get; set; } + public global::OpenRouter.ExtractionsResponseAnswersDiscriminatorType? Type1162 { get; set; } /// /// /// - public global::OpenRouter.FusionCallAnalysisInProgressEvent? Type1163 { get; set; } + public global::OpenRouter.ExtractionsUsage? Type1163 { get; set; } /// /// /// - public global::OpenRouter.FusionCallAnalysisInProgressEventType? Type1164 { get; set; } + public global::OpenRouter.ExtractionTextAnswerSource? Type1164 { get; set; } /// /// /// - public global::OpenRouter.FusionCallCompletedEvent? Type1165 { get; set; } + public global::OpenRouter.ExtractionTextAnswerType? Type1165 { get; set; } /// /// /// - public global::OpenRouter.FusionCallCompletedEventType? Type1166 { get; set; } + public global::OpenRouter.ExtractionTextFieldType? Type1166 { get; set; } /// /// /// - public global::OpenRouter.FusionCallInProgressEvent? Type1167 { get; set; } + public global::OpenRouter.ExtractionTimeAnswerSource? Type1167 { get; set; } /// /// /// - public global::OpenRouter.FusionCallInProgressEventType? Type1168 { get; set; } + public global::OpenRouter.ExtractionTimeAnswerType? Type1168 { get; set; } /// /// /// - public global::OpenRouter.FusionCallPanelAddedEvent? Type1169 { get; set; } + public global::OpenRouter.ExtractionTimeFieldType? Type1169 { get; set; } /// /// /// - public global::OpenRouter.FusionCallPanelAddedEventType? Type1170 { get; set; } + public global::OpenRouter.FailableToolCallStatus? Type1170 { get; set; } /// /// /// - public global::OpenRouter.FusionCallPanelCompletedEvent? Type1171 { get; set; } + public global::OpenRouter.FailedEvent? Type1171 { get; set; } /// /// /// - public global::OpenRouter.FusionCallPanelCompletedEventType? Type1172 { get; set; } + public global::OpenRouter.FailedEventType? Type1172 { get; set; } /// /// /// - public global::OpenRouter.FusionCallPanelDeltaEvent? Type1173 { get; set; } + public global::OpenRouter.FileCitation? Type1173 { get; set; } /// /// /// - public global::OpenRouter.FusionCallPanelDeltaEventType? Type1174 { get; set; } + public global::OpenRouter.FileCitationType? Type1174 { get; set; } /// /// /// - public global::OpenRouter.FusionCallPanelFailedEvent? Type1175 { get; set; } + public global::OpenRouter.FileDeleteResponse? Type1175 { get; set; } /// /// /// - public global::OpenRouter.FusionCallPanelFailedEventType? Type1176 { get; set; } + public global::OpenRouter.OpenRouterFileDeleted? Type1176 { get; set; } /// /// /// - public global::OpenRouter.FusionCallPanelReasoningDeltaEvent? Type1177 { get; set; } + public global::OpenRouter.OpenAIFileDeleted? Type1177 { get; set; } /// /// /// - public global::OpenRouter.FusionCallPanelReasoningDeltaEventType? Type1178 { get; set; } + public global::OpenRouter.FileDeleteResponseDiscriminator? Type1178 { get; set; } /// /// /// - public global::OpenRouter.FusionPluginId? Type1179 { get; set; } + public global::OpenRouter.FileDeleteResponseDiscriminatorShape? Type1179 { get; set; } /// /// /// - public global::OpenRouter.FusionPluginPreset? Type1180 { get; set; } + public global::OpenRouter.FileListResponse? Type1180 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1181 { get; set; } + public global::OpenRouter.OpenRouterFileList? Type1181 { get; set; } /// /// /// - public global::OpenRouter.FusionPluginTool? Type1182 { get; set; } + public global::OpenRouter.OpenAIFileList? Type1182 { get; set; } /// /// /// - public global::OpenRouter.AnyOf?>, object>? Type1183 { get; set; } + public global::OpenRouter.FileListResponseDiscriminator? Type1183 { get; set; } /// /// /// - public global::System.Collections.Generic.IList?>? Type1184 { get; set; } + public global::OpenRouter.FileListResponseDiscriminatorShape? Type1184 { get; set; } /// /// /// - public global::OpenRouter.AnyOf? Type1185 { get; set; } + public global::OpenRouter.FileParserPluginId? Type1185 { get; set; } /// /// /// - public global::OpenRouter.FusionServerToolConfig? Type1186 { get; set; } + public global::OpenRouter.PDFParserOptions? Type1186 { get; set; } /// /// /// - public global::OpenRouter.FusionServerToolOpenRouterType? Type1187 { get; set; } + public global::OpenRouter.FilePath? Type1187 { get; set; } /// /// /// - public global::OpenRouter.FusionServerToolConfigReasoning? Type1188 { get; set; } + public global::OpenRouter.FilePathType? Type1188 { get; set; } /// /// /// - public global::OpenRouter.FusionServerToolConfigReasoningEffort? Type1189 { get; set; } + public global::OpenRouter.FileProvider? Type1189 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1190 { get; set; } + public global::OpenRouter.FileResponse? Type1190 { get; set; } /// /// /// - public global::OpenRouter.FusionServerToolConfigTool? Type1191 { get; set; } + public global::OpenRouter.OpenRouterFile? Type1191 { get; set; } /// /// /// - public global::OpenRouter.FusionSource? Type1192 { get; set; } + public global::OpenRouter.OpenAIFile? Type1192 { get; set; } /// /// /// - public global::OpenRouter.GatewayTimeoutResponse? Type1193 { get; set; } + public global::OpenRouter.FileResponseDiscriminator? Type1193 { get; set; } /// /// /// - public global::OpenRouter.GatewayTimeoutResponseErrorData? Type1194 { get; set; } + public global::OpenRouter.FileResponseDiscriminatorShape? Type1194 { get; set; } /// /// /// - public global::OpenRouter.GenerationContentData? Type1195 { get; set; } + public global::OpenRouter.AnyOf? Type1195 { get; set; } /// /// /// - public global::OpenRouter.GenerationContentError? Type1196 { get; set; } + public global::OpenRouter.FileSearchServerToolFilters? Type1196 { get; set; } /// /// /// - public global::OpenRouter.AnyOf? Type1197 { get; set; } + public global::OpenRouter.FileSearchServerToolFiltersType? Type1197 { get; set; } /// /// /// - public global::OpenRouter.GenerationContentDataInputVariant1? Type1198 { get; set; } + public global::OpenRouter.AnyOf>>? Type1198 { get; set; } /// /// /// - public global::OpenRouter.GenerationContentDataInputVariant2? Type1199 { get; set; } + public global::OpenRouter.FileSearchServerToolRankingOptions? Type1199 { get; set; } /// /// /// - public global::OpenRouter.GenerationContentDataOutput? Type1200 { get; set; } + public global::OpenRouter.FileSearchServerToolRankingOptionsRanker? Type1200 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1201 { get; set; } + public global::OpenRouter.FileSearchServerToolType? Type1201 { get; set; } /// /// /// - public global::OpenRouter.GenerationContentErrorAttempt? Type1202 { get; set; } + public global::OpenRouter.FilesServerToolConfig? Type1202 { get; set; } /// /// /// - public global::OpenRouter.GenerationContentResponse? Type1203 { get; set; } + public global::OpenRouter.FilesServerToolType? Type1203 { get; set; } /// /// /// - public global::OpenRouter.GenerationResponse? Type1204 { get; set; } + public global::OpenRouter.Filter? Type1204 { get; set; } /// /// /// - public global::OpenRouter.GenerationResponseData? Type1205 { get; set; } + public global::OpenRouter.ScalarFilter? Type1205 { get; set; } /// /// /// - public global::OpenRouter.GenerationResponseDataApiType? Type1206 { get; set; } + public global::OpenRouter.SetFilter? Type1206 { get; set; } /// /// /// - public global::OpenRouter.GenerationResponseDataDataRegion? Type1207 { get; set; } + public global::OpenRouter.ForbiddenResponse? Type1207 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1208 { get; set; } + public global::OpenRouter.ForbiddenResponseErrorData? Type1208 { get; set; } /// /// /// - public global::OpenRouter.ProviderResponse? Type1209 { get; set; } + public global::OpenRouter.FormatJsonObjectConfig? Type1209 { get; set; } /// /// /// - public global::OpenRouter.GetBYOKKeyResponse? Type1210 { get; set; } + public global::OpenRouter.FormatJsonObjectConfigType? Type1210 { get; set; } /// /// /// - public global::OpenRouter.GetGuardrailResponse? Type1211 { get; set; } + public global::OpenRouter.FormatJsonSchemaConfig? Type1211 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponse? Type1212 { get; set; } + public global::OpenRouter.FormatJsonSchemaConfigType? Type1212 { get; set; } /// /// /// - public global::OpenRouter.GetPresetResponse? Type1213 { get; set; } + public global::OpenRouter.Formats? Type1213 { get; set; } /// /// /// - public global::OpenRouter.GetPresetVersionResponse? Type1214 { get; set; } + public global::OpenRouter.FormatTextConfig? Type1214 { get; set; } /// /// /// - public global::OpenRouter.PresetDesignatedVersion? Type1215 { get; set; } + public global::OpenRouter.FormatTextConfigType? Type1215 { get; set; } /// /// /// - public global::OpenRouter.GetScimGroupMappingResponse? Type1216 { get; set; } + public global::OpenRouter.FrameImage? Type1216 { get; set; } /// /// /// - public global::OpenRouter.GetScimSyncJobResponse? Type1217 { get; set; } + public global::OpenRouter.FrameImageVariant2? Type1217 { get; set; } /// /// /// - public global::OpenRouter.GetToolResponse? Type1218 { get; set; } + public global::OpenRouter.FrameImageVariant2FrameType? Type1218 { get; set; } /// /// /// - public global::OpenRouter.ServerToolDetails? Type1219 { get; set; } + public global::OpenRouter.FreeModelDailyRequests? Type1219 { get; set; } /// /// /// - public global::OpenRouter.GetWorkspaceBudgetResponse? Type1220 { get; set; } + public global::OpenRouter.FunctionCallArgsDeltaEvent? Type1220 { get; set; } /// /// /// - public global::OpenRouter.AllOf? Type1221 { get; set; } + public global::OpenRouter.FunctionCallArgsDoneEvent? Type1221 { get; set; } /// /// /// - public global::OpenRouter.WorkspaceBudget? Type1222 { get; set; } + public global::OpenRouter.FunctionCallItem? Type1222 { get; set; } /// /// /// - public global::OpenRouter.GetWorkspaceResponse? Type1223 { get; set; } + public global::System.Collections.Generic.IList? Type1223 { get; set; } /// /// /// - public global::OpenRouter.GoneResponse? Type1224 { get; set; } + public global::OpenRouter.FunctionCallItemSubagentItem? Type1224 { get; set; } /// /// /// - public global::OpenRouter.GoneResponseErrorData? Type1225 { get; set; } + public global::OpenRouter.FunctionCallItemType? Type1225 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1226 { get; set; } + public global::OpenRouter.FunctionCallOutputItem? Type1226 { get; set; } /// /// /// - public global::OpenRouter.AnyOf>? Type1227 { get; set; } + public global::OpenRouter.FunctionCallOutputItemVariant2? Type1227 { get; set; } /// /// /// - public global::OpenRouter.ImageEndpoint? Type1228 { get; set; } + public global::OpenRouter.FunctionToolType? Type1228 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1229 { get; set; } + public global::OpenRouter.FusionAnalysisResult? Type1229 { get; set; } /// /// /// - public global::OpenRouter.ImagePricingEntry? Type1230 { get; set; } + public global::System.Collections.Generic.IList? Type1230 { get; set; } /// /// /// - public global::OpenRouter.AllOf, object>? Type1231 { get; set; } + public global::OpenRouter.FusionAnalysisResultContradiction? Type1231 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type1232 { get; set; } + public global::System.Collections.Generic.IList? Type1232 { get; set; } /// /// /// - public global::OpenRouter.ImageGenCallCompletedEvent? Type1233 { get; set; } + public global::OpenRouter.FusionAnalysisResultContradictionStance? Type1233 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesImageGenCallCompleted? Type1234 { get; set; } + public global::System.Collections.Generic.IList? Type1234 { get; set; } /// /// /// - public global::OpenRouter.ImageGenCallGeneratingEvent? Type1235 { get; set; } + public global::OpenRouter.FusionAnalysisResultPartialCoverageItem? Type1235 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesImageGenCallGenerating? Type1236 { get; set; } + public global::System.Collections.Generic.IList? Type1236 { get; set; } /// /// /// - public global::OpenRouter.ImageGenCallInProgressEvent? Type1237 { get; set; } + public global::OpenRouter.FusionAnalysisResultUniqueInsight? Type1237 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesImageGenCallInProgress? Type1238 { get; set; } + public global::OpenRouter.FusionCallAnalysisCompletedEvent? Type1238 { get; set; } /// /// /// - public global::OpenRouter.ImageGenCallPartialImageEvent? Type1239 { get; set; } + public global::OpenRouter.FusionCallAnalysisCompletedEventType? Type1239 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesImageGenCallPartialImage? Type1240 { get; set; } + public global::OpenRouter.FusionCallAnalysisInProgressEvent? Type1240 { get; set; } /// /// /// - public global::OpenRouter.ImageGenCompletedEvent? Type1241 { get; set; } + public global::OpenRouter.FusionCallAnalysisInProgressEventType? Type1241 { get; set; } /// /// /// - public global::OpenRouter.ImageGenCompletedEventType? Type1242 { get; set; } + public global::OpenRouter.FusionCallCompletedEvent? Type1242 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationUsage? Type1243 { get; set; } + public global::OpenRouter.FusionCallCompletedEventType? Type1243 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationProviderPreferences? Type1244 { get; set; } + public global::OpenRouter.FusionCallInProgressEvent? Type1244 { get; set; } /// /// /// - public global::OpenRouter.AllOf? Type1245 { get; set; } + public global::OpenRouter.FusionCallInProgressEventType? Type1245 { get; set; } /// /// /// - public global::OpenRouter.ProviderOptions? Type1246 { get; set; } + public global::OpenRouter.FusionCallPanelAddedEvent? Type1246 { get; set; } /// /// /// - public global::OpenRouter.AnyOf? Type1247 { get; set; } + public global::OpenRouter.FusionCallPanelAddedEventType? Type1247 { get; set; } /// /// /// - public global::OpenRouter.ProviderSort? Type1248 { get; set; } + public global::OpenRouter.FusionCallPanelCompletedEvent? Type1248 { get; set; } /// /// /// - public global::OpenRouter.ProviderSortConfig? Type1249 { get; set; } + public global::OpenRouter.FusionCallPanelCompletedEventType? Type1249 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationRequest? Type1250 { get; set; } + public global::OpenRouter.FusionCallPanelDeltaEvent? Type1250 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationRequestAspectRatio? Type1251 { get; set; } + public global::OpenRouter.FusionCallPanelDeltaEventType? Type1251 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationRequestBackground? Type1252 { get; set; } + public global::OpenRouter.FusionCallPanelFailedEvent? Type1252 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1253 { get; set; } + public global::OpenRouter.FusionCallPanelFailedEventType? Type1253 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationRequestOutputFormat? Type1254 { get; set; } + public global::OpenRouter.FusionCallPanelReasoningDeltaEvent? Type1254 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationRequestQuality? Type1255 { get; set; } + public global::OpenRouter.FusionCallPanelReasoningDeltaEventType? Type1255 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationRequestResolution? Type1256 { get; set; } + public global::OpenRouter.FusionPluginId? Type1256 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationResponse? Type1257 { get; set; } + public global::OpenRouter.FusionPluginPreset? Type1257 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1258 { get; set; } + public global::System.Collections.Generic.IList? Type1258 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationResponseDataItem? Type1259 { get; set; } + public global::OpenRouter.FusionPluginTool? Type1259 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationServerToolBackground? Type1260 { get; set; } + public global::OpenRouter.AnyOf?>, object>? Type1260 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationServerToolInputFidelity? Type1261 { get; set; } + public global::System.Collections.Generic.IList?>? Type1261 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationServerToolInputImageMask? Type1262 { get; set; } + public global::OpenRouter.AnyOf? Type1262 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationServerToolModeration? Type1263 { get; set; } + public global::OpenRouter.FusionServerToolConfig? Type1263 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationServerToolOutputFormat? Type1264 { get; set; } + public global::OpenRouter.FusionServerToolOpenRouterType? Type1264 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationServerToolQuality? Type1265 { get; set; } + public global::OpenRouter.FusionServerToolConfigReasoning? Type1265 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationServerToolType? Type1266 { get; set; } + public global::OpenRouter.FusionServerToolConfigReasoningEffort? Type1266 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationServerToolConfig? Type1267 { get; set; } + public global::System.Collections.Generic.IList? Type1267 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationServerToolOpenRouterType? Type1268 { get; set; } + public global::OpenRouter.FusionServerToolConfigTool? Type1268 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationStatus? Type1269 { get; set; } + public global::OpenRouter.FusionSource? Type1269 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationUsageCompletionTokensDetails? Type1270 { get; set; } + public global::OpenRouter.GatewayTimeoutResponse? Type1270 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationUsagePromptTokensDetails? Type1271 { get; set; } + public global::OpenRouter.GatewayTimeoutResponseErrorData? Type1271 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationUsageServerToolUse? Type1272 { get; set; } + public global::OpenRouter.GenerationContentData? Type1272 { get; set; } /// /// /// - public global::OpenRouter.ImageGenPartialImageEvent? Type1273 { get; set; } + public global::OpenRouter.GenerationContentError? Type1273 { get; set; } /// /// /// - public global::OpenRouter.ImageGenPartialImageEventType? Type1274 { get; set; } + public global::OpenRouter.AnyOf? Type1274 { get; set; } /// /// /// - public global::OpenRouter.ImageGenStreamErrorEvent? Type1275 { get; set; } + public global::OpenRouter.GenerationContentDataInputVariant1? Type1275 { get; set; } /// /// /// - public global::OpenRouter.ImageGenStreamErrorEventError? Type1276 { get; set; } + public global::OpenRouter.GenerationContentDataInputVariant2? Type1276 { get; set; } /// /// /// - public global::OpenRouter.ImageGenStreamErrorEventType? Type1277 { get; set; } + public global::OpenRouter.GenerationContentDataOutput? Type1277 { get; set; } /// /// /// - public global::OpenRouter.ImageGenTextChunkEvent? Type1278 { get; set; } + public global::System.Collections.Generic.IList? Type1278 { get; set; } /// /// /// - public global::OpenRouter.ImageGenTextChunkEventPhase? Type1279 { get; set; } + public global::OpenRouter.GenerationContentErrorAttempt? Type1279 { get; set; } /// /// /// - public global::OpenRouter.ImageGenTextChunkEventType? Type1280 { get; set; } + public global::OpenRouter.GenerationContentResponse? Type1280 { get; set; } /// /// /// - public global::OpenRouter.ImageInputModality? Type1281 { get; set; } + public global::OpenRouter.GenerationResponse? Type1281 { get; set; } /// /// /// - public global::OpenRouter.ImageModelArchitecture? Type1282 { get; set; } + public global::OpenRouter.GenerationResponseData? Type1282 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1283 { get; set; } + public global::OpenRouter.GenerationResponseDataApiType? Type1283 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1284 { get; set; } + public global::OpenRouter.GenerationResponseDataDataRegion? Type1284 { get; set; } /// /// /// - public global::OpenRouter.ImageOutputModality? Type1285 { get; set; } + public global::System.Collections.Generic.IList? Type1285 { get; set; } /// /// /// - public global::OpenRouter.ImageModelEndpointsResponse? Type1286 { get; set; } + public global::OpenRouter.ProviderResponse? Type1286 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1287 { get; set; } + public global::OpenRouter.GetBYOKKeyResponse? Type1287 { get; set; } /// /// /// - public global::OpenRouter.ImageModelListItem? Type1288 { get; set; } + public global::OpenRouter.GetGuardrailResponse? Type1288 { get; set; } /// /// /// - public global::OpenRouter.ImageModelsListResponse? Type1289 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponse? Type1289 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1290 { get; set; } + public global::OpenRouter.GetPresetResponse? Type1290 { get; set; } /// /// /// - public global::OpenRouter.ImagePricingEntryBillable? Type1291 { get; set; } + public global::OpenRouter.GetPresetVersionResponse? Type1291 { get; set; } /// /// /// - public global::OpenRouter.ImagePricingEntryUnit? Type1292 { get; set; } + public global::OpenRouter.PresetDesignatedVersion? Type1292 { get; set; } /// /// /// - public global::OpenRouter.ImageStreamingResponse? Type1293 { get; set; } + public global::OpenRouter.GetScimGroupMappingResponse? Type1293 { get; set; } /// /// /// - public global::OpenRouter.AnyOf? Type1294 { get; set; } + public global::OpenRouter.GetScimSyncJobResponse? Type1294 { get; set; } /// /// /// - public global::OpenRouter.IncompleteDetailsReason? Type1295 { get; set; } + public global::OpenRouter.GetToolResponse? Type1295 { get; set; } /// /// /// - public global::OpenRouter.IncompleteEvent? Type1296 { get; set; } + public global::OpenRouter.ServerToolDetails? Type1296 { get; set; } /// /// /// - public global::OpenRouter.IncompleteEventType? Type1297 { get; set; } + public global::OpenRouter.GetWorkspaceBudgetResponse? Type1297 { get; set; } /// /// /// - public global::OpenRouter.InProgressEvent? Type1298 { get; set; } + public global::OpenRouter.AllOf? Type1298 { get; set; } /// /// /// - public global::OpenRouter.InProgressEventType? Type1299 { get; set; } + public global::OpenRouter.WorkspaceBudget? Type1299 { get; set; } /// /// /// - public global::OpenRouter.InputAudioInputAudio1? Type1300 { get; set; } + public global::OpenRouter.GetWorkspaceResponse? Type1300 { get; set; } /// /// /// - public global::OpenRouter.InputAudioInputAudio1Format? Type1301 { get; set; } + public global::OpenRouter.GoneResponse? Type1301 { get; set; } /// /// /// - public global::OpenRouter.InputAudioType? Type1302 { get; set; } + public global::OpenRouter.GoneResponseErrorData? Type1302 { get; set; } /// /// /// - public global::OpenRouter.InputFileType? Type1303 { get; set; } + public global::System.Collections.Generic.IList? Type1303 { get; set; } /// /// /// - public global::OpenRouter.InputImageDetail? Type1304 { get; set; } + public global::OpenRouter.AnyOf>? Type1304 { get; set; } /// /// /// - public global::OpenRouter.InputImageType? Type1305 { get; set; } + public global::OpenRouter.ImageEndpoint? Type1305 { get; set; } /// /// /// - public global::OpenRouter.InputMessageItem? Type1306 { get; set; } + public global::System.Collections.Generic.IList? Type1306 { get; set; } /// /// /// - public global::OpenRouter.AnyOf? Type1307 { get; set; } + public global::OpenRouter.ImagePricingEntry? Type1307 { get; set; } /// /// /// - public global::OpenRouter.InputMessageItemRoleVariant1? Type1308 { get; set; } + public global::OpenRouter.AllOf, object>? Type1308 { get; set; } /// /// /// - public global::OpenRouter.InputMessageItemRoleVariant2? Type1309 { get; set; } + public global::System.Collections.Generic.Dictionary? Type1309 { get; set; } /// /// /// - public global::OpenRouter.InputMessageItemRoleVariant3? Type1310 { get; set; } + public global::OpenRouter.ImageGenCallCompletedEvent? Type1310 { get; set; } /// /// /// - public global::OpenRouter.InputMessageItemType? Type1311 { get; set; } + public global::OpenRouter.OpenAIResponsesImageGenCallCompleted? Type1311 { get; set; } /// /// /// - public global::OpenRouter.InputModality? Type1312 { get; set; } + public global::OpenRouter.ImageGenCallGeneratingEvent? Type1312 { get; set; } /// /// /// - public global::OpenRouter.InputReference? Type1313 { get; set; } + public global::OpenRouter.OpenAIResponsesImageGenCallGenerating? Type1313 { get; set; } /// /// /// - public global::OpenRouter.InputReferenceDiscriminator? Type1314 { get; set; } + public global::OpenRouter.ImageGenCallInProgressEvent? Type1314 { get; set; } /// /// /// - public global::OpenRouter.InputReferenceDiscriminatorType? Type1315 { get; set; } + public global::OpenRouter.OpenAIResponsesImageGenCallInProgress? Type1315 { get; set; } /// /// /// - public global::OpenRouter.Inputs? Type1316 { get; set; } + public global::OpenRouter.ImageGenCallPartialImageEvent? Type1316 { get; set; } /// /// /// - public global::OpenRouter.ReasoningItem? Type1317 { get; set; } + public global::OpenRouter.OpenAIResponsesImageGenCallPartialImage? Type1317 { get; set; } /// /// /// - public global::OpenRouter.AllOf? Type1318 { get; set; } + public global::OpenRouter.ImageGenCompletedEvent? Type1318 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageItem? Type1319 { get; set; } + public global::OpenRouter.ImageGenCompletedEventType? Type1319 { get; set; } /// /// /// - public global::OpenRouter.InputsVariant2ItemVariant82? Type1320 { get; set; } + public global::OpenRouter.ImageGenerationUsage? Type1320 { get; set; } /// /// /// - public global::OpenRouter.AnyOf>, string>? Type1321 { get; set; } + public global::OpenRouter.ImageGeneration? Type1321 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type1322 { get; set; } + public global::OpenRouter.ImageGenerationProviderPreferences? Type1322 { get; set; } /// /// /// - public global::OpenRouter.InputsVariant2ItemVariant8Type? Type1323 { get; set; } + public global::OpenRouter.AllOf? Type1323 { get; set; } /// /// /// - public global::OpenRouter.AllOf? Type1324 { get; set; } + public global::OpenRouter.ProviderOptions? Type1324 { get; set; } /// /// /// - public global::OpenRouter.OutputReasoningItem? Type1325 { get; set; } + public global::OpenRouter.AnyOf? Type1325 { get; set; } /// /// /// - public global::OpenRouter.InputsVariant2ItemVariant92? Type1326 { get; set; } + public global::OpenRouter.ProviderSort? Type1326 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1327 { get; set; } + public global::OpenRouter.ProviderSortConfig? Type1327 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchCallItem? Type1328 { get; set; } + public global::OpenRouter.ImageGenerationRequest? Type1328 { get; set; } /// /// /// - public global::OpenRouter.OutputFileSearchCallItem? Type1329 { get; set; } + public global::OpenRouter.ImageGenerationRequestAspectRatio? Type1329 { get; set; } /// /// /// - public global::OpenRouter.OutputImageGenerationCallItem? Type1330 { get; set; } + public global::OpenRouter.ImageGenerationRequestBackground? Type1330 { get; set; } /// /// /// - public global::OpenRouter.OutputCodeInterpreterCallItem? Type1331 { get; set; } + public global::System.Collections.Generic.IList? Type1331 { get; set; } /// /// /// - public global::OpenRouter.OutputComputerCallItem? Type1332 { get; set; } + public global::OpenRouter.ImageGenerationRequestOutputFormat? Type1332 { get; set; } /// /// /// - public global::OpenRouter.OutputDatetimeItem? Type1333 { get; set; } + public global::OpenRouter.ImageGenerationRequestQuality? Type1333 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchServerToolItem? Type1334 { get; set; } + public global::OpenRouter.ImageGenerationRequestResolution? Type1334 { get; set; } /// /// /// - public global::OpenRouter.OutputCodeInterpreterServerToolItem? Type1335 { get; set; } + public global::OpenRouter.ImageGenerationResponse? Type1335 { get; set; } /// /// /// - public global::OpenRouter.OutputFileSearchServerToolItem? Type1336 { get; set; } + public global::System.Collections.Generic.IList? Type1336 { get; set; } /// /// /// - public global::OpenRouter.OutputImageGenerationServerToolItem? Type1337 { get; set; } + public global::OpenRouter.ImageGenerationResponseDataItem? Type1337 { get; set; } /// /// /// - public global::OpenRouter.OutputBrowserUseServerToolItem? Type1338 { get; set; } + public global::OpenRouter.ImageGenerationServerToolBackground? Type1338 { get; set; } /// /// /// - public global::OpenRouter.OutputBashServerToolItem? Type1339 { get; set; } + public global::OpenRouter.ImageGenerationServerToolInputFidelity? Type1339 { get; set; } /// /// /// - public global::OpenRouter.OutputTextEditorServerToolItem? Type1340 { get; set; } + public global::OpenRouter.ImageGenerationServerToolInputImageMask? Type1340 { get; set; } /// /// /// - public global::OpenRouter.OutputApplyPatchServerToolItem? Type1341 { get; set; } + public global::OpenRouter.ImageGenerationServerToolModeration? Type1341 { get; set; } /// /// /// - public global::OpenRouter.OutputWebFetchServerToolItem? Type1342 { get; set; } + public global::OpenRouter.ImageGenerationServerToolOutputFormat? Type1342 { get; set; } /// /// /// - public global::OpenRouter.OutputToolSearchServerToolItem? Type1343 { get; set; } + public global::OpenRouter.ImageGenerationServerToolQuality? Type1343 { get; set; } /// /// /// - public global::OpenRouter.OutputMemoryServerToolItem? Type1344 { get; set; } + public global::OpenRouter.ImageGenerationServerToolType? Type1344 { get; set; } /// /// /// - public global::OpenRouter.OutputArmorBlockedItem? Type1345 { get; set; } + public global::OpenRouter.ImageGenerationServerToolConfig? Type1345 { get; set; } /// /// /// - public global::OpenRouter.OutputMcpServerToolItem? Type1346 { get; set; } + public global::OpenRouter.ImageGenerationServerToolOpenRouterType? Type1346 { get; set; } /// /// /// - public global::OpenRouter.OutputSearchModelsServerToolItem? Type1347 { get; set; } + public global::OpenRouter.ImageGenerationStatus? Type1347 { get; set; } /// /// /// - public global::OpenRouter.OutputFusionServerToolItem? Type1348 { get; set; } + public global::OpenRouter.ImageGenerationUsageCompletionTokensDetails? Type1348 { get; set; } /// /// /// - public global::OpenRouter.OutputAdvisorServerToolItem? Type1349 { get; set; } + public global::OpenRouter.ImageGenerationUsagePromptTokensDetails? Type1349 { get; set; } /// /// /// - public global::OpenRouter.OutputSubagentServerToolItem? Type1350 { get; set; } + public global::OpenRouter.ImageGenerationUsageServerToolUse? Type1350 { get; set; } /// /// /// - public global::OpenRouter.OutputFilesServerToolItem? Type1351 { get; set; } + public global::OpenRouter.ImageGenPartialImageEvent? Type1351 { get; set; } /// /// /// - public global::OpenRouter.OutputShellServerToolItem? Type1352 { get; set; } + public global::OpenRouter.ImageGenPartialImageEventType? Type1352 { get; set; } /// /// /// - public global::OpenRouter.LocalShellCallItem? Type1353 { get; set; } + public global::OpenRouter.ImageGenStreamErrorEvent? Type1353 { get; set; } /// /// /// - public global::OpenRouter.LocalShellCallOutputItem? Type1354 { get; set; } + public global::OpenRouter.ImageGenStreamErrorEventError? Type1354 { get; set; } /// /// /// - public global::OpenRouter.ShellCallItem? Type1355 { get; set; } + public global::OpenRouter.ImageGenStreamErrorEventType? Type1355 { get; set; } /// /// /// - public global::OpenRouter.ShellCallOutputItem? Type1356 { get; set; } + public global::OpenRouter.ImageGenTextChunkEvent? Type1356 { get; set; } /// /// /// - public global::OpenRouter.McpListToolsItem? Type1357 { get; set; } + public global::OpenRouter.ImageGenTextChunkEventPhase? Type1357 { get; set; } /// /// /// - public global::OpenRouter.McpApprovalRequestItem? Type1358 { get; set; } + public global::OpenRouter.ImageGenTextChunkEventType? Type1358 { get; set; } /// /// /// - public global::OpenRouter.McpApprovalResponseItem? Type1359 { get; set; } + public global::OpenRouter.ImageInputModality? Type1359 { get; set; } /// /// /// - public global::OpenRouter.McpCallItem? Type1360 { get; set; } + public global::OpenRouter.ImageModelArchitecture? Type1360 { get; set; } /// /// /// - public global::OpenRouter.ItemReferenceItem? Type1361 { get; set; } + public global::System.Collections.Generic.IList? Type1361 { get; set; } /// /// /// - public global::OpenRouter.ToolSearchCallItem? Type1362 { get; set; } + public global::System.Collections.Generic.IList? Type1362 { get; set; } /// /// /// - public global::OpenRouter.ToolSearchOutputItem? Type1363 { get; set; } + public global::OpenRouter.ImageOutputModality? Type1363 { get; set; } /// /// /// - public global::OpenRouter.InputTextType? Type1364 { get; set; } + public global::OpenRouter.ImageModelEndpointsResponse? Type1364 { get; set; } /// /// /// - public global::OpenRouter.InputVideoProcessing? Type1365 { get; set; } + public global::System.Collections.Generic.IList? Type1365 { get; set; } /// /// /// - public global::OpenRouter.InputVideoType? Type1366 { get; set; } + public global::OpenRouter.ImageModelListItem? Type1366 { get; set; } /// /// /// - public global::OpenRouter.InstructType? Type1367 { get; set; } + public global::OpenRouter.ImageModelsListResponse? Type1367 { get; set; } /// /// /// - public global::OpenRouter.InternalServerResponse? Type1368 { get; set; } + public global::System.Collections.Generic.IList? Type1368 { get; set; } /// /// /// - public global::OpenRouter.InternalServerResponseErrorData? Type1369 { get; set; } + public global::OpenRouter.ImagePricingEntryBillable? Type1369 { get; set; } /// /// /// - public global::OpenRouter.ItemReferenceItemType? Type1370 { get; set; } + public global::OpenRouter.ImagePricingEntryUnit? Type1370 { get; set; } /// /// /// - public global::OpenRouter.JevRouterPluginId? Type1371 { get; set; } + public global::OpenRouter.ImageStreamingResponse? Type1371 { get; set; } /// /// /// - public global::OpenRouter.KeyAssignment? Type1372 { get; set; } + public global::OpenRouter.AnyOf? Type1372 { get; set; } /// /// /// - public global::OpenRouter.KeyBudget? Type1373 { get; set; } + public global::OpenRouter.IncompleteDetailsReason? Type1373 { get; set; } /// /// /// - public global::OpenRouter.KeyBudgetResetInterval? Type1374 { get; set; } + public global::OpenRouter.IncompleteEvent? Type1374 { get; set; } /// /// /// - public global::OpenRouter.KeyBudgetScope? Type1375 { get; set; } + public global::OpenRouter.IncompleteEventType? Type1375 { get; set; } /// /// /// - public global::OpenRouter.LegacyChatContentVideoType? Type1376 { get; set; } + public global::OpenRouter.InProgressEvent? Type1376 { get; set; } /// /// /// - public global::OpenRouter.LegacyChatContentVideoInput? Type1377 { get; set; } + public global::OpenRouter.InProgressEventType? Type1377 { get; set; } /// /// /// - public global::OpenRouter.LegacyChatContentVideoInputProcessing? Type1378 { get; set; } + public global::OpenRouter.InputAudioInputAudio1? Type1378 { get; set; } /// /// /// - public global::OpenRouter.WebSearchDomainFilter? Type1379 { get; set; } + public global::OpenRouter.InputAudioInputAudio1Format? Type1379 { get; set; } /// /// /// - public global::OpenRouter.SearchContextSizeEnum? Type1380 { get; set; } + public global::OpenRouter.InputAudioType? Type1380 { get; set; } /// /// /// - public global::OpenRouter.LegacyWebSearchServerToolType? Type1381 { get; set; } + public global::OpenRouter.InputFileType? Type1381 { get; set; } /// /// /// - public global::OpenRouter.WebSearchUserLocation? Type1382 { get; set; } + public global::OpenRouter.InputImageDetail? Type1382 { get; set; } /// /// /// - public global::OpenRouter.ListBYOKKeysResponse? Type1383 { get; set; } + public global::OpenRouter.InputImageType? Type1383 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1384 { get; set; } + public global::OpenRouter.InputMessageItem? Type1384 { get; set; } /// /// /// - public global::OpenRouter.ListEndpointsResponse? Type1385 { get; set; } + public global::OpenRouter.AnyOf? Type1385 { get; set; } /// /// /// - public global::OpenRouter.AllOf? Type1386 { get; set; } + public global::OpenRouter.InputMessageItemRoleVariant1? Type1386 { get; set; } /// /// /// - public global::OpenRouter.ModelArchitecture? Type1387 { get; set; } + public global::OpenRouter.InputMessageItemRoleVariant2? Type1387 { get; set; } /// /// /// - public global::OpenRouter.ListEndpointsResponseArchitecture? Type1388 { get; set; } + public global::OpenRouter.InputMessageItemRoleVariant3? Type1388 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1389 { get; set; } + public global::OpenRouter.InputMessageItemType? Type1389 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1390 { get; set; } + public global::OpenRouter.InputModality? Type1390 { get; set; } /// /// /// - public global::OpenRouter.OutputModality? Type1391 { get; set; } + public global::OpenRouter.InputReference? Type1391 { get; set; } /// /// /// - public global::OpenRouter.ModelGroup? Type1392 { get; set; } + public global::OpenRouter.InputReferenceDiscriminator? Type1392 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1393 { get; set; } + public global::OpenRouter.InputReferenceDiscriminatorType? Type1393 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpoint? Type1394 { get; set; } + public global::OpenRouter.Inputs? Type1394 { get; set; } /// /// /// - public global::OpenRouter.ListExternalUsersResponse? Type1395 { get; set; } + public global::OpenRouter.ReasoningItem? Type1395 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1396 { get; set; } + public global::OpenRouter.AllOf? Type1396 { get; set; } /// /// /// - public global::OpenRouter.ListGuardrailsResponse? Type1397 { get; set; } + public global::OpenRouter.OutputMessageItem? Type1397 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1398 { get; set; } + public global::OpenRouter.InputsVariant2ItemVariant82? Type1398 { get; set; } /// /// /// - public global::OpenRouter.ListKeyAssignmentsResponse? Type1399 { get; set; } + public global::OpenRouter.AnyOf>, string>? Type1399 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1400 { get; set; } + public global::System.Collections.Generic.IList>? Type1400 { get; set; } /// /// /// - public global::OpenRouter.ListMemberAssignmentsResponse? Type1401 { get; set; } + public global::OpenRouter.InputsVariant2ItemVariant8Type? Type1401 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1402 { get; set; } + public global::OpenRouter.AllOf? Type1402 { get; set; } /// /// /// - public global::OpenRouter.MemberAssignment? Type1403 { get; set; } + public global::OpenRouter.OutputReasoningItem? Type1403 { get; set; } /// /// /// - public global::OpenRouter.ListObservabilityDestinationsResponse? Type1404 { get; set; } + public global::OpenRouter.InputsVariant2ItemVariant92? Type1404 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1405 { get; set; } + public global::System.Collections.Generic.IList? Type1405 { get; set; } /// /// /// - public global::OpenRouter.ListPresetsResponse? Type1406 { get; set; } + public global::OpenRouter.OutputWebSearchCallItem? Type1406 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1407 { get; set; } + public global::OpenRouter.OutputFileSearchCallItem? Type1407 { get; set; } /// /// /// - public global::OpenRouter.Preset? Type1408 { get; set; } + public global::OpenRouter.OutputImageGenerationCallItem? Type1408 { get; set; } /// /// /// - public global::OpenRouter.ListPresetVersionsResponse? Type1409 { get; set; } + public global::OpenRouter.OutputCodeInterpreterCallItem? Type1409 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1410 { get; set; } + public global::OpenRouter.OutputComputerCallItem? Type1410 { get; set; } /// /// /// - public global::OpenRouter.ListPrivateEndpointsResponse? Type1411 { get; set; } + public global::OpenRouter.OutputDatetimeItem? Type1411 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1412 { get; set; } + public global::OpenRouter.OutputWebSearchServerToolItem? Type1412 { get; set; } /// /// /// - public global::OpenRouter.PrivateEndpointSummary? Type1413 { get; set; } + public global::OpenRouter.OutputCodeInterpreterServerToolItem? Type1413 { get; set; } /// /// /// - public global::OpenRouter.ListScimGroupMappingsResponse? Type1414 { get; set; } + public global::OpenRouter.OutputFileSearchServerToolItem? Type1414 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1415 { get; set; } + public global::OpenRouter.OutputImageGenerationServerToolItem? Type1415 { get; set; } /// /// /// - public global::OpenRouter.ListScimGroupsResponse? Type1416 { get; set; } + public global::OpenRouter.OutputBrowserUseServerToolItem? Type1416 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1417 { get; set; } + public global::OpenRouter.OutputBashServerToolItem? Type1417 { get; set; } /// /// /// - public global::OpenRouter.ScimGroup? Type1418 { get; set; } + public global::OpenRouter.OutputTextEditorServerToolItem? Type1418 { get; set; } /// /// /// - public global::OpenRouter.ListToolsResponse? Type1419 { get; set; } + public global::OpenRouter.OutputApplyPatchServerToolItem? Type1419 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1420 { get; set; } + public global::OpenRouter.OutputWebFetchServerToolItem? Type1420 { get; set; } /// /// /// - public global::OpenRouter.ServerTool? Type1421 { get; set; } + public global::OpenRouter.OutputToolSearchServerToolItem? Type1421 { get; set; } /// /// /// - public global::OpenRouter.ListToolsResponseLinks? Type1422 { get; set; } + public global::OpenRouter.OutputMemoryServerToolItem? Type1422 { get; set; } /// /// /// - public global::OpenRouter.ListWorkspaceBudgetsResponse? Type1423 { get; set; } + public global::OpenRouter.OutputArmorBlockedItem? Type1423 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1424 { get; set; } + public global::OpenRouter.OutputMcpServerToolItem? Type1424 { get; set; } /// /// /// - public global::OpenRouter.ListWorkspaceMembersResponse? Type1425 { get; set; } + public global::OpenRouter.OutputSearchModelsServerToolItem? Type1425 { get; set; } /// /// /// - public global::OpenRouter.ListWorkspacesResponse? Type1426 { get; set; } + public global::OpenRouter.OutputFusionServerToolItem? Type1426 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1427 { get; set; } + public global::OpenRouter.OutputAdvisorServerToolItem? Type1427 { get; set; } /// /// /// - public global::OpenRouter.LocalShellCallItemAction? Type1428 { get; set; } + public global::OpenRouter.OutputSubagentServerToolItem? Type1428 { get; set; } /// /// /// - public global::OpenRouter.LocalShellCallItemActionType? Type1429 { get; set; } + public global::OpenRouter.OutputFilesServerToolItem? Type1429 { get; set; } /// /// /// - public global::OpenRouter.LocalShellCallItemType? Type1430 { get; set; } + public global::OpenRouter.OutputShellServerToolItem? Type1430 { get; set; } /// /// /// - public global::OpenRouter.LocalShellCallOutputItemType? Type1431 { get; set; } + public global::OpenRouter.LocalShellCallItem? Type1431 { get; set; } /// /// /// - public global::OpenRouter.ManagedPrivateEndpointVariant2? Type1432 { get; set; } + public global::OpenRouter.LocalShellCallOutputItem? Type1432 { get; set; } /// /// /// - public global::OpenRouter.PrivateEndpointDeclaredRegion? Type1433 { get; set; } + public global::OpenRouter.ShellCallItem? Type1433 { get; set; } /// /// /// - public global::OpenRouter.ManagedPrivateEndpointResponse? Type1434 { get; set; } + public global::OpenRouter.ShellCallOutputItem? Type1434 { get; set; } /// /// /// - public global::OpenRouter.McpApprovalRequestItemType? Type1435 { get; set; } + public global::OpenRouter.McpListToolsItem? Type1435 { get; set; } /// /// /// - public global::OpenRouter.McpApprovalResponseItemType? Type1436 { get; set; } + public global::OpenRouter.McpApprovalRequestItem? Type1436 { get; set; } /// /// /// - public global::OpenRouter.McpToolCallError? Type1437 { get; set; } + public global::OpenRouter.McpApprovalResponseItem? Type1437 { get; set; } /// /// /// - public global::OpenRouter.McpCallItemType? Type1438 { get; set; } + public global::OpenRouter.McpCallItem? Type1438 { get; set; } /// /// /// - public global::OpenRouter.McpHttpError? Type1439 { get; set; } + public global::OpenRouter.ItemReferenceItem? Type1439 { get; set; } /// /// /// - public global::OpenRouter.McpHttpErrorType? Type1440 { get; set; } + public global::OpenRouter.ToolSearchCallItem? Type1440 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1441 { get; set; } + public global::OpenRouter.ToolSearchOutputItem? Type1441 { get; set; } /// /// /// - public global::OpenRouter.McpListToolsItemTool? Type1442 { get; set; } + public global::OpenRouter.InputTextType? Type1442 { get; set; } /// /// /// - public global::OpenRouter.McpListToolsItemType? Type1443 { get; set; } + public global::OpenRouter.InputVideoProcessing? Type1443 { get; set; } /// /// /// - public global::OpenRouter.McpProtocolError? Type1444 { get; set; } + public global::OpenRouter.InputVideoType? Type1444 { get; set; } /// /// /// - public global::OpenRouter.McpProtocolErrorType? Type1445 { get; set; } + public global::OpenRouter.InstructType? Type1445 { get; set; } /// /// /// - public global::OpenRouter.AnyOf, global::OpenRouter.McpServerToolAllowedTools>? Type1446 { get; set; } + public global::OpenRouter.InternalServerResponse? Type1446 { get; set; } /// /// /// - public global::OpenRouter.McpServerToolAllowedTools? Type1447 { get; set; } + public global::OpenRouter.InternalServerResponseErrorData? Type1447 { get; set; } /// /// /// - public global::OpenRouter.McpServerToolConnectorId? Type1448 { get; set; } + public global::OpenRouter.ItemReferenceItemType? Type1448 { get; set; } /// /// /// - public global::OpenRouter.McpServerToolRequireApprovalVariant1? Type1449 { get; set; } + public global::OpenRouter.JevRouterPluginId? Type1449 { get; set; } /// /// /// - public global::OpenRouter.McpServerToolRequireApprovalVariant1Always? Type1450 { get; set; } + public global::OpenRouter.KeyAssignment? Type1450 { get; set; } /// /// /// - public global::OpenRouter.McpServerToolRequireApprovalVariant1Never? Type1451 { get; set; } + public global::OpenRouter.KeyBudget? Type1451 { get; set; } /// /// /// - public global::OpenRouter.McpServerToolRequireApprovalVariant2? Type1452 { get; set; } + public global::OpenRouter.KeyBudgetResetInterval? Type1452 { get; set; } /// /// /// - public global::OpenRouter.McpServerToolRequireApprovalVariant3? Type1453 { get; set; } + public global::OpenRouter.KeyBudgetScope? Type1453 { get; set; } /// /// /// - public global::OpenRouter.McpServerToolType? Type1454 { get; set; } + public global::OpenRouter.LegacyChatContentVideoType? Type1454 { get; set; } /// /// /// - public global::OpenRouter.McpToolExecutionError? Type1455 { get; set; } + public global::OpenRouter.LegacyChatContentVideoInput? Type1455 { get; set; } /// /// /// - public global::OpenRouter.McpToolExecutionErrorType? Type1456 { get; set; } + public global::OpenRouter.LegacyChatContentVideoInputProcessing? Type1456 { get; set; } /// /// /// - public global::OpenRouter.MessagesAdvisorToolResultBlock? Type1457 { get; set; } + public global::OpenRouter.WebSearchDomainFilter? Type1457 { get; set; } /// /// /// - public global::OpenRouter.MessagesAdvisorToolResultBlockType? Type1458 { get; set; } + public global::OpenRouter.SearchContextSizeEnum? Type1458 { get; set; } /// /// /// - public global::OpenRouter.MessagesBashToolResultBlock? Type1459 { get; set; } + public global::OpenRouter.LegacyWebSearchServerToolType? Type1459 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1460 { get; set; } + public global::OpenRouter.WebSearchUserLocation? Type1460 { get; set; } /// /// /// - public global::OpenRouter.MessagesBashToolResultBlockFile? Type1461 { get; set; } + public global::OpenRouter.ListBYOKKeysResponse? Type1461 { get; set; } /// /// /// - public global::OpenRouter.MessagesBashToolResultBlockFileType? Type1462 { get; set; } + public global::System.Collections.Generic.IList? Type1462 { get; set; } /// /// /// - public global::OpenRouter.MessagesBashToolResultBlockType? Type1463 { get; set; } + public global::OpenRouter.ListEndpointsResponse? Type1463 { get; set; } /// /// /// - public global::OpenRouter.MessagesContentBlockDeltaEvent? Type1464 { get; set; } + public global::OpenRouter.AllOf? Type1464 { get; set; } /// /// /// - public global::OpenRouter.MessagesContentBlockDeltaEventDeltaVariant1? Type1465 { get; set; } + public global::OpenRouter.ModelArchitecture? Type1465 { get; set; } /// /// /// - public global::OpenRouter.MessagesContentBlockDeltaEventDeltaVariant1Type? Type1466 { get; set; } + public global::OpenRouter.ListEndpointsResponseArchitecture? Type1466 { get; set; } /// /// /// - public global::OpenRouter.MessagesContentBlockDeltaEventDeltaVariant2? Type1467 { get; set; } + public global::System.Collections.Generic.IList? Type1467 { get; set; } /// /// /// - public global::OpenRouter.MessagesContentBlockDeltaEventDeltaVariant2Type? Type1468 { get; set; } + public global::System.Collections.Generic.IList? Type1468 { get; set; } /// /// /// - public global::OpenRouter.MessagesContentBlockDeltaEventDeltaVariant3? Type1469 { get; set; } + public global::OpenRouter.OutputModality? Type1469 { get; set; } /// /// /// - public global::OpenRouter.MessagesContentBlockDeltaEventDeltaVariant3Type? Type1470 { get; set; } + public global::OpenRouter.ModelGroup? Type1470 { get; set; } /// /// /// - public global::OpenRouter.MessagesContentBlockDeltaEventDeltaVariant4? Type1471 { get; set; } + public global::System.Collections.Generic.IList? Type1471 { get; set; } /// /// /// - public global::OpenRouter.MessagesContentBlockDeltaEventDeltaVariant4Type? Type1472 { get; set; } + public global::OpenRouter.PublicEndpoint? Type1472 { get; set; } /// /// /// - public global::OpenRouter.MessagesContentBlockDeltaEventDeltaVariant5? Type1473 { get; set; } + public global::OpenRouter.ListExternalUsersResponse? Type1473 { get; set; } /// /// /// - public global::OpenRouter.Citation? Type1474 { get; set; } + public global::System.Collections.Generic.IList? Type1474 { get; set; } /// /// /// - public global::OpenRouter.MessagesContentBlockDeltaEventDeltaVariant5CitationDiscriminator? Type1475 { get; set; } + public global::OpenRouter.ListGuardrailsResponse? Type1475 { get; set; } /// /// /// - public global::OpenRouter.MessagesContentBlockDeltaEventDeltaVariant5CitationDiscriminatorType? Type1476 { get; set; } + public global::System.Collections.Generic.IList? Type1476 { get; set; } /// /// /// - public global::OpenRouter.MessagesContentBlockDeltaEventDeltaVariant5Type? Type1477 { get; set; } + public global::OpenRouter.ListKeyAssignmentsResponse? Type1477 { get; set; } /// /// /// - public global::OpenRouter.MessagesContentBlockDeltaEventDeltaVariant6? Type1478 { get; set; } + public global::System.Collections.Generic.IList? Type1478 { get; set; } /// /// /// - public global::OpenRouter.MessagesContentBlockDeltaEventDeltaVariant6Type? Type1479 { get; set; } + public global::OpenRouter.ListMemberAssignmentsResponse? Type1479 { get; set; } /// /// /// - public global::OpenRouter.MessagesContentBlockDeltaEventType? Type1480 { get; set; } + public global::System.Collections.Generic.IList? Type1480 { get; set; } /// /// /// - public global::OpenRouter.MessagesContentBlockStartEvent? Type1481 { get; set; } + public global::OpenRouter.MemberAssignment? Type1481 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicServerToolUseBlock? Type1482 { get; set; } + public global::OpenRouter.ListObservabilityDestinationsResponse? Type1482 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicShellToolResult? Type1483 { get; set; } + public global::System.Collections.Generic.IList? Type1483 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicBashToolResult? Type1484 { get; set; } + public global::OpenRouter.ListPresetsResponse? Type1484 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicToolSearchResult? Type1485 { get; set; } + public global::System.Collections.Generic.IList? Type1485 { get; set; } /// /// /// - public global::OpenRouter.MessagesContentBlockStartEventContentBlock? Type1486 { get; set; } + public global::OpenRouter.Preset? Type1486 { get; set; } /// /// /// - public global::OpenRouter.MessagesContentBlockStartEventContentBlockType? Type1487 { get; set; } + public global::OpenRouter.ListPresetVersionsResponse? Type1487 { get; set; } /// /// /// - public global::OpenRouter.MessagesContentBlockStartEventType? Type1488 { get; set; } + public global::System.Collections.Generic.IList? Type1488 { get; set; } /// /// /// - public global::OpenRouter.MessagesContentBlockStopEvent? Type1489 { get; set; } + public global::OpenRouter.ListPrivateEndpointsResponse? Type1489 { get; set; } /// /// /// - public global::OpenRouter.MessagesContentBlockStopEventType? Type1490 { get; set; } + public global::System.Collections.Generic.IList? Type1490 { get; set; } /// /// /// - public global::OpenRouter.MessagesDeltaEvent? Type1491 { get; set; } + public global::OpenRouter.PrivateEndpointSummary? Type1491 { get; set; } /// /// /// - public global::OpenRouter.MessagesDeltaEventDelta? Type1492 { get; set; } + public global::OpenRouter.ListScimGroupMappingsResponse? Type1492 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1493 { get; set; } + public global::System.Collections.Generic.IList? Type1493 { get; set; } /// /// /// - public global::OpenRouter.MessagesDeltaEventType? Type1494 { get; set; } + public global::OpenRouter.ListScimGroupsResponse? Type1494 { get; set; } /// /// /// - public global::OpenRouter.MessagesDeltaEventUsage? Type1495 { get; set; } + public global::System.Collections.Generic.IList? Type1495 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicServerToolUsage? Type1496 { get; set; } + public global::OpenRouter.ScimGroup? Type1496 { get; set; } /// /// /// - public global::OpenRouter.MessagesErrorEvent? Type1497 { get; set; } + public global::OpenRouter.ListToolsResponse? Type1497 { get; set; } /// /// /// - public global::OpenRouter.MessagesErrorEventError? Type1498 { get; set; } + public global::System.Collections.Generic.IList? Type1498 { get; set; } /// /// /// - public global::OpenRouter.MessagesErrorEventType? Type1499 { get; set; } + public global::OpenRouter.ServerTool? Type1499 { get; set; } /// /// /// - public global::OpenRouter.MessagesFallbackParam? Type1500 { get; set; } + public global::OpenRouter.ListToolsResponseLinks? Type1500 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParam? Type1501 { get; set; } + public global::OpenRouter.ListWorkspaceBudgetsResponse? Type1501 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentVariant2ItemVariant4? Type1502 { get; set; } + public global::System.Collections.Generic.IList? Type1502 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentVariant2ItemVariant4Type? Type1503 { get; set; } + public global::OpenRouter.ListWorkspaceMembersResponse? Type1503 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentVariant2ItemVariant5? Type1504 { get; set; } + public global::OpenRouter.ListWorkspacesResponse? Type1504 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentVariant2ItemVariant5ContentVariant2Item? Type1505 { get; set; } + public global::System.Collections.Generic.IList? Type1505 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentVariant2ItemVariant5ContentVariant2ItemType? Type1506 { get; set; } + public global::OpenRouter.LocalShellCallItemAction? Type1506 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentVariant2ItemVariant5Type? Type1507 { get; set; } + public global::OpenRouter.LocalShellCallItemActionType? Type1507 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentVariant2ItemVariant6? Type1508 { get; set; } + public global::OpenRouter.LocalShellCallItemType? Type1508 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentVariant2ItemVariant6Type? Type1509 { get; set; } + public global::OpenRouter.LocalShellCallOutputItemType? Type1509 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentVariant2ItemVariant7? Type1510 { get; set; } + public global::OpenRouter.ManagedPrivateEndpointVariant2? Type1510 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentVariant2ItemVariant7Type? Type1511 { get; set; } + public global::OpenRouter.PrivateEndpointDeclaredRegion? Type1511 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentVariant2ItemVariant8? Type1512 { get; set; } + public global::OpenRouter.ManagedPrivateEndpointResponse? Type1512 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentVariant2ItemVariant8Type? Type1513 { get; set; } + public global::OpenRouter.McpApprovalRequestItemType? Type1513 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentVariant2ItemVariant9? Type1514 { get; set; } + public global::OpenRouter.McpApprovalResponseItemType? Type1514 { get; set; } /// /// /// - public global::OpenRouter.AnyOf, global::OpenRouter.MessagesMessageParamContentVariant2ItemVariant9Content>? Type1515 { get; set; } + public global::OpenRouter.McpToolCallError? Type1515 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1516 { get; set; } + public global::OpenRouter.McpCallItemType? Type1516 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentVariant2ItemVariant9Content? Type1517 { get; set; } + public global::OpenRouter.McpHttpError? Type1517 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentVariant2ItemVariant9ContentErrorCode? Type1518 { get; set; } + public global::OpenRouter.McpHttpErrorType? Type1518 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentVariant2ItemVariant9ContentType? Type1519 { get; set; } + public global::System.Collections.Generic.IList? Type1519 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentVariant2ItemVariant9Type? Type1520 { get; set; } + public global::OpenRouter.McpListToolsItemTool? Type1520 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentVariant2ItemVariant11? Type1521 { get; set; } + public global::OpenRouter.McpListToolsItemType? Type1521 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentVariant2ItemVariant11Type? Type1522 { get; set; } + public global::OpenRouter.McpProtocolError? Type1522 { get; set; } /// /// /// - public global::OpenRouter.MessagesToolAdditionBlock? Type1523 { get; set; } + public global::OpenRouter.McpProtocolErrorType? Type1523 { get; set; } /// /// /// - public global::OpenRouter.MessagesToolRemovalBlock? Type1524 { get; set; } + public global::OpenRouter.AnyOf, global::OpenRouter.McpServerToolAllowedTools>? Type1524 { get; set; } /// /// /// - public global::OpenRouter.MessagesShellToolResultBlock? Type1525 { get; set; } + public global::OpenRouter.McpServerToolAllowedTools? Type1525 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicToolSearchResultParam? Type1526 { get; set; } + public global::OpenRouter.McpServerToolConnectorId? Type1526 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamRole? Type1527 { get; set; } + public global::OpenRouter.McpServerToolRequireApprovalVariant1? Type1527 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfig? Type1528 { get; set; } + public global::OpenRouter.McpServerToolRequireApprovalVariant1Always? Type1528 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfigEffort? Type1529 { get; set; } + public global::OpenRouter.McpServerToolRequireApprovalVariant1Never? Type1529 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfigFormat? Type1530 { get; set; } + public global::OpenRouter.McpServerToolRequireApprovalVariant2? Type1530 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfigFormatType? Type1531 { get; set; } + public global::OpenRouter.McpServerToolRequireApprovalVariant3? Type1531 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfigTaskBudget? Type1532 { get; set; } + public global::OpenRouter.McpServerToolType? Type1532 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfigTaskBudgetType? Type1533 { get; set; } + public global::OpenRouter.McpToolExecutionError? Type1533 { get; set; } /// /// /// - public global::OpenRouter.MessagesPingEvent? Type1534 { get; set; } + public global::OpenRouter.McpToolExecutionErrorType? Type1534 { get; set; } /// /// /// - public global::OpenRouter.MessagesPingEventType? Type1535 { get; set; } + public global::OpenRouter.MessagesAdvisorToolResultBlock? Type1535 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequest? Type1536 { get; set; } + public global::OpenRouter.MessagesAdvisorToolResultBlockType? Type1536 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagement? Type1537 { get; set; } + public global::OpenRouter.MessagesBashToolResultBlock? Type1537 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditVariant1? Type1538 { get; set; } + public global::System.Collections.Generic.IList? Type1538 { get; set; } /// /// /// - public global::OpenRouter.AnyOf>? Type1539 { get; set; } + public global::OpenRouter.MessagesBashToolResultBlockFile? Type1539 { get; set; } /// /// /// - public global::OpenRouter.Trigger? Type1540 { get; set; } + public global::OpenRouter.MessagesBashToolResultBlockFileType? Type1540 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditVariant1TriggerDiscriminator? Type1541 { get; set; } + public global::OpenRouter.MessagesBashToolResultBlockType? Type1541 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditVariant1TriggerDiscriminatorType? Type1542 { get; set; } + public global::OpenRouter.MessagesContentBlockDeltaEvent? Type1542 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditVariant1Type? Type1543 { get; set; } + public global::OpenRouter.MessagesContentBlockDeltaEventDeltaVariant1? Type1543 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditVariant2? Type1544 { get; set; } + public global::OpenRouter.MessagesContentBlockDeltaEventDeltaVariant1Type? Type1544 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditVariant2KeepEnum? Type1545 { get; set; } + public global::OpenRouter.MessagesContentBlockDeltaEventDeltaVariant2? Type1545 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditVariant2KeepEnumType? Type1546 { get; set; } + public global::OpenRouter.MessagesContentBlockDeltaEventDeltaVariant2Type? Type1546 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditVariant2KeepEnum2? Type1547 { get; set; } + public global::OpenRouter.MessagesContentBlockDeltaEventDeltaVariant3? Type1547 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditVariant2Type? Type1548 { get; set; } + public global::OpenRouter.MessagesContentBlockDeltaEventDeltaVariant3Type? Type1548 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditVariant3? Type1549 { get; set; } + public global::OpenRouter.MessagesContentBlockDeltaEventDeltaVariant4? Type1549 { get; set; } /// /// /// - public global::OpenRouter.AllOf? Type1550 { get; set; } + public global::OpenRouter.MessagesContentBlockDeltaEventDeltaVariant4Type? Type1550 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditVariant3Type? Type1551 { get; set; } + public global::OpenRouter.MessagesContentBlockDeltaEventDeltaVariant5? Type1551 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1552 { get; set; } + public global::OpenRouter.Citation? Type1552 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1553 { get; set; } + public global::OpenRouter.MessagesContentBlockDeltaEventDeltaVariant5CitationDiscriminator? Type1553 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestMetadata? Type1554 { get; set; } + public global::OpenRouter.MessagesContentBlockDeltaEventDeltaVariant5CitationDiscriminatorType? Type1554 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1555 { get; set; } + public global::OpenRouter.MessagesContentBlockDeltaEventDeltaVariant5Type? Type1555 { get; set; } /// /// /// - public global::OpenRouter.PluginsItem2? Type1556 { get; set; } + public global::OpenRouter.MessagesContentBlockDeltaEventDeltaVariant6? Type1556 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginDiscriminator? Type1557 { get; set; } + public global::OpenRouter.MessagesContentBlockDeltaEventDeltaVariant6Type? Type1557 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginDiscriminatorId? Type1558 { get; set; } + public global::OpenRouter.MessagesContentBlockDeltaEventType? Type1558 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1559 { get; set; } + public global::OpenRouter.MessagesContentBlockStartEvent? Type1559 { get; set; } /// /// /// - public global::OpenRouter.AllOf? Type1560 { get; set; } + public global::OpenRouter.ORAnthropicServerToolUseBlock? Type1560 { get; set; } /// /// /// - public global::OpenRouter.AnyOf>? Type1561 { get; set; } + public global::OpenRouter.ORAnthropicShellToolResult? Type1561 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinkingVariant1? Type1562 { get; set; } + public global::OpenRouter.ORAnthropicBashToolResult? Type1562 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinkingVariant1Type? Type1563 { get; set; } + public global::OpenRouter.ORAnthropicToolSearchResult? Type1563 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinkingVariant2? Type1564 { get; set; } + public global::OpenRouter.MessagesContentBlockStartEventContentBlock? Type1564 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinkingVariant2Type? Type1565 { get; set; } + public global::OpenRouter.MessagesContentBlockStartEventContentBlockType? Type1565 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinkingVariant3? Type1566 { get; set; } + public global::OpenRouter.MessagesContentBlockStartEventType? Type1566 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinkingVariant3Type? Type1567 { get; set; } + public global::OpenRouter.MessagesContentBlockStopEvent? Type1567 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinkingVariant4? Type1568 { get; set; } + public global::OpenRouter.MessagesContentBlockStopEventType? Type1568 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinkingVariant4Type? Type1569 { get; set; } + public global::OpenRouter.MessagesDeltaEvent? Type1569 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoiceVariant1? Type1570 { get; set; } + public global::OpenRouter.MessagesDeltaEventDelta? Type1570 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoiceVariant1Type? Type1571 { get; set; } + public global::System.Collections.Generic.IList? Type1571 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoiceVariant2? Type1572 { get; set; } + public global::OpenRouter.MessagesDeltaEventType? Type1572 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoiceVariant2Type? Type1573 { get; set; } + public global::OpenRouter.MessagesDeltaEventUsage? Type1573 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoiceVariant3? Type1574 { get; set; } + public global::OpenRouter.ORAnthropicServerToolUsage? Type1574 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoiceVariant3Type? Type1575 { get; set; } + public global::OpenRouter.MessagesErrorEvent? Type1575 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoiceVariant4? Type1576 { get; set; } + public global::OpenRouter.MessagesErrorEventError? Type1576 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoiceVariant4Type? Type1577 { get; set; } + public global::OpenRouter.MessagesErrorEventType? Type1577 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolVariant1? Type1578 { get; set; } + public global::OpenRouter.MessagesFallbackParam? Type1578 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolVariant1InputSchema? Type1579 { get; set; } + public global::OpenRouter.MessagesMessageParam? Type1579 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolVariant1Type? Type1580 { get; set; } + public global::OpenRouter.MessagesMessageParamContentVariant2ItemVariant4? Type1580 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolVariant2? Type1581 { get; set; } + public global::OpenRouter.MessagesMessageParamContentVariant2ItemVariant4Type? Type1581 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolVariant2Name? Type1582 { get; set; } + public global::OpenRouter.MessagesMessageParamContentVariant2ItemVariant5? Type1582 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolVariant2Type? Type1583 { get; set; } + public global::OpenRouter.MessagesMessageParamContentVariant2ItemVariant5ContentVariant2Item? Type1583 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolVariant3? Type1584 { get; set; } + public global::OpenRouter.MessagesMessageParamContentVariant2ItemVariant5ContentVariant2ItemType? Type1584 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolVariant3Name? Type1585 { get; set; } + public global::OpenRouter.MessagesMessageParamContentVariant2ItemVariant5Type? Type1585 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolVariant3Type? Type1586 { get; set; } + public global::OpenRouter.MessagesMessageParamContentVariant2ItemVariant6? Type1586 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolVariant4? Type1587 { get; set; } + public global::OpenRouter.MessagesMessageParamContentVariant2ItemVariant6Type? Type1587 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolVariant4Name? Type1588 { get; set; } + public global::OpenRouter.MessagesMessageParamContentVariant2ItemVariant7? Type1588 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolVariant4Type? Type1589 { get; set; } + public global::OpenRouter.MessagesMessageParamContentVariant2ItemVariant7Type? Type1589 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolVariant5? Type1590 { get; set; } + public global::OpenRouter.MessagesMessageParamContentVariant2ItemVariant8? Type1590 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolVariant5Name? Type1591 { get; set; } + public global::OpenRouter.MessagesMessageParamContentVariant2ItemVariant8Type? Type1591 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolVariant5Type? Type1592 { get; set; } + public global::OpenRouter.MessagesMessageParamContentVariant2ItemVariant9? Type1592 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolVariant6? Type1593 { get; set; } + public global::OpenRouter.AnyOf, global::OpenRouter.MessagesMessageParamContentVariant2ItemVariant9Content>? Type1593 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolVariant6Name? Type1594 { get; set; } + public global::System.Collections.Generic.IList? Type1594 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolVariant6Type? Type1595 { get; set; } + public global::OpenRouter.MessagesMessageParamContentVariant2ItemVariant9Content? Type1595 { get; set; } /// /// /// - public global::OpenRouter.MessagesSearchModelsServerTool? Type1596 { get; set; } + public global::OpenRouter.MessagesMessageParamContentVariant2ItemVariant9ContentErrorCode? Type1596 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolVariant13? Type1597 { get; set; } + public global::OpenRouter.MessagesMessageParamContentVariant2ItemVariant9ContentType? Type1597 { get; set; } /// /// /// - public global::OpenRouter.MessagesResult? Type1598 { get; set; } + public global::OpenRouter.MessagesMessageParamContentVariant2ItemVariant9Type? Type1598 { get; set; } /// /// /// - public global::OpenRouter.MessagesResultVariant2? Type1599 { get; set; } + public global::OpenRouter.MessagesMessageParamContentVariant2ItemVariant11? Type1599 { get; set; } /// /// /// - public global::OpenRouter.MessagesResultVariant2ContextManagement? Type1600 { get; set; } + public global::OpenRouter.MessagesMessageParamContentVariant2ItemVariant11Type? Type1600 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1601 { get; set; } + public global::OpenRouter.MessagesToolAdditionBlock? Type1601 { get; set; } /// /// /// - public global::OpenRouter.MessagesResultVariant2ContextManagementAppliedEdit? Type1602 { get; set; } + public global::OpenRouter.MessagesToolRemovalBlock? Type1602 { get; set; } /// /// /// - public global::OpenRouter.AllOf? Type1603 { get; set; } + public global::OpenRouter.MessagesShellToolResultBlock? Type1603 { get; set; } /// /// /// - public global::OpenRouter.MessagesResultVariant2Usage? Type1604 { get; set; } + public global::OpenRouter.ORAnthropicToolSearchResultParam? Type1604 { get; set; } /// /// /// - public global::OpenRouter.MessagesSearchModelsServerToolType? Type1605 { get; set; } + public global::OpenRouter.MessagesMessageParamRole? Type1605 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1606 { get; set; } + public global::OpenRouter.MessagesOutputConfig? Type1606 { get; set; } /// /// /// - public global::OpenRouter.MessagesShellToolResultBlockFile? Type1607 { get; set; } + public global::OpenRouter.MessagesOutputConfigEffort? Type1607 { get; set; } /// /// /// - public global::OpenRouter.MessagesShellToolResultBlockFileType? Type1608 { get; set; } + public global::OpenRouter.MessagesOutputConfigFormat? Type1608 { get; set; } /// /// /// - public global::OpenRouter.MessagesShellToolResultBlockType? Type1609 { get; set; } + public global::OpenRouter.MessagesOutputConfigFormatType? Type1609 { get; set; } /// /// /// - public global::OpenRouter.MessagesStartEvent? Type1610 { get; set; } + public global::OpenRouter.MessagesOutputConfigTaskBudget? Type1610 { get; set; } /// /// /// - public global::OpenRouter.MessagesStartEventMessage? Type1611 { get; set; } + public global::OpenRouter.MessagesOutputConfigTaskBudgetType? Type1611 { get; set; } /// /// /// - public global::OpenRouter.MessagesStartEventMessageProvider? Type1612 { get; set; } + public global::OpenRouter.MessagesPingEvent? Type1612 { get; set; } /// /// /// - public global::OpenRouter.MessagesStartEventMessageRole? Type1613 { get; set; } + public global::OpenRouter.MessagesPingEventType? Type1613 { get; set; } /// /// /// - public global::OpenRouter.MessagesStartEventMessageType? Type1614 { get; set; } + public global::OpenRouter.MessagesRequest? Type1614 { get; set; } /// /// /// - public global::OpenRouter.AllOf? Type1615 { get; set; } + public global::OpenRouter.MessagesRequestContextManagement? Type1615 { get; set; } /// /// /// - public global::OpenRouter.MessagesStartEventMessageUsage? Type1616 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditVariant1? Type1616 { get; set; } /// /// /// - public global::OpenRouter.MessagesStartEventType? Type1617 { get; set; } + public global::OpenRouter.AnyOf>? Type1617 { get; set; } /// /// /// - public global::OpenRouter.MessagesStopEvent? Type1618 { get; set; } + public global::OpenRouter.Trigger? Type1618 { get; set; } /// /// /// - public global::OpenRouter.MessagesStopEventType? Type1619 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditVariant1TriggerDiscriminator? Type1619 { get; set; } /// /// /// - public global::OpenRouter.MessagesStreamEvents? Type1620 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditVariant1TriggerDiscriminatorType? Type1620 { get; set; } /// /// /// - public global::OpenRouter.MessagesStreamEventsDiscriminator? Type1621 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditVariant1Type? Type1621 { get; set; } /// /// /// - public global::OpenRouter.MessagesStreamEventsDiscriminatorType? Type1622 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditVariant2? Type1622 { get; set; } /// /// /// - public global::OpenRouter.MessagesStreamingResponse? Type1623 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditVariant2KeepEnum? Type1623 { get; set; } /// /// /// - public global::OpenRouter.MessagesToolAdditionBlockToolVariant1? Type1624 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditVariant2KeepEnumType? Type1624 { get; set; } /// /// /// - public global::OpenRouter.MessagesToolAdditionBlockToolVariant1Type? Type1625 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditVariant2KeepEnum2? Type1625 { get; set; } /// /// /// - public global::OpenRouter.MessagesToolAdditionBlockToolVariant2? Type1626 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditVariant2Type? Type1626 { get; set; } /// /// /// - public global::OpenRouter.MessagesToolAdditionBlockToolVariant2Type? Type1627 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditVariant3? Type1627 { get; set; } /// /// /// - public global::OpenRouter.MessagesToolAdditionBlockToolVariant3? Type1628 { get; set; } + public global::OpenRouter.AllOf? Type1628 { get; set; } /// /// /// - public global::OpenRouter.MessagesToolAdditionBlockToolVariant3Type? Type1629 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditVariant3Type? Type1629 { get; set; } /// /// /// - public global::OpenRouter.MessagesToolAdditionBlockToolVariant4? Type1630 { get; set; } + public global::System.Collections.Generic.IList? Type1630 { get; set; } /// /// /// - public global::OpenRouter.MessagesToolAdditionBlockToolVariant4Type? Type1631 { get; set; } + public global::System.Collections.Generic.IList? Type1631 { get; set; } /// /// /// - public global::OpenRouter.MessagesToolAdditionBlockType? Type1632 { get; set; } + public global::OpenRouter.MessagesRequestMetadata? Type1632 { get; set; } /// /// /// - public global::OpenRouter.MessagesToolRemovalBlockToolVariant1? Type1633 { get; set; } + public global::System.Collections.Generic.IList? Type1633 { get; set; } /// /// /// - public global::OpenRouter.MessagesToolRemovalBlockToolVariant1Type? Type1634 { get; set; } + public global::OpenRouter.PluginsItem2? Type1634 { get; set; } /// /// /// - public global::OpenRouter.MessagesToolRemovalBlockToolVariant2? Type1635 { get; set; } + public global::OpenRouter.MessagesRequestPluginDiscriminator? Type1635 { get; set; } /// /// /// - public global::OpenRouter.MessagesToolRemovalBlockToolVariant2Type? Type1636 { get; set; } + public global::OpenRouter.MessagesRequestPluginDiscriminatorId? Type1636 { get; set; } /// /// /// - public global::OpenRouter.MessagesToolRemovalBlockToolVariant3? Type1637 { get; set; } + public global::System.Collections.Generic.IList? Type1637 { get; set; } /// /// /// - public global::OpenRouter.MessagesToolRemovalBlockToolVariant3Type? Type1638 { get; set; } + public global::OpenRouter.AllOf? Type1638 { get; set; } /// /// /// - public global::OpenRouter.MessagesToolRemovalBlockType? Type1639 { get; set; } + public global::OpenRouter.AnyOf>? Type1639 { get; set; } /// /// /// - public global::OpenRouter.MetadataLevel? Type1640 { get; set; } + public global::OpenRouter.MessagesRequestThinkingVariant1? Type1640 { get; set; } /// /// /// - public global::OpenRouter.Model? Type1641 { get; set; } + public global::OpenRouter.MessagesRequestThinkingVariant1Type? Type1641 { get; set; } /// /// /// - public global::OpenRouter.ModelAliasTarget? Type1642 { get; set; } + public global::OpenRouter.MessagesRequestThinkingVariant2? Type1642 { get; set; } /// /// /// - public global::OpenRouter.ModelBenchmarks? Type1643 { get; set; } + public global::OpenRouter.MessagesRequestThinkingVariant2Type? Type1643 { get; set; } /// /// /// - public global::OpenRouter.ModelLinks? Type1644 { get; set; } + public global::OpenRouter.MessagesRequestThinkingVariant3? Type1644 { get; set; } /// /// /// - public global::OpenRouter.PerRequestLimits? Type1645 { get; set; } + public global::OpenRouter.MessagesRequestThinkingVariant3Type? Type1645 { get; set; } /// /// /// - public global::OpenRouter.PublicPricing? Type1646 { get; set; } + public global::OpenRouter.MessagesRequestThinkingVariant4? Type1646 { get; set; } /// /// /// - public global::OpenRouter.ModelReasoning? Type1647 { get; set; } + public global::OpenRouter.MessagesRequestThinkingVariant4Type? Type1647 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1648 { get; set; } + public global::OpenRouter.MessagesRequestToolChoiceVariant1? Type1648 { get; set; } /// /// /// - public global::OpenRouter.Parameter? Type1649 { get; set; } + public global::OpenRouter.MessagesRequestToolChoiceVariant1Type? Type1649 { get; set; } /// /// /// - public global::OpenRouter.TopProviderInfo? Type1650 { get; set; } + public global::OpenRouter.MessagesRequestToolChoiceVariant2? Type1650 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1651 { get; set; } + public global::OpenRouter.MessagesRequestToolChoiceVariant2Type? Type1651 { get; set; } /// /// /// - public global::OpenRouter.AllOf? Type1652 { get; set; } + public global::OpenRouter.MessagesRequestToolChoiceVariant3? Type1652 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1653 { get; set; } + public global::OpenRouter.MessagesRequestToolChoiceVariant3Type? Type1653 { get; set; } /// /// /// - public global::OpenRouter.ModelResponse? Type1654 { get; set; } + public global::OpenRouter.MessagesRequestToolChoiceVariant4? Type1654 { get; set; } /// /// /// - public global::OpenRouter.ModelsCountResponse? Type1655 { get; set; } + public global::OpenRouter.MessagesRequestToolChoiceVariant4Type? Type1655 { get; set; } /// /// /// - public global::OpenRouter.ModelsCountResponseData? Type1656 { get; set; } + public global::OpenRouter.MessagesRequestToolVariant1? Type1656 { get; set; } /// /// /// - public global::OpenRouter.ModelsListResponse? Type1657 { get; set; } + public global::OpenRouter.MessagesRequestToolVariant1InputSchema? Type1657 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1658 { get; set; } + public global::OpenRouter.MessagesRequestToolVariant1Type? Type1658 { get; set; } /// /// /// - public global::OpenRouter.ModelsListResponseLinks? Type1659 { get; set; } + public global::OpenRouter.MessagesRequestToolVariant2? Type1659 { get; set; } /// /// /// - public global::OpenRouter.ModerationPluginId? Type1660 { get; set; } + public global::OpenRouter.MessagesRequestToolVariant2Name? Type1660 { get; set; } /// /// /// - public global::OpenRouter.NamespaceFunctionTool? Type1661 { get; set; } + public global::OpenRouter.MessagesRequestToolVariant2Type? Type1661 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1662 { get; set; } + public global::OpenRouter.MessagesRequestToolVariant3? Type1662 { get; set; } /// /// /// - public global::OpenRouter.NamespaceFunctionToolAllowedCaller? Type1663 { get; set; } + public global::OpenRouter.MessagesRequestToolVariant3Name? Type1663 { get; set; } /// /// /// - public global::OpenRouter.NamespaceFunctionToolType? Type1664 { get; set; } + public global::OpenRouter.MessagesRequestToolVariant3Type? Type1664 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type1665 { get; set; } + public global::OpenRouter.MessagesRequestToolVariant4? Type1665 { get; set; } /// /// /// - public global::OpenRouter.AnyOf? Type1666 { get; set; } + public global::OpenRouter.MessagesRequestToolVariant4Name? Type1666 { get; set; } /// /// /// - public global::OpenRouter.NamespaceToolType? Type1667 { get; set; } + public global::OpenRouter.MessagesRequestToolVariant4Type? Type1667 { get; set; } /// /// /// - public global::OpenRouter.NotFoundResponse? Type1668 { get; set; } + public global::OpenRouter.MessagesRequestToolVariant5? Type1668 { get; set; } /// /// /// - public global::OpenRouter.NotFoundResponseErrorData? Type1669 { get; set; } + public global::OpenRouter.MessagesRequestToolVariant5Name? Type1669 { get; set; } /// /// /// - public global::OpenRouter.OAuthErrorResponse? Type1670 { get; set; } + public global::OpenRouter.MessagesRequestToolVariant5Type? Type1670 { get; set; } /// /// /// - public global::OpenRouter.OAuthErrorResponseError? Type1671 { get; set; } + public global::OpenRouter.MessagesRequestToolVariant6? Type1671 { get; set; } /// /// /// - public global::OpenRouter.OAuthJwks? Type1672 { get; set; } + public global::OpenRouter.MessagesRequestToolVariant6Name? Type1672 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1673 { get; set; } + public global::OpenRouter.MessagesRequestToolVariant6Type? Type1673 { get; set; } /// /// /// - public global::OpenRouter.OAuthJwksKey? Type1674 { get; set; } + public global::OpenRouter.MessagesSearchModelsServerTool? Type1674 { get; set; } /// /// /// - public global::OpenRouter.OAuthJwksKeyAlg? Type1675 { get; set; } + public global::OpenRouter.MessagesRequestToolVariant13? Type1675 { get; set; } /// /// /// - public global::OpenRouter.OAuthJwksKeyCrv? Type1676 { get; set; } + public global::OpenRouter.MessagesResult? Type1676 { get; set; } /// /// /// - public global::OpenRouter.OAuthJwksKeyKty? Type1677 { get; set; } + public global::OpenRouter.MessagesResultVariant2? Type1677 { get; set; } /// /// /// - public global::OpenRouter.OAuthJwksKeyUse? Type1678 { get; set; } + public global::OpenRouter.MessagesResultVariant2ContextManagement? Type1678 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityArizeDestination? Type1679 { get; set; } + public global::System.Collections.Generic.IList? Type1679 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityArizeDestinationConfig? Type1680 { get; set; } + public global::OpenRouter.MessagesResultVariant2ContextManagementAppliedEdit? Type1680 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityFilterRulesConfig? Type1681 { get; set; } + public global::OpenRouter.AllOf? Type1681 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1682 { get; set; } + public global::OpenRouter.MessagesResultVariant2Usage? Type1682 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDataRegion? Type1683 { get; set; } + public global::OpenRouter.MessagesSearchModelsServerToolType? Type1683 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityArizeDestinationType? Type1684 { get; set; } + public global::System.Collections.Generic.IList? Type1684 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityBraintrustDestination? Type1685 { get; set; } + public global::OpenRouter.MessagesShellToolResultBlockFile? Type1685 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityBraintrustDestinationConfig? Type1686 { get; set; } + public global::OpenRouter.MessagesShellToolResultBlockFileType? Type1686 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityBraintrustDestinationType? Type1687 { get; set; } + public global::OpenRouter.MessagesShellToolResultBlockType? Type1687 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityClickhouseDestination? Type1688 { get; set; } + public global::OpenRouter.MessagesStartEvent? Type1688 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityClickhouseDestinationConfig? Type1689 { get; set; } + public global::OpenRouter.MessagesStartEventMessage? Type1689 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityClickhouseDestinationType? Type1690 { get; set; } + public global::OpenRouter.MessagesStartEventMessageProvider? Type1690 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDatadogDestination? Type1691 { get; set; } + public global::OpenRouter.MessagesStartEventMessageRole? Type1691 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDatadogDestinationConfig? Type1692 { get; set; } + public global::OpenRouter.MessagesStartEventMessageType? Type1692 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDatadogDestinationType? Type1693 { get; set; } + public global::OpenRouter.AllOf? Type1693 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityGrafanaDestination? Type1694 { get; set; } + public global::OpenRouter.MessagesStartEventMessageUsage? Type1694 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityLangfuseDestination? Type1695 { get; set; } + public global::OpenRouter.MessagesStartEventType? Type1695 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityLangsmithDestination? Type1696 { get; set; } + public global::OpenRouter.MessagesStopEvent? Type1696 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityNewrelicDestination? Type1697 { get; set; } + public global::OpenRouter.MessagesStopEventType? Type1697 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityOpikDestination? Type1698 { get; set; } + public global::OpenRouter.MessagesStreamEvents? Type1698 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityOtelCollectorDestination? Type1699 { get; set; } + public global::OpenRouter.MessagesStreamEventsDiscriminator? Type1699 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityPosthogDestination? Type1700 { get; set; } + public global::OpenRouter.MessagesStreamEventsDiscriminatorType? Type1700 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityRampDestination? Type1701 { get; set; } + public global::OpenRouter.MessagesStreamingResponse? Type1701 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityS3Destination? Type1702 { get; set; } + public global::OpenRouter.MessagesToolAdditionBlockToolVariant1? Type1702 { get; set; } /// /// /// - public global::OpenRouter.ObservabilitySentryDestination? Type1703 { get; set; } + public global::OpenRouter.MessagesToolAdditionBlockToolVariant1Type? Type1703 { get; set; } /// /// /// - public global::OpenRouter.ObservabilitySnowflakeDestination? Type1704 { get; set; } + public global::OpenRouter.MessagesToolAdditionBlockToolVariant2? Type1704 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityWeaveDestination? Type1705 { get; set; } + public global::OpenRouter.MessagesToolAdditionBlockToolVariant2Type? Type1705 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityWebhookDestination? Type1706 { get; set; } + public global::OpenRouter.MessagesToolAdditionBlockToolVariant3? Type1706 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationDiscriminator? Type1707 { get; set; } + public global::OpenRouter.MessagesToolAdditionBlockToolVariant3Type? Type1707 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationDiscriminatorType? Type1708 { get; set; } + public global::OpenRouter.MessagesToolAdditionBlockToolVariant4? Type1708 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityFilterRuleGroup? Type1709 { get; set; } + public global::OpenRouter.MessagesToolAdditionBlockToolVariant4Type? Type1709 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityFilterRuleGroupLogic? Type1710 { get; set; } + public global::OpenRouter.MessagesToolAdditionBlockType? Type1710 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1711 { get; set; } + public global::OpenRouter.MessagesToolRemovalBlockToolVariant1? Type1711 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityFilterRuleGroupRule? Type1712 { get; set; } + public global::OpenRouter.MessagesToolRemovalBlockToolVariant1Type? Type1712 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityFilterRuleGroupRuleField? Type1713 { get; set; } + public global::OpenRouter.MessagesToolRemovalBlockToolVariant2? Type1713 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityFilterRuleGroupRuleOperator? Type1714 { get; set; } + public global::OpenRouter.MessagesToolRemovalBlockToolVariant2Type? Type1714 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1715 { get; set; } + public global::OpenRouter.MessagesToolRemovalBlockToolVariant3? Type1715 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityGrafanaDestinationConfig? Type1716 { get; set; } + public global::OpenRouter.MessagesToolRemovalBlockToolVariant3Type? Type1716 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityGrafanaDestinationType? Type1717 { get; set; } + public global::OpenRouter.MessagesToolRemovalBlockType? Type1717 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityLangfuseDestinationConfig? Type1718 { get; set; } + public global::OpenRouter.MetadataLevel? Type1718 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityLangfuseDestinationType? Type1719 { get; set; } + public global::OpenRouter.Model? Type1719 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityLangsmithDestinationConfig? Type1720 { get; set; } + public global::OpenRouter.ModelAliasTarget? Type1720 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityLangsmithDestinationType? Type1721 { get; set; } + public global::OpenRouter.ModelBenchmarks? Type1721 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityNewrelicDestinationConfig? Type1722 { get; set; } + public global::OpenRouter.ModelLinks? Type1722 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityNewrelicDestinationConfigRegion? Type1723 { get; set; } + public global::OpenRouter.PerRequestLimits? Type1723 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityNewrelicDestinationType? Type1724 { get; set; } + public global::OpenRouter.PublicPricing? Type1724 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityOpikDestinationConfig? Type1725 { get; set; } + public global::OpenRouter.ModelReasoning? Type1725 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityOpikDestinationType? Type1726 { get; set; } + public global::System.Collections.Generic.IList? Type1726 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityOtelCollectorDestinationConfig? Type1727 { get; set; } + public global::OpenRouter.Parameter? Type1727 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityOtelCollectorDestinationType? Type1728 { get; set; } + public global::OpenRouter.TopProviderInfo? Type1728 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityPosthogDestinationConfig? Type1729 { get; set; } + public global::System.Collections.Generic.IList? Type1729 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityPosthogDestinationType? Type1730 { get; set; } + public global::OpenRouter.AllOf? Type1730 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityRampDestinationConfig? Type1731 { get; set; } + public global::System.Collections.Generic.IList? Type1731 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityRampDestinationType? Type1732 { get; set; } + public global::OpenRouter.ModelResponse? Type1732 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityS3DestinationConfig? Type1733 { get; set; } + public global::OpenRouter.ModelsCountResponse? Type1733 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityS3DestinationConfigAuthMode? Type1734 { get; set; } + public global::OpenRouter.ModelsCountResponseData? Type1734 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityS3DestinationConfigProvider? Type1735 { get; set; } + public global::OpenRouter.ModelsListResponse? Type1735 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityS3DestinationType? Type1736 { get; set; } + public global::System.Collections.Generic.IList? Type1736 { get; set; } /// /// /// - public global::OpenRouter.ObservabilitySentryDestinationConfig? Type1737 { get; set; } + public global::OpenRouter.ModelsListResponseLinks? Type1737 { get; set; } /// /// /// - public global::OpenRouter.ObservabilitySentryDestinationType? Type1738 { get; set; } + public global::OpenRouter.ModerationPluginId? Type1738 { get; set; } /// /// /// - public global::OpenRouter.ObservabilitySnowflakeDestinationConfig? Type1739 { get; set; } + public global::OpenRouter.NamespaceFunctionTool? Type1739 { get; set; } /// /// /// - public global::OpenRouter.ObservabilitySnowflakeDestinationType? Type1740 { get; set; } + public global::System.Collections.Generic.IList? Type1740 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityWeaveDestinationConfig? Type1741 { get; set; } + public global::OpenRouter.NamespaceFunctionToolAllowedCaller? Type1741 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityWeaveDestinationType? Type1742 { get; set; } + public global::OpenRouter.NamespaceFunctionToolType? Type1742 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityWebhookDestinationConfig? Type1743 { get; set; } + public global::System.Collections.Generic.IList>? Type1743 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityWebhookDestinationConfigMethod? Type1744 { get; set; } + public global::OpenRouter.AnyOf? Type1744 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityWebhookDestinationType? Type1745 { get; set; } + public global::OpenRouter.NamespaceToolType? Type1745 { get; set; } /// /// /// - public global::OpenRouter.OpenAIFileShape? Type1746 { get; set; } + public global::OpenRouter.NativeTools? Type1746 { get; set; } /// /// /// - public global::OpenRouter.OpenAIFileObject? Type1747 { get; set; } + public global::OpenRouter.NotFoundResponse? Type1747 { get; set; } /// /// /// - public global::OpenRouter.OpenAIFilePurpose? Type1748 { get; set; } + public global::OpenRouter.NotFoundResponseErrorData? Type1748 { get; set; } /// /// /// - public global::OpenRouter.OpenAIFileStatus? Type1749 { get; set; } + public global::OpenRouter.OAuthErrorResponse? Type1749 { get; set; } /// /// /// - public global::OpenRouter.OpenAIFileDeletedShape? Type1750 { get; set; } + public global::OpenRouter.OAuthErrorResponseError? Type1750 { get; set; } /// /// /// - public global::OpenRouter.OpenAIFileDeletedObject? Type1751 { get; set; } + public global::OpenRouter.OAuthJwks? Type1751 { get; set; } /// /// /// - public global::OpenRouter.OpenAIFileListShape? Type1752 { get; set; } + public global::System.Collections.Generic.IList? Type1752 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1753 { get; set; } + public global::OpenRouter.OAuthJwksKey? Type1753 { get; set; } /// /// /// - public global::OpenRouter.OpenAIFileListObject? Type1754 { get; set; } + public global::OpenRouter.OAuthJwksKeyAlg? Type1754 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponseCustomToolCallType? Type1755 { get; set; } + public global::OpenRouter.OAuthJwksKeyCrv? Type1755 { get; set; } /// /// /// - public global::OpenRouter.AnyOf>? Type1756 { get; set; } + public global::OpenRouter.OAuthJwksKeyKty? Type1756 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1757 { get; set; } + public global::OpenRouter.OAuthJwksKeyUse? Type1757 { get; set; } /// /// /// - public global::OpenRouter.OutputVariant2Item3? Type1758 { get; set; } + public global::OpenRouter.ObservabilityArizeDestination? Type1758 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponseCustomToolCallOutputOutputVariant2ItemDiscriminator? Type1759 { get; set; } + public global::OpenRouter.ObservabilityArizeDestinationConfig? Type1759 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponseCustomToolCallOutputOutputVariant2ItemDiscriminatorType? Type1760 { get; set; } + public global::OpenRouter.ObservabilityFilterRulesConfig? Type1760 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponseCustomToolCallOutputType? Type1761 { get; set; } + public global::System.Collections.Generic.IList? Type1761 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1762 { get; set; } + public global::OpenRouter.ObservabilityDataRegion? Type1762 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponseFunctionToolCallSubagentItem? Type1763 { get; set; } + public global::OpenRouter.ObservabilityArizeDestinationType? Type1763 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponseFunctionToolCallType? Type1764 { get; set; } + public global::OpenRouter.ObservabilityBraintrustDestination? Type1764 { get; set; } /// /// /// - public global::OpenRouter.AnyOf>? Type1765 { get; set; } + public global::OpenRouter.ObservabilityBraintrustDestinationConfig? Type1765 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1766 { get; set; } + public global::OpenRouter.ObservabilityBraintrustDestinationType? Type1766 { get; set; } /// /// /// - public global::OpenRouter.OutputVariant2Item4? Type1767 { get; set; } + public global::OpenRouter.ObservabilityClickhouseDestination? Type1767 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponseFunctionToolCallOutputOutputVariant2ItemDiscriminator? Type1768 { get; set; } + public global::OpenRouter.ObservabilityClickhouseDestinationConfig? Type1768 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponseFunctionToolCallOutputOutputVariant2ItemDiscriminatorType? Type1769 { get; set; } + public global::OpenRouter.ObservabilityClickhouseDestinationType? Type1769 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponseFunctionToolCallOutputType? Type1770 { get; set; } + public global::OpenRouter.ObservabilityDatadogDestination? Type1770 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1771 { get; set; } + public global::OpenRouter.ObservabilityDatadogDestinationConfig? Type1771 { get; set; } /// /// /// - public global::OpenRouter.ContentItem4? Type1772 { get; set; } + public global::OpenRouter.ObservabilityDatadogDestinationType? Type1772 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponseInputMessageItemContentItemDiscriminator? Type1773 { get; set; } + public global::OpenRouter.ObservabilityGrafanaDestination? Type1773 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponseInputMessageItemContentItemDiscriminatorType? Type1774 { get; set; } + public global::OpenRouter.ObservabilityLangfuseDestination? Type1774 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponseInputMessageItemRoleVariant1? Type1775 { get; set; } + public global::OpenRouter.ObservabilityLangsmithDestination? Type1775 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponseInputMessageItemRoleVariant2? Type1776 { get; set; } + public global::OpenRouter.ObservabilityNewrelicDestination? Type1776 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponseInputMessageItemRoleVariant3? Type1777 { get; set; } + public global::OpenRouter.ObservabilityOpikDestination? Type1777 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponseInputMessageItemType? Type1778 { get; set; } + public global::OpenRouter.ObservabilityOtelCollectorDestination? Type1778 { get; set; } /// /// /// - public global::OpenRouter.URLCitation? Type1779 { get; set; } + public global::OpenRouter.ObservabilityPosthogDestination? Type1779 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesCodeInterpreterCallCodeDeltaType? Type1780 { get; set; } + public global::OpenRouter.ObservabilityRampDestination? Type1780 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesCodeInterpreterCallCodeDoneType? Type1781 { get; set; } + public global::OpenRouter.ObservabilityS3Destination? Type1781 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesCodeInterpreterCallCompletedType? Type1782 { get; set; } + public global::OpenRouter.ObservabilitySentryDestination? Type1782 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesCodeInterpreterCallInProgressType? Type1783 { get; set; } + public global::OpenRouter.ObservabilitySnowflakeDestination? Type1783 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesCodeInterpreterCallInterpretingType? Type1784 { get; set; } + public global::OpenRouter.ObservabilityWeaveDestination? Type1784 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesImageGenCallCompletedType? Type1785 { get; set; } + public global::OpenRouter.ObservabilityWebhookDestination? Type1785 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesImageGenCallGeneratingType? Type1786 { get; set; } + public global::OpenRouter.ObservabilityDestinationDiscriminator? Type1786 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesImageGenCallInProgressType? Type1787 { get; set; } + public global::OpenRouter.ObservabilityDestinationDiscriminatorType? Type1787 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesImageGenCallPartialImageType? Type1788 { get; set; } + public global::OpenRouter.ObservabilityFilterRuleGroup? Type1788 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesRefusalContentType? Type1789 { get; set; } + public global::OpenRouter.ObservabilityFilterRuleGroupLogic? Type1789 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesSearchCompleted? Type1790 { get; set; } + public global::System.Collections.Generic.IList? Type1790 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesSearchCompletedType? Type1791 { get; set; } + public global::OpenRouter.ObservabilityFilterRuleGroupRule? Type1791 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesToolChoiceVariant1? Type1792 { get; set; } + public global::OpenRouter.ObservabilityFilterRuleGroupRuleField? Type1792 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesToolChoiceVariant2? Type1793 { get; set; } + public global::OpenRouter.ObservabilityFilterRuleGroupRuleOperator? Type1793 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesToolChoiceVariant3? Type1794 { get; set; } + public global::System.Collections.Generic.IList? Type1794 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesToolChoiceVariant4? Type1795 { get; set; } + public global::OpenRouter.ObservabilityGrafanaDestinationConfig? Type1795 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesToolChoiceVariant4Type? Type1796 { get; set; } + public global::OpenRouter.ObservabilityGrafanaDestinationType? Type1796 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesToolChoiceVariant5? Type1797 { get; set; } + public global::OpenRouter.ObservabilityLangfuseDestinationConfig? Type1797 { get; set; } /// /// /// - public global::OpenRouter.AnyOf? Type1798 { get; set; } + public global::OpenRouter.ObservabilityLangfuseDestinationType? Type1798 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesToolChoiceVariant5TypeVariant1? Type1799 { get; set; } + public global::OpenRouter.ObservabilityLangsmithDestinationConfig? Type1799 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesToolChoiceVariant5TypeVariant2? Type1800 { get; set; } + public global::OpenRouter.ObservabilityLangsmithDestinationType? Type1800 { get; set; } /// /// /// - public global::OpenRouter.ToolChoiceAllowed? Type1801 { get; set; } + public global::OpenRouter.ObservabilityNewrelicDestinationConfig? Type1801 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesToolChoiceVariant7? Type1802 { get; set; } + public global::OpenRouter.ObservabilityNewrelicDestinationConfigRegion? Type1802 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesToolChoiceVariant7Type? Type1803 { get; set; } + public global::OpenRouter.ObservabilityNewrelicDestinationType? Type1803 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesToolChoiceVariant8? Type1804 { get; set; } + public global::OpenRouter.ObservabilityOpikDestinationConfig? Type1804 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesToolChoiceVariant8Type? Type1805 { get; set; } + public global::OpenRouter.ObservabilityOpikDestinationType? Type1805 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesTruncation? Type1806 { get; set; } + public global::OpenRouter.ObservabilityOtelCollectorDestinationConfig? Type1806 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesUsageInputTokensDetails? Type1807 { get; set; } + public global::OpenRouter.ObservabilityOtelCollectorDestinationType? Type1807 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesUsageOutputTokensDetails? Type1808 { get; set; } + public global::OpenRouter.ObservabilityPosthogDestinationConfig? Type1808 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesWebSearchCallInProgress? Type1809 { get; set; } + public global::OpenRouter.ObservabilityPosthogDestinationType? Type1809 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesWebSearchCallInProgressType? Type1810 { get; set; } + public global::OpenRouter.ObservabilityRampDestinationConfig? Type1810 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesWebSearchCallSearching? Type1811 { get; set; } + public global::OpenRouter.ObservabilityRampDestinationType? Type1811 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesWebSearchCallSearchingType? Type1812 { get; set; } + public global::OpenRouter.ObservabilityS3DestinationConfig? Type1812 { get; set; } /// /// /// - public global::OpenRouter.OpenResponsesCreatedEvent? Type1813 { get; set; } + public global::OpenRouter.ObservabilityS3DestinationConfigAuthMode? Type1813 { get; set; } /// /// /// - public global::OpenRouter.OpenResponsesCreatedEventVariant2? Type1814 { get; set; } + public global::OpenRouter.ObservabilityS3DestinationConfigProvider? Type1814 { get; set; } /// /// /// - public global::OpenRouter.OpenResponsesErrorField? Type1815 { get; set; } + public global::OpenRouter.ObservabilityS3DestinationType? Type1815 { get; set; } /// /// /// - public global::OpenRouter.OpenResponsesErrorFieldCode? Type1816 { get; set; } + public global::OpenRouter.ObservabilitySentryDestinationConfig? Type1816 { get; set; } /// /// /// - public global::OpenRouter.OpenResponsesErrorMetadata? Type1817 { get; set; } + public global::OpenRouter.ObservabilitySentryDestinationType? Type1817 { get; set; } /// /// /// - public global::OpenRouter.AllOf? Type1818 { get; set; } + public global::OpenRouter.ObservabilitySnowflakeDestinationConfig? Type1818 { get; set; } /// /// /// - public global::OpenRouter.OpenResponsesErrorMetadataAlignment? Type1819 { get; set; } + public global::OpenRouter.ObservabilitySnowflakeDestinationType? Type1819 { get; set; } /// /// /// - public global::OpenRouter.OpenResponsesInProgressEvent? Type1820 { get; set; } + public global::OpenRouter.ObservabilityWeaveDestinationConfig? Type1820 { get; set; } /// /// /// - public global::OpenRouter.OpenResponsesInProgressEventVariant2? Type1821 { get; set; } + public global::OpenRouter.ObservabilityWeaveDestinationType? Type1821 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1822 { get; set; } + public global::OpenRouter.ObservabilityWebhookDestinationConfig? Type1822 { get; set; } /// /// /// - public global::OpenRouter.OpenResponsesTopLogprobs? Type1823 { get; set; } + public global::OpenRouter.ObservabilityWebhookDestinationConfigMethod? Type1823 { get; set; } /// /// /// - public global::OpenRouter.OpenResponsesResultVariant2? Type1824 { get; set; } + public global::OpenRouter.ObservabilityWebhookDestinationType? Type1824 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1825 { get; set; } + public global::OpenRouter.OpenAIFileShape? Type1825 { get; set; } /// /// /// - public global::OpenRouter.OutputItems? Type1826 { get; set; } + public global::OpenRouter.OpenAIFileObject? Type1826 { get; set; } /// /// /// - public global::OpenRouter.TextExtendedConfig? Type1827 { get; set; } + public global::OpenRouter.OpenAIFilePurpose? Type1827 { get; set; } /// /// /// - public global::OpenRouter.AllOf? Type1828 { get; set; } + public global::OpenRouter.OpenAIFileStatus? Type1828 { get; set; } /// /// /// - public global::OpenRouter.OpenRouterFileShape? Type1829 { get; set; } + public global::OpenRouter.OpenAIFileDeletedShape? Type1829 { get; set; } /// /// /// - public global::OpenRouter.OpenRouterFileType? Type1830 { get; set; } + public global::OpenRouter.OpenAIFileDeletedObject? Type1830 { get; set; } /// /// /// - public global::OpenRouter.OpenRouterFileDeletedShape? Type1831 { get; set; } + public global::OpenRouter.OpenAIFileListShape? Type1831 { get; set; } /// /// /// - public global::OpenRouter.OpenRouterFileDeletedType? Type1832 { get; set; } + public global::System.Collections.Generic.IList? Type1832 { get; set; } /// /// /// - public global::OpenRouter.OpenRouterFileListShape? Type1833 { get; set; } + public global::OpenRouter.OpenAIFileListObject? Type1833 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1834 { get; set; } + public global::OpenRouter.OpenAIResponseCustomToolCallType? Type1834 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1835 { get; set; } + public global::OpenRouter.AnyOf>? Type1835 { get; set; } /// /// /// - public global::OpenRouter.RouterAttempt? Type1836 { get; set; } + public global::System.Collections.Generic.IList? Type1836 { get; set; } /// /// /// - public global::OpenRouter.RouterParams? Type1837 { get; set; } + public global::OpenRouter.OutputVariant2Item3? Type1837 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1838 { get; set; } + public global::OpenRouter.OpenAIResponseCustomToolCallOutputOutputVariant2ItemDiscriminator? Type1838 { get; set; } /// /// /// - public global::OpenRouter.PipelineStage? Type1839 { get; set; } + public global::OpenRouter.OpenAIResponseCustomToolCallOutputOutputVariant2ItemDiscriminatorType? Type1839 { get; set; } /// /// /// - public global::OpenRouter.RoutingStrategy? Type1840 { get; set; } + public global::OpenRouter.OpenAIResponseCustomToolCallOutputType? Type1840 { get; set; } /// /// /// - public global::OpenRouter.OpenRouterWebSearchServerToolType? Type1841 { get; set; } + public global::System.Collections.Generic.IList? Type1841 { get; set; } /// /// /// - public global::OpenRouter.Operator? Type1842 { get; set; } + public global::OpenRouter.OpenAIResponseFunctionToolCallSubagentItem? Type1842 { get; set; } /// /// /// - public global::OpenRouter.OperatorName? Type1843 { get; set; } + public global::OpenRouter.OpenAIResponseFunctionToolCallType? Type1843 { get; set; } /// /// /// - public global::OpenRouter.OperatorValueType? Type1844 { get; set; } + public global::OpenRouter.AnyOf>? Type1844 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1845 { get; set; } + public global::System.Collections.Generic.IList? Type1845 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicBashToolResultFile? Type1846 { get; set; } + public global::OpenRouter.OutputVariant2Item4? Type1846 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicBashToolResultFileType? Type1847 { get; set; } + public global::OpenRouter.OpenAIResponseFunctionToolCallOutputOutputVariant2ItemDiscriminator? Type1847 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicBashToolResultType? Type1848 { get; set; } + public global::OpenRouter.OpenAIResponseFunctionToolCallOutputOutputVariant2ItemDiscriminatorType? Type1848 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockDiscriminator? Type1849 { get; set; } + public global::OpenRouter.OpenAIResponseFunctionToolCallOutputType? Type1849 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockDiscriminatorType? Type1850 { get; set; } + public global::System.Collections.Generic.IList? Type1850 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCaller? Type1851 { get; set; } + public global::OpenRouter.ContentItem4? Type1851 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerDiscriminator? Type1852 { get; set; } + public global::OpenRouter.OpenAIResponseInputMessageItemContentItemDiscriminator? Type1852 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerDiscriminatorType? Type1853 { get; set; } + public global::OpenRouter.OpenAIResponseInputMessageItemContentItemDiscriminatorType? Type1853 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicServerToolUseBlockType? Type1854 { get; set; } + public global::OpenRouter.OpenAIResponseInputMessageItemRoleVariant1? Type1854 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1855 { get; set; } + public global::OpenRouter.OpenAIResponseInputMessageItemRoleVariant2? Type1855 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicShellToolResultFile? Type1856 { get; set; } + public global::OpenRouter.OpenAIResponseInputMessageItemRoleVariant3? Type1856 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicShellToolResultFileType? Type1857 { get; set; } + public global::OpenRouter.OpenAIResponseInputMessageItemType? Type1857 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicShellToolResultType? Type1858 { get; set; } + public global::OpenRouter.URLCitation? Type1858 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicToolSearchResultType? Type1859 { get; set; } + public global::OpenRouter.OpenAIResponsesCodeInterpreterCallCodeDeltaType? Type1859 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicToolSearchResultParamType? Type1860 { get; set; } + public global::OpenRouter.OpenAIResponsesCodeInterpreterCallCodeDoneType? Type1860 { get; set; } /// /// /// - public global::OpenRouter.OrganizationSettings? Type1861 { get; set; } + public global::OpenRouter.OpenAIResponsesCodeInterpreterCallCompletedType? Type1861 { get; set; } /// /// /// - public global::OpenRouter.OutputAdvisorServerToolItemType? Type1862 { get; set; } + public global::OpenRouter.OpenAIResponsesCodeInterpreterCallInProgressType? Type1862 { get; set; } /// /// /// - public global::OpenRouter.OutputApplyPatchCallItem? Type1863 { get; set; } + public global::OpenRouter.OpenAIResponsesCodeInterpreterCallInterpretingType? Type1863 { get; set; } /// /// /// - public global::OpenRouter.OutputApplyPatchCallItemType? Type1864 { get; set; } + public global::OpenRouter.OpenAIResponsesImageGenCallCompletedType? Type1864 { get; set; } /// /// /// - public global::OpenRouter.OutputApplyPatchServerToolItemType? Type1865 { get; set; } + public global::OpenRouter.OpenAIResponsesImageGenCallGeneratingType? Type1865 { get; set; } /// /// /// - public global::OpenRouter.OutputArmorBlockedItemStatus? Type1866 { get; set; } + public global::OpenRouter.OpenAIResponsesImageGenCallInProgressType? Type1866 { get; set; } /// /// /// - public global::OpenRouter.OutputArmorBlockedItemType? Type1867 { get; set; } + public global::OpenRouter.OpenAIResponsesImageGenCallPartialImageType? Type1867 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1868 { get; set; } + public global::OpenRouter.OpenAIResponsesRefusalContentType? Type1868 { get; set; } /// /// /// - public global::OpenRouter.OutputBashServerToolItemFile? Type1869 { get; set; } + public global::OpenRouter.OpenAIResponsesSearchCompleted? Type1869 { get; set; } /// /// /// - public global::OpenRouter.OutputBashServerToolItemFileType? Type1870 { get; set; } + public global::OpenRouter.OpenAIResponsesSearchCompletedType? Type1870 { get; set; } /// /// /// - public global::OpenRouter.OutputBashServerToolItemType? Type1871 { get; set; } + public global::OpenRouter.OpenAIResponsesToolChoiceVariant1? Type1871 { get; set; } /// /// /// - public global::OpenRouter.OutputBrowserUseServerToolItemType? Type1872 { get; set; } + public global::OpenRouter.OpenAIResponsesToolChoiceVariant2? Type1872 { get; set; } /// /// /// - public global::OpenRouter.OutputCodeInterpreterServerToolItemType? Type1873 { get; set; } + public global::OpenRouter.OpenAIResponsesToolChoiceVariant3? Type1873 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1874 { get; set; } + public global::OpenRouter.OpenAIResponsesToolChoiceVariant4? Type1874 { get; set; } /// /// /// - public global::OpenRouter.OutputComputerCallItemPendingSafetyCheck? Type1875 { get; set; } + public global::OpenRouter.OpenAIResponsesToolChoiceVariant4Type? Type1875 { get; set; } /// /// /// - public global::OpenRouter.OutputComputerCallItemStatus? Type1876 { get; set; } + public global::OpenRouter.OpenAIResponsesToolChoiceVariant5? Type1876 { get; set; } /// /// /// - public global::OpenRouter.OutputComputerCallItemType? Type1877 { get; set; } + public global::OpenRouter.AnyOf? Type1877 { get; set; } /// /// /// - public global::OpenRouter.OutputCustomToolCallItem? Type1878 { get; set; } + public global::OpenRouter.OpenAIResponsesToolChoiceVariant5TypeVariant1? Type1878 { get; set; } /// /// /// - public global::OpenRouter.OutputCustomToolCallItemStatus? Type1879 { get; set; } + public global::OpenRouter.OpenAIResponsesToolChoiceVariant5TypeVariant2? Type1879 { get; set; } /// /// /// - public global::OpenRouter.OutputCustomToolCallItemType? Type1880 { get; set; } + public global::OpenRouter.ToolChoiceAllowed? Type1880 { get; set; } /// /// /// - public global::OpenRouter.OutputDatetimeItemType? Type1881 { get; set; } + public global::OpenRouter.OpenAIResponsesToolChoiceVariant7? Type1881 { get; set; } /// /// /// - public global::OpenRouter.OutputFileSearchServerToolItemType? Type1882 { get; set; } + public global::OpenRouter.OpenAIResponsesToolChoiceVariant7Type? Type1882 { get; set; } /// /// /// - public global::OpenRouter.OutputFilesServerToolItemType? Type1883 { get; set; } + public global::OpenRouter.OpenAIResponsesToolChoiceVariant8? Type1883 { get; set; } /// /// /// - public global::OpenRouter.OutputFunctionCallItem? Type1884 { get; set; } + public global::OpenRouter.OpenAIResponsesToolChoiceVariant8Type? Type1884 { get; set; } /// /// /// - public global::OpenRouter.OutputFunctionCallItemVariant2? Type1885 { get; set; } + public global::OpenRouter.OpenAIResponsesTruncation? Type1885 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1886 { get; set; } + public global::OpenRouter.OpenAIResponsesUsageInputTokensDetails? Type1886 { get; set; } /// /// /// - public global::OpenRouter.OutputFunctionCallItemVariant2SubagentItem? Type1887 { get; set; } + public global::OpenRouter.OpenAIResponsesUsageOutputTokensDetails? Type1887 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1888 { get; set; } + public global::OpenRouter.OpenAIResponsesWebSearchCallInProgress? Type1888 { get; set; } /// /// /// - public global::OpenRouter.OutputFusionServerToolItemFailedModel? Type1889 { get; set; } + public global::OpenRouter.OpenAIResponsesWebSearchCallInProgressType? Type1889 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1890 { get; set; } + public global::OpenRouter.OpenAIResponsesWebSearchCallSearching? Type1890 { get; set; } /// /// /// - public global::OpenRouter.OutputFusionServerToolItemResponse? Type1891 { get; set; } + public global::OpenRouter.OpenAIResponsesWebSearchCallSearchingType? Type1891 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1892 { get; set; } + public global::OpenRouter.OpenResponsesCreatedEvent? Type1892 { get; set; } /// /// /// - public global::OpenRouter.OutputFusionServerToolItemType? Type1893 { get; set; } + public global::OpenRouter.OpenResponsesCreatedEventVariant2? Type1893 { get; set; } /// /// /// - public global::OpenRouter.OutputImageGenerationCallItemVariant2? Type1894 { get; set; } + public global::OpenRouter.OpenResponsesErrorField? Type1894 { get; set; } /// /// /// - public global::OpenRouter.OutputImageGenerationServerToolItemType? Type1895 { get; set; } + public global::OpenRouter.OpenResponsesErrorFieldCode? Type1895 { get; set; } /// /// /// - public global::OpenRouter.OutputItemAddedEvent? Type1896 { get; set; } + public global::OpenRouter.OpenResponsesErrorMetadata? Type1896 { get; set; } /// /// /// - public global::OpenRouter.Item? Type1897 { get; set; } + public global::OpenRouter.AllOf? Type1897 { get; set; } /// /// /// - public global::OpenRouter.OutputItemAddedEventItemDiscriminator? Type1898 { get; set; } + public global::OpenRouter.OpenResponsesErrorMetadataAlignment? Type1898 { get; set; } /// /// /// - public global::OpenRouter.OutputItemAddedEventItemDiscriminatorType? Type1899 { get; set; } + public global::OpenRouter.OpenResponsesInProgressEvent? Type1899 { get; set; } /// /// /// - public global::OpenRouter.OutputItemAddedEventType? Type1900 { get; set; } + public global::OpenRouter.OpenResponsesInProgressEventVariant2? Type1900 { get; set; } /// /// /// - public global::OpenRouter.Operation? Type1901 { get; set; } + public global::System.Collections.Generic.IList? Type1901 { get; set; } /// /// /// - public global::OpenRouter.OutputItemApplyPatchCallOperationDiscriminator? Type1902 { get; set; } + public global::OpenRouter.OpenResponsesTopLogprobs? Type1902 { get; set; } /// /// /// - public global::OpenRouter.OutputItemApplyPatchCallOperationDiscriminatorType? Type1903 { get; set; } + public global::OpenRouter.OpenResponsesResultVariant2? Type1903 { get; set; } /// /// /// - public global::OpenRouter.OutputItemApplyPatchCallStatus? Type1904 { get; set; } + public global::OpenRouter.OpenResponsesResultVariant2AccessPrograms? Type1904 { get; set; } /// /// /// - public global::OpenRouter.OutputItemApplyPatchCallType? Type1905 { get; set; } + public global::OpenRouter.OpenResponsesResultVariant2AccessProgramsCyber? Type1905 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1906 { get; set; } + public global::System.Collections.Generic.IList? Type1906 { get; set; } /// /// /// - public global::OpenRouter.OutputsItem? Type1907 { get; set; } + public global::OpenRouter.OutputItems? Type1907 { get; set; } /// /// /// - public global::OpenRouter.OutputItemCodeInterpreterCallOutputDiscriminator? Type1908 { get; set; } + public global::OpenRouter.TextExtendedConfig? Type1908 { get; set; } /// /// /// - public global::OpenRouter.OutputItemCodeInterpreterCallOutputDiscriminatorType? Type1909 { get; set; } + public global::OpenRouter.AllOf? Type1909 { get; set; } /// /// /// - public global::OpenRouter.OutputItemCodeInterpreterCallStatus? Type1910 { get; set; } + public global::OpenRouter.OpenRouterFileShape? Type1910 { get; set; } /// /// /// - public global::OpenRouter.OutputItemCodeInterpreterCallType? Type1911 { get; set; } + public global::OpenRouter.OpenRouterFileType? Type1911 { get; set; } /// /// /// - public global::OpenRouter.OutputItemCustomToolCallStatus? Type1912 { get; set; } + public global::OpenRouter.OpenRouterFileDeletedShape? Type1912 { get; set; } /// /// /// - public global::OpenRouter.OutputItemCustomToolCallType? Type1913 { get; set; } + public global::OpenRouter.OpenRouterFileDeletedType? Type1913 { get; set; } /// /// /// - public global::OpenRouter.OutputItemDoneEvent? Type1914 { get; set; } + public global::OpenRouter.OpenRouterFileListShape? Type1914 { get; set; } /// /// /// - public global::OpenRouter.Item2? Type1915 { get; set; } + public global::System.Collections.Generic.IList? Type1915 { get; set; } /// /// /// - public global::OpenRouter.OutputItemDoneEventItemDiscriminator? Type1916 { get; set; } + public global::System.Collections.Generic.IList? Type1916 { get; set; } /// /// /// - public global::OpenRouter.OutputItemDoneEventItemDiscriminatorType? Type1917 { get; set; } + public global::OpenRouter.RouterAttempt? Type1917 { get; set; } /// /// /// - public global::OpenRouter.OutputItemDoneEventType? Type1918 { get; set; } + public global::OpenRouter.RouterParams? Type1918 { get; set; } /// /// /// - public global::OpenRouter.WebSearchStatus? Type1919 { get; set; } + public global::System.Collections.Generic.IList? Type1919 { get; set; } /// /// /// - public global::OpenRouter.OutputItemFileSearchCallType? Type1920 { get; set; } + public global::OpenRouter.PipelineStage? Type1920 { get; set; } /// /// /// - public global::OpenRouter.OutputItemFunctionCallStatusVariant1? Type1921 { get; set; } + public global::OpenRouter.RoutingStrategy? Type1921 { get; set; } /// /// /// - public global::OpenRouter.OutputItemFunctionCallStatusVariant2? Type1922 { get; set; } + public global::OpenRouter.OpenRouterWebSearchServerToolType? Type1922 { get; set; } /// /// /// - public global::OpenRouter.OutputItemFunctionCallStatusVariant3? Type1923 { get; set; } + public global::OpenRouter.Operator? Type1923 { get; set; } /// /// /// - public global::OpenRouter.OutputItemFunctionCallType? Type1924 { get; set; } + public global::OpenRouter.OperatorName? Type1924 { get; set; } /// /// /// - public global::OpenRouter.OutputItemImageGenerationCallType? Type1925 { get; set; } + public global::OpenRouter.OperatorValueType? Type1925 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1926 { get; set; } + public global::System.Collections.Generic.IList? Type1926 { get; set; } /// /// /// - public global::OpenRouter.AnyOf? Type1927 { get; set; } + public global::OpenRouter.ORAnthropicBashToolResultFile? Type1927 { get; set; } /// /// /// - public global::OpenRouter.OutputItemReasoningStatusVariant1? Type1928 { get; set; } + public global::OpenRouter.ORAnthropicBashToolResultFileType? Type1928 { get; set; } /// /// /// - public global::OpenRouter.OutputItemReasoningStatusVariant2? Type1929 { get; set; } + public global::OpenRouter.ORAnthropicBashToolResultType? Type1929 { get; set; } /// /// /// - public global::OpenRouter.OutputItemReasoningStatusVariant3? Type1930 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockDiscriminator? Type1930 { get; set; } /// /// /// - public global::OpenRouter.OutputItemReasoningType? Type1931 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockDiscriminatorType? Type1931 { get; set; } /// /// /// - public global::OpenRouter.OutputShellCallItem? Type1932 { get; set; } + public global::OpenRouter.ORAnthropicNullableCaller? Type1932 { get; set; } /// /// /// - public global::OpenRouter.OutputShellCallOutputItem? Type1933 { get; set; } + public global::OpenRouter.ORAnthropicNullableCallerDiscriminator? Type1933 { get; set; } /// /// /// - public global::OpenRouter.OutputToolSearchCallItem? Type1934 { get; set; } + public global::OpenRouter.ORAnthropicNullableCallerDiscriminatorType? Type1934 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsDiscriminator? Type1935 { get; set; } + public global::OpenRouter.ORAnthropicServerToolUseBlockType? Type1935 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsDiscriminatorType? Type1936 { get; set; } + public global::System.Collections.Generic.IList? Type1936 { get; set; } /// /// /// - public global::OpenRouter.OutputItemWebSearchCallActionVariant1? Type1937 { get; set; } + public global::OpenRouter.ORAnthropicShellToolResultFile? Type1937 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1938 { get; set; } + public global::OpenRouter.ORAnthropicShellToolResultFileType? Type1938 { get; set; } /// /// /// - public global::OpenRouter.WebSearchSource? Type1939 { get; set; } + public global::OpenRouter.ORAnthropicShellToolResultType? Type1939 { get; set; } /// /// /// - public global::OpenRouter.OutputItemWebSearchCallActionVariant1Type? Type1940 { get; set; } + public global::OpenRouter.ORAnthropicToolSearchResultType? Type1940 { get; set; } /// /// /// - public global::OpenRouter.OutputItemWebSearchCallActionVariant2? Type1941 { get; set; } + public global::OpenRouter.ORAnthropicToolSearchResultParamType? Type1941 { get; set; } /// /// /// - public global::OpenRouter.OutputItemWebSearchCallActionVariant2Type? Type1942 { get; set; } + public global::OpenRouter.OrganizationSettings? Type1942 { get; set; } /// /// /// - public global::OpenRouter.OutputItemWebSearchCallActionVariant3? Type1943 { get; set; } + public global::OpenRouter.OutputAdvisorServerToolItemType? Type1943 { get; set; } /// /// /// - public global::OpenRouter.OutputItemWebSearchCallActionVariant3Type? Type1944 { get; set; } + public global::OpenRouter.OutputApplyPatchCallItem? Type1944 { get; set; } /// /// /// - public global::OpenRouter.OutputItemWebSearchCallType? Type1945 { get; set; } + public global::OpenRouter.OutputApplyPatchCallItemType? Type1945 { get; set; } /// /// /// - public global::OpenRouter.OutputMcpServerToolItemType? Type1946 { get; set; } + public global::OpenRouter.OutputApplyPatchServerToolItemType? Type1946 { get; set; } /// /// /// - public global::OpenRouter.OutputMemoryServerToolItemAction? Type1947 { get; set; } + public global::OpenRouter.OutputArmorBlockedItemStatus? Type1947 { get; set; } /// /// /// - public global::OpenRouter.OutputMemoryServerToolItemType? Type1948 { get; set; } + public global::OpenRouter.OutputArmorBlockedItemType? Type1948 { get; set; } /// /// /// - public global::OpenRouter.AnyOf? Type1949 { get; set; } + public global::System.Collections.Generic.IList? Type1949 { get; set; } /// /// /// - public global::OpenRouter.OutputMessagePhaseVariant1? Type1950 { get; set; } + public global::OpenRouter.OutputBashServerToolItemFile? Type1950 { get; set; } /// /// /// - public global::OpenRouter.OutputMessagePhaseVariant2? Type1951 { get; set; } + public global::OpenRouter.OutputBashServerToolItemFileType? Type1951 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageRole? Type1952 { get; set; } + public global::OpenRouter.OutputBashServerToolItemType? Type1952 { get; set; } /// /// /// - public global::OpenRouter.AnyOf? Type1953 { get; set; } + public global::OpenRouter.OutputBrowserUseServerToolItemType? Type1953 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageStatusVariant1? Type1954 { get; set; } + public global::OpenRouter.OutputCodeInterpreterServerToolItemType? Type1954 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageStatusVariant2? Type1955 { get; set; } + public global::System.Collections.Generic.IList? Type1955 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageStatusVariant3? Type1956 { get; set; } + public global::OpenRouter.OutputComputerCallItemPendingSafetyCheck? Type1956 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageType? Type1957 { get; set; } + public global::OpenRouter.OutputComputerCallItemStatus? Type1957 { get; set; } /// /// /// - public global::OpenRouter.OutputModalityEnum? Type1958 { get; set; } + public global::OpenRouter.OutputComputerCallItemType? Type1958 { get; set; } /// /// /// - public global::OpenRouter.OutputReasoningItemVariant2? Type1959 { get; set; } + public global::OpenRouter.OutputCustomToolCallItem? Type1959 { get; set; } /// /// /// - public global::OpenRouter.ReasoningFormat? Type1960 { get; set; } + public global::OpenRouter.OutputCustomToolCallItemStatus? Type1960 { get; set; } /// /// /// - public global::OpenRouter.OutputSearchModelsServerToolItemType? Type1961 { get; set; } + public global::OpenRouter.OutputCustomToolCallItemType? Type1961 { get; set; } /// /// /// - public global::OpenRouter.OutputShellCallItemAction? Type1962 { get; set; } + public global::OpenRouter.OutputDatetimeItemType? Type1962 { get; set; } /// /// /// - public global::OpenRouter.ShellCallStatus? Type1963 { get; set; } + public global::OpenRouter.OutputFileSearchServerToolItemType? Type1963 { get; set; } /// /// /// - public global::OpenRouter.OutputShellCallItemType? Type1964 { get; set; } + public global::OpenRouter.OutputFilesServerToolItemType? Type1964 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1965 { get; set; } + public global::OpenRouter.OutputFunctionCallItem? Type1965 { get; set; } /// /// /// - public global::OpenRouter.OutputShellCallOutputItemFile? Type1966 { get; set; } + public global::OpenRouter.OutputFunctionCallItemVariant2? Type1966 { get; set; } /// /// /// - public global::OpenRouter.OutputShellCallOutputItemFileType? Type1967 { get; set; } + public global::System.Collections.Generic.IList? Type1967 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1968 { get; set; } + public global::OpenRouter.OutputFunctionCallItemVariant2SubagentItem? Type1968 { get; set; } /// /// /// - public global::OpenRouter.ShellCallOutputContent? Type1969 { get; set; } + public global::System.Collections.Generic.IList? Type1969 { get; set; } /// /// /// - public global::OpenRouter.OutputShellCallOutputItemType? Type1970 { get; set; } + public global::OpenRouter.OutputFusionServerToolItemFailedModel? Type1970 { get; set; } /// /// /// - public global::OpenRouter.OutputShellServerToolItemAction? Type1971 { get; set; } + public global::System.Collections.Generic.IList? Type1971 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1972 { get; set; } + public global::OpenRouter.OutputFusionServerToolItemResponse? Type1972 { get; set; } /// /// /// - public global::OpenRouter.OutputShellServerToolItemFile? Type1973 { get; set; } + public global::System.Collections.Generic.IList? Type1973 { get; set; } /// /// /// - public global::OpenRouter.OutputShellServerToolItemFileType? Type1974 { get; set; } + public global::OpenRouter.OutputFusionServerToolItemType? Type1974 { get; set; } /// /// /// - public global::OpenRouter.OutputShellServerToolItemType? Type1975 { get; set; } + public global::OpenRouter.OutputImageGenerationCallItemVariant2? Type1975 { get; set; } /// /// /// - public global::OpenRouter.OutputSubagentServerToolItemType? Type1976 { get; set; } + public global::OpenRouter.OutputImageGenerationServerToolItemType? Type1976 { get; set; } /// /// /// - public global::OpenRouter.OutputTextEditorServerToolItemCommand? Type1977 { get; set; } + public global::OpenRouter.OutputItemAddedEvent? Type1977 { get; set; } /// /// /// - public global::OpenRouter.OutputTextEditorServerToolItemType? Type1978 { get; set; } + public global::OpenRouter.Item? Type1978 { get; set; } /// /// /// - public global::OpenRouter.OutputToolSearchCallItemExecution? Type1979 { get; set; } + public global::OpenRouter.OutputItemAddedEventItemDiscriminator? Type1979 { get; set; } /// /// /// - public global::OpenRouter.OutputToolSearchCallItemType? Type1980 { get; set; } + public global::OpenRouter.OutputItemAddedEventItemDiscriminatorType? Type1980 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1981 { get; set; } + public global::OpenRouter.OutputItemAddedEventType? Type1981 { get; set; } /// /// /// - public global::OpenRouter.OutputToolSearchServerToolItemMatche? Type1982 { get; set; } + public global::OpenRouter.Operation? Type1982 { get; set; } /// /// /// - public global::OpenRouter.OutputToolSearchServerToolItemType? Type1983 { get; set; } + public global::OpenRouter.OutputItemApplyPatchCallOperationDiscriminator? Type1983 { get; set; } /// /// /// - public global::OpenRouter.OutputWebFetchServerToolItemType? Type1984 { get; set; } + public global::OpenRouter.OutputItemApplyPatchCallOperationDiscriminatorType? Type1984 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchServerToolItemAction? Type1985 { get; set; } + public global::OpenRouter.OutputItemApplyPatchCallStatus? Type1985 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1986 { get; set; } + public global::OpenRouter.OutputItemApplyPatchCallType? Type1986 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchServerToolItemActionSource? Type1987 { get; set; } + public global::System.Collections.Generic.IList? Type1987 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchServerToolItemActionSourceType? Type1988 { get; set; } + public global::OpenRouter.OutputsItem? Type1988 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchServerToolItemActionType? Type1989 { get; set; } + public global::OpenRouter.OutputItemCodeInterpreterCallOutputDiscriminator? Type1989 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchServerToolItemType? Type1990 { get; set; } + public global::OpenRouter.OutputItemCodeInterpreterCallOutputDiscriminatorType? Type1990 { get; set; } /// /// /// - public global::OpenRouter.ParetoRouterPluginId? Type1991 { get; set; } + public global::OpenRouter.OutputItemCodeInterpreterCallStatus? Type1991 { get; set; } /// /// /// - public global::OpenRouter.ParetoRouterPluginPriceSource? Type1992 { get; set; } + public global::OpenRouter.OutputItemCodeInterpreterCallType? Type1992 { get; set; } /// /// /// - public global::OpenRouter.PayloadTooLargeResponse? Type1993 { get; set; } + public global::OpenRouter.OutputItemCustomToolCallStatus? Type1993 { get; set; } /// /// /// - public global::OpenRouter.PayloadTooLargeResponseErrorData? Type1994 { get; set; } + public global::OpenRouter.OutputItemCustomToolCallType? Type1994 { get; set; } /// /// /// - public global::OpenRouter.PaymentRequiredResponse? Type1995 { get; set; } + public global::OpenRouter.OutputItemDoneEvent? Type1995 { get; set; } /// /// /// - public global::OpenRouter.PaymentRequiredResponseErrorData? Type1996 { get; set; } + public global::OpenRouter.Item2? Type1996 { get; set; } /// /// /// - public global::OpenRouter.PDFParserEngine? Type1997 { get; set; } + public global::OpenRouter.OutputItemDoneEventItemDiscriminator? Type1997 { get; set; } /// /// /// - public global::OpenRouter.PDFParserEngineVariant1? Type1998 { get; set; } + public global::OpenRouter.OutputItemDoneEventItemDiscriminatorType? Type1998 { get; set; } /// /// /// - public global::OpenRouter.PDFParserEngineVariant2? Type1999 { get; set; } + public global::OpenRouter.OutputItemDoneEventType? Type1999 { get; set; } /// /// /// - public global::OpenRouter.PercentileLatencyCutoffs? Type2000 { get; set; } + public global::OpenRouter.WebSearchStatus? Type2000 { get; set; } /// /// /// - public global::OpenRouter.PercentileStats? Type2001 { get; set; } + public global::OpenRouter.OutputItemFileSearchCallType? Type2001 { get; set; } /// /// /// - public global::OpenRouter.PercentileThroughputCutoffs? Type2002 { get; set; } + public global::OpenRouter.OutputItemFunctionCallStatusVariant1? Type2002 { get; set; } /// /// /// - public global::OpenRouter.PipelineStageType? Type2003 { get; set; } + public global::OpenRouter.OutputItemFunctionCallStatusVariant2? Type2003 { get; set; } /// /// /// - public global::OpenRouter.AnyOf>? Type2004 { get; set; } + public global::OpenRouter.OutputItemFunctionCallStatusVariant3? Type2004 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2005 { get; set; } + public global::OpenRouter.OutputItemFunctionCallType? Type2005 { get; set; } /// /// /// - public global::OpenRouter.PredictionContentText? Type2006 { get; set; } + public global::OpenRouter.OutputItemImageGenerationCallType? Type2006 { get; set; } /// /// /// - public global::OpenRouter.PredictionType? Type2007 { get; set; } + public global::System.Collections.Generic.IList? Type2007 { get; set; } /// /// /// - public global::OpenRouter.PredictionContentTextType? Type2008 { get; set; } + public global::OpenRouter.AnyOf? Type2008 { get; set; } /// /// /// - public global::OpenRouter.PreferredMaxLatency? Type2009 { get; set; } + public global::OpenRouter.OutputItemReasoningStatusVariant1? Type2009 { get; set; } /// /// /// - public global::OpenRouter.PreferredMinThroughput? Type2010 { get; set; } + public global::OpenRouter.OutputItemReasoningStatusVariant2? Type2010 { get; set; } /// /// /// - public global::OpenRouter.PresetStatus? Type2011 { get; set; } + public global::OpenRouter.OutputItemReasoningStatusVariant3? Type2011 { get; set; } /// /// /// - public global::OpenRouter.PresetWithDesignatedVersionVariant2? Type2012 { get; set; } + public global::OpenRouter.OutputItemReasoningType? Type2012 { get; set; } /// /// /// - public global::OpenRouter.Preview20250311WebSearchServerToolType? Type2013 { get; set; } + public global::OpenRouter.OutputShellCallItem? Type2013 { get; set; } /// /// /// - public global::OpenRouter.PreviewWebSearchUserLocation? Type2014 { get; set; } + public global::OpenRouter.OutputShellCallOutputItem? Type2014 { get; set; } /// /// /// - public global::OpenRouter.PreviewWebSearchServerToolType? Type2015 { get; set; } + public global::OpenRouter.OutputToolSearchCallItem? Type2015 { get; set; } /// /// /// - public global::OpenRouter.PreviewWebSearchUserLocationType? Type2016 { get; set; } + public global::OpenRouter.OutputItemsDiscriminator? Type2016 { get; set; } /// /// /// - public global::OpenRouter.PricingOverride? Type2017 { get; set; } + public global::OpenRouter.OutputItemsDiscriminatorType? Type2017 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2018 { get; set; } + public global::OpenRouter.OutputItemWebSearchCallActionVariant1? Type2018 { get; set; } /// /// /// - public global::OpenRouter.PricingOverrideUtcDay? Type2019 { get; set; } + public global::System.Collections.Generic.IList? Type2019 { get; set; } /// /// /// - public global::OpenRouter.PrivateEndpoint? Type2020 { get; set; } + public global::OpenRouter.WebSearchSource? Type2020 { get; set; } /// /// /// - public global::OpenRouter.PrivateEndpointSettings? Type2021 { get; set; } + public global::OpenRouter.OutputItemWebSearchCallActionVariant1Type? Type2021 { get; set; } /// /// /// - public global::OpenRouter.PrivateEndpointStatus? Type2022 { get; set; } + public global::OpenRouter.OutputItemWebSearchCallActionVariant2? Type2022 { get; set; } /// /// /// - public global::OpenRouter.PrivateEndpointCheck? Type2023 { get; set; } + public global::OpenRouter.OutputItemWebSearchCallActionVariant2Type? Type2023 { get; set; } /// /// /// - public global::OpenRouter.PrivateEndpointCheckReason? Type2024 { get; set; } + public global::OpenRouter.OutputItemWebSearchCallActionVariant3? Type2024 { get; set; } /// /// /// - public global::OpenRouter.PrivateEndpointParameterCheck? Type2025 { get; set; } + public global::OpenRouter.OutputItemWebSearchCallActionVariant3Type? Type2025 { get; set; } /// /// /// - public global::OpenRouter.PrivateEndpointQuantization? Type2026 { get; set; } + public global::OpenRouter.OutputItemWebSearchCallType? Type2026 { get; set; } /// /// /// - public global::OpenRouter.PrivateEndpointReasoningReturnMechanism? Type2027 { get; set; } + public global::OpenRouter.OutputMcpServerToolItemType? Type2027 { get; set; } /// /// /// - public global::OpenRouter.PrivateEndpointResponse? Type2028 { get; set; } + public global::OpenRouter.OutputMemoryServerToolItemAction? Type2028 { get; set; } /// /// /// - public global::OpenRouter.PrivateEndpointSettingsCompletions? Type2029 { get; set; } + public global::OpenRouter.OutputMemoryServerToolItemType? Type2029 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2030 { get; set; } + public global::OpenRouter.AnyOf? Type2030 { get; set; } /// /// /// - public global::OpenRouter.PrivateEndpointSettingsExcludedParameter? Type2031 { get; set; } + public global::OpenRouter.OutputMessagePhaseVariant1? Type2031 { get; set; } /// /// /// - public global::OpenRouter.PrivateEndpointSettingsInputs? Type2032 { get; set; } + public global::OpenRouter.OutputMessagePhaseVariant2? Type2032 { get; set; } /// /// /// - public global::OpenRouter.PrivateEndpointSettingsReasoning? Type2033 { get; set; } + public global::OpenRouter.OutputMessageRole? Type2033 { get; set; } /// /// /// - public global::OpenRouter.PrivateEndpointSettingsToolChoice? Type2034 { get; set; } + public global::OpenRouter.AnyOf? Type2034 { get; set; } /// /// /// - public global::OpenRouter.PrivateEndpointValidation? Type2035 { get; set; } + public global::OpenRouter.OutputMessageStatusVariant1? Type2035 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2036 { get; set; } + public global::OpenRouter.OutputMessageStatusVariant2? Type2036 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2037 { get; set; } + public global::OpenRouter.OutputMessageStatusVariant3? Type2037 { get; set; } /// /// /// - public global::OpenRouter.PrivateEndpointValidationResponse? Type2038 { get; set; } + public global::OpenRouter.OutputMessageType? Type2038 { get; set; } /// /// /// - public global::OpenRouter.PrivateProvider? Type2039 { get; set; } + public global::OpenRouter.OutputModalityEnum? Type2039 { get; set; } /// /// /// - public global::OpenRouter.PrivateProviderDataPolicy? Type2040 { get; set; } + public global::OpenRouter.OutputReasoningItemVariant2? Type2040 { get; set; } /// /// /// - public global::OpenRouter.PromptCacheBreakpointMode? Type2041 { get; set; } + public global::OpenRouter.ReasoningFormat? Type2041 { get; set; } /// /// /// - public global::OpenRouter.PromptCacheOptionsMode? Type2042 { get; set; } + public global::OpenRouter.OutputSearchModelsServerToolItemType? Type2042 { get; set; } /// /// /// - public global::OpenRouter.ProviderOverloadedResponse? Type2043 { get; set; } + public global::OpenRouter.OutputShellCallItemAction? Type2043 { get; set; } /// /// /// - public global::OpenRouter.ProviderOverloadedResponseErrorData? Type2044 { get; set; } + public global::OpenRouter.ShellCallStatus? Type2044 { get; set; } /// /// /// - public global::OpenRouter.ProviderPreferencesDataCollection? Type2045 { get; set; } + public global::OpenRouter.OutputShellCallItemType? Type2045 { get; set; } /// /// /// - public global::OpenRouter.ProviderPreferencesMaxPrice? Type2046 { get; set; } + public global::System.Collections.Generic.IList? Type2046 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2047 { get; set; } + public global::OpenRouter.OutputShellCallOutputItemFile? Type2047 { get; set; } /// /// /// - public global::OpenRouter.Quantization? Type2048 { get; set; } + public global::OpenRouter.OutputShellCallOutputItemFileType? Type2048 { get; set; } /// /// /// - public global::OpenRouter.ProviderResponseProviderName? Type2049 { get; set; } + public global::System.Collections.Generic.IList? Type2049 { get; set; } /// /// /// - public global::OpenRouter.ProviderResponseRoutedServiceTier? Type2050 { get; set; } + public global::OpenRouter.ShellCallOutputContent? Type2050 { get; set; } /// /// /// - public global::OpenRouter.ProviderSortConfigBy? Type2051 { get; set; } + public global::OpenRouter.OutputShellCallOutputItemType? Type2051 { get; set; } /// /// /// - public global::OpenRouter.ProviderSortConfigPartition? Type2052 { get; set; } + public global::OpenRouter.OutputShellServerToolItemAction? Type2052 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type2053 { get; set; } + public global::System.Collections.Generic.IList? Type2053 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointNativeTools2? Type2054 { get; set; } + public global::OpenRouter.OutputShellServerToolItemFile? Type2054 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointPerfLast30mByWorkload? Type2055 { get; set; } + public global::OpenRouter.OutputShellServerToolItemFileType? Type2055 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointPerfLast30mByWorkloadDecisions? Type2056 { get; set; } + public global::OpenRouter.OutputShellServerToolItemType? Type2056 { get; set; } /// /// /// - public global::OpenRouter.AllOf? Type2057 { get; set; } + public global::OpenRouter.OutputSubagentServerToolItemType? Type2057 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointPerfLast30mByWorkloadEmbeddings? Type2058 { get; set; } + public global::OpenRouter.OutputTextEditorServerToolItemCommand? Type2058 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointPerfLast30mByWorkloadImageGeneration? Type2059 { get; set; } + public global::OpenRouter.OutputTextEditorServerToolItemType? Type2059 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointPerfLast30mByWorkloadRerank? Type2060 { get; set; } + public global::OpenRouter.OutputToolSearchCallItemExecution? Type2060 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointPerfLast30mByWorkloadStt? Type2061 { get; set; } + public global::OpenRouter.OutputToolSearchCallItemType? Type2061 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointPerfLast30mByWorkloadTextGeneration? Type2062 { get; set; } + public global::System.Collections.Generic.IList? Type2062 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointPerfLast30mByWorkloadTts? Type2063 { get; set; } + public global::OpenRouter.OutputToolSearchServerToolItemMatche? Type2063 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointPerfLast30mByWorkloadUnknown? Type2064 { get; set; } + public global::OpenRouter.OutputToolSearchServerToolItemType? Type2064 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointPerfLast30mByWorkloadVideoGeneration? Type2065 { get; set; } + public global::OpenRouter.OutputWebFetchServerToolItemType? Type2065 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointPricing? Type2066 { get; set; } + public global::OpenRouter.OutputWebSearchServerToolItemAction? Type2066 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2067 { get; set; } + public global::System.Collections.Generic.IList? Type2067 { get; set; } /// /// /// - public global::OpenRouter.PublicServiceTier? Type2068 { get; set; } + public global::OpenRouter.OutputWebSearchServerToolItemActionSource? Type2068 { get; set; } /// /// /// - public global::OpenRouter.ToolChoiceSupport? Type2069 { get; set; } + public global::OpenRouter.OutputWebSearchServerToolItemActionSourceType? Type2069 { get; set; } /// /// /// - public global::OpenRouter.RangeCapabilityType? Type2070 { get; set; } + public global::OpenRouter.OutputWebSearchServerToolItemActionType? Type2070 { get; set; } /// /// /// - public global::OpenRouter.RankingsDailyItem? Type2071 { get; set; } + public global::OpenRouter.OutputWebSearchServerToolItemType? Type2071 { get; set; } /// /// /// - public global::OpenRouter.RankingsDailyMetaVersion? Type2072 { get; set; } + public global::OpenRouter.ParetoRouterPluginId? Type2072 { get; set; } /// /// /// - public global::OpenRouter.RankingsDailyResponse? Type2073 { get; set; } + public global::OpenRouter.ParetoRouterPluginPriceSource? Type2073 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2074 { get; set; } + public global::OpenRouter.PayloadTooLargeResponse? Type2074 { get; set; } /// /// /// - public global::OpenRouter.AllOf? Type2075 { get; set; } + public global::OpenRouter.PayloadTooLargeResponseErrorData? Type2075 { get; set; } /// /// /// - public global::OpenRouter.ReasoningConfigVariant12? Type2076 { get; set; } + public global::OpenRouter.PaymentRequiredResponse? Type2076 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDeltaEvent? Type2077 { get; set; } + public global::OpenRouter.PaymentRequiredResponseErrorData? Type2077 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailEncryptedType? Type2078 { get; set; } + public global::OpenRouter.PDFParserEngine? Type2078 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailServerToolCallType? Type2079 { get; set; } + public global::OpenRouter.PDFParserEngineVariant1? Type2079 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailSummaryType? Type2080 { get; set; } + public global::OpenRouter.PDFParserEngineVariant2? Type2080 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailTextType? Type2081 { get; set; } + public global::OpenRouter.PercentileLatencyCutoffs? Type2081 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnionDiscriminator? Type2082 { get; set; } + public global::OpenRouter.PercentileThroughputCutoffs? Type2082 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnionDiscriminatorType? Type2083 { get; set; } + public global::OpenRouter.PerfLast30mByWorkload? Type2083 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDoneEvent? Type2084 { get; set; } + public global::OpenRouter.Rerank? Type2084 { get; set; } /// /// /// - public global::OpenRouter.ReasoningItemVariant2? Type2085 { get; set; } + public global::OpenRouter.Stt? Type2085 { get; set; } /// /// /// - public global::OpenRouter.ReasoningSummaryPartAddedEvent? Type2086 { get; set; } + public global::OpenRouter.TextGeneration? Type2086 { get; set; } /// /// /// - public global::OpenRouter.ReasoningSummaryPartDoneEvent? Type2087 { get; set; } + public global::OpenRouter.Tts? Type2087 { get; set; } /// /// /// - public global::OpenRouter.ReasoningSummaryTextType? Type2088 { get; set; } + public global::OpenRouter.Unknown? Type2088 { get; set; } /// /// /// - public global::OpenRouter.ReasoningSummaryTextDeltaEvent? Type2089 { get; set; } + public global::OpenRouter.VideoGeneration? Type2089 { get; set; } /// /// /// - public global::OpenRouter.ReasoningSummaryTextDoneEvent? Type2090 { get; set; } + public global::OpenRouter.PipelineStageType? Type2090 { get; set; } /// /// /// - public global::OpenRouter.ReasoningTextContentType? Type2091 { get; set; } + public global::OpenRouter.AnyOf>? Type2091 { get; set; } /// /// /// - public global::OpenRouter.RefusalDeltaEvent? Type2092 { get; set; } + public global::System.Collections.Generic.IList? Type2092 { get; set; } /// /// /// - public global::OpenRouter.RefusalDoneEvent? Type2093 { get; set; } + public global::OpenRouter.PredictionContentText? Type2093 { get; set; } /// /// /// - public global::OpenRouter.RequestTimeoutResponse? Type2094 { get; set; } + public global::OpenRouter.PredictionType? Type2094 { get; set; } /// /// /// - public global::OpenRouter.RequestTimeoutResponseErrorData? Type2095 { get; set; } + public global::OpenRouter.PredictionContentTextType? Type2095 { get; set; } /// /// /// - public global::OpenRouter.ResponseHealingPluginId? Type2096 { get; set; } + public global::OpenRouter.PreferredMaxLatency? Type2096 { get; set; } /// /// /// - public global::OpenRouter.ResponseIncludesEnum? Type2097 { get; set; } + public global::OpenRouter.PreferredMinThroughput? Type2097 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2098 { get; set; } + public global::OpenRouter.PresetStatus? Type2098 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2099 { get; set; } + public global::OpenRouter.PresetWithDesignatedVersionVariant2? Type2099 { get; set; } /// /// /// - public global::OpenRouter.ResponseOutputTextLogprob? Type2100 { get; set; } + public global::OpenRouter.Preview20250311WebSearchServerToolType? Type2100 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2101 { get; set; } + public global::OpenRouter.PreviewWebSearchUserLocation? Type2101 { get; set; } /// /// /// - public global::OpenRouter.ResponseOutputTextLogprobTopLogprob? Type2102 { get; set; } + public global::OpenRouter.PreviewWebSearchServerToolType? Type2102 { get; set; } /// /// /// - public global::OpenRouter.ResponseOutputTextType? Type2103 { get; set; } + public global::OpenRouter.PreviewWebSearchUserLocationType? Type2103 { get; set; } /// /// /// - public global::OpenRouter.ResponsesErrorFieldCode? Type2104 { get; set; } + public global::OpenRouter.Pricing? Type2104 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequest? Type2105 { get; set; } + public global::System.Collections.Generic.IList? Type2105 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2106 { get; set; } + public global::OpenRouter.PricingOverride? Type2106 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2107 { get; set; } + public global::System.Collections.Generic.IList? Type2107 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2108 { get; set; } + public global::OpenRouter.PricingOverrideUtcDay? Type2108 { get; set; } /// /// /// - public global::OpenRouter.PluginsItem3? Type2109 { get; set; } + public global::OpenRouter.PrivateEndpoint? Type2109 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginDiscriminator? Type2110 { get; set; } + public global::OpenRouter.PrivateEndpointSettings? Type2110 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginDiscriminatorId? Type2111 { get; set; } + public global::OpenRouter.PrivateEndpointStatus? Type2111 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestServiceTier? Type2112 { get; set; } + public global::OpenRouter.PrivateEndpointCheck? Type2112 { get; set; } /// /// /// - public global::OpenRouter.AllOf? Type2113 { get; set; } + public global::OpenRouter.PrivateEndpointCheckReason? Type2113 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestToolVariant1? Type2114 { get; set; } + public global::OpenRouter.PrivateEndpointParameterCheck? Type2114 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2115 { get; set; } + public global::OpenRouter.PrivateEndpointQuantization? Type2115 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestToolVariant1AllowedCaller? Type2116 { get; set; } + public global::OpenRouter.PrivateEndpointReasoningReturnMechanism? Type2116 { get; set; } /// /// /// - public global::OpenRouter.ResponsesStreamingResponse? Type2117 { get; set; } + public global::OpenRouter.PrivateEndpointResponse? Type2117 { get; set; } /// /// /// - public global::OpenRouter.StreamEvents? Type2118 { get; set; } + public global::OpenRouter.PrivateEndpointSettingsCompletions? Type2118 { get; set; } /// /// /// - public global::OpenRouter.ScalarFilterOperator? Type2119 { get; set; } + public global::System.Collections.Generic.IList? Type2119 { get; set; } /// /// /// - public global::OpenRouter.ScimGroupMappingRole? Type2120 { get; set; } + public global::OpenRouter.PrivateEndpointSettingsExcludedParameter? Type2120 { get; set; } /// /// /// - public global::OpenRouter.ScimSyncJobStatus? Type2121 { get; set; } + public global::OpenRouter.PrivateEndpointSettingsInputs? Type2121 { get; set; } /// /// /// - public global::OpenRouter.SearchModelsServerToolOpenRouterType? Type2122 { get; set; } + public global::OpenRouter.PrivateEndpointSettingsReasoning? Type2122 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2123 { get; set; } + public global::OpenRouter.PrivateEndpointSettingsToolChoice? Type2123 { get; set; } /// /// /// - public global::OpenRouter.ServerToolInputName? Type2124 { get; set; } + public global::OpenRouter.PrivateEndpointValidation? Type2124 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2125 { get; set; } + public global::System.Collections.Generic.IList? Type2125 { get; set; } /// /// /// - public global::OpenRouter.ServerToolEngine? Type2126 { get; set; } + public global::System.Collections.Generic.IList? Type2126 { get; set; } /// /// /// - public global::OpenRouter.ServerToolNativeSupport? Type2127 { get; set; } + public global::OpenRouter.PrivateEndpointValidationResponse? Type2127 { get; set; } /// /// /// - public global::OpenRouter.ServerToolStatus? Type2128 { get; set; } + public global::OpenRouter.PrivateProvider? Type2128 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2129 { get; set; } + public global::OpenRouter.PrivateProviderDataPolicy? Type2129 { get; set; } /// /// /// - public global::OpenRouter.ServerToolSupportedApiFormat? Type2130 { get; set; } + public global::OpenRouter.PromptCacheBreakpointMode? Type2130 { get; set; } /// /// /// - public global::OpenRouter.ServerToolDetailsVariant2? Type2131 { get; set; } + public global::OpenRouter.PromptCacheOptionsMode? Type2131 { get; set; } /// /// /// - public global::OpenRouter.AllOf? Type2132 { get; set; } + public global::OpenRouter.ProviderOverloadedResponse? Type2132 { get; set; } /// /// /// - public global::OpenRouter.ServerToolDetailsVariant2NativeSupport? Type2133 { get; set; } + public global::OpenRouter.ProviderOverloadedResponseErrorData? Type2133 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2134 { get; set; } + public global::OpenRouter.ProviderPreferencesDataCollection? Type2134 { get; set; } /// /// /// - public global::OpenRouter.ServerToolNativeModel? Type2135 { get; set; } + public global::OpenRouter.ProviderPreferencesMaxPrice? Type2135 { get; set; } /// /// /// - public global::OpenRouter.ServerToolEngineByok? Type2136 { get; set; } + public global::System.Collections.Generic.IList? Type2136 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2137 { get; set; } + public global::OpenRouter.Quantization? Type2137 { get; set; } /// /// /// - public global::OpenRouter.ServerToolEngineDataRegion? Type2138 { get; set; } + public global::OpenRouter.ProviderResponseProviderName? Type2138 { get; set; } /// /// /// - public global::OpenRouter.ServerToolExecutedBy? Type2139 { get; set; } + public global::OpenRouter.ProviderResponseRoutedServiceTier? Type2139 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2140 { get; set; } + public global::OpenRouter.ProviderSortConfigBy? Type2140 { get; set; } /// /// /// - public global::OpenRouter.ServerToolPrice? Type2141 { get; set; } + public global::OpenRouter.ProviderSortConfigPartition? Type2141 { get; set; } /// /// /// - public global::OpenRouter.ServerToolEnginePricingSource? Type2142 { get; set; } + public global::System.Collections.Generic.Dictionary? Type2142 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2143 { get; set; } + public global::OpenRouter.PublicServiceTier? Type2143 { get; set; } /// /// /// - public global::OpenRouter.ServerToolInputNameApiFormat? Type2144 { get; set; } + public global::OpenRouter.ToolChoiceSupport? Type2144 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2145 { get; set; } + public global::OpenRouter.PublicZdrEndpoint? Type2145 { get; set; } /// /// /// - public global::OpenRouter.ServerToolOutputName? Type2146 { get; set; } + public global::OpenRouter.PublicZdrEndpointVariant2? Type2146 { get; set; } /// /// /// - public global::OpenRouter.ServerToolOutputNameApiFormat? Type2147 { get; set; } + public global::OpenRouter.RangeCapabilityType? Type2147 { get; set; } /// /// /// - public global::OpenRouter.ServiceUnavailableResponse? Type2148 { get; set; } + public global::OpenRouter.RankingsDailyItem? Type2148 { get; set; } /// /// /// - public global::OpenRouter.ServiceUnavailableResponseErrorData? Type2149 { get; set; } + public global::OpenRouter.RankingsDailyMetaVersion? Type2149 { get; set; } /// /// /// - public global::OpenRouter.SessionCostItem? Type2150 { get; set; } + public global::OpenRouter.RankingsDailyResponse? Type2150 { get; set; } /// /// /// - public global::OpenRouter.SessionCostItemTurnRange? Type2151 { get; set; } + public global::System.Collections.Generic.IList? Type2151 { get; set; } /// /// /// - public global::OpenRouter.SessionCostMeta? Type2152 { get; set; } + public global::OpenRouter.AllOf? Type2152 { get; set; } /// /// /// - public global::OpenRouter.SessionCostMetaVersion? Type2153 { get; set; } + public global::OpenRouter.ReasoningConfigVariant12? Type2153 { get; set; } /// /// /// - public global::OpenRouter.SessionCostResponse? Type2154 { get; set; } + public global::OpenRouter.ReasoningDeltaEvent? Type2154 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2155 { get; set; } + public global::OpenRouter.ReasoningDetailEncryptedType? Type2155 { get; set; } /// /// /// - public global::OpenRouter.SetFilterOperator? Type2156 { get; set; } + public global::OpenRouter.ReasoningDetailServerToolCallType? Type2156 { get; set; } /// /// /// - public global::OpenRouter.ShellCallItemAction? Type2157 { get; set; } + public global::OpenRouter.ReasoningDetailSummaryType? Type2157 { get; set; } /// /// /// - public global::OpenRouter.ShellCallItemType? Type2158 { get; set; } + public global::OpenRouter.ReasoningDetailTextType? Type2158 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type2159 { get; set; } + public global::OpenRouter.ReasoningDetailUnionDiscriminator? Type2159 { get; set; } /// /// /// - public global::OpenRouter.ShellCallOutputContentOutcomeVariant1? Type2160 { get; set; } + public global::OpenRouter.ReasoningDetailUnionDiscriminatorType? Type2160 { get; set; } /// /// /// - public global::OpenRouter.ShellCallOutputContentOutcomeVariant1Type? Type2161 { get; set; } + public global::OpenRouter.ReasoningDoneEvent? Type2161 { get; set; } /// /// /// - public global::OpenRouter.ShellCallOutputContentOutcomeVariant2? Type2162 { get; set; } + public global::OpenRouter.ReasoningItemVariant2? Type2162 { get; set; } /// /// /// - public global::OpenRouter.ShellCallOutputContentOutcomeVariant2Type? Type2163 { get; set; } + public global::OpenRouter.ReasoningSummaryPartAddedEvent? Type2163 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2164 { get; set; } + public global::OpenRouter.ReasoningSummaryPartDoneEvent? Type2164 { get; set; } /// /// /// - public global::OpenRouter.ShellCallOutputItemFile? Type2165 { get; set; } + public global::OpenRouter.ReasoningSummaryTextType? Type2165 { get; set; } /// /// /// - public global::OpenRouter.ShellCallOutputItemFileType? Type2166 { get; set; } + public global::OpenRouter.ReasoningSummaryTextDeltaEvent? Type2166 { get; set; } /// /// /// - public global::OpenRouter.ShellCallOutputItemType? Type2167 { get; set; } + public global::OpenRouter.ReasoningSummaryTextDoneEvent? Type2167 { get; set; } /// /// /// - public global::OpenRouter.ShellServerToolType? Type2168 { get; set; } + public global::OpenRouter.ReasoningTextContentType? Type2168 { get; set; } /// /// /// - public global::OpenRouter.ShellServerToolConfig? Type2169 { get; set; } + public global::OpenRouter.RefusalDeltaEvent? Type2169 { get; set; } /// /// /// - public global::OpenRouter.ShellServerToolOpenRouterType? Type2170 { get; set; } + public global::OpenRouter.RefusalDoneEvent? Type2170 { get; set; } /// /// /// - public global::OpenRouter.ShellServerToolEngine? Type2171 { get; set; } + public global::OpenRouter.RequestTimeoutResponse? Type2171 { get; set; } /// /// /// - public global::OpenRouter.ShellServerToolEnvironment? Type2172 { get; set; } + public global::OpenRouter.RequestTimeoutResponseErrorData? Type2172 { get; set; } /// /// /// - public global::OpenRouter.ShellServerToolEnvironmentDiscriminator? Type2173 { get; set; } + public global::OpenRouter.ResponseHealingPluginId? Type2173 { get; set; } /// /// /// - public global::OpenRouter.ShellServerToolEnvironmentDiscriminatorType? Type2174 { get; set; } + public global::OpenRouter.ResponseIncludesEnum? Type2174 { get; set; } /// /// /// - public global::OpenRouter.SpeechInput? Type2175 { get; set; } + public global::System.Collections.Generic.IList? Type2175 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2176 { get; set; } + public global::System.Collections.Generic.IList? Type2176 { get; set; } /// /// /// - public global::OpenRouter.SpeechTurn? Type2177 { get; set; } + public global::OpenRouter.ResponseOutputTextLogprob? Type2177 { get; set; } /// /// /// - public global::OpenRouter.SpeechInputReference? Type2178 { get; set; } + public global::System.Collections.Generic.IList? Type2178 { get; set; } /// /// /// - public global::OpenRouter.SpeechInputReferenceAudio? Type2179 { get; set; } + public global::OpenRouter.ResponseOutputTextLogprobTopLogprob? Type2179 { get; set; } /// /// /// - public global::OpenRouter.SpeechInputReferenceText? Type2180 { get; set; } + public global::OpenRouter.ResponseOutputTextType? Type2180 { get; set; } /// /// /// - public global::OpenRouter.SpeechInputReferenceImage? Type2181 { get; set; } + public global::OpenRouter.ResponsesErrorFieldCode? Type2181 { get; set; } /// /// /// - public global::OpenRouter.SpeechInputReferenceDiscriminator? Type2182 { get; set; } + public global::OpenRouter.ResponsesRequest? Type2182 { get; set; } /// /// /// - public global::OpenRouter.SpeechInputReferenceDiscriminatorType? Type2183 { get; set; } + public global::OpenRouter.ResponsesRequestAccessPrograms? Type2183 { get; set; } /// /// /// - public global::OpenRouter.SpeechInputReferenceAudioInput? Type2184 { get; set; } + public global::OpenRouter.ResponsesRequestAccessProgramsCyber? Type2184 { get; set; } /// /// /// - public global::OpenRouter.SpeechInputReferenceAudioType? Type2185 { get; set; } + public global::System.Collections.Generic.IList? Type2185 { get; set; } /// /// /// - public global::OpenRouter.SpeechInputReferenceImageInput? Type2186 { get; set; } + public global::System.Collections.Generic.IList? Type2186 { get; set; } /// /// /// - public global::OpenRouter.SpeechInputReferenceImageType? Type2187 { get; set; } + public global::System.Collections.Generic.IList? Type2187 { get; set; } /// /// /// - public global::OpenRouter.SpeechInputReferenceTextType? Type2188 { get; set; } + public global::OpenRouter.PluginsItem3? Type2188 { get; set; } /// /// /// - public global::OpenRouter.SpeechRequest? Type2189 { get; set; } + public global::OpenRouter.ResponsesRequestPluginDiscriminator? Type2189 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2190 { get; set; } + public global::OpenRouter.ResponsesRequestPluginDiscriminatorId? Type2190 { get; set; } /// /// /// - public global::OpenRouter.SpeechRequestProvider? Type2191 { get; set; } + public global::OpenRouter.ResponsesRequestServiceTier? Type2191 { get; set; } /// /// /// - public global::OpenRouter.SpeechRequestProviderDataCollection? Type2192 { get; set; } + public global::OpenRouter.AllOf? Type2192 { get; set; } /// /// /// - public global::OpenRouter.SpeechRequestResponseFormat? Type2193 { get; set; } + public global::OpenRouter.ResponsesRequestToolVariant1? Type2193 { get; set; } /// /// /// - public global::OpenRouter.StopServerToolsWhenCondition? Type2194 { get; set; } + public global::System.Collections.Generic.IList? Type2194 { get; set; } /// /// /// - public global::OpenRouter.StopServerToolsWhenStepCountIs? Type2195 { get; set; } + public global::OpenRouter.ResponsesRequestToolVariant1AllowedCaller? Type2195 { get; set; } /// /// /// - public global::OpenRouter.StopServerToolsWhenHasToolCall? Type2196 { get; set; } + public global::OpenRouter.ResponsesStreamingResponse? Type2196 { get; set; } /// /// /// - public global::OpenRouter.StopServerToolsWhenMaxTokensUsed? Type2197 { get; set; } + public global::OpenRouter.StreamEvents? Type2197 { get; set; } /// /// /// - public global::OpenRouter.StopServerToolsWhenMaxCost? Type2198 { get; set; } + public global::OpenRouter.ScalarFilterOperator? Type2198 { get; set; } /// /// /// - public global::OpenRouter.StopServerToolsWhenFinishReasonIs? Type2199 { get; set; } + public global::OpenRouter.ScimGroupMappingRole? Type2199 { get; set; } /// /// /// - public global::OpenRouter.StopServerToolsWhenConditionDiscriminator? Type2200 { get; set; } + public global::OpenRouter.ScimSyncJobStatus? Type2200 { get; set; } /// /// /// - public global::OpenRouter.StopServerToolsWhenConditionDiscriminatorType? Type2201 { get; set; } + public global::OpenRouter.SearchModelsServerToolOpenRouterType? Type2201 { get; set; } /// /// /// - public global::OpenRouter.StopServerToolsWhenFinishReasonIsType? Type2202 { get; set; } + public global::System.Collections.Generic.IList? Type2202 { get; set; } /// /// /// - public global::OpenRouter.StopServerToolsWhenHasToolCallType? Type2203 { get; set; } + public global::OpenRouter.ServerToolInputName? Type2203 { get; set; } /// /// /// - public global::OpenRouter.StopServerToolsWhenMaxCostType? Type2204 { get; set; } + public global::System.Collections.Generic.IList? Type2204 { get; set; } /// /// /// - public global::OpenRouter.StopServerToolsWhenMaxTokensUsedType? Type2205 { get; set; } + public global::OpenRouter.ServerToolEngine? Type2205 { get; set; } /// /// /// - public global::OpenRouter.StopServerToolsWhenStepCountIsType? Type2206 { get; set; } + public global::OpenRouter.ServerToolNativeSupport? Type2206 { get; set; } /// /// /// - public global::OpenRouter.AnyOf? Type2207 { get; set; } + public global::OpenRouter.ServerToolStatus? Type2207 { get; set; } /// /// /// - public global::OpenRouter.StreamEventsResponseCompleted? Type2208 { get; set; } + public global::System.Collections.Generic.IList? Type2208 { get; set; } /// /// /// - public global::OpenRouter.StreamEventsResponseIncomplete? Type2209 { get; set; } + public global::OpenRouter.ServerToolSupportedApiFormat? Type2209 { get; set; } /// /// /// - public global::OpenRouter.StreamEventsResponseFailed? Type2210 { get; set; } + public global::OpenRouter.ServerToolDetailsVariant2? Type2210 { get; set; } /// /// /// - public global::OpenRouter.StreamEventsResponseOutputItemAdded? Type2211 { get; set; } + public global::OpenRouter.AllOf? Type2211 { get; set; } /// /// /// - public global::OpenRouter.StreamEventsResponseOutputItemDone? Type2212 { get; set; } + public global::OpenRouter.ServerToolDetailsVariant2NativeSupport? Type2212 { get; set; } /// /// /// - public global::OpenRouter.TextDeltaEvent? Type2213 { get; set; } + public global::System.Collections.Generic.IList? Type2213 { get; set; } /// /// /// - public global::OpenRouter.TextDoneEvent? Type2214 { get; set; } + public global::OpenRouter.ServerToolNativeModel? Type2214 { get; set; } /// /// /// - public global::OpenRouter.WebSearchCallInProgressEvent? Type2215 { get; set; } + public global::OpenRouter.ServerToolEngineByok? Type2215 { get; set; } /// /// /// - public global::OpenRouter.WebSearchCallSearchingEvent? Type2216 { get; set; } + public global::System.Collections.Generic.IList? Type2216 { get; set; } /// /// /// - public global::OpenRouter.WebSearchCallCompletedEvent? Type2217 { get; set; } + public global::OpenRouter.ServerToolEngineDataRegion? Type2217 { get; set; } /// /// /// - public global::OpenRouter.StreamEventsDiscriminator? Type2218 { get; set; } + public global::OpenRouter.ServerToolExecutedBy? Type2218 { get; set; } /// /// /// - public global::OpenRouter.StreamEventsDiscriminatorType? Type2219 { get; set; } + public global::System.Collections.Generic.IList? Type2219 { get; set; } /// /// /// - public global::OpenRouter.StreamEventsResponseCompletedVariant2? Type2220 { get; set; } + public global::OpenRouter.ServerToolPrice? Type2220 { get; set; } /// /// /// - public global::OpenRouter.StreamEventsResponseFailedVariant2? Type2221 { get; set; } + public global::OpenRouter.ServerToolEnginePricingSource? Type2221 { get; set; } /// /// /// - public global::OpenRouter.StreamEventsResponseIncompleteVariant2? Type2222 { get; set; } + public global::System.Collections.Generic.IList? Type2222 { get; set; } /// /// /// - public global::OpenRouter.StreamEventsResponseOutputItemAddedVariant2? Type2223 { get; set; } + public global::OpenRouter.ServerToolInputNameApiFormat? Type2223 { get; set; } /// /// /// - public global::OpenRouter.StreamEventsResponseOutputItemDoneVariant2? Type2224 { get; set; } + public global::System.Collections.Generic.IList? Type2224 { get; set; } /// /// /// - public global::OpenRouter.StreamLogprob? Type2225 { get; set; } + public global::OpenRouter.ServerToolOutputName? Type2225 { get; set; } /// /// /// - public global::OpenRouter.StreamLogprobVariant2? Type2226 { get; set; } + public global::OpenRouter.ServerToolOutputNameApiFormat? Type2226 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2227 { get; set; } + public global::OpenRouter.ServiceUnavailableResponse? Type2227 { get; set; } /// /// /// - public global::OpenRouter.StreamLogprobTopLogprob? Type2228 { get; set; } + public global::OpenRouter.ServiceUnavailableResponseErrorData? Type2228 { get; set; } /// /// /// - public global::OpenRouter.STTEntity? Type2229 { get; set; } + public global::OpenRouter.SessionCostItem? Type2229 { get; set; } /// /// /// - public global::OpenRouter.STTInlineInputAudio? Type2230 { get; set; } + public global::OpenRouter.SessionCostItemTurnRange? Type2230 { get; set; } /// /// /// - public global::OpenRouter.STTInputAudio? Type2231 { get; set; } + public global::OpenRouter.SessionCostMeta? Type2231 { get; set; } /// /// /// - public global::OpenRouter.STTUrlInputAudio? Type2232 { get; set; } + public global::OpenRouter.SessionCostMetaVersion? Type2232 { get; set; } /// /// /// - public global::OpenRouter.STTRequest? Type2233 { get; set; } + public global::OpenRouter.SessionCostResponse? Type2233 { get; set; } /// /// /// - public global::OpenRouter.STTRequestProvider? Type2234 { get; set; } + public global::System.Collections.Generic.IList? Type2234 { get; set; } /// /// /// - public global::OpenRouter.STTRequestProviderDataCollection? Type2235 { get; set; } + public global::OpenRouter.SetFilterOperator? Type2235 { get; set; } /// /// /// - public global::OpenRouter.STTRequestResponseFormat? Type2236 { get; set; } + public global::OpenRouter.ShellCallItemAction? Type2236 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2237 { get; set; } + public global::OpenRouter.ShellCallItemType? Type2237 { get; set; } /// /// /// - public global::OpenRouter.STTTimestampGranularity? Type2238 { get; set; } + public global::OpenRouter.OneOf? Type2238 { get; set; } /// /// /// - public global::OpenRouter.STTResponse? Type2239 { get; set; } + public global::OpenRouter.ShellCallOutputContentOutcomeVariant1? Type2239 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2240 { get; set; } + public global::OpenRouter.ShellCallOutputContentOutcomeVariant1Type? Type2240 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2241 { get; set; } + public global::OpenRouter.ShellCallOutputContentOutcomeVariant2? Type2241 { get; set; } /// /// /// - public global::OpenRouter.STTSegment? Type2242 { get; set; } + public global::OpenRouter.ShellCallOutputContentOutcomeVariant2Type? Type2242 { get; set; } /// /// /// - public global::OpenRouter.STTUsage? Type2243 { get; set; } + public global::System.Collections.Generic.IList? Type2243 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2244 { get; set; } + public global::OpenRouter.ShellCallOutputItemFile? Type2244 { get; set; } /// /// /// - public global::OpenRouter.STTWord? Type2245 { get; set; } + public global::OpenRouter.ShellCallOutputItemFileType? Type2245 { get; set; } /// /// /// - public global::OpenRouter.STTWordType? Type2246 { get; set; } + public global::OpenRouter.ShellCallOutputItemType? Type2246 { get; set; } /// /// /// - public global::OpenRouter.SubagentNestedTool? Type2247 { get; set; } + public global::OpenRouter.ShellServerToolType? Type2247 { get; set; } /// /// /// - public global::OpenRouter.SubagentReasoning? Type2248 { get; set; } + public global::OpenRouter.ShellServerToolConfig? Type2248 { get; set; } /// /// /// - public global::OpenRouter.SubagentReasoningEffort? Type2249 { get; set; } + public global::OpenRouter.ShellServerToolOpenRouterType? Type2249 { get; set; } /// /// /// - public global::OpenRouter.SubagentServerToolConfig? Type2250 { get; set; } + public global::OpenRouter.ShellServerToolEngine? Type2250 { get; set; } /// /// /// - public global::OpenRouter.SubagentServerToolOpenRouterType? Type2251 { get; set; } + public global::OpenRouter.ShellServerToolEnvironment? Type2251 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2252 { get; set; } + public global::OpenRouter.ShellServerToolEnvironmentDiscriminator? Type2252 { get; set; } /// /// /// - public global::OpenRouter.SubmitGenerationFeedbackRequest? Type2253 { get; set; } + public global::OpenRouter.ShellServerToolEnvironmentDiscriminatorType? Type2253 { get; set; } /// /// /// - public global::OpenRouter.SubmitGenerationFeedbackRequestCategory? Type2254 { get; set; } + public global::OpenRouter.SpeechInput? Type2254 { get; set; } /// /// /// - public global::OpenRouter.SubmitGenerationFeedbackResponse? Type2255 { get; set; } + public global::System.Collections.Generic.IList? Type2255 { get; set; } /// /// /// - public global::OpenRouter.SubmitGenerationFeedbackResponseData? Type2256 { get; set; } + public global::OpenRouter.SpeechTurn? Type2256 { get; set; } /// /// /// - public global::OpenRouter.SwitchyardRouterPluginAlgorithm? Type2257 { get; set; } + public global::OpenRouter.SpeechInputReference? Type2257 { get; set; } /// /// /// - public global::OpenRouter.SwitchyardRouterPluginId? Type2258 { get; set; } + public global::OpenRouter.SpeechInputReferenceAudio? Type2258 { get; set; } /// /// /// - public global::OpenRouter.TaskClassificationItem? Type2259 { get; set; } + public global::OpenRouter.SpeechInputReferenceText? Type2259 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2260 { get; set; } + public global::OpenRouter.SpeechInputReferenceImage? Type2260 { get; set; } /// /// /// - public global::OpenRouter.TaskClassificationModel? Type2261 { get; set; } + public global::OpenRouter.SpeechInputReferenceDiscriminator? Type2261 { get; set; } /// /// /// - public global::OpenRouter.TaskClassificationMacroCategory? Type2262 { get; set; } + public global::OpenRouter.SpeechInputReferenceDiscriminatorType? Type2262 { get; set; } /// /// /// - public global::OpenRouter.TaskClassificationResponse? Type2263 { get; set; } + public global::OpenRouter.SpeechInputReferenceAudioInput? Type2263 { get; set; } /// /// /// - public global::OpenRouter.TaskClassificationResponseData? Type2264 { get; set; } + public global::OpenRouter.SpeechInputReferenceAudioType? Type2264 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2265 { get; set; } + public global::OpenRouter.SpeechInputReferenceImageInput? Type2265 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2266 { get; set; } + public global::OpenRouter.SpeechInputReferenceImageType? Type2266 { get; set; } /// /// /// - public global::OpenRouter.TextConfigVerbosity? Type2267 { get; set; } + public global::OpenRouter.SpeechInputReferenceTextType? Type2267 { get; set; } /// /// /// - public global::OpenRouter.TextDeltaEventVariant2? Type2268 { get; set; } + public global::OpenRouter.SpeechRequest? Type2268 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2269 { get; set; } + public global::System.Collections.Generic.IList? Type2269 { get; set; } /// /// /// - public global::OpenRouter.TextDoneEventVariant2? Type2270 { get; set; } + public global::OpenRouter.SpeechRequestProvider? Type2270 { get; set; } /// /// /// - public global::OpenRouter.TextExtendedConfigVariant2? Type2271 { get; set; } + public global::OpenRouter.SpeechRequestProviderDataCollection? Type2271 { get; set; } /// /// /// - public global::OpenRouter.TextExtendedConfigVariant2Verbosity? Type2272 { get; set; } + public global::OpenRouter.SpeechRequestResponseFormat? Type2272 { get; set; } /// /// /// - public global::OpenRouter.TokenExchangeRequest? Type2273 { get; set; } + public global::OpenRouter.StopServerToolsWhenCondition? Type2273 { get; set; } /// /// /// - public global::OpenRouter.TokenExchangeRequestGrantType? Type2274 { get; set; } + public global::OpenRouter.StopServerToolsWhenStepCountIs? Type2274 { get; set; } /// /// /// - public global::OpenRouter.TokenExchangeRequestRequestedTokenType? Type2275 { get; set; } + public global::OpenRouter.StopServerToolsWhenHasToolCall? Type2275 { get; set; } /// /// /// - public global::OpenRouter.TokenExchangeRequestScope? Type2276 { get; set; } + public global::OpenRouter.StopServerToolsWhenMaxTokensUsed? Type2276 { get; set; } /// /// /// - public global::OpenRouter.TokenExchangeRequestSubjectTokenType? Type2277 { get; set; } + public global::OpenRouter.StopServerToolsWhenMaxCost? Type2277 { get; set; } /// /// /// - public global::OpenRouter.TokenExchangeResponse? Type2278 { get; set; } + public global::OpenRouter.StopServerToolsWhenFinishReasonIs? Type2278 { get; set; } /// /// /// - public global::OpenRouter.TokenExchangeResponseIssuedTokenType? Type2279 { get; set; } + public global::OpenRouter.StopServerToolsWhenConditionDiscriminator? Type2279 { get; set; } /// /// /// - public global::OpenRouter.TokenExchangeResponseTokenType? Type2280 { get; set; } + public global::OpenRouter.StopServerToolsWhenConditionDiscriminatorType? Type2280 { get; set; } /// /// /// - public global::OpenRouter.AnyOf? Type2281 { get; set; } + public global::OpenRouter.StopServerToolsWhenFinishReasonIsType? Type2281 { get; set; } /// /// /// - public global::OpenRouter.ToolChoiceAllowedModeVariant1? Type2282 { get; set; } + public global::OpenRouter.StopServerToolsWhenHasToolCallType? Type2282 { get; set; } /// /// /// - public global::OpenRouter.ToolChoiceAllowedModeVariant2? Type2283 { get; set; } + public global::OpenRouter.StopServerToolsWhenMaxCostType? Type2283 { get; set; } /// /// /// - public global::OpenRouter.ToolChoiceAllowedType? Type2284 { get; set; } + public global::OpenRouter.StopServerToolsWhenMaxTokensUsedType? Type2284 { get; set; } /// /// /// - public global::OpenRouter.ToolSearchCallItemExecution? Type2285 { get; set; } + public global::OpenRouter.StopServerToolsWhenStepCountIsType? Type2285 { get; set; } /// /// /// - public global::OpenRouter.ToolSearchCallItemStatus? Type2286 { get; set; } + public global::OpenRouter.AnyOf? Type2286 { get; set; } /// /// /// - public global::OpenRouter.ToolSearchCallItemType? Type2287 { get; set; } + public global::OpenRouter.StreamEventsResponseCompleted? Type2287 { get; set; } /// /// /// - public global::OpenRouter.ToolSearchOutputItemExecution? Type2288 { get; set; } + public global::OpenRouter.StreamEventsResponseIncomplete? Type2288 { get; set; } /// /// /// - public global::OpenRouter.ToolSearchOutputItemStatus? Type2289 { get; set; } + public global::OpenRouter.StreamEventsResponseFailed? Type2289 { get; set; } /// /// /// - public global::OpenRouter.AllOf? Type2290 { get; set; } + public global::OpenRouter.StreamEventsResponseOutputItemAdded? Type2290 { get; set; } /// /// /// - public global::OpenRouter.ToolSearchOutputItemTool? Type2291 { get; set; } + public global::OpenRouter.StreamEventsResponseOutputItemDone? Type2291 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2292 { get; set; } + public global::OpenRouter.TextDeltaEvent? Type2292 { get; set; } /// /// /// - public global::OpenRouter.ToolSearchOutputItemToolAllowedCaller? Type2293 { get; set; } + public global::OpenRouter.TextDoneEvent? Type2293 { get; set; } /// /// /// - public global::OpenRouter.ToolSearchOutputItemTool2? Type2294 { get; set; } + public global::OpenRouter.WebSearchCallInProgressEvent? Type2294 { get; set; } /// /// /// - public global::OpenRouter.ToolSearchOutputItemType? Type2295 { get; set; } + public global::OpenRouter.WebSearchCallSearchingEvent? Type2295 { get; set; } /// /// /// - public global::OpenRouter.ToolSearchServerToolConfig? Type2296 { get; set; } + public global::OpenRouter.WebSearchCallCompletedEvent? Type2296 { get; set; } /// /// /// - public global::OpenRouter.ToolSearchServerToolType? Type2297 { get; set; } + public global::OpenRouter.StreamEventsDiscriminator? Type2297 { get; set; } /// /// /// - public global::OpenRouter.TooManyRequestsResponse? Type2298 { get; set; } + public global::OpenRouter.StreamEventsDiscriminatorType? Type2298 { get; set; } /// /// /// - public global::OpenRouter.TooManyRequestsResponseErrorData? Type2299 { get; set; } + public global::OpenRouter.StreamEventsResponseCompletedVariant2? Type2299 { get; set; } /// /// /// - public global::OpenRouter.UnauthorizedResponse? Type2300 { get; set; } + public global::OpenRouter.StreamEventsResponseFailedVariant2? Type2300 { get; set; } /// /// /// - public global::OpenRouter.UnauthorizedResponseErrorData? Type2301 { get; set; } + public global::OpenRouter.StreamEventsResponseIncompleteVariant2? Type2301 { get; set; } /// /// /// - public global::OpenRouter.UnifiedBenchmarkPricing? Type2302 { get; set; } + public global::OpenRouter.StreamEventsResponseOutputItemAddedVariant2? Type2302 { get; set; } /// /// /// - public global::OpenRouter.UnifiedBenchmarksAAItem? Type2303 { get; set; } + public global::OpenRouter.StreamEventsResponseOutputItemDoneVariant2? Type2303 { get; set; } /// /// /// - public global::OpenRouter.UnifiedBenchmarksAAItemSource? Type2304 { get; set; } + public global::OpenRouter.StreamLogprob? Type2304 { get; set; } /// /// /// - public global::OpenRouter.UnifiedBenchmarksDAItem? Type2305 { get; set; } + public global::OpenRouter.StreamLogprobVariant2? Type2305 { get; set; } /// /// /// - public global::OpenRouter.UnifiedBenchmarksDAItemSource? Type2306 { get; set; } + public global::System.Collections.Generic.IList? Type2306 { get; set; } /// /// /// - public global::OpenRouter.UnifiedBenchmarksDAItemTournamentStats? Type2307 { get; set; } + public global::OpenRouter.StreamLogprobTopLogprob? Type2307 { get; set; } /// /// /// - public global::OpenRouter.UnifiedBenchmarksMeta? Type2308 { get; set; } + public global::OpenRouter.STTEntity? Type2308 { get; set; } /// /// /// - public global::OpenRouter.UnifiedBenchmarksMetaSource? Type2309 { get; set; } + public global::OpenRouter.STTInlineInputAudio? Type2309 { get; set; } /// /// /// - public global::OpenRouter.UnifiedBenchmarksMetaVersion? Type2310 { get; set; } + public global::OpenRouter.STTInputAudio? Type2310 { get; set; } /// /// /// - public global::OpenRouter.UnifiedBenchmarksORItem? Type2311 { get; set; } + public global::OpenRouter.STTUrlInputAudio? Type2311 { get; set; } /// /// /// - public global::OpenRouter.UnifiedBenchmarksORItemBenchmarkType? Type2312 { get; set; } + public global::OpenRouter.STTRequest? Type2312 { get; set; } /// /// /// - public global::OpenRouter.UnifiedBenchmarksORItemSource? Type2313 { get; set; } + public global::OpenRouter.STTRequestProvider? Type2313 { get; set; } /// /// /// - public global::OpenRouter.UnifiedBenchmarksResponse? Type2314 { get; set; } + public global::OpenRouter.STTRequestProviderDataCollection? Type2314 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type2315 { get; set; } + public global::OpenRouter.STTRequestResponseFormat? Type2315 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type2316 { get; set; } + public global::System.Collections.Generic.IList? Type2316 { get; set; } /// /// /// - public global::OpenRouter.UnifiedBenchmarksSearchItem? Type2317 { get; set; } + public global::OpenRouter.STTTimestampGranularity? Type2317 { get; set; } /// /// /// - public global::OpenRouter.UnifiedBenchmarksSearchItemBenchmarkType? Type2318 { get; set; } + public global::OpenRouter.STTResponse? Type2318 { get; set; } /// /// /// - public global::OpenRouter.UnifiedBenchmarksSearchItemPrimaryMetric? Type2319 { get; set; } + public global::System.Collections.Generic.IList? Type2319 { get; set; } /// /// /// - public global::OpenRouter.UnifiedBenchmarksSearchRunConfig? Type2320 { get; set; } + public global::System.Collections.Generic.IList? Type2320 { get; set; } /// /// /// - public global::OpenRouter.UnifiedBenchmarksSearchItemSearchSurface? Type2321 { get; set; } + public global::OpenRouter.STTSegment? Type2321 { get; set; } /// /// /// - public global::OpenRouter.UnifiedBenchmarksSearchItemSource? Type2322 { get; set; } + public global::OpenRouter.STTUsage? Type2322 { get; set; } /// /// /// - public global::OpenRouter.UnprocessableEntityResponse? Type2323 { get; set; } + public global::System.Collections.Generic.IList? Type2323 { get; set; } /// /// /// - public global::OpenRouter.UnprocessableEntityResponseErrorData? Type2324 { get; set; } + public global::OpenRouter.STTWord? Type2324 { get; set; } /// /// /// - public global::OpenRouter.UpdateBYOKKeyRequest? Type2325 { get; set; } + public global::OpenRouter.STTWordType? Type2325 { get; set; } /// /// /// - public global::OpenRouter.UpdateBYOKKeyRequestDeclaredRegion? Type2326 { get; set; } + public global::OpenRouter.SubagentNestedTool? Type2326 { get; set; } /// /// /// - public global::OpenRouter.UpdateBYOKKeyResponse? Type2327 { get; set; } + public global::OpenRouter.SubagentReasoning? Type2327 { get; set; } /// /// /// - public global::OpenRouter.UpdateExternalUserRequest? Type2328 { get; set; } + public global::OpenRouter.SubagentReasoningEffort? Type2328 { get; set; } /// /// /// - public global::OpenRouter.UpdateGuardrailRequest? Type2329 { get; set; } + public global::OpenRouter.SubagentServerToolConfig? Type2329 { get; set; } /// /// /// - public global::OpenRouter.UpdateGuardrailResponse? Type2330 { get; set; } + public global::OpenRouter.SubagentServerToolOpenRouterType? Type2330 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationRequest? Type2331 { get; set; } + public global::System.Collections.Generic.IList? Type2331 { get; set; } /// /// /// - public global::OpenRouter.AllOf? Type2332 { get; set; } + public global::OpenRouter.SubmitGenerationFeedbackRequest? Type2332 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponse? Type2333 { get; set; } + public global::OpenRouter.SubmitGenerationFeedbackRequestCategory? Type2333 { get; set; } /// /// /// - public global::OpenRouter.UpdateOrganizationSettingsRequest? Type2334 { get; set; } + public global::OpenRouter.SubmitGenerationFeedbackResponse? Type2334 { get; set; } /// /// /// - public global::OpenRouter.UpdatePrivateEndpointParametersRequest? Type2335 { get; set; } + public global::OpenRouter.SubmitGenerationFeedbackResponseData? Type2335 { get; set; } /// /// /// - public global::OpenRouter.UpdatePrivateEndpointPricingRequest? Type2336 { get; set; } + public global::OpenRouter.SwitchyardRouterPluginAlgorithm? Type2336 { get; set; } /// /// /// - public global::OpenRouter.UpdatePrivateEndpointRequest? Type2337 { get; set; } + public global::OpenRouter.SwitchyardRouterPluginId? Type2337 { get; set; } /// /// /// - public global::OpenRouter.UpdatePrivateEndpointRequestDeclaredRegion? Type2338 { get; set; } + public global::OpenRouter.TaskClassificationItem? Type2338 { get; set; } /// /// /// - public global::OpenRouter.AllOf? Type2339 { get; set; } + public global::System.Collections.Generic.IList? Type2339 { get; set; } /// /// /// - public global::OpenRouter.AllOf? Type2340 { get; set; } + public global::OpenRouter.TaskClassificationModel? Type2340 { get; set; } /// /// /// - public global::OpenRouter.UpdatePrivateEndpointSettingsRequestCompletions? Type2341 { get; set; } + public global::OpenRouter.TaskClassificationMacroCategory? Type2341 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2342 { get; set; } + public global::OpenRouter.TaskClassificationResponse? Type2342 { get; set; } /// /// /// - public global::OpenRouter.UpdatePrivateEndpointSettingsRequestExcludedParameter? Type2343 { get; set; } + public global::OpenRouter.TaskClassificationResponseData? Type2343 { get; set; } /// /// /// - public global::OpenRouter.UpdatePrivateEndpointSettingsRequestInputs? Type2344 { get; set; } + public global::System.Collections.Generic.IList? Type2344 { get; set; } /// /// /// - public global::OpenRouter.UpdatePrivateEndpointSettingsRequestReasoning? Type2345 { get; set; } + public global::System.Collections.Generic.IList? Type2345 { get; set; } /// /// /// - public global::OpenRouter.UpdatePrivateEndpointSettingsRequestToolChoice? Type2346 { get; set; } + public global::OpenRouter.TextConfigVerbosity? Type2346 { get; set; } /// /// /// - public global::OpenRouter.UpdatePrivateProviderRequest? Type2347 { get; set; } + public global::OpenRouter.TextDeltaEventVariant2? Type2347 { get; set; } /// /// /// - public global::OpenRouter.UpdatePrivateProviderRequestDataPolicy? Type2348 { get; set; } + public global::System.Collections.Generic.IList? Type2348 { get; set; } /// /// /// - public global::OpenRouter.UpdateScimGroupMappingRequest? Type2349 { get; set; } + public global::OpenRouter.TextDoneEventVariant2? Type2349 { get; set; } /// /// /// - public global::OpenRouter.UpdateScimGroupMappingRequestRole? Type2350 { get; set; } + public global::OpenRouter.TextExtendedConfigVariant2? Type2350 { get; set; } /// /// /// - public global::OpenRouter.UpdateScimGroupMappingResponse? Type2351 { get; set; } + public global::OpenRouter.TextExtendedConfigVariant2Verbosity? Type2351 { get; set; } /// /// /// - public global::OpenRouter.UpdateWorkspaceRequest? Type2352 { get; set; } + public global::OpenRouter.TokenExchangeRequest? Type2352 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2353 { get; set; } + public global::OpenRouter.TokenExchangeRequestGrantType? Type2353 { get; set; } /// /// /// - public global::OpenRouter.UpdateWorkspaceRequestDisabledServerTool? Type2354 { get; set; } + public global::OpenRouter.TokenExchangeRequestRequestedTokenType? Type2354 { get; set; } /// /// /// - public global::OpenRouter.UpdateWorkspaceResponse? Type2355 { get; set; } + public global::OpenRouter.TokenExchangeRequestScope? Type2355 { get; set; } /// /// /// - public global::OpenRouter.UpsertWorkspaceBudgetRequest? Type2356 { get; set; } + public global::OpenRouter.TokenExchangeRequestSubjectTokenType? Type2356 { get; set; } /// /// /// - public global::OpenRouter.UpsertWorkspaceBudgetResponse? Type2357 { get; set; } + public global::OpenRouter.TokenExchangeResponse? Type2357 { get; set; } /// /// /// - public global::OpenRouter.URLCitationType? Type2358 { get; set; } + public global::OpenRouter.TokenExchangeResponseIssuedTokenType? Type2358 { get; set; } /// /// /// - public global::OpenRouter.UsageVariant12? Type2359 { get; set; } + public global::OpenRouter.TokenExchangeResponseTokenType? Type2359 { get; set; } /// /// /// - public global::OpenRouter.UsageVariant1CostDetails? Type2360 { get; set; } + public global::OpenRouter.AnyOf? Type2360 { get; set; } /// /// /// - public global::OpenRouter.ValidatePrivateEndpointRequest? Type2361 { get; set; } + public global::OpenRouter.ToolChoiceAllowedModeVariant1? Type2361 { get; set; } /// /// /// - public global::OpenRouter.VaultEffectiveSecret? Type2362 { get; set; } + public global::OpenRouter.ToolChoiceAllowedModeVariant2? Type2362 { get; set; } /// /// /// - public global::OpenRouter.VaultEffectiveSecretScope? Type2363 { get; set; } + public global::OpenRouter.ToolChoiceAllowedType? Type2363 { get; set; } /// /// /// - public global::OpenRouter.VaultEffectiveSecretListResponse? Type2364 { get; set; } + public global::OpenRouter.ToolSearchCallItemExecution? Type2364 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2365 { get; set; } + public global::OpenRouter.ToolSearchCallItemStatus? Type2365 { get; set; } /// /// /// - public global::OpenRouter.VaultRoutingTable? Type2366 { get; set; } + public global::OpenRouter.ToolSearchCallItemType? Type2366 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2367 { get; set; } + public global::OpenRouter.ToolSearchOutputItemExecution? Type2367 { get; set; } /// /// /// - public global::OpenRouter.VaultRoutingTableCustomOrigin? Type2368 { get; set; } + public global::OpenRouter.ToolSearchOutputItemStatus? Type2368 { get; set; } /// /// /// - public global::OpenRouter.VaultRoutingTableCustomOriginStatus? Type2369 { get; set; } + public global::OpenRouter.AllOf? Type2369 { get; set; } /// /// /// - public global::OpenRouter.VaultRoutingTableCustomOriginStatusState? Type2370 { get; set; } + public global::OpenRouter.ToolSearchOutputItemTool? Type2370 { get; set; } /// /// /// - public global::OpenRouter.VaultRoutingTableGithub? Type2371 { get; set; } + public global::System.Collections.Generic.IList? Type2371 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2372 { get; set; } + public global::OpenRouter.ToolSearchOutputItemToolAllowedCaller? Type2372 { get; set; } /// /// /// - public global::OpenRouter.VaultRoutingTableGithubApp? Type2373 { get; set; } + public global::OpenRouter.ToolSearchOutputItemTool2? Type2373 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2374 { get; set; } + public global::OpenRouter.ToolSearchOutputItemType? Type2374 { get; set; } /// /// /// - public global::OpenRouter.VaultRoutingTableGithubAppInstallation? Type2375 { get; set; } + public global::OpenRouter.ToolSearchServerToolConfig? Type2375 { get; set; } /// /// /// - public global::OpenRouter.VaultRoutingTableGithubAppInstallationAccountType? Type2376 { get; set; } + public global::OpenRouter.ToolSearchServerToolType? Type2376 { get; set; } /// /// /// - public global::OpenRouter.VaultRoutingTableGithubAppInstallationCoverage? Type2377 { get; set; } + public global::OpenRouter.TooManyRequestsResponse? Type2377 { get; set; } /// /// /// - public global::OpenRouter.VaultRoutingTableGithubAppInstallationCoverageSelection? Type2378 { get; set; } + public global::OpenRouter.TooManyRequestsResponseErrorData? Type2378 { get; set; } /// /// /// - public global::OpenRouter.VaultRoutingTableGithubAppInstallationShadowedBy? Type2379 { get; set; } + public global::OpenRouter.UnauthorizedResponse? Type2379 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2380 { get; set; } + public global::OpenRouter.UnauthorizedResponseErrorData? Type2380 { get; set; } /// /// /// - public global::OpenRouter.VaultRoutingTableGithubAppMemberLink? Type2381 { get; set; } + public global::OpenRouter.UnifiedBenchmarkPricing? Type2381 { get; set; } /// /// /// - public global::OpenRouter.VaultRoutingTableGithubAppMemberLinkVia? Type2382 { get; set; } + public global::OpenRouter.UnifiedBenchmarksAAItem? Type2382 { get; set; } /// /// /// - public global::OpenRouter.VaultRoutingTableGithubAppScope? Type2383 { get; set; } + public global::OpenRouter.UnifiedBenchmarksAAItemSource? Type2383 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2384 { get; set; } + public global::OpenRouter.UnifiedBenchmarksDAItem? Type2384 { get; set; } /// /// /// - public global::OpenRouter.VaultRoutingTableGithubToken? Type2385 { get; set; } + public global::OpenRouter.UnifiedBenchmarksDAItemSource? Type2385 { get; set; } /// /// /// - public global::OpenRouter.VaultRoutingTableGithubTokenScope? Type2386 { get; set; } + public global::OpenRouter.UnifiedBenchmarksDAItemTournamentStats? Type2386 { get; set; } /// /// /// - public global::OpenRouter.VaultRoutingTableGoogle? Type2387 { get; set; } + public global::OpenRouter.UnifiedBenchmarksMeta? Type2387 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2388 { get; set; } + public global::OpenRouter.UnifiedBenchmarksMetaSource? Type2388 { get; set; } /// /// /// - public global::OpenRouter.VaultRoutingTableGoogleAccount? Type2389 { get; set; } + public global::OpenRouter.UnifiedBenchmarksMetaVersion? Type2389 { get; set; } /// /// /// - public global::OpenRouter.VaultRoutingTableGoogleAccountScope? Type2390 { get; set; } + public global::OpenRouter.UnifiedBenchmarksORItem? Type2390 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2391 { get; set; } + public global::OpenRouter.UnifiedBenchmarksORItemBenchmarkType? Type2391 { get; set; } /// /// /// - public global::OpenRouter.VaultRoutingTableHostRule? Type2392 { get; set; } + public global::OpenRouter.UnifiedBenchmarksORItemSource? Type2392 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2393 { get; set; } + public global::OpenRouter.UnifiedBenchmarksResponse? Type2393 { get; set; } /// /// /// - public global::OpenRouter.VaultRoutingTableMcpOrigin? Type2394 { get; set; } + public global::System.Collections.Generic.IList>? Type2394 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2395 { get; set; } + public global::OpenRouter.OneOf? Type2395 { get; set; } /// /// /// - public global::OpenRouter.VaultRoutingTableMcpOriginRoute? Type2396 { get; set; } + public global::OpenRouter.UnifiedBenchmarksSearchItem? Type2396 { get; set; } /// /// /// - public global::OpenRouter.VaultRoutingTableMcpOriginStatus? Type2397 { get; set; } + public global::OpenRouter.UnifiedBenchmarksSearchItemBenchmarkType? Type2397 { get; set; } /// /// /// - public global::OpenRouter.VaultRoutingTableMcpOriginStatusState? Type2398 { get; set; } + public global::OpenRouter.UnifiedBenchmarksSearchItemPrimaryMetric? Type2398 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2399 { get; set; } + public global::OpenRouter.UnifiedBenchmarksSearchRunConfig? Type2399 { get; set; } /// /// /// - public global::OpenRouter.VaultRoutingTableSecret? Type2400 { get; set; } + public global::OpenRouter.UnifiedBenchmarksSearchItemSearchSurface? Type2400 { get; set; } /// /// /// - public global::OpenRouter.VaultRoutingTableSecretScope? Type2401 { get; set; } + public global::OpenRouter.UnifiedBenchmarksSearchItemSource? Type2401 { get; set; } /// /// /// - public global::OpenRouter.VaultRoutingTableSlack? Type2402 { get; set; } + public global::OpenRouter.UnprocessableEntityResponse? Type2402 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2403 { get; set; } + public global::OpenRouter.UnprocessableEntityResponseErrorData? Type2403 { get; set; } /// /// /// - public global::OpenRouter.VaultRoutingTableSlackMemberLink? Type2404 { get; set; } + public global::OpenRouter.UpdateBYOKKeyRequest? Type2404 { get; set; } /// /// /// - public global::OpenRouter.VaultSecret? Type2405 { get; set; } + public global::OpenRouter.UpdateBYOKKeyRequestDeclaredRegion? Type2405 { get; set; } /// /// /// - public global::OpenRouter.VaultSecretCopyRequest? Type2406 { get; set; } + public global::OpenRouter.UpdateBYOKKeyResponse? Type2406 { get; set; } /// /// /// - public global::OpenRouter.VaultSecretCopyResponse? Type2407 { get; set; } + public global::OpenRouter.UpdateExternalUserRequest? Type2407 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2408 { get; set; } + public global::OpenRouter.UpdateGuardrailRequest? Type2408 { get; set; } /// /// /// - public global::OpenRouter.VaultSecretListResponse? Type2409 { get; set; } + public global::OpenRouter.UpdateGuardrailResponse? Type2409 { get; set; } /// /// /// - public global::OpenRouter.VaultSecretResponse? Type2410 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationRequest? Type2410 { get; set; } /// /// /// - public global::OpenRouter.VaultSecretWriteRequest? Type2411 { get; set; } + public global::OpenRouter.AllOf? Type2411 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequest? Type2412 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponse? Type2412 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequestAspectRatio? Type2413 { get; set; } + public global::OpenRouter.UpdateOrganizationSettingsRequest? Type2413 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2414 { get; set; } + public global::OpenRouter.UpdatePrivateEndpointParametersRequest? Type2414 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2415 { get; set; } + public global::OpenRouter.UpdatePrivateEndpointPricingRequest? Type2415 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequestProvider? Type2416 { get; set; } + public global::OpenRouter.UpdatePrivateEndpointRequest? Type2416 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequestResolution? Type2417 { get; set; } + public global::OpenRouter.UpdatePrivateEndpointRequestDeclaredRegion? Type2417 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationResponse? Type2418 { get; set; } + public global::OpenRouter.AllOf? Type2418 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationResponseStatus? Type2419 { get; set; } + public global::OpenRouter.AllOf? Type2419 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationUsage? Type2420 { get; set; } + public global::OpenRouter.UpdatePrivateEndpointSettingsRequestCompletions? Type2420 { get; set; } /// /// /// - public global::OpenRouter.VideoModel? Type2421 { get; set; } + public global::System.Collections.Generic.IList? Type2421 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2422 { get; set; } + public global::OpenRouter.UpdatePrivateEndpointSettingsRequestExcludedParameter? Type2422 { get; set; } /// /// /// - public global::OpenRouter.VideoModelSupportedAspectRatio? Type2423 { get; set; } + public global::OpenRouter.UpdatePrivateEndpointSettingsRequestInputs? Type2423 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2424 { get; set; } + public global::OpenRouter.UpdatePrivateEndpointSettingsRequestReasoning? Type2424 { get; set; } /// /// /// - public global::OpenRouter.VideoModelSupportedFrameImage? Type2425 { get; set; } + public global::OpenRouter.UpdatePrivateEndpointSettingsRequestToolChoice? Type2425 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2426 { get; set; } + public global::OpenRouter.UpdatePrivateProviderRequest? Type2426 { get; set; } /// /// /// - public global::OpenRouter.VideoModelSupportedResolution? Type2427 { get; set; } + public global::OpenRouter.UpdatePrivateProviderRequestDataPolicy? Type2427 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2428 { get; set; } + public global::OpenRouter.UpdateScimGroupMappingRequest? Type2428 { get; set; } /// /// /// - public global::OpenRouter.VideoModelSupportedSize? Type2429 { get; set; } + public global::OpenRouter.UpdateScimGroupMappingRequestRole? Type2429 { get; set; } /// /// /// - public global::OpenRouter.VideoModelUpscaleFactor? Type2430 { get; set; } + public global::OpenRouter.UpdateScimGroupMappingResponse? Type2430 { get; set; } /// /// /// - public global::OpenRouter.VideoModelsListResponse? Type2431 { get; set; } + public global::OpenRouter.UpdateWorkspaceRequest? Type2431 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2432 { get; set; } + public global::System.Collections.Generic.IList? Type2432 { get; set; } /// /// /// - public global::OpenRouter.WebFetchEngineEnum? Type2433 { get; set; } + public global::OpenRouter.UpdateWorkspaceRequestDisabledServerTool? Type2433 { get; set; } /// /// /// - public global::OpenRouter.WebFetchPluginId? Type2434 { get; set; } + public global::OpenRouter.UpdateWorkspaceResponse? Type2434 { get; set; } /// /// /// - public global::OpenRouter.WebFetchServerToolConfig? Type2435 { get; set; } + public global::OpenRouter.UpsertWorkspaceBudgetRequest? Type2435 { get; set; } /// /// /// - public global::OpenRouter.WebFetchServerToolType? Type2436 { get; set; } + public global::OpenRouter.UpsertWorkspaceBudgetResponse? Type2436 { get; set; } /// /// /// - public global::OpenRouter.WebSearchEngine? Type2437 { get; set; } + public global::OpenRouter.URLCitationType? Type2437 { get; set; } /// /// /// - public global::OpenRouter.WebSearchPluginId? Type2438 { get; set; } + public global::OpenRouter.UsageVariant12? Type2438 { get; set; } /// /// /// - public global::OpenRouter.AllOf? Type2439 { get; set; } + public global::OpenRouter.UsageVariant1CostDetails? Type2439 { get; set; } /// /// /// - public global::OpenRouter.WebSearchServerToolType? Type2440 { get; set; } + public global::OpenRouter.ValidatePrivateEndpointRequest? Type2440 { get; set; } /// /// /// - public global::OpenRouter.WebSearchServerToolConfig? Type2441 { get; set; } + public global::OpenRouter.VaultEffectiveSecret? Type2441 { get; set; } /// /// /// - public global::OpenRouter.WebSearchServerToolOpenRouterType? Type2442 { get; set; } + public global::OpenRouter.VaultEffectiveSecretScope? Type2442 { get; set; } /// /// /// - public global::OpenRouter.WebSearchSourceType? Type2443 { get; set; } + public global::OpenRouter.VaultEffectiveSecretListResponse? Type2443 { get; set; } /// /// /// - public global::OpenRouter.WebSearchUserLocationType? Type2444 { get; set; } + public global::System.Collections.Generic.IList? Type2444 { get; set; } /// /// /// - public global::OpenRouter.WebSearchUserLocationServerToolType? Type2445 { get; set; } + public global::OpenRouter.VaultRoutingTable? Type2445 { get; set; } /// /// /// - public global::OpenRouter.WorkspaceBudgetResetInterval? Type2446 { get; set; } + public global::System.Collections.Generic.IList? Type2446 { get; set; } /// /// /// - public global::OpenRouter.WorkspaceBudgetInterval? Type2447 { get; set; } + public global::OpenRouter.VaultRoutingTableCustomOrigin? Type2447 { get; set; } /// /// /// - public global::OpenRouter.WorkspaceMemberRole? Type2448 { get; set; } + public global::OpenRouter.VaultRoutingTableCustomOriginStatus? Type2448 { get; set; } /// /// /// - public global::OpenRouter.QueryAnalyticsRequest? Type2449 { get; set; } + public global::OpenRouter.VaultRoutingTableCustomOriginStatusState? Type2449 { get; set; } /// /// /// - public global::OpenRouter.QueryAnalyticsRequestClassifierDimensions? Type2450 { get; set; } + public global::OpenRouter.VaultRoutingTableGithub? Type2450 { get; set; } /// /// /// - public global::OpenRouter.QueryAnalyticsRequestClassifierFilters? Type2451 { get; set; } + public global::System.Collections.Generic.IList? Type2451 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2452 { get; set; } + public global::OpenRouter.VaultRoutingTableGithubApp? Type2452 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2453 { get; set; } + public global::System.Collections.Generic.IList? Type2453 { get; set; } /// /// /// - public global::OpenRouter.QueryAnalyticsRequestOrderBy? Type2454 { get; set; } + public global::OpenRouter.VaultRoutingTableGithubAppInstallation? Type2454 { get; set; } /// /// /// - public global::OpenRouter.QueryAnalyticsRequestOrderByDirection? Type2455 { get; set; } + public global::OpenRouter.VaultRoutingTableGithubAppInstallationAccountType? Type2455 { get; set; } /// /// /// - public global::OpenRouter.QueryAnalyticsRequestTimeRange? Type2456 { get; set; } + public global::OpenRouter.VaultRoutingTableGithubAppInstallationCoverage? Type2456 { get; set; } /// /// /// - public global::OpenRouter.CreateAudioTranscriptionsRequest? Type2457 { get; set; } + public global::OpenRouter.VaultRoutingTableGithubAppInstallationCoverageSelection? Type2457 { get; set; } /// /// /// - public byte[]? Type2458 { get; set; } + public global::OpenRouter.VaultRoutingTableGithubAppInstallationShadowedBy? Type2458 { get; set; } /// /// /// - public global::OpenRouter.CreateAudioTranscriptionsRequestResponseFormat? Type2459 { get; set; } + public global::System.Collections.Generic.IList? Type2459 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2460 { get; set; } + public global::OpenRouter.VaultRoutingTableGithubAppMemberLink? Type2460 { get; set; } /// /// /// - public global::OpenRouter.CreateAudioTranscriptionsRequestTimestampGranularitie? Type2461 { get; set; } + public global::OpenRouter.VaultRoutingTableGithubAppMemberLinkVia? Type2461 { get; set; } /// /// /// - public global::OpenRouter.ExchangeAuthCodeForAPIKeyRequest? Type2462 { get; set; } + public global::OpenRouter.VaultRoutingTableGithubAppScope? Type2462 { get; set; } /// /// /// - public global::OpenRouter.ExchangeAuthCodeForAPIKeyRequestCodeChallengeMethod? Type2463 { get; set; } + public global::System.Collections.Generic.IList? Type2463 { get; set; } /// /// /// - public global::OpenRouter.CreateAuthKeysCodeRequest? Type2464 { get; set; } + public global::OpenRouter.VaultRoutingTableGithubToken? Type2464 { get; set; } /// /// /// - public global::OpenRouter.CreateAuthKeysCodeRequestCodeChallengeMethod? Type2465 { get; set; } + public global::OpenRouter.VaultRoutingTableGithubTokenScope? Type2465 { get; set; } /// /// /// - public global::OpenRouter.CreateAuthKeysCodeRequestUsageLimitType? Type2466 { get; set; } + public global::OpenRouter.VaultRoutingTableGoogle? Type2466 { get; set; } /// /// /// - public global::OpenRouter.CreateEmbeddingsRequest? Type2467 { get; set; } + public global::System.Collections.Generic.IList? Type2467 { get; set; } /// /// /// - public global::OpenRouter.CreateEmbeddingsRequestEncodingFormat? Type2468 { get; set; } + public global::OpenRouter.VaultRoutingTableGoogleAccount? Type2468 { get; set; } /// /// /// - public global::OpenRouter.AnyOf, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>, global::System.Collections.Generic.IList>? Type2469 { get; set; } + public global::OpenRouter.VaultRoutingTableGoogleAccountScope? Type2469 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type2470 { get; set; } + public global::System.Collections.Generic.IList? Type2470 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2471 { get; set; } + public global::OpenRouter.VaultRoutingTableHostRule? Type2471 { get; set; } /// /// /// - public global::OpenRouter.CreateEmbeddingsRequestInputVariant5Item? Type2472 { get; set; } + public global::System.Collections.Generic.IList? Type2472 { get; set; } /// /// /// - public global::OpenRouter.CreateEmbeddingsRequestInputVariant5ItemContentItemVariant1? Type2473 { get; set; } + public global::OpenRouter.VaultRoutingTableMcpOrigin? Type2473 { get; set; } /// /// /// - public global::OpenRouter.CreateEmbeddingsRequestInputVariant5ItemContentItemVariant1Type? Type2474 { get; set; } + public global::System.Collections.Generic.IList? Type2474 { get; set; } /// /// /// - public global::OpenRouter.CreateEmbeddingsRequestInputVariant5ItemContentItemVariant2? Type2475 { get; set; } + public global::OpenRouter.VaultRoutingTableMcpOriginRoute? Type2475 { get; set; } /// /// /// - public global::OpenRouter.CreateEmbeddingsRequestInputVariant5ItemContentItemVariant2ImageUrl? Type2476 { get; set; } + public global::OpenRouter.VaultRoutingTableMcpOriginStatus? Type2476 { get; set; } /// /// /// - public global::OpenRouter.CreateEmbeddingsRequestInputVariant5ItemContentItemVariant2Type? Type2477 { get; set; } + public global::OpenRouter.VaultRoutingTableMcpOriginStatusState? Type2477 { get; set; } /// /// /// - public global::OpenRouter.UploadFileRequest? Type2478 { get; set; } + public global::System.Collections.Generic.IList? Type2478 { get; set; } /// /// /// - public global::OpenRouter.CreateKeysRequest? Type2479 { get; set; } + public global::OpenRouter.VaultRoutingTableSecret? Type2479 { get; set; } /// /// /// - public global::OpenRouter.CreateKeysRequestExternal? Type2480 { get; set; } + public global::OpenRouter.VaultRoutingTableSecretScope? Type2480 { get; set; } /// /// /// - public global::OpenRouter.CreateKeysRequestLimitReset? Type2481 { get; set; } + public global::OpenRouter.VaultRoutingTableSlack? Type2481 { get; set; } /// /// /// - public global::OpenRouter.UpdateKeysRequest? Type2482 { get; set; } + public global::System.Collections.Generic.IList? Type2482 { get; set; } /// /// /// - public global::OpenRouter.UpdateKeysRequestLimitReset? Type2483 { get; set; } + public global::OpenRouter.VaultRoutingTableSlackMemberLink? Type2483 { get; set; } /// /// /// - public global::OpenRouter.CreateRerankRequest? Type2484 { get; set; } + public global::OpenRouter.VaultSecret? Type2484 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type2485 { get; set; } + public global::OpenRouter.VaultSecretCopyRequest? Type2485 { get; set; } /// /// /// - public global::OpenRouter.AnyOf? Type2486 { get; set; } + public global::OpenRouter.VaultSecretCopyResponse? Type2486 { get; set; } /// /// /// - public global::OpenRouter.CreateRerankRequestDocument? Type2487 { get; set; } + public global::System.Collections.Generic.IList? Type2487 { get; set; } /// /// /// - public global::OpenRouter.GetUserActivityGroupBy? Type2488 { get; set; } + public global::OpenRouter.VaultSecretListResponse? Type2488 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2489 { get; set; } + public global::OpenRouter.VaultSecretResponse? Type2489 { get; set; } /// /// /// - public global::OpenRouter.AllOf? Type2490 { get; set; } + public global::OpenRouter.VaultSecretWriteRequest? Type2490 { get; set; } /// /// /// - public global::OpenRouter.GetBenchmarksSource? Type2491 { get; set; } + public global::OpenRouter.VideoGenerationRequest? Type2491 { get; set; } /// /// /// - public global::OpenRouter.GetBenchmarksTaskType? Type2492 { get; set; } + public global::OpenRouter.VideoGenerationRequestAspectRatio? Type2492 { get; set; } /// /// /// - public global::OpenRouter.GetBenchmarksBenchmarkType? Type2493 { get; set; } + public global::System.Collections.Generic.IList? Type2493 { get; set; } /// /// /// - public global::OpenRouter.GetBenchmarksSearchSurface? Type2494 { get; set; } + public global::System.Collections.Generic.IList? Type2494 { get; set; } /// /// /// - public global::OpenRouter.GetBenchmarksArena? Type2495 { get; set; } + public global::OpenRouter.VideoGenerationRequestProvider? Type2495 { get; set; } /// /// /// - public global::OpenRouter.ListBYOKKeysProvider? Type2496 { get; set; } + public global::OpenRouter.VideoGenerationRequestResolution? Type2496 { get; set; } /// /// /// - public global::OpenRouter.GetTaskClassificationsWindow? Type2497 { get; set; } + public global::OpenRouter.VideoGenerationResponse? Type2497 { get; set; } /// /// /// - public global::OpenRouter.GetAppRankingsCategory? Type2498 { get; set; } + public global::OpenRouter.VideoGenerationResponseStatus? Type2498 { get; set; } /// /// /// - public global::OpenRouter.GetAppRankingsSubcategory? Type2499 { get; set; } + public global::OpenRouter.VideoGenerationUsage? Type2499 { get; set; } /// /// /// - public global::OpenRouter.GetAppRankingsSort? Type2500 { get; set; } + public global::OpenRouter.VideoModel? Type2500 { get; set; } /// /// /// - public global::OpenRouter.GetRankingsDailyPeriod? Type2501 { get; set; } + public global::System.Collections.Generic.IList? Type2501 { get; set; } /// /// /// - public global::OpenRouter.GetRankingsDailyModality? Type2502 { get; set; } + public global::OpenRouter.VideoModelSupportedAspectRatio? Type2502 { get; set; } /// /// /// - public global::OpenRouter.GetRankingsDailyContextBucket? Type2503 { get; set; } + public global::System.Collections.Generic.IList? Type2503 { get; set; } /// /// /// - public global::OpenRouter.GetRankingsDailyCategory? Type2504 { get; set; } + public global::OpenRouter.VideoModelSupportedFrameImage? Type2504 { get; set; } /// /// /// - public global::OpenRouter.GetRankingsDailyLanguageType? Type2505 { get; set; } + public global::System.Collections.Generic.IList? Type2505 { get; set; } /// /// /// - public global::OpenRouter.GetSessionCostTurnRange? Type2506 { get; set; } + public global::OpenRouter.VideoModelSupportedResolution? Type2506 { get; set; } /// /// /// - public global::OpenRouter.ListFilesOrder? Type2507 { get; set; } + public global::System.Collections.Generic.IList? Type2507 { get; set; } /// /// /// - public global::OpenRouter.GetModelsCategory? Type2508 { get; set; } + public global::OpenRouter.VideoModelSupportedSize? Type2508 { get; set; } /// /// /// - public global::OpenRouter.GetModelsSort? Type2509 { get; set; } + public global::OpenRouter.VideoModelUpscaleFactor? Type2509 { get; set; } /// /// /// - public global::OpenRouter.GetModelsDistillable? Type2510 { get; set; } + public global::OpenRouter.VideoModelsListResponse? Type2510 { get; set; } /// /// /// - public global::OpenRouter.GetModelsZdr? Type2511 { get; set; } + public global::System.Collections.Generic.IList? Type2511 { get; set; } /// /// /// - public global::OpenRouter.GetModelsRegion? Type2512 { get; set; } + public global::OpenRouter.WebFetchEngineEnum? Type2512 { get; set; } /// /// /// - public global::OpenRouter.ListModelsUserSort? Type2513 { get; set; } + public global::OpenRouter.WebFetchPluginId? Type2513 { get; set; } /// /// /// - public global::OpenRouter.ListModelsUserClient? Type2514 { get; set; } + public global::OpenRouter.WebFetchServerToolConfig? Type2514 { get; set; } /// /// /// - public global::OpenRouter.DeletePrivateEndpointDraftOnly? Type2515 { get; set; } + public global::OpenRouter.WebFetchServerToolType? Type2515 { get; set; } /// /// /// - public global::OpenRouter.AnyOf? Type2516 { get; set; } + public global::OpenRouter.WebSearchEngine? Type2516 { get; set; } /// /// /// - public global::OpenRouter.DeleteScimGroupMappingKeepMembers2? Type2517 { get; set; } + public global::OpenRouter.WebSearchPluginId? Type2517 { get; set; } /// /// /// - public global::OpenRouter.ListToolsApiFormat? Type2518 { get; set; } + public global::OpenRouter.AllOf? Type2518 { get; set; } /// /// /// - public global::OpenRouter.GetAnalyticsMetaResponse? Type2519 { get; set; } + public global::OpenRouter.WebSearchServerToolType? Type2519 { get; set; } /// /// /// - public global::OpenRouter.GetAnalyticsMetaResponseData? Type2520 { get; set; } + public global::OpenRouter.WebSearchServerToolConfig? Type2520 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2521 { get; set; } + public global::OpenRouter.WebSearchServerToolOpenRouterType? Type2521 { get; set; } /// /// /// - public global::OpenRouter.GetAnalyticsMetaResponseDataDimension? Type2522 { get; set; } + public global::OpenRouter.WebSearchSourceType? Type2522 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2523 { get; set; } + public global::OpenRouter.WebSearchUserLocationType? Type2523 { get; set; } /// /// /// - public global::OpenRouter.GetAnalyticsMetaResponseDataGranularitie? Type2524 { get; set; } + public global::OpenRouter.WebSearchUserLocationServerToolType? Type2524 { get; set; } /// /// /// - public global::OpenRouter.GetAnalyticsMetaResponseDataGranularitieName? Type2525 { get; set; } + public global::OpenRouter.WorkspaceBudgetResetInterval? Type2525 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2526 { get; set; } + public global::OpenRouter.WorkspaceBudgetInterval? Type2526 { get; set; } /// /// /// - public global::OpenRouter.GetAnalyticsMetaResponseDataMetric? Type2527 { get; set; } + public global::OpenRouter.WorkspaceMemberRole? Type2527 { get; set; } /// /// /// - public global::OpenRouter.GetAnalyticsMetaResponseDataMetricDisplayFormat? Type2528 { get; set; } + public global::OpenRouter.QueryAnalyticsRequest? Type2528 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2529 { get; set; } + public global::OpenRouter.QueryAnalyticsRequestClassifierDimensions? Type2529 { get; set; } /// /// /// - public global::OpenRouter.QueryAnalyticsResponse? Type2530 { get; set; } + public global::OpenRouter.QueryAnalyticsRequestClassifierFilters? Type2530 { get; set; } /// /// /// - public global::OpenRouter.QueryAnalyticsResponseData? Type2531 { get; set; } + public global::System.Collections.Generic.IList? Type2531 { get; set; } /// /// /// - public global::OpenRouter.QueryAnalyticsResponseDataMetadata? Type2532 { get; set; } + public global::System.Collections.Generic.IList? Type2532 { get; set; } /// /// /// - public global::OpenRouter.ExchangeAuthCodeForAPIKeyResponse? Type2533 { get; set; } + public global::OpenRouter.QueryAnalyticsRequestOrderBy? Type2533 { get; set; } /// /// /// - public global::OpenRouter.CreateAuthKeysCodeResponse? Type2534 { get; set; } + public global::OpenRouter.QueryAnalyticsRequestOrderByDirection? Type2534 { get; set; } /// /// /// - public global::OpenRouter.CreateAuthKeysCodeResponseData? Type2535 { get; set; } + public global::OpenRouter.QueryAnalyticsRequestTimeRange? Type2535 { get; set; } /// /// /// - public global::OpenRouter.GetCreditsResponse? Type2536 { get; set; } + public global::OpenRouter.CreateAudioTranscriptionsRequest? Type2536 { get; set; } /// /// /// - public global::OpenRouter.GetCreditsResponseData? Type2537 { get; set; } + public byte[]? Type2537 { get; set; } /// /// /// - public global::OpenRouter.CreateEmbeddingsResponse? Type2538 { get; set; } + public global::OpenRouter.CreateAudioTranscriptionsRequestResponseFormat? Type2538 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2539 { get; set; } + public global::System.Collections.Generic.IList? Type2539 { get; set; } /// /// /// - public global::OpenRouter.CreateEmbeddingsResponseDataItem? Type2540 { get; set; } + public global::OpenRouter.CreateAudioTranscriptionsRequestTimestampGranularitie? Type2540 { get; set; } /// /// /// - public global::OpenRouter.CreateEmbeddingsResponseDataItemObject? Type2541 { get; set; } + public global::OpenRouter.ExchangeAuthCodeForAPIKeyRequest? Type2541 { get; set; } /// /// /// - public global::OpenRouter.CreateEmbeddingsResponseObject? Type2542 { get; set; } + public global::OpenRouter.ExchangeAuthCodeForAPIKeyRequestCodeChallengeMethod? Type2542 { get; set; } /// /// /// - public global::OpenRouter.CreateEmbeddingsResponseUsage? Type2543 { get; set; } + public global::OpenRouter.CreateAuthKeysCodeRequest? Type2543 { get; set; } /// /// /// - public global::OpenRouter.CreateEmbeddingsResponseUsagePromptTokensDetails? Type2544 { get; set; } + public global::OpenRouter.CreateAuthKeysCodeRequestCodeChallengeMethod? Type2544 { get; set; } /// /// /// - public global::OpenRouter.ListEndpointsZdrResponse? Type2545 { get; set; } + public global::OpenRouter.CreateAuthKeysCodeRequestUsageLimitType? Type2545 { get; set; } /// /// /// - public global::OpenRouter.GetCurrentKeyResponse? Type2546 { get; set; } + public global::OpenRouter.CreateEmbeddingsRequest? Type2546 { get; set; } /// /// /// - public global::OpenRouter.GetCurrentKeyResponseData? Type2547 { get; set; } + public global::OpenRouter.CreateEmbeddingsRequestEncodingFormat? Type2547 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2548 { get; set; } + public global::OpenRouter.AnyOf, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>, global::System.Collections.Generic.IList>? Type2548 { get; set; } /// /// /// - public global::OpenRouter.GetCurrentKeyResponseDataAllowedDataRegion? Type2549 { get; set; } + public global::System.Collections.Generic.IList>? Type2549 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2550 { get; set; } + public global::System.Collections.Generic.IList? Type2550 { get; set; } /// /// /// - public global::OpenRouter.GetCurrentKeyResponseDataRateLimit? Type2551 { get; set; } + public global::OpenRouter.CreateEmbeddingsRequestInputVariant5Item? Type2551 { get; set; } /// /// /// - public global::OpenRouter.ListResponse? Type2552 { get; set; } + public global::OpenRouter.CreateEmbeddingsRequestInputVariant5ItemContentItemVariant1? Type2552 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2553 { get; set; } + public global::OpenRouter.CreateEmbeddingsRequestInputVariant5ItemContentItemVariant1Type? Type2553 { get; set; } /// /// /// - public global::OpenRouter.ListResponseDataItem? Type2554 { get; set; } + public global::OpenRouter.CreateEmbeddingsRequestInputVariant5ItemContentItemVariant2? Type2554 { get; set; } /// /// /// - public global::OpenRouter.CreateKeysResponse? Type2555 { get; set; } + public global::OpenRouter.CreateEmbeddingsRequestInputVariant5ItemContentItemVariant2ImageUrl? Type2555 { get; set; } /// /// /// - public global::OpenRouter.CreateKeysResponseData? Type2556 { get; set; } + public global::OpenRouter.CreateEmbeddingsRequestInputVariant5ItemContentItemVariant2Type? Type2556 { get; set; } /// /// /// - public global::OpenRouter.DeleteKeysResponse? Type2557 { get; set; } + public global::OpenRouter.UploadFileRequest? Type2557 { get; set; } /// /// /// - public global::OpenRouter.GetKeyResponse? Type2558 { get; set; } + public global::OpenRouter.CreateKeysRequest? Type2558 { get; set; } /// /// /// - public global::OpenRouter.GetKeyResponseData? Type2559 { get; set; } + public global::OpenRouter.CreateKeysRequestExternal? Type2559 { get; set; } /// /// /// - public global::OpenRouter.UpdateKeysResponse? Type2560 { get; set; } + public global::OpenRouter.CreateKeysRequestLimitReset? Type2560 { get; set; } /// /// /// - public global::OpenRouter.UpdateKeysResponseData? Type2561 { get; set; } + public global::OpenRouter.UpdateKeysRequest? Type2561 { get; set; } /// /// /// - public global::OpenRouter.ListEndpointsResponse2? Type2562 { get; set; } + public global::OpenRouter.UpdateKeysRequestLimitReset? Type2562 { get; set; } /// /// /// - public global::OpenRouter.ListOrganizationMembersResponse? Type2563 { get; set; } + public global::OpenRouter.CreateRerankRequest? Type2563 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2564 { get; set; } + public global::System.Collections.Generic.IList>? Type2564 { get; set; } /// /// /// - public global::OpenRouter.ListOrganizationMembersResponseDataItem? Type2565 { get; set; } + public global::OpenRouter.AnyOf? Type2565 { get; set; } /// /// /// - public global::OpenRouter.ListOrganizationMembersResponseDataItemRole? Type2566 { get; set; } + public global::OpenRouter.CreateRerankRequestDocument? Type2566 { get; set; } /// /// /// - public global::OpenRouter.GetOrganizationSettingsResponse? Type2567 { get; set; } + public global::OpenRouter.GetUserActivityGroupBy? Type2567 { get; set; } /// /// /// - public global::OpenRouter.UpdateOrganizationSettingsResponse? Type2568 { get; set; } + public global::System.Collections.Generic.IList? Type2568 { get; set; } /// /// /// - public global::OpenRouter.AnyOf? Type2569 { get; set; } + public global::OpenRouter.AllOf? Type2569 { get; set; } /// /// /// - public global::OpenRouter.AnyOf? Type2570 { get; set; } + public global::OpenRouter.GetBenchmarksSource? Type2570 { get; set; } /// /// /// - public global::OpenRouter.AnyOf? Type2571 { get; set; } + public global::OpenRouter.GetBenchmarksTaskType? Type2571 { get; set; } /// /// /// - public global::OpenRouter.AnyOf? Type2572 { get; set; } + public global::OpenRouter.GetBenchmarksBenchmarkType? Type2572 { get; set; } /// /// /// - public global::OpenRouter.AnyOf? Type2573 { get; set; } + public global::OpenRouter.GetBenchmarksSearchSurface? Type2573 { get; set; } /// /// /// - public global::OpenRouter.ListPrivateProvidersResponse? Type2574 { get; set; } + public global::OpenRouter.GetBenchmarksArena? Type2574 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2575 { get; set; } + public global::OpenRouter.ListBYOKKeysProvider? Type2575 { get; set; } /// /// /// - public global::OpenRouter.CreatePrivateProviderResponse? Type2576 { get; set; } + public global::OpenRouter.GetTaskClassificationsWindow? Type2576 { get; set; } /// /// /// - public global::OpenRouter.DeletePrivateProviderResponse? Type2577 { get; set; } + public global::OpenRouter.GetAppRankingsCategory? Type2577 { get; set; } /// /// /// - public global::OpenRouter.DeletePrivateProviderResponseData? Type2578 { get; set; } + public global::OpenRouter.GetAppRankingsSubcategory? Type2578 { get; set; } /// /// /// - public global::OpenRouter.GetPrivateProviderResponse? Type2579 { get; set; } + public global::OpenRouter.GetAppRankingsSort? Type2579 { get; set; } /// /// /// - public global::OpenRouter.UpdatePrivateProviderResponse? Type2580 { get; set; } + public global::OpenRouter.GetRankingsDailyPeriod? Type2580 { get; set; } /// /// /// - public global::OpenRouter.ListProvidersResponse? Type2581 { get; set; } + public global::OpenRouter.GetRankingsDailyModality? Type2581 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2582 { get; set; } + public global::OpenRouter.GetRankingsDailyContextBucket? Type2582 { get; set; } /// /// /// - public global::OpenRouter.ListProvidersResponseDataItem? Type2583 { get; set; } + public global::OpenRouter.GetRankingsDailyCategory? Type2583 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2584 { get; set; } + public global::OpenRouter.GetRankingsDailyLanguageType? Type2584 { get; set; } /// /// /// - public global::OpenRouter.ListProvidersResponseDataItemDatacenter? Type2585 { get; set; } + public global::OpenRouter.GetSessionCostTurnRange? Type2585 { get; set; } /// /// /// - public global::OpenRouter.ListProvidersResponseDataItemHeadquarters? Type2586 { get; set; } + public global::OpenRouter.ListFilesOrder? Type2586 { get; set; } /// /// /// - public global::OpenRouter.CreateRerankResponse? Type2587 { get; set; } + public global::OpenRouter.GetModelsCategory? Type2587 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2588 { get; set; } + public global::OpenRouter.GetModelsSort? Type2588 { get; set; } /// /// /// - public global::OpenRouter.CreateRerankResponseResult? Type2589 { get; set; } + public global::OpenRouter.GetModelsDistillable? Type2589 { get; set; } /// /// /// - public global::OpenRouter.CreateRerankResponseResultDocument? Type2590 { get; set; } + public global::OpenRouter.GetModelsZdr? Type2590 { get; set; } /// /// /// - public global::OpenRouter.CreateRerankResponseUsage? Type2591 { get; set; } + public global::OpenRouter.GetModelsRegion? Type2591 { get; set; } /// /// /// - public global::OpenRouter.ListInternConnectionsResponse? Type2592 { get; set; } + public global::OpenRouter.ListModelsUserSort? Type2592 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2593 { get; set; } + public global::OpenRouter.ListModelsUserClient? Type2593 { get; set; } /// /// /// - public global::OpenRouter.ListInternConnectionsResponseDataItem? Type2594 { get; set; } + public global::OpenRouter.DeletePrivateEndpointDraftOnly? Type2594 { get; set; } + /// + /// + /// + public global::OpenRouter.AnyOf? Type2595 { get; set; } + /// + /// + /// + public global::OpenRouter.DeleteScimGroupMappingKeepMembers2? Type2596 { get; set; } + /// + /// + /// + public global::OpenRouter.ListToolsApiFormat? Type2597 { get; set; } + /// + /// + /// + public global::OpenRouter.GetAnalyticsMetaResponse? Type2598 { get; set; } + /// + /// + /// + public global::OpenRouter.GetAnalyticsMetaResponseData? Type2599 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2600 { get; set; } + /// + /// + /// + public global::OpenRouter.GetAnalyticsMetaResponseDataDimension? Type2601 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2602 { get; set; } + /// + /// + /// + public global::OpenRouter.GetAnalyticsMetaResponseDataGranularitie? Type2603 { get; set; } + /// + /// + /// + public global::OpenRouter.GetAnalyticsMetaResponseDataGranularitieName? Type2604 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2605 { get; set; } + /// + /// + /// + public global::OpenRouter.GetAnalyticsMetaResponseDataMetric? Type2606 { get; set; } + /// + /// + /// + public global::OpenRouter.GetAnalyticsMetaResponseDataMetricDisplayFormat? Type2607 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2608 { get; set; } + /// + /// + /// + public global::OpenRouter.QueryAnalyticsResponse? Type2609 { get; set; } + /// + /// + /// + public global::OpenRouter.QueryAnalyticsResponseData? Type2610 { get; set; } + /// + /// + /// + public global::OpenRouter.QueryAnalyticsResponseDataMetadata? Type2611 { get; set; } + /// + /// + /// + public global::OpenRouter.ExchangeAuthCodeForAPIKeyResponse? Type2612 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateAuthKeysCodeResponse? Type2613 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateAuthKeysCodeResponseData? Type2614 { get; set; } + /// + /// + /// + public global::OpenRouter.GetCreditsResponse? Type2615 { get; set; } + /// + /// + /// + public global::OpenRouter.GetCreditsResponseData? Type2616 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateEmbeddingsResponse? Type2617 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2618 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateEmbeddingsResponseDataItem? Type2619 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateEmbeddingsResponseDataItemObject? Type2620 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateEmbeddingsResponseObject? Type2621 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateEmbeddingsResponseUsage? Type2622 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateEmbeddingsResponseUsagePromptTokensDetails? Type2623 { get; set; } + /// + /// + /// + public global::OpenRouter.ListEndpointsZdrResponse? Type2624 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2625 { get; set; } + /// + /// + /// + public global::OpenRouter.GetCurrentKeyResponse? Type2626 { get; set; } + /// + /// + /// + public global::OpenRouter.GetCurrentKeyResponseData? Type2627 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2628 { get; set; } + /// + /// + /// + public global::OpenRouter.GetCurrentKeyResponseDataAllowedDataRegion? Type2629 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2630 { get; set; } + /// + /// + /// + public global::OpenRouter.GetCurrentKeyResponseDataRateLimit? Type2631 { get; set; } + /// + /// + /// + public global::OpenRouter.ListResponse? Type2632 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2633 { get; set; } + /// + /// + /// + public global::OpenRouter.ListResponseDataItem? Type2634 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateKeysResponse? Type2635 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateKeysResponseData? Type2636 { get; set; } + /// + /// + /// + public global::OpenRouter.DeleteKeysResponse? Type2637 { get; set; } + /// + /// + /// + public global::OpenRouter.GetKeyResponse? Type2638 { get; set; } + /// + /// + /// + public global::OpenRouter.GetKeyResponseData? Type2639 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdateKeysResponse? Type2640 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdateKeysResponseData? Type2641 { get; set; } + /// + /// + /// + public global::OpenRouter.ListEndpointsResponse2? Type2642 { get; set; } + /// + /// + /// + public global::OpenRouter.ListOrganizationMembersResponse? Type2643 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2644 { get; set; } + /// + /// + /// + public global::OpenRouter.ListOrganizationMembersResponseDataItem? Type2645 { get; set; } + /// + /// + /// + public global::OpenRouter.ListOrganizationMembersResponseDataItemRole? Type2646 { get; set; } + /// + /// + /// + public global::OpenRouter.GetOrganizationSettingsResponse? Type2647 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdateOrganizationSettingsResponse? Type2648 { get; set; } + /// + /// + /// + public global::OpenRouter.AnyOf? Type2649 { get; set; } + /// + /// + /// + public global::OpenRouter.AnyOf? Type2650 { get; set; } + /// + /// + /// + public global::OpenRouter.AnyOf? Type2651 { get; set; } + /// + /// + /// + public global::OpenRouter.AnyOf? Type2652 { get; set; } + /// + /// + /// + public global::OpenRouter.AnyOf? Type2653 { get; set; } + /// + /// + /// + public global::OpenRouter.ListPrivateProvidersResponse? Type2654 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2655 { get; set; } + /// + /// + /// + public global::OpenRouter.CreatePrivateProviderResponse? Type2656 { get; set; } + /// + /// + /// + public global::OpenRouter.DeletePrivateProviderResponse? Type2657 { get; set; } + /// + /// + /// + public global::OpenRouter.DeletePrivateProviderResponseData? Type2658 { get; set; } + /// + /// + /// + public global::OpenRouter.GetPrivateProviderResponse? Type2659 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdatePrivateProviderResponse? Type2660 { get; set; } + /// + /// + /// + public global::OpenRouter.ListProvidersResponse? Type2661 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2662 { get; set; } + /// + /// + /// + public global::OpenRouter.ListProvidersResponseDataItem? Type2663 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2664 { get; set; } + /// + /// + /// + public global::OpenRouter.ListProvidersResponseDataItemDatacenter? Type2665 { get; set; } + /// + /// + /// + public global::OpenRouter.ListProvidersResponseDataItemHeadquarters? Type2666 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateRerankResponse? Type2667 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2668 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateRerankResponseResult? Type2669 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateRerankResponseResultDocument? Type2670 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateRerankResponseUsage? Type2671 { get; set; } + /// + /// + /// + public global::OpenRouter.ListInternConnectionsResponse? Type2672 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2673 { get; set; } + /// + /// + /// + public global::OpenRouter.ListInternConnectionsResponseDataItem? Type2674 { get; set; } /// /// @@ -10775,710 +11095,726 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::OpenRouter.AnyOf>>? ListType89 { get; set; } + public global::System.Collections.Generic.List>? ListType89 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType90 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List>? ListType91 { get; set; } + /// + /// + /// + public global::OpenRouter.AnyOf>>? ListType92 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType93 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType90 { get; set; } + public global::System.Collections.Generic.List? ListType94 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType91 { get; set; } + public global::System.Collections.Generic.List? ListType95 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType92 { get; set; } + public global::System.Collections.Generic.List? ListType96 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType93 { get; set; } + public global::System.Collections.Generic.List? ListType97 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType94 { get; set; } + public global::System.Collections.Generic.List? ListType98 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType95 { get; set; } + public global::OpenRouter.AnyOf?>, object>? ListType99 { get; set; } /// /// /// - public global::OpenRouter.AnyOf?>, object>? ListType96 { get; set; } + public global::System.Collections.Generic.List?>? ListType100 { get; set; } /// /// /// - public global::System.Collections.Generic.List?>? ListType97 { get; set; } + public global::System.Collections.Generic.List? ListType101 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType98 { get; set; } + public global::System.Collections.Generic.List? ListType102 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType99 { get; set; } + public global::System.Collections.Generic.List? ListType103 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType100 { get; set; } + public global::System.Collections.Generic.List? ListType104 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType101 { get; set; } + public global::OpenRouter.AnyOf>? ListType105 { get; set; } /// /// /// - public global::OpenRouter.AnyOf>? ListType102 { get; set; } + public global::System.Collections.Generic.List? ListType106 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType103 { get; set; } + public global::System.Collections.Generic.List? ListType107 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType104 { get; set; } + public global::System.Collections.Generic.List? ListType108 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType105 { get; set; } + public global::System.Collections.Generic.List? ListType109 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType106 { get; set; } + public global::System.Collections.Generic.List? ListType110 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType107 { get; set; } + public global::System.Collections.Generic.List? ListType111 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType108 { get; set; } + public global::System.Collections.Generic.List? ListType112 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType109 { get; set; } + public global::OpenRouter.AnyOf>, string>? ListType113 { get; set; } /// /// /// - public global::OpenRouter.AnyOf>, string>? ListType110 { get; set; } + public global::System.Collections.Generic.List>? ListType114 { get; set; } /// /// /// - public global::System.Collections.Generic.List>? ListType111 { get; set; } + public global::System.Collections.Generic.List? ListType115 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType112 { get; set; } + public global::System.Collections.Generic.List? ListType116 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType113 { get; set; } + public global::System.Collections.Generic.List? ListType117 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType114 { get; set; } + public global::System.Collections.Generic.List? ListType118 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType115 { get; set; } + public global::System.Collections.Generic.List? ListType119 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType116 { get; set; } + public global::System.Collections.Generic.List? ListType120 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType117 { get; set; } + public global::System.Collections.Generic.List? ListType121 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType118 { get; set; } + public global::System.Collections.Generic.List? ListType122 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType119 { get; set; } + public global::System.Collections.Generic.List? ListType123 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType120 { get; set; } + public global::System.Collections.Generic.List? ListType124 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType121 { get; set; } + public global::System.Collections.Generic.List? ListType125 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType122 { get; set; } + public global::System.Collections.Generic.List? ListType126 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType123 { get; set; } + public global::System.Collections.Generic.List? ListType127 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType124 { get; set; } + public global::System.Collections.Generic.List? ListType128 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType125 { get; set; } + public global::System.Collections.Generic.List? ListType129 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType126 { get; set; } + public global::System.Collections.Generic.List? ListType130 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType127 { get; set; } + public global::System.Collections.Generic.List? ListType131 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType128 { get; set; } + public global::System.Collections.Generic.List? ListType132 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType129 { get; set; } + public global::System.Collections.Generic.List? ListType133 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType130 { get; set; } + public global::OpenRouter.AnyOf, global::OpenRouter.McpServerToolAllowedTools>? ListType134 { get; set; } /// /// /// - public global::OpenRouter.AnyOf, global::OpenRouter.McpServerToolAllowedTools>? ListType131 { get; set; } + public global::System.Collections.Generic.List? ListType135 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType132 { get; set; } + public global::System.Collections.Generic.List? ListType136 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType133 { get; set; } + public global::OpenRouter.AnyOf, global::OpenRouter.MessagesMessageParamContentVariant2ItemVariant9Content>? ListType137 { get; set; } /// /// /// - public global::OpenRouter.AnyOf, global::OpenRouter.MessagesMessageParamContentVariant2ItemVariant9Content>? ListType134 { get; set; } + public global::System.Collections.Generic.List? ListType138 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType135 { get; set; } + public global::OpenRouter.AnyOf>? ListType139 { get; set; } /// /// /// - public global::OpenRouter.AnyOf>? ListType136 { get; set; } + public global::System.Collections.Generic.List? ListType140 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType137 { get; set; } + public global::System.Collections.Generic.List? ListType141 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType138 { get; set; } + public global::System.Collections.Generic.List? ListType142 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType139 { get; set; } + public global::System.Collections.Generic.List? ListType143 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType140 { get; set; } + public global::OpenRouter.AnyOf>? ListType144 { get; set; } /// /// /// - public global::OpenRouter.AnyOf>? ListType141 { get; set; } + public global::System.Collections.Generic.List? ListType145 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType142 { get; set; } + public global::System.Collections.Generic.List? ListType146 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType143 { get; set; } + public global::System.Collections.Generic.List? ListType147 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType144 { get; set; } + public global::System.Collections.Generic.List? ListType148 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType145 { get; set; } + public global::System.Collections.Generic.List? ListType149 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType146 { get; set; } + public global::System.Collections.Generic.List? ListType150 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType147 { get; set; } + public global::System.Collections.Generic.List? ListType151 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType148 { get; set; } + public global::System.Collections.Generic.List>? ListType152 { get; set; } /// /// /// - public global::System.Collections.Generic.List>? ListType149 { get; set; } + public global::System.Collections.Generic.List? ListType153 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType150 { get; set; } + public global::System.Collections.Generic.List? ListType154 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType151 { get; set; } + public global::System.Collections.Generic.List? ListType155 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType152 { get; set; } + public global::System.Collections.Generic.List? ListType156 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType153 { get; set; } + public global::System.Collections.Generic.List? ListType157 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType154 { get; set; } + public global::OpenRouter.AnyOf>? ListType158 { get; set; } /// /// /// - public global::OpenRouter.AnyOf>? ListType155 { get; set; } + public global::System.Collections.Generic.List? ListType159 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType156 { get; set; } + public global::System.Collections.Generic.List? ListType160 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType157 { get; set; } + public global::OpenRouter.AnyOf>? ListType161 { get; set; } /// /// /// - public global::OpenRouter.AnyOf>? ListType158 { get; set; } + public global::System.Collections.Generic.List? ListType162 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType159 { get; set; } + public global::System.Collections.Generic.List? ListType163 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType160 { get; set; } + public global::System.Collections.Generic.List? ListType164 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType161 { get; set; } + public global::System.Collections.Generic.List? ListType165 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType162 { get; set; } + public global::System.Collections.Generic.List? ListType166 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType163 { get; set; } + public global::System.Collections.Generic.List? ListType167 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType164 { get; set; } + public global::System.Collections.Generic.List? ListType168 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType165 { get; set; } + public global::System.Collections.Generic.List? ListType169 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType166 { get; set; } + public global::System.Collections.Generic.List? ListType170 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType167 { get; set; } + public global::System.Collections.Generic.List? ListType171 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType168 { get; set; } + public global::System.Collections.Generic.List? ListType172 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType169 { get; set; } + public global::System.Collections.Generic.List? ListType173 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType170 { get; set; } + public global::System.Collections.Generic.List? ListType174 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType171 { get; set; } + public global::System.Collections.Generic.List? ListType175 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType172 { get; set; } + public global::System.Collections.Generic.List? ListType176 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType173 { get; set; } + public global::System.Collections.Generic.List? ListType177 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType174 { get; set; } + public global::System.Collections.Generic.List? ListType178 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType175 { get; set; } + public global::System.Collections.Generic.List? ListType179 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType176 { get; set; } + public global::System.Collections.Generic.List? ListType180 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType177 { get; set; } + public global::System.Collections.Generic.List? ListType181 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType178 { get; set; } + public global::System.Collections.Generic.List? ListType182 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType179 { get; set; } + public global::System.Collections.Generic.List? ListType183 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType180 { get; set; } + public global::System.Collections.Generic.List? ListType184 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType181 { get; set; } + public global::OpenRouter.AnyOf>? ListType185 { get; set; } /// /// /// - public global::OpenRouter.AnyOf>? ListType182 { get; set; } + public global::System.Collections.Generic.List? ListType186 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType183 { get; set; } + public global::System.Collections.Generic.List? ListType187 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType184 { get; set; } + public global::System.Collections.Generic.List? ListType188 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType185 { get; set; } + public global::System.Collections.Generic.List? ListType189 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType186 { get; set; } + public global::System.Collections.Generic.List? ListType190 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType187 { get; set; } + public global::System.Collections.Generic.List? ListType191 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType188 { get; set; } + public global::System.Collections.Generic.List? ListType192 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType189 { get; set; } + public global::System.Collections.Generic.List? ListType193 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType190 { get; set; } + public global::System.Collections.Generic.List? ListType194 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType191 { get; set; } + public global::System.Collections.Generic.List? ListType195 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType192 { get; set; } + public global::System.Collections.Generic.List? ListType196 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType193 { get; set; } + public global::System.Collections.Generic.List? ListType197 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType194 { get; set; } + public global::System.Collections.Generic.List? ListType198 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType195 { get; set; } + public global::System.Collections.Generic.List? ListType199 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType196 { get; set; } + public global::System.Collections.Generic.List? ListType200 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType197 { get; set; } + public global::System.Collections.Generic.List? ListType201 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType198 { get; set; } + public global::System.Collections.Generic.List? ListType202 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType199 { get; set; } + public global::System.Collections.Generic.List? ListType203 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType200 { get; set; } + public global::System.Collections.Generic.List? ListType204 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType201 { get; set; } + public global::System.Collections.Generic.List? ListType205 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType202 { get; set; } + public global::System.Collections.Generic.List? ListType206 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType203 { get; set; } + public global::System.Collections.Generic.List? ListType207 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType204 { get; set; } + public global::System.Collections.Generic.List? ListType208 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType205 { get; set; } + public global::System.Collections.Generic.List? ListType209 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType206 { get; set; } + public global::System.Collections.Generic.List? ListType210 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType207 { get; set; } + public global::System.Collections.Generic.List? ListType211 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType208 { get; set; } + public global::System.Collections.Generic.List? ListType212 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType209 { get; set; } + public global::System.Collections.Generic.List? ListType213 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType210 { get; set; } + public global::System.Collections.Generic.List? ListType214 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType211 { get; set; } + public global::System.Collections.Generic.List? ListType215 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType212 { get; set; } + public global::System.Collections.Generic.List? ListType216 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType213 { get; set; } + public global::System.Collections.Generic.List? ListType217 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType214 { get; set; } + public global::System.Collections.Generic.List? ListType218 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType215 { get; set; } + public global::System.Collections.Generic.List? ListType219 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType216 { get; set; } + public global::System.Collections.Generic.List? ListType220 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType217 { get; set; } + public global::System.Collections.Generic.List? ListType221 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType218 { get; set; } + public global::System.Collections.Generic.List? ListType222 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType219 { get; set; } + public global::System.Collections.Generic.List? ListType223 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType220 { get; set; } + public global::System.Collections.Generic.List>? ListType224 { get; set; } /// /// /// - public global::System.Collections.Generic.List>? ListType221 { get; set; } + public global::System.Collections.Generic.List? ListType225 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType222 { get; set; } + public global::System.Collections.Generic.List? ListType226 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType223 { get; set; } + public global::System.Collections.Generic.List? ListType227 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType224 { get; set; } + public global::System.Collections.Generic.List? ListType228 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType225 { get; set; } + public global::System.Collections.Generic.List? ListType229 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType226 { get; set; } + public global::System.Collections.Generic.List? ListType230 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType227 { get; set; } + public global::System.Collections.Generic.List? ListType231 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType228 { get; set; } + public global::System.Collections.Generic.List? ListType232 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType229 { get; set; } + public global::System.Collections.Generic.List? ListType233 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType230 { get; set; } + public global::System.Collections.Generic.List? ListType234 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType231 { get; set; } + public global::System.Collections.Generic.List? ListType235 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType232 { get; set; } + public global::System.Collections.Generic.List? ListType236 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType233 { get; set; } + public global::System.Collections.Generic.List? ListType237 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType234 { get; set; } + public global::System.Collections.Generic.List? ListType238 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType235 { get; set; } + public global::System.Collections.Generic.List? ListType239 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType236 { get; set; } + public global::System.Collections.Generic.List? ListType240 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType237 { get; set; } + public global::System.Collections.Generic.List? ListType241 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType238 { get; set; } + public global::System.Collections.Generic.List? ListType242 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType239 { get; set; } + public global::System.Collections.Generic.List? ListType243 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType240 { get; set; } + public global::System.Collections.Generic.List? ListType244 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType241 { get; set; } + public global::System.Collections.Generic.List? ListType245 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType242 { get; set; } + public global::System.Collections.Generic.List? ListType246 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType243 { get; set; } + public global::System.Collections.Generic.List? ListType247 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType244 { get; set; } + public global::System.Collections.Generic.List? ListType248 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType245 { get; set; } + public global::System.Collections.Generic.List? ListType249 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType246 { get; set; } + public global::OpenRouter.AnyOf, global::System.Collections.Generic.List, global::System.Collections.Generic.List>, global::System.Collections.Generic.List>? ListType250 { get; set; } /// /// /// - public global::OpenRouter.AnyOf, global::System.Collections.Generic.List, global::System.Collections.Generic.List>, global::System.Collections.Generic.List>? ListType247 { get; set; } + public global::System.Collections.Generic.List>? ListType251 { get; set; } /// /// /// - public global::System.Collections.Generic.List>? ListType248 { get; set; } + public global::System.Collections.Generic.List? ListType252 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType249 { get; set; } + public global::System.Collections.Generic.List>? ListType253 { get; set; } /// /// /// - public global::System.Collections.Generic.List>? ListType250 { get; set; } + public global::System.Collections.Generic.List? ListType254 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType251 { get; set; } + public global::System.Collections.Generic.List? ListType255 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType252 { get; set; } + public global::System.Collections.Generic.List? ListType256 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType253 { get; set; } + public global::System.Collections.Generic.List? ListType257 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType254 { get; set; } + public global::System.Collections.Generic.List? ListType258 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType255 { get; set; } + public global::System.Collections.Generic.List? ListType259 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType256 { get; set; } + public global::System.Collections.Generic.List? ListType260 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType257 { get; set; } + public global::System.Collections.Generic.List? ListType261 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType258 { get; set; } + public global::System.Collections.Generic.List? ListType262 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType259 { get; set; } + public global::System.Collections.Generic.List? ListType263 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType260 { get; set; } + public global::System.Collections.Generic.List? ListType264 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType261 { get; set; } + public global::System.Collections.Generic.List? ListType265 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType262 { get; set; } + public global::System.Collections.Generic.List? ListType266 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType263 { get; set; } + public global::System.Collections.Generic.List? ListType267 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType264 { get; set; } + public global::System.Collections.Generic.List? ListType268 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType265 { get; set; } + public global::System.Collections.Generic.List? ListType269 { get; set; } } } \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkload.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.Answers2.Json.g.cs similarity index 85% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkload.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.Answers2.Json.g.cs index fcf59b692..7a998137f 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkload.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.Answers2.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class PublicEndpointPerfLast30mByWorkload + public readonly partial struct Answers2 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkload? FromJson( + public static global::OpenRouter.Answers2? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.PublicEndpointPerfLast30mByWorkload), - jsonSerializerContext) as global::OpenRouter.PublicEndpointPerfLast30mByWorkload; + typeof(global::OpenRouter.Answers2), + jsonSerializerContext) as global::OpenRouter.Answers2?; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkload? FromJson( + public static global::OpenRouter.Answers2? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require 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::OpenRouter.PublicEndpointPerfLast30mByWorkload? FromJson( + public static global::OpenRouter.Answers2? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::OpenRouter.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + 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::OpenRouter.PublicEndpointPerfLast30mByWorkload), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.PublicEndpointPerfLast30mByWorkload; + typeof(global::OpenRouter.Answers2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.Answers2?; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require 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( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::OpenRouter.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.Answers2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.Answers2.g.cs new file mode 100644 index 000000000..fbd059ba9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.Answers2.g.cs @@ -0,0 +1,884 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace OpenRouter +{ + /// + /// One answer per requested field. `value` is null when the state does not determine it. + /// + public readonly partial struct Answers2 : global::System.IEquatable + { + /// + /// + /// + public global::OpenRouter.ExtractionsResponseAnswersDiscriminatorType? Type { get; } + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ExtractionTextAnswer? Text { get; init; } +#else + public global::OpenRouter.ExtractionTextAnswer? Text { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Text))] +#endif + public bool IsText => Text != null; + + /// + /// + /// + public bool TryPickText( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ExtractionTextAnswer? value) + { + value = Text; + return IsText; + } + + /// + /// + /// + public global::OpenRouter.ExtractionTextAnswer PickText() => Text is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ExtractionNumberAnswer? Number { get; init; } +#else + public global::OpenRouter.ExtractionNumberAnswer? Number { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Number))] +#endif + public bool IsNumber => Number != null; + + /// + /// + /// + public bool TryPickNumber( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ExtractionNumberAnswer? value) + { + value = Number; + return IsNumber; + } + + /// + /// + /// + public global::OpenRouter.ExtractionNumberAnswer PickNumber() => Number is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Number' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ExtractionDateAnswer? Date { get; init; } +#else + public global::OpenRouter.ExtractionDateAnswer? Date { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Date))] +#endif + public bool IsDate => Date != null; + + /// + /// + /// + public bool TryPickDate( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ExtractionDateAnswer? value) + { + value = Date; + return IsDate; + } + + /// + /// + /// + public global::OpenRouter.ExtractionDateAnswer PickDate() => Date is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Date' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ExtractionTimeAnswer? Time { get; init; } +#else + public global::OpenRouter.ExtractionTimeAnswer? Time { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Time))] +#endif + public bool IsTime => Time != null; + + /// + /// + /// + public bool TryPickTime( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ExtractionTimeAnswer? value) + { + value = Time; + return IsTime; + } + + /// + /// + /// + public global::OpenRouter.ExtractionTimeAnswer PickTime() => Time is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Time' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ExtractionDatetimeAnswer? Datetime { get; init; } +#else + public global::OpenRouter.ExtractionDatetimeAnswer? Datetime { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Datetime))] +#endif + public bool IsDatetime => Datetime != null; + + /// + /// + /// + public bool TryPickDatetime( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ExtractionDatetimeAnswer? value) + { + value = Datetime; + return IsDatetime; + } + + /// + /// + /// + public global::OpenRouter.ExtractionDatetimeAnswer PickDatetime() => Datetime is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Datetime' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ExtractionDurationAnswer? Duration { get; init; } +#else + public global::OpenRouter.ExtractionDurationAnswer? Duration { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Duration))] +#endif + public bool IsDuration => Duration != null; + + /// + /// + /// + public bool TryPickDuration( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ExtractionDurationAnswer? value) + { + value = Duration; + return IsDuration; + } + + /// + /// + /// + public global::OpenRouter.ExtractionDurationAnswer PickDuration() => Duration is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Duration' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ExtractionListAnswer? List { get; init; } +#else + public global::OpenRouter.ExtractionListAnswer? List { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(List))] +#endif + public bool IsList => List != null; + + /// + /// + /// + public bool TryPickList( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ExtractionListAnswer? value) + { + value = List; + return IsList; + } + + /// + /// + /// + public global::OpenRouter.ExtractionListAnswer PickList() => List is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'List' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ExtractionEstimateAnswer? Estimate { get; init; } +#else + public global::OpenRouter.ExtractionEstimateAnswer? Estimate { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Estimate))] +#endif + public bool IsEstimate => Estimate != null; + + /// + /// + /// + public bool TryPickEstimate( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ExtractionEstimateAnswer? value) + { + value = Estimate; + return IsEstimate; + } + + /// + /// + /// + public global::OpenRouter.ExtractionEstimateAnswer PickEstimate() => Estimate is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Estimate' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ExtractionForecastAnswer? Forecast { get; init; } +#else + public global::OpenRouter.ExtractionForecastAnswer? Forecast { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Forecast))] +#endif + public bool IsForecast => Forecast != null; + + /// + /// + /// + public bool TryPickForecast( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ExtractionForecastAnswer? value) + { + value = Forecast; + return IsForecast; + } + + /// + /// + /// + public global::OpenRouter.ExtractionForecastAnswer PickForecast() => Forecast is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Forecast' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator Answers2(global::OpenRouter.ExtractionTextAnswer value) => new Answers2((global::OpenRouter.ExtractionTextAnswer?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ExtractionTextAnswer?(Answers2 @this) => @this.Text; + + /// + /// + /// + public Answers2(global::OpenRouter.ExtractionTextAnswer? value) + { + Text = value; + } + + /// + /// + /// + public static Answers2 FromText(global::OpenRouter.ExtractionTextAnswer? value) => new Answers2(value); + + /// + /// + /// + public static implicit operator Answers2(global::OpenRouter.ExtractionNumberAnswer value) => new Answers2((global::OpenRouter.ExtractionNumberAnswer?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ExtractionNumberAnswer?(Answers2 @this) => @this.Number; + + /// + /// + /// + public Answers2(global::OpenRouter.ExtractionNumberAnswer? value) + { + Number = value; + } + + /// + /// + /// + public static Answers2 FromNumber(global::OpenRouter.ExtractionNumberAnswer? value) => new Answers2(value); + + /// + /// + /// + public static implicit operator Answers2(global::OpenRouter.ExtractionDateAnswer value) => new Answers2((global::OpenRouter.ExtractionDateAnswer?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ExtractionDateAnswer?(Answers2 @this) => @this.Date; + + /// + /// + /// + public Answers2(global::OpenRouter.ExtractionDateAnswer? value) + { + Date = value; + } + + /// + /// + /// + public static Answers2 FromDate(global::OpenRouter.ExtractionDateAnswer? value) => new Answers2(value); + + /// + /// + /// + public static implicit operator Answers2(global::OpenRouter.ExtractionTimeAnswer value) => new Answers2((global::OpenRouter.ExtractionTimeAnswer?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ExtractionTimeAnswer?(Answers2 @this) => @this.Time; + + /// + /// + /// + public Answers2(global::OpenRouter.ExtractionTimeAnswer? value) + { + Time = value; + } + + /// + /// + /// + public static Answers2 FromTime(global::OpenRouter.ExtractionTimeAnswer? value) => new Answers2(value); + + /// + /// + /// + public static implicit operator Answers2(global::OpenRouter.ExtractionDatetimeAnswer value) => new Answers2((global::OpenRouter.ExtractionDatetimeAnswer?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ExtractionDatetimeAnswer?(Answers2 @this) => @this.Datetime; + + /// + /// + /// + public Answers2(global::OpenRouter.ExtractionDatetimeAnswer? value) + { + Datetime = value; + } + + /// + /// + /// + public static Answers2 FromDatetime(global::OpenRouter.ExtractionDatetimeAnswer? value) => new Answers2(value); + + /// + /// + /// + public static implicit operator Answers2(global::OpenRouter.ExtractionDurationAnswer value) => new Answers2((global::OpenRouter.ExtractionDurationAnswer?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ExtractionDurationAnswer?(Answers2 @this) => @this.Duration; + + /// + /// + /// + public Answers2(global::OpenRouter.ExtractionDurationAnswer? value) + { + Duration = value; + } + + /// + /// + /// + public static Answers2 FromDuration(global::OpenRouter.ExtractionDurationAnswer? value) => new Answers2(value); + + /// + /// + /// + public static implicit operator Answers2(global::OpenRouter.ExtractionListAnswer value) => new Answers2((global::OpenRouter.ExtractionListAnswer?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ExtractionListAnswer?(Answers2 @this) => @this.List; + + /// + /// + /// + public Answers2(global::OpenRouter.ExtractionListAnswer? value) + { + List = value; + } + + /// + /// + /// + public static Answers2 FromList(global::OpenRouter.ExtractionListAnswer? value) => new Answers2(value); + + /// + /// + /// + public static implicit operator Answers2(global::OpenRouter.ExtractionEstimateAnswer value) => new Answers2((global::OpenRouter.ExtractionEstimateAnswer?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ExtractionEstimateAnswer?(Answers2 @this) => @this.Estimate; + + /// + /// + /// + public Answers2(global::OpenRouter.ExtractionEstimateAnswer? value) + { + Estimate = value; + } + + /// + /// + /// + public static Answers2 FromEstimate(global::OpenRouter.ExtractionEstimateAnswer? value) => new Answers2(value); + + /// + /// + /// + public static implicit operator Answers2(global::OpenRouter.ExtractionForecastAnswer value) => new Answers2((global::OpenRouter.ExtractionForecastAnswer?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ExtractionForecastAnswer?(Answers2 @this) => @this.Forecast; + + /// + /// + /// + public Answers2(global::OpenRouter.ExtractionForecastAnswer? value) + { + Forecast = value; + } + + /// + /// + /// + public static Answers2 FromForecast(global::OpenRouter.ExtractionForecastAnswer? value) => new Answers2(value); + + /// + /// + /// + public Answers2( + global::OpenRouter.ExtractionsResponseAnswersDiscriminatorType? type, + global::OpenRouter.ExtractionTextAnswer? text, + global::OpenRouter.ExtractionNumberAnswer? number, + global::OpenRouter.ExtractionDateAnswer? date, + global::OpenRouter.ExtractionTimeAnswer? time, + global::OpenRouter.ExtractionDatetimeAnswer? datetime, + global::OpenRouter.ExtractionDurationAnswer? duration, + global::OpenRouter.ExtractionListAnswer? list, + global::OpenRouter.ExtractionEstimateAnswer? estimate, + global::OpenRouter.ExtractionForecastAnswer? forecast + ) + { + Type = type; + + Text = text; + Number = number; + Date = date; + Time = time; + Datetime = datetime; + Duration = duration; + List = list; + Estimate = estimate; + Forecast = forecast; + } + + /// + /// + /// + public object? Object => + Forecast as object ?? + Estimate as object ?? + List as object ?? + Duration as object ?? + Datetime as object ?? + Time as object ?? + Date as object ?? + Number as object ?? + Text as object + ; + + /// + /// + /// + public override string? ToString() => + Text?.ToString() ?? + Number?.ToString() ?? + Date?.ToString() ?? + Time?.ToString() ?? + Datetime?.ToString() ?? + Duration?.ToString() ?? + List?.ToString() ?? + Estimate?.ToString() ?? + Forecast?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsText && !IsNumber && !IsDate && !IsTime && !IsDatetime && !IsDuration && !IsList && !IsEstimate && !IsForecast || !IsText && IsNumber && !IsDate && !IsTime && !IsDatetime && !IsDuration && !IsList && !IsEstimate && !IsForecast || !IsText && !IsNumber && IsDate && !IsTime && !IsDatetime && !IsDuration && !IsList && !IsEstimate && !IsForecast || !IsText && !IsNumber && !IsDate && IsTime && !IsDatetime && !IsDuration && !IsList && !IsEstimate && !IsForecast || !IsText && !IsNumber && !IsDate && !IsTime && IsDatetime && !IsDuration && !IsList && !IsEstimate && !IsForecast || !IsText && !IsNumber && !IsDate && !IsTime && !IsDatetime && IsDuration && !IsList && !IsEstimate && !IsForecast || !IsText && !IsNumber && !IsDate && !IsTime && !IsDatetime && !IsDuration && IsList && !IsEstimate && !IsForecast || !IsText && !IsNumber && !IsDate && !IsTime && !IsDatetime && !IsDuration && !IsList && IsEstimate && !IsForecast || !IsText && !IsNumber && !IsDate && !IsTime && !IsDatetime && !IsDuration && !IsList && !IsEstimate && IsForecast; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? text = null, + global::System.Func? number = null, + global::System.Func? date = null, + global::System.Func? time = null, + global::System.Func? datetime = null, + global::System.Func? duration = null, + global::System.Func? list = null, + global::System.Func? estimate = null, + global::System.Func? forecast = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (Text is { } __value0 && text != null) + { + return text(__value0); + } + else if (Number is { } __value1 && number != null) + { + return number(__value1); + } + else if (Date is { } __value2 && date != null) + { + return date(__value2); + } + else if (Time is { } __value3 && time != null) + { + return time(__value3); + } + else if (Datetime is { } __value4 && datetime != null) + { + return datetime(__value4); + } + else if (Duration is { } __value5 && duration != null) + { + return duration(__value5); + } + else if (List is { } __value6 && list != null) + { + return list(__value6); + } + else if (Estimate is { } __value7 && estimate != null) + { + return estimate(__value7); + } + else if (Forecast is { } __value8 && forecast != null) + { + return forecast(__value8); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? text = null, + + global::System.Action? number = null, + + global::System.Action? date = null, + + global::System.Action? time = null, + + global::System.Action? datetime = null, + + global::System.Action? duration = null, + + global::System.Action? list = null, + + global::System.Action? estimate = null, + + global::System.Action? forecast = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (Text is { } __value0) + { + text?.Invoke(__value0); + } + else if (Number is { } __value1) + { + number?.Invoke(__value1); + } + else if (Date is { } __value2) + { + date?.Invoke(__value2); + } + else if (Time is { } __value3) + { + time?.Invoke(__value3); + } + else if (Datetime is { } __value4) + { + datetime?.Invoke(__value4); + } + else if (Duration is { } __value5) + { + duration?.Invoke(__value5); + } + else if (List is { } __value6) + { + list?.Invoke(__value6); + } + else if (Estimate is { } __value7) + { + estimate?.Invoke(__value7); + } + else if (Forecast is { } __value8) + { + forecast?.Invoke(__value8); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? text = null, + global::System.Action? number = null, + global::System.Action? date = null, + global::System.Action? time = null, + global::System.Action? datetime = null, + global::System.Action? duration = null, + global::System.Action? list = null, + global::System.Action? estimate = null, + global::System.Action? forecast = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (Text is { } __value0) + { + text?.Invoke(__value0); + } + else if (Number is { } __value1) + { + number?.Invoke(__value1); + } + else if (Date is { } __value2) + { + date?.Invoke(__value2); + } + else if (Time is { } __value3) + { + time?.Invoke(__value3); + } + else if (Datetime is { } __value4) + { + datetime?.Invoke(__value4); + } + else if (Duration is { } __value5) + { + duration?.Invoke(__value5); + } + else if (List is { } __value6) + { + list?.Invoke(__value6); + } + else if (Estimate is { } __value7) + { + estimate?.Invoke(__value7); + } + else if (Forecast is { } __value8) + { + forecast?.Invoke(__value8); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Text, + typeof(global::OpenRouter.ExtractionTextAnswer), + Number, + typeof(global::OpenRouter.ExtractionNumberAnswer), + Date, + typeof(global::OpenRouter.ExtractionDateAnswer), + Time, + typeof(global::OpenRouter.ExtractionTimeAnswer), + Datetime, + typeof(global::OpenRouter.ExtractionDatetimeAnswer), + Duration, + typeof(global::OpenRouter.ExtractionDurationAnswer), + List, + typeof(global::OpenRouter.ExtractionListAnswer), + Estimate, + typeof(global::OpenRouter.ExtractionEstimateAnswer), + Forecast, + typeof(global::OpenRouter.ExtractionForecastAnswer), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(Answers2 other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Text, other.Text) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Number, other.Number) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Date, other.Date) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Time, other.Time) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Datetime, other.Datetime) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Duration, other.Duration) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(List, other.List) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Estimate, other.Estimate) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Forecast, other.Forecast) + ; + } + + /// + /// + /// + public static bool operator ==(Answers2 obj1, Answers2 obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(Answers2 obj1, Answers2 obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is Answers2 o && Equals(o); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateKeysRequest.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateKeysRequest.g.cs index 726889e4c..7296b4808 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateKeysRequest.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateKeysRequest.g.cs @@ -65,7 +65,7 @@ public sealed partial class CreateKeysRequest public required string Name { get; set; } /// - /// The workspace to create the API key in. Defaults to the default workspace if not provided.
+ /// The workspace to create the API key in. Defaults to the default workspace for an organization-scoped management key, or to the management key's own workspace for a workspace-scoped one, which cannot create keys elsewhere.
/// Example: 0df9e665-d932-5740-b2c7-b52af166bc11 ///
/// 0df9e665-d932-5740-b2c7-b52af166bc11 @@ -109,7 +109,7 @@ public sealed partial class CreateKeysRequest /// Example: monthly /// /// - /// The workspace to create the API key in. Defaults to the default workspace if not provided.
+ /// The workspace to create the API key in. Defaults to the default workspace for an organization-scoped management key, or to the management key's own workspace for a workspace-scoped one, which cannot create keys elsewhere.
/// Example: 0df9e665-d932-5740-b2c7-b52af166bc11 /// #if NET7_0_OR_GREATER diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadTts.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.Decisions.Json.g.cs similarity index 85% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadTts.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.Decisions.Json.g.cs index 2b56f1be0..d843bae7e 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadTts.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.Decisions.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class PublicEndpointPerfLast30mByWorkloadTts + public sealed partial class Decisions { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadTts? FromJson( + public static global::OpenRouter.Decisions? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.PublicEndpointPerfLast30mByWorkloadTts), - jsonSerializerContext) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadTts; + typeof(global::OpenRouter.Decisions), + jsonSerializerContext) as global::OpenRouter.Decisions; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadTts? FromJson( + public static global::OpenRouter.Decisions? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require 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::OpenRouter.PublicEndpointPerfLast30mByWorkloadTts? FromJson( + public static global::OpenRouter.Decisions? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::OpenRouter.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + 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::OpenRouter.PublicEndpointPerfLast30mByWorkloadTts), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadTts; + typeof(global::OpenRouter.Decisions), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.Decisions; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require 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( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::OpenRouter.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadTts.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.Decisions.g.cs similarity index 86% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadTts.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.Decisions.g.cs index 62727f964..766979297 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadTts.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.Decisions.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// /// - public sealed partial class PublicEndpointPerfLast30mByWorkloadTts + public sealed partial class Decisions { /// /// @@ -37,7 +37,7 @@ public sealed partial class PublicEndpointPerfLast30mByWorkloadTts public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -47,7 +47,7 @@ public sealed partial class PublicEndpointPerfLast30mByWorkloadTts #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public PublicEndpointPerfLast30mByWorkloadTts( + public Decisions( global::OpenRouter.AllOf latency, global::OpenRouter.AllOf throughput, int? requestCount) @@ -58,9 +58,9 @@ public PublicEndpointPerfLast30mByWorkloadTts( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public PublicEndpointPerfLast30mByWorkloadTts() + public Decisions() { } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.DecisionsLatency.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.DecisionsLatency.Json.g.cs new file mode 100644 index 000000000..769d2d07f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.DecisionsLatency.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class DecisionsLatency + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.DecisionsLatency? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.DecisionsLatency), + jsonSerializerContext) as global::OpenRouter.DecisionsLatency; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.DecisionsLatency? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.DecisionsLatency? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.DecisionsLatency), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.DecisionsLatency; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadTtsLatency.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.DecisionsLatency.g.cs similarity index 90% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadTtsLatency.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.DecisionsLatency.g.cs index 8346202c6..a6188722a 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadTtsLatency.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.DecisionsLatency.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// Latency percentiles in milliseconds for this workload. Image and video generation report full end-to-end generation time, because their raw latency only measures request acknowledgement; every other workload reports time to first token or result. /// - public sealed partial class PublicEndpointPerfLast30mByWorkloadTtsLatency + public sealed partial class DecisionsLatency { /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.DecisionsThroughput.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.DecisionsThroughput.Json.g.cs new file mode 100644 index 000000000..57e20d718 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.DecisionsThroughput.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class DecisionsThroughput + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.DecisionsThroughput? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.DecisionsThroughput), + jsonSerializerContext) as global::OpenRouter.DecisionsThroughput; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.DecisionsThroughput? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.DecisionsThroughput? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.DecisionsThroughput), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.DecisionsThroughput; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadSttThroughput.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.DecisionsThroughput.g.cs similarity index 89% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadSttThroughput.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.DecisionsThroughput.g.cs index 43ba07869..d627d3b27 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadSttThroughput.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.DecisionsThroughput.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// Throughput percentiles in tokens per second; pN is the speed that N% of requests reached or exceeded, so p90 is lower than p50. Only meaningful for text generation; null for workloads without token throughput. /// - public sealed partial class PublicEndpointPerfLast30mByWorkloadSttThroughput + public sealed partial class DecisionsThroughput { /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.Embeddings.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.Embeddings.Json.g.cs new file mode 100644 index 000000000..e5d55f463 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.Embeddings.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class Embeddings + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.Embeddings? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.Embeddings), + jsonSerializerContext) as global::OpenRouter.Embeddings; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.Embeddings? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.Embeddings? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.Embeddings), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.Embeddings; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadStt.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.Embeddings.g.cs similarity index 86% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadStt.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.Embeddings.g.cs index 0d0b83150..be0f8d4b1 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadStt.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.Embeddings.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// /// - public sealed partial class PublicEndpointPerfLast30mByWorkloadStt + public sealed partial class Embeddings { /// /// @@ -37,7 +37,7 @@ public sealed partial class PublicEndpointPerfLast30mByWorkloadStt public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -47,7 +47,7 @@ public sealed partial class PublicEndpointPerfLast30mByWorkloadStt #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public PublicEndpointPerfLast30mByWorkloadStt( + public Embeddings( global::OpenRouter.AllOf latency, global::OpenRouter.AllOf throughput, int? requestCount) @@ -58,9 +58,9 @@ public PublicEndpointPerfLast30mByWorkloadStt( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public PublicEndpointPerfLast30mByWorkloadStt() + public Embeddings() { } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.EmbeddingsLatency.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.EmbeddingsLatency.Json.g.cs new file mode 100644 index 000000000..66d3340b7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.EmbeddingsLatency.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class EmbeddingsLatency + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.EmbeddingsLatency? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.EmbeddingsLatency), + jsonSerializerContext) as global::OpenRouter.EmbeddingsLatency; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.EmbeddingsLatency? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.EmbeddingsLatency? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.EmbeddingsLatency), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.EmbeddingsLatency; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadSttLatency.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.EmbeddingsLatency.g.cs similarity index 90% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadSttLatency.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.EmbeddingsLatency.g.cs index fe2553e85..9e23675e7 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadSttLatency.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.EmbeddingsLatency.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// Latency percentiles in milliseconds for this workload. Image and video generation report full end-to-end generation time, because their raw latency only measures request acknowledgement; every other workload reports time to first token or result. /// - public sealed partial class PublicEndpointPerfLast30mByWorkloadSttLatency + public sealed partial class EmbeddingsLatency { /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.EmbeddingsThroughput.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.EmbeddingsThroughput.Json.g.cs new file mode 100644 index 000000000..571758587 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.EmbeddingsThroughput.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class EmbeddingsThroughput + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.EmbeddingsThroughput? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.EmbeddingsThroughput), + jsonSerializerContext) as global::OpenRouter.EmbeddingsThroughput; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.EmbeddingsThroughput? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.EmbeddingsThroughput? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.EmbeddingsThroughput), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.EmbeddingsThroughput; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadTtsThroughput.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.EmbeddingsThroughput.g.cs similarity index 89% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadTtsThroughput.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.EmbeddingsThroughput.g.cs index d99c133bd..dbc98ffd4 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadTtsThroughput.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.EmbeddingsThroughput.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// Throughput percentiles in tokens per second; pN is the speed that N% of requests reached or exceeded, so p90 is lower than p50. Only meaningful for text generation; null for workloads without token throughput. /// - public sealed partial class PublicEndpointPerfLast30mByWorkloadTtsThroughput + public sealed partial class EmbeddingsThroughput { /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionAsset.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionAsset.Json.g.cs new file mode 100644 index 000000000..6b45b30e8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionAsset.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ExtractionAsset + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionAsset? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ExtractionAsset), + jsonSerializerContext) as global::OpenRouter.ExtractionAsset; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionAsset? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionAsset? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionAsset), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ExtractionAsset; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionAsset.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionAsset.g.cs new file mode 100644 index 000000000..e6828a23b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionAsset.g.cs @@ -0,0 +1,66 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// An image or PDF sent once and referenced by its key in the `assets` map. `data_base64` is the file in standard base64 with no `data:` prefix. PDF is read by document models only. + /// + public sealed partial class ExtractionAsset + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data_base64")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string DataBase64 { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("format")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ExtractionAssetFormatJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ExtractionAssetFormat Format { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ExtractionAssetTypeJsonConverter))] + public global::OpenRouter.ExtractionAssetType? Type { 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 ExtractionAsset( + string dataBase64, + global::OpenRouter.ExtractionAssetFormat format, + global::OpenRouter.ExtractionAssetType? type) + { + this.DataBase64 = dataBase64 ?? throw new global::System.ArgumentNullException(nameof(dataBase64)); + this.Format = format; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public ExtractionAsset() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionAssetFormat.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionAssetFormat.g.cs new file mode 100644 index 000000000..12b4c60d2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionAssetFormat.g.cs @@ -0,0 +1,134 @@ + +#nullable enable + +namespace OpenRouter +{ + + /// + /// + /// + public readonly partial struct ExtractionAssetFormat : global::System.IEquatable + { + /// + /// + /// + public ExtractionAssetFormat(string value) + { + Value = value ?? throw new global::System.ArgumentNullException(nameof(value)); + } + + /// + /// + /// + public string Value { get; } + /// + /// + /// + public static ExtractionAssetFormat Jpeg { get; } = new("jpeg"); + + /// + /// + /// + public static ExtractionAssetFormat Jpg { get; } = new("jpg"); + + /// + /// + /// + public static ExtractionAssetFormat Pdf { get; } = new("pdf"); + + /// + /// + /// + public static ExtractionAssetFormat Png { get; } = new("png"); + /// + /// + /// + public static ExtractionAssetFormat FromValue(string value) + { + value = value ?? throw new global::System.ArgumentNullException(nameof(value)); + + return value switch + { + "jpeg" => Jpeg, + "jpg" => Jpg, + "pdf" => Pdf, + "png" => Png, + _ => new ExtractionAssetFormat(value), + }; + } + + /// + /// + /// + public bool IsKnown => Value switch + { + "jpeg" => true, + "jpg" => true, + "pdf" => true, + "png" => true, + _ => false, + }; + + /// + /// + /// + public override string ToString() => Value ?? string.Empty; + + /// + /// + /// + public bool Equals(ExtractionAssetFormat other) + { + return string.Equals(Value, other.Value, global::System.StringComparison.Ordinal); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is ExtractionAssetFormat other && Equals(other); + } + + /// + /// + /// + public override int GetHashCode() + { + return global::System.StringComparer.Ordinal.GetHashCode(Value ?? string.Empty); + } + + /// + /// + /// + public static bool operator ==(ExtractionAssetFormat left, ExtractionAssetFormat right) => left.Equals(right); + + /// + /// + /// + public static bool operator !=(ExtractionAssetFormat left, ExtractionAssetFormat right) => !left.Equals(right); + } + + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ExtractionAssetFormatExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ExtractionAssetFormat value) + { + return value.Value ?? throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null); + } + + /// + /// Converts an string to a enum. + /// + public static ExtractionAssetFormat? ToEnum(string value) + { + return ExtractionAssetFormat.FromValue(value); + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionAssetType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionAssetType.g.cs new file mode 100644 index 000000000..0637c8018 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionAssetType.g.cs @@ -0,0 +1,120 @@ + +#nullable enable + +namespace OpenRouter +{ + + /// + /// + /// + public readonly partial struct ExtractionAssetType : global::System.IEquatable + { + /// + /// + /// + public ExtractionAssetType(string value) + { + Value = value ?? throw new global::System.ArgumentNullException(nameof(value)); + } + + /// + /// + /// + public string Value { get; } + /// + /// + /// + public static ExtractionAssetType Document { get; } = new("document"); + + /// + /// + /// + public static ExtractionAssetType Image { get; } = new("image"); + /// + /// + /// + public static ExtractionAssetType FromValue(string value) + { + value = value ?? throw new global::System.ArgumentNullException(nameof(value)); + + return value switch + { + "document" => Document, + "image" => Image, + _ => new ExtractionAssetType(value), + }; + } + + /// + /// + /// + public bool IsKnown => Value switch + { + "document" => true, + "image" => true, + _ => false, + }; + + /// + /// + /// + public override string ToString() => Value ?? string.Empty; + + /// + /// + /// + public bool Equals(ExtractionAssetType other) + { + return string.Equals(Value, other.Value, global::System.StringComparison.Ordinal); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is ExtractionAssetType other && Equals(other); + } + + /// + /// + /// + public override int GetHashCode() + { + return global::System.StringComparer.Ordinal.GetHashCode(Value ?? string.Empty); + } + + /// + /// + /// + public static bool operator ==(ExtractionAssetType left, ExtractionAssetType right) => left.Equals(right); + + /// + /// + /// + public static bool operator !=(ExtractionAssetType left, ExtractionAssetType right) => !left.Equals(right); + } + + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ExtractionAssetTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ExtractionAssetType value) + { + return value.Value ?? throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null); + } + + /// + /// Converts an string to a enum. + /// + public static ExtractionAssetType? ToEnum(string value) + { + return ExtractionAssetType.FromValue(value); + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDateAnswer.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDateAnswer.Json.g.cs new file mode 100644 index 000000000..aa8db2d22 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDateAnswer.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ExtractionDateAnswer + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionDateAnswer? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ExtractionDateAnswer), + jsonSerializerContext) as global::OpenRouter.ExtractionDateAnswer; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionDateAnswer? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionDateAnswer? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionDateAnswer), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ExtractionDateAnswer; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDateAnswer.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDateAnswer.g.cs new file mode 100644 index 000000000..74eca601c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDateAnswer.g.cs @@ -0,0 +1,119 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ExtractionDateAnswer + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("confidence")] + public double? Confidence { get; set; } + + /// + /// The most likely value even when `value` is null because `p_null` crossed the threshold. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("guess")] + public string? Guess { get; set; } + + /// + /// Probability that the state contains nothing for this field. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("p_null")] + public double? PNull { get; set; } + + /// + /// Set to `image` or `document` when the answer was read from an image or a PDF rather than the state text. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("source")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ExtractionDateAnswerSourceJsonConverter))] + public global::OpenRouter.ExtractionDateAnswerSource? Source { get; set; } + + /// + /// Unicode code point offsets [start, end) into the state text: index code points (not UTF-16 code units or UTF-8 bytes), so an emoji or accented letter counts once. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("span")] + public global::System.Collections.Generic.IList? Span { get; set; } + + /// + /// Confidence in the spelling of text read from an image. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("spell_confidence")] + public double? SpellConfidence { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ExtractionDateAnswerTypeJsonConverter))] + public global::OpenRouter.ExtractionDateAnswerType Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("value")] + public string? Value { 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. + /// + /// + /// + /// The most likely value even when `value` is null because `p_null` crossed the threshold. + /// + /// + /// Probability that the state contains nothing for this field. + /// + /// + /// Set to `image` or `document` when the answer was read from an image or a PDF rather than the state text. + /// + /// + /// Unicode code point offsets [start, end) into the state text: index code points (not UTF-16 code units or UTF-8 bytes), so an emoji or accented letter counts once. + /// + /// + /// Confidence in the spelling of text read from an image. + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ExtractionDateAnswer( + double? confidence, + string? guess, + double? pNull, + global::OpenRouter.ExtractionDateAnswerSource? source, + global::System.Collections.Generic.IList? span, + double? spellConfidence, + global::OpenRouter.ExtractionDateAnswerType type, + string? value) + { + this.Confidence = confidence; + this.Guess = guess; + this.PNull = pNull; + this.Source = source; + this.Span = span; + this.SpellConfidence = spellConfidence; + this.Type = type; + this.Value = value; + } + + /// + /// Initializes a new instance of the class. + /// + public ExtractionDateAnswer() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDateAnswerSource.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDateAnswerSource.g.cs new file mode 100644 index 000000000..78ef2de8f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDateAnswerSource.g.cs @@ -0,0 +1,127 @@ + +#nullable enable + +namespace OpenRouter +{ + + /// + /// Set to `image` or `document` when the answer was read from an image or a PDF rather than the state text. + /// + public readonly partial struct ExtractionDateAnswerSource : global::System.IEquatable + { + /// + /// + /// + public ExtractionDateAnswerSource(string value) + { + Value = value ?? throw new global::System.ArgumentNullException(nameof(value)); + } + + /// + /// + /// + public string Value { get; } + /// + /// + /// + public static ExtractionDateAnswerSource Document { get; } = new("document"); + + /// + /// + /// + public static ExtractionDateAnswerSource Image { get; } = new("image"); + + /// + /// + /// + public static ExtractionDateAnswerSource State { get; } = new("state"); + /// + /// + /// + public static ExtractionDateAnswerSource FromValue(string value) + { + value = value ?? throw new global::System.ArgumentNullException(nameof(value)); + + return value switch + { + "document" => Document, + "image" => Image, + "state" => State, + _ => new ExtractionDateAnswerSource(value), + }; + } + + /// + /// + /// + public bool IsKnown => Value switch + { + "document" => true, + "image" => true, + "state" => true, + _ => false, + }; + + /// + /// + /// + public override string ToString() => Value ?? string.Empty; + + /// + /// + /// + public bool Equals(ExtractionDateAnswerSource other) + { + return string.Equals(Value, other.Value, global::System.StringComparison.Ordinal); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is ExtractionDateAnswerSource other && Equals(other); + } + + /// + /// + /// + public override int GetHashCode() + { + return global::System.StringComparer.Ordinal.GetHashCode(Value ?? string.Empty); + } + + /// + /// + /// + public static bool operator ==(ExtractionDateAnswerSource left, ExtractionDateAnswerSource right) => left.Equals(right); + + /// + /// + /// + public static bool operator !=(ExtractionDateAnswerSource left, ExtractionDateAnswerSource right) => !left.Equals(right); + } + + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ExtractionDateAnswerSourceExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ExtractionDateAnswerSource value) + { + return value.Value ?? throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null); + } + + /// + /// Converts an string to a enum. + /// + public static ExtractionDateAnswerSource? ToEnum(string value) + { + return ExtractionDateAnswerSource.FromValue(value); + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDateAnswerType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDateAnswerType.g.cs new file mode 100644 index 000000000..50b13c29d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDateAnswerType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ExtractionDateAnswerType + { + /// + /// + /// + Date, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ExtractionDateAnswerTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ExtractionDateAnswerType value) + { + return value switch + { + ExtractionDateAnswerType.Date => "date", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ExtractionDateAnswerType? ToEnum(string value) + { + return value switch + { + "date" => ExtractionDateAnswerType.Date, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDateField.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDateField.Json.g.cs new file mode 100644 index 000000000..6628f0728 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDateField.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ExtractionDateField + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionDateField? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ExtractionDateField), + jsonSerializerContext) as global::OpenRouter.ExtractionDateField; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionDateField? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionDateField? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionDateField), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ExtractionDateField; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDateField.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDateField.g.cs new file mode 100644 index 000000000..b1f3f76f9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDateField.g.cs @@ -0,0 +1,67 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ExtractionDateField + { + /// + /// What the field should contain. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("instructions")] + public string? Instructions { get; set; } + + /// + /// Probability of null above which `value` is null. Default 0.5. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("null_threshold")] + public double? NullThreshold { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ExtractionDateFieldTypeJsonConverter))] + public global::OpenRouter.ExtractionDateFieldType Type { 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. + /// + /// + /// What the field should contain. + /// + /// + /// Probability of null above which `value` is null. Default 0.5. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ExtractionDateField( + string? instructions, + double? nullThreshold, + global::OpenRouter.ExtractionDateFieldType type) + { + this.Instructions = instructions; + this.NullThreshold = nullThreshold; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public ExtractionDateField() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDateFieldType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDateFieldType.g.cs new file mode 100644 index 000000000..e413845c3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDateFieldType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ExtractionDateFieldType + { + /// + /// + /// + Date, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ExtractionDateFieldTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ExtractionDateFieldType value) + { + return value switch + { + ExtractionDateFieldType.Date => "date", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ExtractionDateFieldType? ToEnum(string value) + { + return value switch + { + "date" => ExtractionDateFieldType.Date, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDatetimeAnswer.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDatetimeAnswer.Json.g.cs new file mode 100644 index 000000000..6e46c3a2d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDatetimeAnswer.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ExtractionDatetimeAnswer + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionDatetimeAnswer? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ExtractionDatetimeAnswer), + jsonSerializerContext) as global::OpenRouter.ExtractionDatetimeAnswer; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionDatetimeAnswer? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionDatetimeAnswer? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionDatetimeAnswer), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ExtractionDatetimeAnswer; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDatetimeAnswer.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDatetimeAnswer.g.cs new file mode 100644 index 000000000..614228778 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDatetimeAnswer.g.cs @@ -0,0 +1,119 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ExtractionDatetimeAnswer + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("confidence")] + public double? Confidence { get; set; } + + /// + /// The most likely value even when `value` is null because `p_null` crossed the threshold. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("guess")] + public string? Guess { get; set; } + + /// + /// Probability that the state contains nothing for this field. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("p_null")] + public double? PNull { get; set; } + + /// + /// Set to `image` or `document` when the answer was read from an image or a PDF rather than the state text. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("source")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ExtractionDatetimeAnswerSourceJsonConverter))] + public global::OpenRouter.ExtractionDatetimeAnswerSource? Source { get; set; } + + /// + /// Unicode code point offsets [start, end) into the state text: index code points (not UTF-16 code units or UTF-8 bytes), so an emoji or accented letter counts once. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("span")] + public global::System.Collections.Generic.IList? Span { get; set; } + + /// + /// Confidence in the spelling of text read from an image. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("spell_confidence")] + public double? SpellConfidence { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ExtractionDatetimeAnswerTypeJsonConverter))] + public global::OpenRouter.ExtractionDatetimeAnswerType Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("value")] + public string? Value { 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. + /// + /// + /// + /// The most likely value even when `value` is null because `p_null` crossed the threshold. + /// + /// + /// Probability that the state contains nothing for this field. + /// + /// + /// Set to `image` or `document` when the answer was read from an image or a PDF rather than the state text. + /// + /// + /// Unicode code point offsets [start, end) into the state text: index code points (not UTF-16 code units or UTF-8 bytes), so an emoji or accented letter counts once. + /// + /// + /// Confidence in the spelling of text read from an image. + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ExtractionDatetimeAnswer( + double? confidence, + string? guess, + double? pNull, + global::OpenRouter.ExtractionDatetimeAnswerSource? source, + global::System.Collections.Generic.IList? span, + double? spellConfidence, + global::OpenRouter.ExtractionDatetimeAnswerType type, + string? value) + { + this.Confidence = confidence; + this.Guess = guess; + this.PNull = pNull; + this.Source = source; + this.Span = span; + this.SpellConfidence = spellConfidence; + this.Type = type; + this.Value = value; + } + + /// + /// Initializes a new instance of the class. + /// + public ExtractionDatetimeAnswer() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDatetimeAnswerSource.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDatetimeAnswerSource.g.cs new file mode 100644 index 000000000..f9b2afb22 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDatetimeAnswerSource.g.cs @@ -0,0 +1,127 @@ + +#nullable enable + +namespace OpenRouter +{ + + /// + /// Set to `image` or `document` when the answer was read from an image or a PDF rather than the state text. + /// + public readonly partial struct ExtractionDatetimeAnswerSource : global::System.IEquatable + { + /// + /// + /// + public ExtractionDatetimeAnswerSource(string value) + { + Value = value ?? throw new global::System.ArgumentNullException(nameof(value)); + } + + /// + /// + /// + public string Value { get; } + /// + /// + /// + public static ExtractionDatetimeAnswerSource Document { get; } = new("document"); + + /// + /// + /// + public static ExtractionDatetimeAnswerSource Image { get; } = new("image"); + + /// + /// + /// + public static ExtractionDatetimeAnswerSource State { get; } = new("state"); + /// + /// + /// + public static ExtractionDatetimeAnswerSource FromValue(string value) + { + value = value ?? throw new global::System.ArgumentNullException(nameof(value)); + + return value switch + { + "document" => Document, + "image" => Image, + "state" => State, + _ => new ExtractionDatetimeAnswerSource(value), + }; + } + + /// + /// + /// + public bool IsKnown => Value switch + { + "document" => true, + "image" => true, + "state" => true, + _ => false, + }; + + /// + /// + /// + public override string ToString() => Value ?? string.Empty; + + /// + /// + /// + public bool Equals(ExtractionDatetimeAnswerSource other) + { + return string.Equals(Value, other.Value, global::System.StringComparison.Ordinal); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is ExtractionDatetimeAnswerSource other && Equals(other); + } + + /// + /// + /// + public override int GetHashCode() + { + return global::System.StringComparer.Ordinal.GetHashCode(Value ?? string.Empty); + } + + /// + /// + /// + public static bool operator ==(ExtractionDatetimeAnswerSource left, ExtractionDatetimeAnswerSource right) => left.Equals(right); + + /// + /// + /// + public static bool operator !=(ExtractionDatetimeAnswerSource left, ExtractionDatetimeAnswerSource right) => !left.Equals(right); + } + + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ExtractionDatetimeAnswerSourceExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ExtractionDatetimeAnswerSource value) + { + return value.Value ?? throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null); + } + + /// + /// Converts an string to a enum. + /// + public static ExtractionDatetimeAnswerSource? ToEnum(string value) + { + return ExtractionDatetimeAnswerSource.FromValue(value); + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDatetimeAnswerType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDatetimeAnswerType.g.cs new file mode 100644 index 000000000..80d1a524f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDatetimeAnswerType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ExtractionDatetimeAnswerType + { + /// + /// + /// + Datetime, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ExtractionDatetimeAnswerTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ExtractionDatetimeAnswerType value) + { + return value switch + { + ExtractionDatetimeAnswerType.Datetime => "datetime", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ExtractionDatetimeAnswerType? ToEnum(string value) + { + return value switch + { + "datetime" => ExtractionDatetimeAnswerType.Datetime, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDatetimeField.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDatetimeField.Json.g.cs new file mode 100644 index 000000000..000fef2e2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDatetimeField.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ExtractionDatetimeField + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionDatetimeField? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ExtractionDatetimeField), + jsonSerializerContext) as global::OpenRouter.ExtractionDatetimeField; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionDatetimeField? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionDatetimeField? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionDatetimeField), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ExtractionDatetimeField; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDatetimeField.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDatetimeField.g.cs new file mode 100644 index 000000000..1a41665c3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDatetimeField.g.cs @@ -0,0 +1,67 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ExtractionDatetimeField + { + /// + /// What the field should contain. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("instructions")] + public string? Instructions { get; set; } + + /// + /// Probability of null above which `value` is null. Default 0.5. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("null_threshold")] + public double? NullThreshold { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ExtractionDatetimeFieldTypeJsonConverter))] + public global::OpenRouter.ExtractionDatetimeFieldType Type { 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. + /// + /// + /// What the field should contain. + /// + /// + /// Probability of null above which `value` is null. Default 0.5. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ExtractionDatetimeField( + string? instructions, + double? nullThreshold, + global::OpenRouter.ExtractionDatetimeFieldType type) + { + this.Instructions = instructions; + this.NullThreshold = nullThreshold; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public ExtractionDatetimeField() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDatetimeFieldType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDatetimeFieldType.g.cs new file mode 100644 index 000000000..e5b12737c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDatetimeFieldType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ExtractionDatetimeFieldType + { + /// + /// + /// + Datetime, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ExtractionDatetimeFieldTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ExtractionDatetimeFieldType value) + { + return value switch + { + ExtractionDatetimeFieldType.Datetime => "datetime", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ExtractionDatetimeFieldType? ToEnum(string value) + { + return value switch + { + "datetime" => ExtractionDatetimeFieldType.Datetime, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDurationAnswer.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDurationAnswer.Json.g.cs new file mode 100644 index 000000000..2b0cdf05a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDurationAnswer.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ExtractionDurationAnswer + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionDurationAnswer? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ExtractionDurationAnswer), + jsonSerializerContext) as global::OpenRouter.ExtractionDurationAnswer; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionDurationAnswer? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionDurationAnswer? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionDurationAnswer), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ExtractionDurationAnswer; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDurationAnswer.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDurationAnswer.g.cs new file mode 100644 index 000000000..cc4a5ad19 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDurationAnswer.g.cs @@ -0,0 +1,130 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ExtractionDurationAnswer + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("confidence")] + public double? Confidence { get; set; } + + /// + /// The most likely value even when `value` is null because `p_null` crossed the threshold. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("guess")] + public double? Guess { get; set; } + + /// + /// Probability that the state contains nothing for this field. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("p_null")] + public double? PNull { get; set; } + + /// + /// Set to `image` or `document` when the answer was read from an image or a PDF rather than the state text. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("source")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ExtractionDurationAnswerSourceJsonConverter))] + public global::OpenRouter.ExtractionDurationAnswerSource? Source { get; set; } + + /// + /// Unicode code point offsets [start, end) into the state text: index code points (not UTF-16 code units or UTF-8 bytes), so an emoji or accented letter counts once. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("span")] + public global::System.Collections.Generic.IList? Span { get; set; } + + /// + /// Confidence in the spelling of text read from an image. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("spell_confidence")] + public double? SpellConfidence { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ExtractionDurationAnswerTypeJsonConverter))] + public global::OpenRouter.ExtractionDurationAnswerType Type { get; set; } + + /// + /// The unit `value` is expressed in. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("unit")] + public string? Unit { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("value")] + public double? Value { 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. + /// + /// + /// + /// The most likely value even when `value` is null because `p_null` crossed the threshold. + /// + /// + /// Probability that the state contains nothing for this field. + /// + /// + /// Set to `image` or `document` when the answer was read from an image or a PDF rather than the state text. + /// + /// + /// Unicode code point offsets [start, end) into the state text: index code points (not UTF-16 code units or UTF-8 bytes), so an emoji or accented letter counts once. + /// + /// + /// Confidence in the spelling of text read from an image. + /// + /// + /// + /// The unit `value` is expressed in. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ExtractionDurationAnswer( + double? confidence, + double? guess, + double? pNull, + global::OpenRouter.ExtractionDurationAnswerSource? source, + global::System.Collections.Generic.IList? span, + double? spellConfidence, + global::OpenRouter.ExtractionDurationAnswerType type, + string? unit, + double? value) + { + this.Confidence = confidence; + this.Guess = guess; + this.PNull = pNull; + this.Source = source; + this.Span = span; + this.SpellConfidence = spellConfidence; + this.Type = type; + this.Unit = unit; + this.Value = value; + } + + /// + /// Initializes a new instance of the class. + /// + public ExtractionDurationAnswer() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDurationAnswerSource.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDurationAnswerSource.g.cs new file mode 100644 index 000000000..76ee5cba6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDurationAnswerSource.g.cs @@ -0,0 +1,127 @@ + +#nullable enable + +namespace OpenRouter +{ + + /// + /// Set to `image` or `document` when the answer was read from an image or a PDF rather than the state text. + /// + public readonly partial struct ExtractionDurationAnswerSource : global::System.IEquatable + { + /// + /// + /// + public ExtractionDurationAnswerSource(string value) + { + Value = value ?? throw new global::System.ArgumentNullException(nameof(value)); + } + + /// + /// + /// + public string Value { get; } + /// + /// + /// + public static ExtractionDurationAnswerSource Document { get; } = new("document"); + + /// + /// + /// + public static ExtractionDurationAnswerSource Image { get; } = new("image"); + + /// + /// + /// + public static ExtractionDurationAnswerSource State { get; } = new("state"); + /// + /// + /// + public static ExtractionDurationAnswerSource FromValue(string value) + { + value = value ?? throw new global::System.ArgumentNullException(nameof(value)); + + return value switch + { + "document" => Document, + "image" => Image, + "state" => State, + _ => new ExtractionDurationAnswerSource(value), + }; + } + + /// + /// + /// + public bool IsKnown => Value switch + { + "document" => true, + "image" => true, + "state" => true, + _ => false, + }; + + /// + /// + /// + public override string ToString() => Value ?? string.Empty; + + /// + /// + /// + public bool Equals(ExtractionDurationAnswerSource other) + { + return string.Equals(Value, other.Value, global::System.StringComparison.Ordinal); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is ExtractionDurationAnswerSource other && Equals(other); + } + + /// + /// + /// + public override int GetHashCode() + { + return global::System.StringComparer.Ordinal.GetHashCode(Value ?? string.Empty); + } + + /// + /// + /// + public static bool operator ==(ExtractionDurationAnswerSource left, ExtractionDurationAnswerSource right) => left.Equals(right); + + /// + /// + /// + public static bool operator !=(ExtractionDurationAnswerSource left, ExtractionDurationAnswerSource right) => !left.Equals(right); + } + + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ExtractionDurationAnswerSourceExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ExtractionDurationAnswerSource value) + { + return value.Value ?? throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null); + } + + /// + /// Converts an string to a enum. + /// + public static ExtractionDurationAnswerSource? ToEnum(string value) + { + return ExtractionDurationAnswerSource.FromValue(value); + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDurationAnswerType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDurationAnswerType.g.cs new file mode 100644 index 000000000..b0be835c1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDurationAnswerType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ExtractionDurationAnswerType + { + /// + /// + /// + Duration, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ExtractionDurationAnswerTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ExtractionDurationAnswerType value) + { + return value switch + { + ExtractionDurationAnswerType.Duration => "duration", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ExtractionDurationAnswerType? ToEnum(string value) + { + return value switch + { + "duration" => ExtractionDurationAnswerType.Duration, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDurationField.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDurationField.Json.g.cs new file mode 100644 index 000000000..d13593647 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDurationField.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ExtractionDurationField + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionDurationField? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ExtractionDurationField), + jsonSerializerContext) as global::OpenRouter.ExtractionDurationField; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionDurationField? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionDurationField? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionDurationField), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ExtractionDurationField; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDurationField.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDurationField.g.cs new file mode 100644 index 000000000..5c03343e3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDurationField.g.cs @@ -0,0 +1,98 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ExtractionDurationField + { + /// + /// Decimal places kept in `value`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("decimals")] + public int? Decimals { get; set; } + + /// + /// What the field should contain. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("instructions")] + public string? Instructions { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("integer")] + public bool? Integer { get; set; } + + /// + /// Probability of null above which `value` is null. Default 0.5. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("null_threshold")] + public double? NullThreshold { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ExtractionDurationFieldTypeJsonConverter))] + public global::OpenRouter.ExtractionDurationFieldType Type { get; set; } + + /// + /// seconds, minutes, hours, days, weeks, months or years. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("unit")] + public string? Unit { 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. + /// + /// + /// Decimal places kept in `value`. + /// + /// + /// What the field should contain. + /// + /// + /// + /// Probability of null above which `value` is null. Default 0.5. + /// + /// + /// + /// seconds, minutes, hours, days, weeks, months or years. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ExtractionDurationField( + int? decimals, + string? instructions, + bool? integer, + double? nullThreshold, + global::OpenRouter.ExtractionDurationFieldType type, + string? unit) + { + this.Decimals = decimals; + this.Instructions = instructions; + this.Integer = integer; + this.NullThreshold = nullThreshold; + this.Type = type; + this.Unit = unit; + } + + /// + /// Initializes a new instance of the class. + /// + public ExtractionDurationField() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDurationFieldType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDurationFieldType.g.cs new file mode 100644 index 000000000..491a1ad77 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionDurationFieldType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ExtractionDurationFieldType + { + /// + /// + /// + Duration, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ExtractionDurationFieldTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ExtractionDurationFieldType value) + { + return value switch + { + ExtractionDurationFieldType.Duration => "duration", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ExtractionDurationFieldType? ToEnum(string value) + { + return value switch + { + "duration" => ExtractionDurationFieldType.Duration, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionEstimateAnswer.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionEstimateAnswer.Json.g.cs new file mode 100644 index 000000000..ea29d4783 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionEstimateAnswer.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ExtractionEstimateAnswer + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionEstimateAnswer? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ExtractionEstimateAnswer), + jsonSerializerContext) as global::OpenRouter.ExtractionEstimateAnswer; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionEstimateAnswer? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionEstimateAnswer? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionEstimateAnswer), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ExtractionEstimateAnswer; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionEstimateAnswer.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionEstimateAnswer.g.cs new file mode 100644 index 000000000..e75d2bca0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionEstimateAnswer.g.cs @@ -0,0 +1,183 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ExtractionEstimateAnswer + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("confidence")] + public double? Confidence { get; set; } + + /// + /// The most likely value even when `value` is null because `p_null` crossed the threshold. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("guess")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AnyOfJsonConverter))] + public global::OpenRouter.AnyOf? Guess { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("mean")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AnyOfJsonConverter))] + public global::OpenRouter.AnyOf? Mean { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("median")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AnyOfJsonConverter))] + public global::OpenRouter.AnyOf? Median { get; set; } + + /// + /// Probability mass above `max`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("p_above")] + public double? PAbove { get; set; } + + /// + /// Probability mass below `min`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("p_below")] + public double? PBelow { get; set; } + + /// + /// Probability that the state contains nothing for this field. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("p_null")] + public double? PNull { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("p10")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AnyOfJsonConverter))] + public global::OpenRouter.AnyOf? P10 { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("p90")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AnyOfJsonConverter))] + public global::OpenRouter.AnyOf? P90 { get; set; } + + /// + /// 99 percentiles, present when the provider is asked for quantiles. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("quantiles")] + public global::System.Collections.Generic.IList>? Quantiles { get; set; } + + /// + /// Set to `image` or `document` when the answer was read from an image or a PDF rather than the state text. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("source")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ExtractionEstimateAnswerSourceJsonConverter))] + public global::OpenRouter.ExtractionEstimateAnswerSource? Source { get; set; } + + /// + /// Confidence in the spelling of text read from an image. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("spell_confidence")] + public double? SpellConfidence { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ExtractionEstimateAnswerTypeJsonConverter))] + public global::OpenRouter.ExtractionEstimateAnswerType Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("value")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AnyOfJsonConverter))] + public global::OpenRouter.AnyOf? Value { 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. + /// + /// + /// + /// The most likely value even when `value` is null because `p_null` crossed the threshold. + /// + /// + /// + /// + /// Probability mass above `max`. + /// + /// + /// Probability mass below `min`. + /// + /// + /// Probability that the state contains nothing for this field. + /// + /// + /// + /// + /// 99 percentiles, present when the provider is asked for quantiles. + /// + /// + /// Set to `image` or `document` when the answer was read from an image or a PDF rather than the state text. + /// + /// + /// Confidence in the spelling of text read from an image. + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ExtractionEstimateAnswer( + double? confidence, + global::OpenRouter.AnyOf? guess, + global::OpenRouter.AnyOf? mean, + global::OpenRouter.AnyOf? median, + double? pAbove, + double? pBelow, + double? pNull, + global::OpenRouter.AnyOf? p10, + global::OpenRouter.AnyOf? p90, + global::System.Collections.Generic.IList>? quantiles, + global::OpenRouter.ExtractionEstimateAnswerSource? source, + double? spellConfidence, + global::OpenRouter.ExtractionEstimateAnswerType type, + global::OpenRouter.AnyOf? value) + { + this.Confidence = confidence; + this.Guess = guess; + this.Mean = mean; + this.Median = median; + this.PAbove = pAbove; + this.PBelow = pBelow; + this.PNull = pNull; + this.P10 = p10; + this.P90 = p90; + this.Quantiles = quantiles; + this.Source = source; + this.SpellConfidence = spellConfidence; + this.Type = type; + this.Value = value; + } + + /// + /// Initializes a new instance of the class. + /// + public ExtractionEstimateAnswer() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionEstimateAnswerSource.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionEstimateAnswerSource.g.cs new file mode 100644 index 000000000..afb843d77 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionEstimateAnswerSource.g.cs @@ -0,0 +1,127 @@ + +#nullable enable + +namespace OpenRouter +{ + + /// + /// Set to `image` or `document` when the answer was read from an image or a PDF rather than the state text. + /// + public readonly partial struct ExtractionEstimateAnswerSource : global::System.IEquatable + { + /// + /// + /// + public ExtractionEstimateAnswerSource(string value) + { + Value = value ?? throw new global::System.ArgumentNullException(nameof(value)); + } + + /// + /// + /// + public string Value { get; } + /// + /// + /// + public static ExtractionEstimateAnswerSource Document { get; } = new("document"); + + /// + /// + /// + public static ExtractionEstimateAnswerSource Image { get; } = new("image"); + + /// + /// + /// + public static ExtractionEstimateAnswerSource State { get; } = new("state"); + /// + /// + /// + public static ExtractionEstimateAnswerSource FromValue(string value) + { + value = value ?? throw new global::System.ArgumentNullException(nameof(value)); + + return value switch + { + "document" => Document, + "image" => Image, + "state" => State, + _ => new ExtractionEstimateAnswerSource(value), + }; + } + + /// + /// + /// + public bool IsKnown => Value switch + { + "document" => true, + "image" => true, + "state" => true, + _ => false, + }; + + /// + /// + /// + public override string ToString() => Value ?? string.Empty; + + /// + /// + /// + public bool Equals(ExtractionEstimateAnswerSource other) + { + return string.Equals(Value, other.Value, global::System.StringComparison.Ordinal); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is ExtractionEstimateAnswerSource other && Equals(other); + } + + /// + /// + /// + public override int GetHashCode() + { + return global::System.StringComparer.Ordinal.GetHashCode(Value ?? string.Empty); + } + + /// + /// + /// + public static bool operator ==(ExtractionEstimateAnswerSource left, ExtractionEstimateAnswerSource right) => left.Equals(right); + + /// + /// + /// + public static bool operator !=(ExtractionEstimateAnswerSource left, ExtractionEstimateAnswerSource right) => !left.Equals(right); + } + + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ExtractionEstimateAnswerSourceExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ExtractionEstimateAnswerSource value) + { + return value.Value ?? throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null); + } + + /// + /// Converts an string to a enum. + /// + public static ExtractionEstimateAnswerSource? ToEnum(string value) + { + return ExtractionEstimateAnswerSource.FromValue(value); + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionEstimateAnswerType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionEstimateAnswerType.g.cs new file mode 100644 index 000000000..413a58fa0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionEstimateAnswerType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ExtractionEstimateAnswerType + { + /// + /// + /// + Estimate, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ExtractionEstimateAnswerTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ExtractionEstimateAnswerType value) + { + return value switch + { + ExtractionEstimateAnswerType.Estimate => "estimate", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ExtractionEstimateAnswerType? ToEnum(string value) + { + return value switch + { + "estimate" => ExtractionEstimateAnswerType.Estimate, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadUnknown.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionEstimateField.Json.g.cs similarity index 85% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadUnknown.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionEstimateField.Json.g.cs index c607486ef..842ce5113 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadUnknown.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionEstimateField.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class PublicEndpointPerfLast30mByWorkloadUnknown + public sealed partial class ExtractionEstimateField { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadUnknown? FromJson( + public static global::OpenRouter.ExtractionEstimateField? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.PublicEndpointPerfLast30mByWorkloadUnknown), - jsonSerializerContext) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadUnknown; + typeof(global::OpenRouter.ExtractionEstimateField), + jsonSerializerContext) as global::OpenRouter.ExtractionEstimateField; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadUnknown? FromJson( + public static global::OpenRouter.ExtractionEstimateField? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require 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::OpenRouter.PublicEndpointPerfLast30mByWorkloadUnknown? FromJson( + public static global::OpenRouter.ExtractionEstimateField? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::OpenRouter.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + 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::OpenRouter.PublicEndpointPerfLast30mByWorkloadUnknown), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadUnknown; + typeof(global::OpenRouter.ExtractionEstimateField), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ExtractionEstimateField; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require 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( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::OpenRouter.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionEstimateField.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionEstimateField.g.cs new file mode 100644 index 000000000..7480c2a12 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionEstimateField.g.cs @@ -0,0 +1,118 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ExtractionEstimateField + { + /// + /// What the field should contain. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("instructions")] + public string? Instructions { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("max")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AnyOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.AnyOf Max { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("min")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AnyOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.AnyOf Min { get; set; } + + /// + /// Probability of null above which `value` is null. Default 0.5. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("null_threshold")] + public double? NullThreshold { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("scale")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ExtractionEstimateFieldScaleJsonConverter))] + public global::OpenRouter.ExtractionEstimateFieldScale? Scale { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("step")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AnyOfJsonConverter))] + public global::OpenRouter.AnyOf? Step { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ExtractionEstimateFieldTypeJsonConverter))] + public global::OpenRouter.ExtractionEstimateFieldType Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("unit")] + public string? Unit { 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. + /// + /// + /// + /// + /// What the field should contain. + /// + /// + /// Probability of null above which `value` is null. Default 0.5. + /// + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ExtractionEstimateField( + global::OpenRouter.AnyOf max, + global::OpenRouter.AnyOf min, + string? instructions, + double? nullThreshold, + global::OpenRouter.ExtractionEstimateFieldScale? scale, + global::OpenRouter.AnyOf? step, + global::OpenRouter.ExtractionEstimateFieldType type, + string? unit) + { + this.Instructions = instructions; + this.Max = max; + this.Min = min; + this.NullThreshold = nullThreshold; + this.Scale = scale; + this.Step = step; + this.Type = type; + this.Unit = unit; + } + + /// + /// Initializes a new instance of the class. + /// + public ExtractionEstimateField() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionEstimateFieldScale.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionEstimateFieldScale.g.cs new file mode 100644 index 000000000..164b38948 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionEstimateFieldScale.g.cs @@ -0,0 +1,120 @@ + +#nullable enable + +namespace OpenRouter +{ + + /// + /// + /// + public readonly partial struct ExtractionEstimateFieldScale : global::System.IEquatable + { + /// + /// + /// + public ExtractionEstimateFieldScale(string value) + { + Value = value ?? throw new global::System.ArgumentNullException(nameof(value)); + } + + /// + /// + /// + public string Value { get; } + /// + /// + /// + public static ExtractionEstimateFieldScale Linear { get; } = new("linear"); + + /// + /// + /// + public static ExtractionEstimateFieldScale Log { get; } = new("log"); + /// + /// + /// + public static ExtractionEstimateFieldScale FromValue(string value) + { + value = value ?? throw new global::System.ArgumentNullException(nameof(value)); + + return value switch + { + "linear" => Linear, + "log" => Log, + _ => new ExtractionEstimateFieldScale(value), + }; + } + + /// + /// + /// + public bool IsKnown => Value switch + { + "linear" => true, + "log" => true, + _ => false, + }; + + /// + /// + /// + public override string ToString() => Value ?? string.Empty; + + /// + /// + /// + public bool Equals(ExtractionEstimateFieldScale other) + { + return string.Equals(Value, other.Value, global::System.StringComparison.Ordinal); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is ExtractionEstimateFieldScale other && Equals(other); + } + + /// + /// + /// + public override int GetHashCode() + { + return global::System.StringComparer.Ordinal.GetHashCode(Value ?? string.Empty); + } + + /// + /// + /// + public static bool operator ==(ExtractionEstimateFieldScale left, ExtractionEstimateFieldScale right) => left.Equals(right); + + /// + /// + /// + public static bool operator !=(ExtractionEstimateFieldScale left, ExtractionEstimateFieldScale right) => !left.Equals(right); + } + + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ExtractionEstimateFieldScaleExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ExtractionEstimateFieldScale value) + { + return value.Value ?? throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null); + } + + /// + /// Converts an string to a enum. + /// + public static ExtractionEstimateFieldScale? ToEnum(string value) + { + return ExtractionEstimateFieldScale.FromValue(value); + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionEstimateFieldStepVariant2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionEstimateFieldStepVariant2.g.cs new file mode 100644 index 000000000..6a544191a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionEstimateFieldStepVariant2.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ExtractionEstimateFieldStepVariant2 + { + /// + /// + /// + Month, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ExtractionEstimateFieldStepVariant2Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ExtractionEstimateFieldStepVariant2 value) + { + return value switch + { + ExtractionEstimateFieldStepVariant2.Month => "month", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ExtractionEstimateFieldStepVariant2? ToEnum(string value) + { + return value switch + { + "month" => ExtractionEstimateFieldStepVariant2.Month, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionEstimateFieldStepVariant3.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionEstimateFieldStepVariant3.g.cs new file mode 100644 index 000000000..89359b547 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionEstimateFieldStepVariant3.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ExtractionEstimateFieldStepVariant3 + { + /// + /// + /// + Year, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ExtractionEstimateFieldStepVariant3Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ExtractionEstimateFieldStepVariant3 value) + { + return value switch + { + ExtractionEstimateFieldStepVariant3.Year => "year", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ExtractionEstimateFieldStepVariant3? ToEnum(string value) + { + return value switch + { + "year" => ExtractionEstimateFieldStepVariant3.Year, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionEstimateFieldType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionEstimateFieldType.g.cs new file mode 100644 index 000000000..bd31666bb --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionEstimateFieldType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ExtractionEstimateFieldType + { + /// + /// + /// + Estimate, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ExtractionEstimateFieldTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ExtractionEstimateFieldType value) + { + return value switch + { + ExtractionEstimateFieldType.Estimate => "estimate", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ExtractionEstimateFieldType? ToEnum(string value) + { + return value switch + { + "estimate" => ExtractionEstimateFieldType.Estimate, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastAnswer.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastAnswer.Json.g.cs new file mode 100644 index 000000000..50042eca6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastAnswer.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ExtractionForecastAnswer + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionForecastAnswer? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ExtractionForecastAnswer), + jsonSerializerContext) as global::OpenRouter.ExtractionForecastAnswer; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionForecastAnswer? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionForecastAnswer? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionForecastAnswer), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ExtractionForecastAnswer; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastAnswer.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastAnswer.g.cs new file mode 100644 index 000000000..90f5d8d51 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastAnswer.g.cs @@ -0,0 +1,153 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ExtractionForecastAnswer + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("confidence")] + public double? Confidence { get; set; } + + /// + /// The most likely value even when `value` is null because `p_null` crossed the threshold. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("guess")] + public global::System.Collections.Generic.IList>? Guess { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("mean")] + public global::System.Collections.Generic.IList>? Mean { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("median")] + public global::System.Collections.Generic.IList>? Median { get; set; } + + /// + /// Probability that the state contains nothing for this field. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("p_null")] + public double? PNull { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("p10")] + public global::System.Collections.Generic.IList>? P10 { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("p90")] + public global::System.Collections.Generic.IList>? P90 { get; set; } + + /// + /// Set to `image` or `document` when the answer was read from an image or a PDF rather than the state text. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("source")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ExtractionForecastAnswerSourceJsonConverter))] + public global::OpenRouter.ExtractionForecastAnswerSource? Source { get; set; } + + /// + /// Confidence in the spelling of text read from an image. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("spell_confidence")] + public double? SpellConfidence { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("steps")] + public global::System.Collections.Generic.IList? Steps { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ExtractionForecastAnswerTypeJsonConverter))] + public global::OpenRouter.ExtractionForecastAnswerType Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("value")] + public global::System.Collections.Generic.IList>? Value { 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. + /// + /// + /// + /// The most likely value even when `value` is null because `p_null` crossed the threshold. + /// + /// + /// + /// + /// Probability that the state contains nothing for this field. + /// + /// + /// + /// + /// Set to `image` or `document` when the answer was read from an image or a PDF rather than the state text. + /// + /// + /// Confidence in the spelling of text read from an image. + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ExtractionForecastAnswer( + double? confidence, + global::System.Collections.Generic.IList>? guess, + global::System.Collections.Generic.IList>? mean, + global::System.Collections.Generic.IList>? median, + double? pNull, + global::System.Collections.Generic.IList>? p10, + global::System.Collections.Generic.IList>? p90, + global::OpenRouter.ExtractionForecastAnswerSource? source, + double? spellConfidence, + global::System.Collections.Generic.IList? steps, + global::OpenRouter.ExtractionForecastAnswerType type, + global::System.Collections.Generic.IList>? value) + { + this.Confidence = confidence; + this.Guess = guess; + this.Mean = mean; + this.Median = median; + this.PNull = pNull; + this.P10 = p10; + this.P90 = p90; + this.Source = source; + this.SpellConfidence = spellConfidence; + this.Steps = steps; + this.Type = type; + this.Value = value; + } + + /// + /// Initializes a new instance of the class. + /// + public ExtractionForecastAnswer() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastAnswerSource.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastAnswerSource.g.cs new file mode 100644 index 000000000..db8fd15fb --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastAnswerSource.g.cs @@ -0,0 +1,127 @@ + +#nullable enable + +namespace OpenRouter +{ + + /// + /// Set to `image` or `document` when the answer was read from an image or a PDF rather than the state text. + /// + public readonly partial struct ExtractionForecastAnswerSource : global::System.IEquatable + { + /// + /// + /// + public ExtractionForecastAnswerSource(string value) + { + Value = value ?? throw new global::System.ArgumentNullException(nameof(value)); + } + + /// + /// + /// + public string Value { get; } + /// + /// + /// + public static ExtractionForecastAnswerSource Document { get; } = new("document"); + + /// + /// + /// + public static ExtractionForecastAnswerSource Image { get; } = new("image"); + + /// + /// + /// + public static ExtractionForecastAnswerSource State { get; } = new("state"); + /// + /// + /// + public static ExtractionForecastAnswerSource FromValue(string value) + { + value = value ?? throw new global::System.ArgumentNullException(nameof(value)); + + return value switch + { + "document" => Document, + "image" => Image, + "state" => State, + _ => new ExtractionForecastAnswerSource(value), + }; + } + + /// + /// + /// + public bool IsKnown => Value switch + { + "document" => true, + "image" => true, + "state" => true, + _ => false, + }; + + /// + /// + /// + public override string ToString() => Value ?? string.Empty; + + /// + /// + /// + public bool Equals(ExtractionForecastAnswerSource other) + { + return string.Equals(Value, other.Value, global::System.StringComparison.Ordinal); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is ExtractionForecastAnswerSource other && Equals(other); + } + + /// + /// + /// + public override int GetHashCode() + { + return global::System.StringComparer.Ordinal.GetHashCode(Value ?? string.Empty); + } + + /// + /// + /// + public static bool operator ==(ExtractionForecastAnswerSource left, ExtractionForecastAnswerSource right) => left.Equals(right); + + /// + /// + /// + public static bool operator !=(ExtractionForecastAnswerSource left, ExtractionForecastAnswerSource right) => !left.Equals(right); + } + + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ExtractionForecastAnswerSourceExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ExtractionForecastAnswerSource value) + { + return value.Value ?? throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null); + } + + /// + /// Converts an string to a enum. + /// + public static ExtractionForecastAnswerSource? ToEnum(string value) + { + return ExtractionForecastAnswerSource.FromValue(value); + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastAnswerType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastAnswerType.g.cs new file mode 100644 index 000000000..cad998127 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastAnswerType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ExtractionForecastAnswerType + { + /// + /// + /// + Forecast, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ExtractionForecastAnswerTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ExtractionForecastAnswerType value) + { + return value switch + { + ExtractionForecastAnswerType.Forecast => "forecast", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ExtractionForecastAnswerType? ToEnum(string value) + { + return value switch + { + "forecast" => ExtractionForecastAnswerType.Forecast, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastField.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastField.Json.g.cs new file mode 100644 index 000000000..a55d3173f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastField.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ExtractionForecastField + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionForecastField? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ExtractionForecastField), + jsonSerializerContext) as global::OpenRouter.ExtractionForecastField; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionForecastField? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionForecastField? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionForecastField), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ExtractionForecastField; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastField.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastField.g.cs new file mode 100644 index 000000000..5706edf68 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastField.g.cs @@ -0,0 +1,141 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ExtractionForecastField + { + /// + /// Number of forecast steps. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("horizon")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int Horizon { get; set; } + + /// + /// What the field should contain. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("instructions")] + public string? Instructions { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("interval")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ExtractionForecastFieldIntervalJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ExtractionForecastFieldInterval Interval { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("max")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AnyOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.AnyOf Max { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("min")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AnyOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.AnyOf Min { get; set; } + + /// + /// Probability of null above which `value` is null. Default 0.5. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("null_threshold")] + public double? NullThreshold { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("scale")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ExtractionForecastFieldScaleJsonConverter))] + public global::OpenRouter.ExtractionForecastFieldScale? Scale { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("step")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AnyOfJsonConverter))] + public global::OpenRouter.AnyOf? Step { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ExtractionForecastFieldTypeJsonConverter))] + public global::OpenRouter.ExtractionForecastFieldType Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("unit")] + public string? Unit { 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. + /// + /// + /// Number of forecast steps. + /// + /// + /// + /// + /// + /// What the field should contain. + /// + /// + /// Probability of null above which `value` is null. Default 0.5. + /// + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ExtractionForecastField( + int horizon, + global::OpenRouter.ExtractionForecastFieldInterval interval, + global::OpenRouter.AnyOf max, + global::OpenRouter.AnyOf min, + string? instructions, + double? nullThreshold, + global::OpenRouter.ExtractionForecastFieldScale? scale, + global::OpenRouter.AnyOf? step, + global::OpenRouter.ExtractionForecastFieldType type, + string? unit) + { + this.Horizon = horizon; + this.Instructions = instructions; + this.Interval = interval; + this.Max = max; + this.Min = min; + this.NullThreshold = nullThreshold; + this.Scale = scale; + this.Step = step; + this.Type = type; + this.Unit = unit; + } + + /// + /// Initializes a new instance of the class. + /// + public ExtractionForecastField() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastFieldInterval.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastFieldInterval.g.cs new file mode 100644 index 000000000..2ab1e8fa9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastFieldInterval.g.cs @@ -0,0 +1,162 @@ + +#nullable enable + +namespace OpenRouter +{ + + /// + /// + /// + public readonly partial struct ExtractionForecastFieldInterval : global::System.IEquatable + { + /// + /// + /// + public ExtractionForecastFieldInterval(string value) + { + Value = value ?? throw new global::System.ArgumentNullException(nameof(value)); + } + + /// + /// + /// + public string Value { get; } + /// + /// + /// + public static ExtractionForecastFieldInterval Day { get; } = new("day"); + + /// + /// + /// + public static ExtractionForecastFieldInterval Hour { get; } = new("hour"); + + /// + /// + /// + public static ExtractionForecastFieldInterval Minute { get; } = new("minute"); + + /// + /// + /// + public static ExtractionForecastFieldInterval Month { get; } = new("month"); + + /// + /// + /// + public static ExtractionForecastFieldInterval Quarter { get; } = new("quarter"); + + /// + /// + /// + public static ExtractionForecastFieldInterval Step { get; } = new("step"); + + /// + /// + /// + public static ExtractionForecastFieldInterval Week { get; } = new("week"); + + /// + /// + /// + public static ExtractionForecastFieldInterval Year { get; } = new("year"); + /// + /// + /// + public static ExtractionForecastFieldInterval FromValue(string value) + { + value = value ?? throw new global::System.ArgumentNullException(nameof(value)); + + return value switch + { + "day" => Day, + "hour" => Hour, + "minute" => Minute, + "month" => Month, + "quarter" => Quarter, + "step" => Step, + "week" => Week, + "year" => Year, + _ => new ExtractionForecastFieldInterval(value), + }; + } + + /// + /// + /// + public bool IsKnown => Value switch + { + "day" => true, + "hour" => true, + "minute" => true, + "month" => true, + "quarter" => true, + "step" => true, + "week" => true, + "year" => true, + _ => false, + }; + + /// + /// + /// + public override string ToString() => Value ?? string.Empty; + + /// + /// + /// + public bool Equals(ExtractionForecastFieldInterval other) + { + return string.Equals(Value, other.Value, global::System.StringComparison.Ordinal); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is ExtractionForecastFieldInterval other && Equals(other); + } + + /// + /// + /// + public override int GetHashCode() + { + return global::System.StringComparer.Ordinal.GetHashCode(Value ?? string.Empty); + } + + /// + /// + /// + public static bool operator ==(ExtractionForecastFieldInterval left, ExtractionForecastFieldInterval right) => left.Equals(right); + + /// + /// + /// + public static bool operator !=(ExtractionForecastFieldInterval left, ExtractionForecastFieldInterval right) => !left.Equals(right); + } + + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ExtractionForecastFieldIntervalExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ExtractionForecastFieldInterval value) + { + return value.Value ?? throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null); + } + + /// + /// Converts an string to a enum. + /// + public static ExtractionForecastFieldInterval? ToEnum(string value) + { + return ExtractionForecastFieldInterval.FromValue(value); + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastFieldScale.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastFieldScale.g.cs new file mode 100644 index 000000000..073fa5779 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastFieldScale.g.cs @@ -0,0 +1,120 @@ + +#nullable enable + +namespace OpenRouter +{ + + /// + /// + /// + public readonly partial struct ExtractionForecastFieldScale : global::System.IEquatable + { + /// + /// + /// + public ExtractionForecastFieldScale(string value) + { + Value = value ?? throw new global::System.ArgumentNullException(nameof(value)); + } + + /// + /// + /// + public string Value { get; } + /// + /// + /// + public static ExtractionForecastFieldScale Linear { get; } = new("linear"); + + /// + /// + /// + public static ExtractionForecastFieldScale Log { get; } = new("log"); + /// + /// + /// + public static ExtractionForecastFieldScale FromValue(string value) + { + value = value ?? throw new global::System.ArgumentNullException(nameof(value)); + + return value switch + { + "linear" => Linear, + "log" => Log, + _ => new ExtractionForecastFieldScale(value), + }; + } + + /// + /// + /// + public bool IsKnown => Value switch + { + "linear" => true, + "log" => true, + _ => false, + }; + + /// + /// + /// + public override string ToString() => Value ?? string.Empty; + + /// + /// + /// + public bool Equals(ExtractionForecastFieldScale other) + { + return string.Equals(Value, other.Value, global::System.StringComparison.Ordinal); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is ExtractionForecastFieldScale other && Equals(other); + } + + /// + /// + /// + public override int GetHashCode() + { + return global::System.StringComparer.Ordinal.GetHashCode(Value ?? string.Empty); + } + + /// + /// + /// + public static bool operator ==(ExtractionForecastFieldScale left, ExtractionForecastFieldScale right) => left.Equals(right); + + /// + /// + /// + public static bool operator !=(ExtractionForecastFieldScale left, ExtractionForecastFieldScale right) => !left.Equals(right); + } + + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ExtractionForecastFieldScaleExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ExtractionForecastFieldScale value) + { + return value.Value ?? throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null); + } + + /// + /// Converts an string to a enum. + /// + public static ExtractionForecastFieldScale? ToEnum(string value) + { + return ExtractionForecastFieldScale.FromValue(value); + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastFieldStepVariant2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastFieldStepVariant2.g.cs new file mode 100644 index 000000000..3af73a759 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastFieldStepVariant2.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ExtractionForecastFieldStepVariant2 + { + /// + /// + /// + Month, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ExtractionForecastFieldStepVariant2Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ExtractionForecastFieldStepVariant2 value) + { + return value switch + { + ExtractionForecastFieldStepVariant2.Month => "month", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ExtractionForecastFieldStepVariant2? ToEnum(string value) + { + return value switch + { + "month" => ExtractionForecastFieldStepVariant2.Month, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastFieldStepVariant3.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastFieldStepVariant3.g.cs new file mode 100644 index 000000000..73e586d1b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastFieldStepVariant3.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ExtractionForecastFieldStepVariant3 + { + /// + /// + /// + Year, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ExtractionForecastFieldStepVariant3Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ExtractionForecastFieldStepVariant3 value) + { + return value switch + { + ExtractionForecastFieldStepVariant3.Year => "year", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ExtractionForecastFieldStepVariant3? ToEnum(string value) + { + return value switch + { + "year" => ExtractionForecastFieldStepVariant3.Year, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastFieldType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastFieldType.g.cs new file mode 100644 index 000000000..78b67d35d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastFieldType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ExtractionForecastFieldType + { + /// + /// + /// + Forecast, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ExtractionForecastFieldTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ExtractionForecastFieldType value) + { + return value switch + { + ExtractionForecastFieldType.Forecast => "forecast", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ExtractionForecastFieldType? ToEnum(string value) + { + return value switch + { + "forecast" => ExtractionForecastFieldType.Forecast, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastStep.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastStep.Json.g.cs new file mode 100644 index 000000000..af900fb6e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastStep.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ExtractionForecastStep + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionForecastStep? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ExtractionForecastStep), + jsonSerializerContext) as global::OpenRouter.ExtractionForecastStep; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionForecastStep? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionForecastStep? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionForecastStep), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ExtractionForecastStep; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastStep.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastStep.g.cs new file mode 100644 index 000000000..1630744b1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionForecastStep.g.cs @@ -0,0 +1,118 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ExtractionForecastStep + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("mean")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AnyOfJsonConverter))] + public global::OpenRouter.AnyOf? Mean { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("median")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AnyOfJsonConverter))] + public global::OpenRouter.AnyOf? Median { get; set; } + + /// + /// Probability mass above `max`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("p_above")] + public double? PAbove { get; set; } + + /// + /// Probability mass below `min`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("p_below")] + public double? PBelow { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("p10")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AnyOfJsonConverter))] + public global::OpenRouter.AnyOf? P10 { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("p90")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AnyOfJsonConverter))] + public global::OpenRouter.AnyOf? P90 { get; set; } + + /// + /// 99 percentiles, present when the provider is asked for quantiles. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("quantiles")] + public global::System.Collections.Generic.IList>? Quantiles { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("value")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AnyOfJsonConverter))] + public global::OpenRouter.AnyOf? Value { 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. + /// + /// + /// + /// + /// Probability mass above `max`. + /// + /// + /// Probability mass below `min`. + /// + /// + /// + /// + /// 99 percentiles, present when the provider is asked for quantiles. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ExtractionForecastStep( + global::OpenRouter.AnyOf? mean, + global::OpenRouter.AnyOf? median, + double? pAbove, + double? pBelow, + global::OpenRouter.AnyOf? p10, + global::OpenRouter.AnyOf? p90, + global::System.Collections.Generic.IList>? quantiles, + global::OpenRouter.AnyOf? value) + { + this.Mean = mean; + this.Median = median; + this.PAbove = pAbove; + this.PBelow = pBelow; + this.P10 = p10; + this.P90 = p90; + this.Quantiles = quantiles; + this.Value = value; + } + + /// + /// Initializes a new instance of the class. + /// + public ExtractionForecastStep() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionListAnswer.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionListAnswer.Json.g.cs new file mode 100644 index 000000000..e7c9561e5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionListAnswer.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ExtractionListAnswer + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionListAnswer? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ExtractionListAnswer), + jsonSerializerContext) as global::OpenRouter.ExtractionListAnswer; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionListAnswer? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionListAnswer? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionListAnswer), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ExtractionListAnswer; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionListAnswer.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionListAnswer.g.cs new file mode 100644 index 000000000..d75964991 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionListAnswer.g.cs @@ -0,0 +1,128 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ExtractionListAnswer + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("confidence")] + public double? Confidence { get; set; } + + /// + /// One confidence per item of `value`, in the same order. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("confidences")] + public global::System.Collections.Generic.IList? Confidences { get; set; } + + /// + /// The most likely value even when `value` is null because `p_null` crossed the threshold. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("guess")] + public global::System.Collections.Generic.IList>? Guess { get; set; } + + /// + /// Probability that the state contains nothing for this field. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("p_null")] + public double? PNull { get; set; } + + /// + /// Set to `image` or `document` when the answer was read from an image or a PDF rather than the state text. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("source")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ExtractionListAnswerSourceJsonConverter))] + public global::OpenRouter.ExtractionListAnswerSource? Source { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("spans")] + public global::System.Collections.Generic.IList>? Spans { get; set; } + + /// + /// Confidence in the spelling of text read from an image. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("spell_confidence")] + public double? SpellConfidence { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ExtractionListAnswerTypeJsonConverter))] + public global::OpenRouter.ExtractionListAnswerType Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("value")] + public global::System.Collections.Generic.IList>? Value { 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. + /// + /// + /// + /// One confidence per item of `value`, in the same order. + /// + /// + /// The most likely value even when `value` is null because `p_null` crossed the threshold. + /// + /// + /// Probability that the state contains nothing for this field. + /// + /// + /// Set to `image` or `document` when the answer was read from an image or a PDF rather than the state text. + /// + /// + /// + /// Confidence in the spelling of text read from an image. + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ExtractionListAnswer( + double? confidence, + global::System.Collections.Generic.IList? confidences, + global::System.Collections.Generic.IList>? guess, + double? pNull, + global::OpenRouter.ExtractionListAnswerSource? source, + global::System.Collections.Generic.IList>? spans, + double? spellConfidence, + global::OpenRouter.ExtractionListAnswerType type, + global::System.Collections.Generic.IList>? value) + { + this.Confidence = confidence; + this.Confidences = confidences; + this.Guess = guess; + this.PNull = pNull; + this.Source = source; + this.Spans = spans; + this.SpellConfidence = spellConfidence; + this.Type = type; + this.Value = value; + } + + /// + /// Initializes a new instance of the class. + /// + public ExtractionListAnswer() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionListAnswerSource.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionListAnswerSource.g.cs new file mode 100644 index 000000000..a9b5a2661 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionListAnswerSource.g.cs @@ -0,0 +1,127 @@ + +#nullable enable + +namespace OpenRouter +{ + + /// + /// Set to `image` or `document` when the answer was read from an image or a PDF rather than the state text. + /// + public readonly partial struct ExtractionListAnswerSource : global::System.IEquatable + { + /// + /// + /// + public ExtractionListAnswerSource(string value) + { + Value = value ?? throw new global::System.ArgumentNullException(nameof(value)); + } + + /// + /// + /// + public string Value { get; } + /// + /// + /// + public static ExtractionListAnswerSource Document { get; } = new("document"); + + /// + /// + /// + public static ExtractionListAnswerSource Image { get; } = new("image"); + + /// + /// + /// + public static ExtractionListAnswerSource State { get; } = new("state"); + /// + /// + /// + public static ExtractionListAnswerSource FromValue(string value) + { + value = value ?? throw new global::System.ArgumentNullException(nameof(value)); + + return value switch + { + "document" => Document, + "image" => Image, + "state" => State, + _ => new ExtractionListAnswerSource(value), + }; + } + + /// + /// + /// + public bool IsKnown => Value switch + { + "document" => true, + "image" => true, + "state" => true, + _ => false, + }; + + /// + /// + /// + public override string ToString() => Value ?? string.Empty; + + /// + /// + /// + public bool Equals(ExtractionListAnswerSource other) + { + return string.Equals(Value, other.Value, global::System.StringComparison.Ordinal); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is ExtractionListAnswerSource other && Equals(other); + } + + /// + /// + /// + public override int GetHashCode() + { + return global::System.StringComparer.Ordinal.GetHashCode(Value ?? string.Empty); + } + + /// + /// + /// + public static bool operator ==(ExtractionListAnswerSource left, ExtractionListAnswerSource right) => left.Equals(right); + + /// + /// + /// + public static bool operator !=(ExtractionListAnswerSource left, ExtractionListAnswerSource right) => !left.Equals(right); + } + + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ExtractionListAnswerSourceExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ExtractionListAnswerSource value) + { + return value.Value ?? throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null); + } + + /// + /// Converts an string to a enum. + /// + public static ExtractionListAnswerSource? ToEnum(string value) + { + return ExtractionListAnswerSource.FromValue(value); + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionListAnswerType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionListAnswerType.g.cs new file mode 100644 index 000000000..ea2b40f2c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionListAnswerType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ExtractionListAnswerType + { + /// + /// + /// + List, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ExtractionListAnswerTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ExtractionListAnswerType value) + { + return value switch + { + ExtractionListAnswerType.List => "list", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ExtractionListAnswerType? ToEnum(string value) + { + return value switch + { + "list" => ExtractionListAnswerType.List, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionListField.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionListField.Json.g.cs new file mode 100644 index 000000000..7bd083042 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionListField.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ExtractionListField + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionListField? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ExtractionListField), + jsonSerializerContext) as global::OpenRouter.ExtractionListField; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionListField? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionListField? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionListField), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ExtractionListField; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionListField.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionListField.g.cs new file mode 100644 index 000000000..d613bd042 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionListField.g.cs @@ -0,0 +1,89 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ExtractionListField + { + /// + /// Decimal places kept in `value`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("decimals")] + public int? Decimals { get; set; } + + /// + /// What the field should contain. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("instructions")] + public string? Instructions { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("items")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ExtractionListFieldItemsJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ExtractionListFieldItems Items { get; set; } + + /// + /// Probability of null above which `value` is null. Default 0.5. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("null_threshold")] + public double? NullThreshold { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ExtractionListFieldTypeJsonConverter))] + public global::OpenRouter.ExtractionListFieldType Type { 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. + /// + /// + /// + /// Decimal places kept in `value`. + /// + /// + /// What the field should contain. + /// + /// + /// Probability of null above which `value` is null. Default 0.5. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ExtractionListField( + global::OpenRouter.ExtractionListFieldItems items, + int? decimals, + string? instructions, + double? nullThreshold, + global::OpenRouter.ExtractionListFieldType type) + { + this.Decimals = decimals; + this.Instructions = instructions; + this.Items = items; + this.NullThreshold = nullThreshold; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public ExtractionListField() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionListFieldItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionListFieldItems.g.cs new file mode 100644 index 000000000..3071b955b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionListFieldItems.g.cs @@ -0,0 +1,127 @@ + +#nullable enable + +namespace OpenRouter +{ + + /// + /// + /// + public readonly partial struct ExtractionListFieldItems : global::System.IEquatable + { + /// + /// + /// + public ExtractionListFieldItems(string value) + { + Value = value ?? throw new global::System.ArgumentNullException(nameof(value)); + } + + /// + /// + /// + public string Value { get; } + /// + /// + /// + public static ExtractionListFieldItems Date { get; } = new("date"); + + /// + /// + /// + public static ExtractionListFieldItems Number { get; } = new("number"); + + /// + /// + /// + public static ExtractionListFieldItems Text { get; } = new("text"); + /// + /// + /// + public static ExtractionListFieldItems FromValue(string value) + { + value = value ?? throw new global::System.ArgumentNullException(nameof(value)); + + return value switch + { + "date" => Date, + "number" => Number, + "text" => Text, + _ => new ExtractionListFieldItems(value), + }; + } + + /// + /// + /// + public bool IsKnown => Value switch + { + "date" => true, + "number" => true, + "text" => true, + _ => false, + }; + + /// + /// + /// + public override string ToString() => Value ?? string.Empty; + + /// + /// + /// + public bool Equals(ExtractionListFieldItems other) + { + return string.Equals(Value, other.Value, global::System.StringComparison.Ordinal); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is ExtractionListFieldItems other && Equals(other); + } + + /// + /// + /// + public override int GetHashCode() + { + return global::System.StringComparer.Ordinal.GetHashCode(Value ?? string.Empty); + } + + /// + /// + /// + public static bool operator ==(ExtractionListFieldItems left, ExtractionListFieldItems right) => left.Equals(right); + + /// + /// + /// + public static bool operator !=(ExtractionListFieldItems left, ExtractionListFieldItems right) => !left.Equals(right); + } + + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ExtractionListFieldItemsExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ExtractionListFieldItems value) + { + return value.Value ?? throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null); + } + + /// + /// Converts an string to a enum. + /// + public static ExtractionListFieldItems? ToEnum(string value) + { + return ExtractionListFieldItems.FromValue(value); + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionListFieldType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionListFieldType.g.cs new file mode 100644 index 000000000..03b93b4f6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionListFieldType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ExtractionListFieldType + { + /// + /// + /// + List, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ExtractionListFieldTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ExtractionListFieldType value) + { + return value switch + { + ExtractionListFieldType.List => "list", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ExtractionListFieldType? ToEnum(string value) + { + return value switch + { + "list" => ExtractionListFieldType.List, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionNumberAnswer.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionNumberAnswer.Json.g.cs new file mode 100644 index 000000000..f5c929f8f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionNumberAnswer.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ExtractionNumberAnswer + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionNumberAnswer? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ExtractionNumberAnswer), + jsonSerializerContext) as global::OpenRouter.ExtractionNumberAnswer; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionNumberAnswer? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionNumberAnswer? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionNumberAnswer), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ExtractionNumberAnswer; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionNumberAnswer.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionNumberAnswer.g.cs new file mode 100644 index 000000000..06eee3f60 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionNumberAnswer.g.cs @@ -0,0 +1,119 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ExtractionNumberAnswer + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("confidence")] + public double? Confidence { get; set; } + + /// + /// The most likely value even when `value` is null because `p_null` crossed the threshold. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("guess")] + public double? Guess { get; set; } + + /// + /// Probability that the state contains nothing for this field. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("p_null")] + public double? PNull { get; set; } + + /// + /// Set to `image` or `document` when the answer was read from an image or a PDF rather than the state text. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("source")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ExtractionNumberAnswerSourceJsonConverter))] + public global::OpenRouter.ExtractionNumberAnswerSource? Source { get; set; } + + /// + /// Unicode code point offsets [start, end) into the state text: index code points (not UTF-16 code units or UTF-8 bytes), so an emoji or accented letter counts once. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("span")] + public global::System.Collections.Generic.IList? Span { get; set; } + + /// + /// Confidence in the spelling of text read from an image. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("spell_confidence")] + public double? SpellConfidence { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ExtractionNumberAnswerTypeJsonConverter))] + public global::OpenRouter.ExtractionNumberAnswerType Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("value")] + public double? Value { 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. + /// + /// + /// + /// The most likely value even when `value` is null because `p_null` crossed the threshold. + /// + /// + /// Probability that the state contains nothing for this field. + /// + /// + /// Set to `image` or `document` when the answer was read from an image or a PDF rather than the state text. + /// + /// + /// Unicode code point offsets [start, end) into the state text: index code points (not UTF-16 code units or UTF-8 bytes), so an emoji or accented letter counts once. + /// + /// + /// Confidence in the spelling of text read from an image. + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ExtractionNumberAnswer( + double? confidence, + double? guess, + double? pNull, + global::OpenRouter.ExtractionNumberAnswerSource? source, + global::System.Collections.Generic.IList? span, + double? spellConfidence, + global::OpenRouter.ExtractionNumberAnswerType type, + double? value) + { + this.Confidence = confidence; + this.Guess = guess; + this.PNull = pNull; + this.Source = source; + this.Span = span; + this.SpellConfidence = spellConfidence; + this.Type = type; + this.Value = value; + } + + /// + /// Initializes a new instance of the class. + /// + public ExtractionNumberAnswer() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionNumberAnswerSource.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionNumberAnswerSource.g.cs new file mode 100644 index 000000000..45c391aa9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionNumberAnswerSource.g.cs @@ -0,0 +1,127 @@ + +#nullable enable + +namespace OpenRouter +{ + + /// + /// Set to `image` or `document` when the answer was read from an image or a PDF rather than the state text. + /// + public readonly partial struct ExtractionNumberAnswerSource : global::System.IEquatable + { + /// + /// + /// + public ExtractionNumberAnswerSource(string value) + { + Value = value ?? throw new global::System.ArgumentNullException(nameof(value)); + } + + /// + /// + /// + public string Value { get; } + /// + /// + /// + public static ExtractionNumberAnswerSource Document { get; } = new("document"); + + /// + /// + /// + public static ExtractionNumberAnswerSource Image { get; } = new("image"); + + /// + /// + /// + public static ExtractionNumberAnswerSource State { get; } = new("state"); + /// + /// + /// + public static ExtractionNumberAnswerSource FromValue(string value) + { + value = value ?? throw new global::System.ArgumentNullException(nameof(value)); + + return value switch + { + "document" => Document, + "image" => Image, + "state" => State, + _ => new ExtractionNumberAnswerSource(value), + }; + } + + /// + /// + /// + public bool IsKnown => Value switch + { + "document" => true, + "image" => true, + "state" => true, + _ => false, + }; + + /// + /// + /// + public override string ToString() => Value ?? string.Empty; + + /// + /// + /// + public bool Equals(ExtractionNumberAnswerSource other) + { + return string.Equals(Value, other.Value, global::System.StringComparison.Ordinal); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is ExtractionNumberAnswerSource other && Equals(other); + } + + /// + /// + /// + public override int GetHashCode() + { + return global::System.StringComparer.Ordinal.GetHashCode(Value ?? string.Empty); + } + + /// + /// + /// + public static bool operator ==(ExtractionNumberAnswerSource left, ExtractionNumberAnswerSource right) => left.Equals(right); + + /// + /// + /// + public static bool operator !=(ExtractionNumberAnswerSource left, ExtractionNumberAnswerSource right) => !left.Equals(right); + } + + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ExtractionNumberAnswerSourceExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ExtractionNumberAnswerSource value) + { + return value.Value ?? throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null); + } + + /// + /// Converts an string to a enum. + /// + public static ExtractionNumberAnswerSource? ToEnum(string value) + { + return ExtractionNumberAnswerSource.FromValue(value); + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionNumberAnswerType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionNumberAnswerType.g.cs new file mode 100644 index 000000000..5c000e0a5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionNumberAnswerType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ExtractionNumberAnswerType + { + /// + /// + /// + Number, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ExtractionNumberAnswerTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ExtractionNumberAnswerType value) + { + return value switch + { + ExtractionNumberAnswerType.Number => "number", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ExtractionNumberAnswerType? ToEnum(string value) + { + return value switch + { + "number" => ExtractionNumberAnswerType.Number, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionNumberField.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionNumberField.Json.g.cs new file mode 100644 index 000000000..5413444cb --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionNumberField.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ExtractionNumberField + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionNumberField? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ExtractionNumberField), + jsonSerializerContext) as global::OpenRouter.ExtractionNumberField; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionNumberField? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionNumberField? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionNumberField), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ExtractionNumberField; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionNumberField.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionNumberField.g.cs new file mode 100644 index 000000000..630cf8640 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionNumberField.g.cs @@ -0,0 +1,96 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ExtractionNumberField + { + /// + /// Decimal places kept in `value`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("decimals")] + public int? Decimals { get; set; } + + /// + /// What the field should contain. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("instructions")] + public string? Instructions { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("integer")] + public bool? Integer { get; set; } + + /// + /// Probability of null above which `value` is null. Default 0.5. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("null_threshold")] + public double? NullThreshold { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ExtractionNumberFieldTypeJsonConverter))] + public global::OpenRouter.ExtractionNumberFieldType Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("unit")] + public string? Unit { 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. + /// + /// + /// Decimal places kept in `value`. + /// + /// + /// What the field should contain. + /// + /// + /// + /// Probability of null above which `value` is null. Default 0.5. + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ExtractionNumberField( + int? decimals, + string? instructions, + bool? integer, + double? nullThreshold, + global::OpenRouter.ExtractionNumberFieldType type, + string? unit) + { + this.Decimals = decimals; + this.Instructions = instructions; + this.Integer = integer; + this.NullThreshold = nullThreshold; + this.Type = type; + this.Unit = unit; + } + + /// + /// Initializes a new instance of the class. + /// + public ExtractionNumberField() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionNumberFieldType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionNumberFieldType.g.cs new file mode 100644 index 000000000..a3ac880f2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionNumberFieldType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ExtractionNumberFieldType + { + /// + /// + /// + Number, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ExtractionNumberFieldTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ExtractionNumberFieldType value) + { + return value switch + { + ExtractionNumberFieldType.Number => "number", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ExtractionNumberFieldType? ToEnum(string value) + { + return value switch + { + "number" => ExtractionNumberFieldType.Number, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTextAnswer.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTextAnswer.Json.g.cs new file mode 100644 index 000000000..06134116f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTextAnswer.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ExtractionTextAnswer + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionTextAnswer? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ExtractionTextAnswer), + jsonSerializerContext) as global::OpenRouter.ExtractionTextAnswer; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionTextAnswer? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionTextAnswer? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionTextAnswer), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ExtractionTextAnswer; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTextAnswer.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTextAnswer.g.cs new file mode 100644 index 000000000..2eacd766f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTextAnswer.g.cs @@ -0,0 +1,119 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ExtractionTextAnswer + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("confidence")] + public double? Confidence { get; set; } + + /// + /// The most likely value even when `value` is null because `p_null` crossed the threshold. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("guess")] + public string? Guess { get; set; } + + /// + /// Probability that the state contains nothing for this field. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("p_null")] + public double? PNull { get; set; } + + /// + /// Set to `image` or `document` when the answer was read from an image or a PDF rather than the state text. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("source")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ExtractionTextAnswerSourceJsonConverter))] + public global::OpenRouter.ExtractionTextAnswerSource? Source { get; set; } + + /// + /// Unicode code point offsets [start, end) into the state text: index code points (not UTF-16 code units or UTF-8 bytes), so an emoji or accented letter counts once. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("span")] + public global::System.Collections.Generic.IList? Span { get; set; } + + /// + /// Confidence in the spelling of text read from an image. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("spell_confidence")] + public double? SpellConfidence { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ExtractionTextAnswerTypeJsonConverter))] + public global::OpenRouter.ExtractionTextAnswerType Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("value")] + public string? Value { 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. + /// + /// + /// + /// The most likely value even when `value` is null because `p_null` crossed the threshold. + /// + /// + /// Probability that the state contains nothing for this field. + /// + /// + /// Set to `image` or `document` when the answer was read from an image or a PDF rather than the state text. + /// + /// + /// Unicode code point offsets [start, end) into the state text: index code points (not UTF-16 code units or UTF-8 bytes), so an emoji or accented letter counts once. + /// + /// + /// Confidence in the spelling of text read from an image. + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ExtractionTextAnswer( + double? confidence, + string? guess, + double? pNull, + global::OpenRouter.ExtractionTextAnswerSource? source, + global::System.Collections.Generic.IList? span, + double? spellConfidence, + global::OpenRouter.ExtractionTextAnswerType type, + string? value) + { + this.Confidence = confidence; + this.Guess = guess; + this.PNull = pNull; + this.Source = source; + this.Span = span; + this.SpellConfidence = spellConfidence; + this.Type = type; + this.Value = value; + } + + /// + /// Initializes a new instance of the class. + /// + public ExtractionTextAnswer() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTextAnswerSource.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTextAnswerSource.g.cs new file mode 100644 index 000000000..a5851e79b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTextAnswerSource.g.cs @@ -0,0 +1,127 @@ + +#nullable enable + +namespace OpenRouter +{ + + /// + /// Set to `image` or `document` when the answer was read from an image or a PDF rather than the state text. + /// + public readonly partial struct ExtractionTextAnswerSource : global::System.IEquatable + { + /// + /// + /// + public ExtractionTextAnswerSource(string value) + { + Value = value ?? throw new global::System.ArgumentNullException(nameof(value)); + } + + /// + /// + /// + public string Value { get; } + /// + /// + /// + public static ExtractionTextAnswerSource Document { get; } = new("document"); + + /// + /// + /// + public static ExtractionTextAnswerSource Image { get; } = new("image"); + + /// + /// + /// + public static ExtractionTextAnswerSource State { get; } = new("state"); + /// + /// + /// + public static ExtractionTextAnswerSource FromValue(string value) + { + value = value ?? throw new global::System.ArgumentNullException(nameof(value)); + + return value switch + { + "document" => Document, + "image" => Image, + "state" => State, + _ => new ExtractionTextAnswerSource(value), + }; + } + + /// + /// + /// + public bool IsKnown => Value switch + { + "document" => true, + "image" => true, + "state" => true, + _ => false, + }; + + /// + /// + /// + public override string ToString() => Value ?? string.Empty; + + /// + /// + /// + public bool Equals(ExtractionTextAnswerSource other) + { + return string.Equals(Value, other.Value, global::System.StringComparison.Ordinal); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is ExtractionTextAnswerSource other && Equals(other); + } + + /// + /// + /// + public override int GetHashCode() + { + return global::System.StringComparer.Ordinal.GetHashCode(Value ?? string.Empty); + } + + /// + /// + /// + public static bool operator ==(ExtractionTextAnswerSource left, ExtractionTextAnswerSource right) => left.Equals(right); + + /// + /// + /// + public static bool operator !=(ExtractionTextAnswerSource left, ExtractionTextAnswerSource right) => !left.Equals(right); + } + + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ExtractionTextAnswerSourceExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ExtractionTextAnswerSource value) + { + return value.Value ?? throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null); + } + + /// + /// Converts an string to a enum. + /// + public static ExtractionTextAnswerSource? ToEnum(string value) + { + return ExtractionTextAnswerSource.FromValue(value); + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTextAnswerType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTextAnswerType.g.cs new file mode 100644 index 000000000..f8971b1e6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTextAnswerType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ExtractionTextAnswerType + { + /// + /// + /// + Text, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ExtractionTextAnswerTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ExtractionTextAnswerType value) + { + return value switch + { + ExtractionTextAnswerType.Text => "text", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ExtractionTextAnswerType? ToEnum(string value) + { + return value switch + { + "text" => ExtractionTextAnswerType.Text, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTextField.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTextField.Json.g.cs new file mode 100644 index 000000000..4dce77ec3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTextField.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ExtractionTextField + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionTextField? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ExtractionTextField), + jsonSerializerContext) as global::OpenRouter.ExtractionTextField; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionTextField? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionTextField? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionTextField), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ExtractionTextField; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTextField.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTextField.g.cs new file mode 100644 index 000000000..6547e68f9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTextField.g.cs @@ -0,0 +1,67 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ExtractionTextField + { + /// + /// What the field should contain. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("instructions")] + public string? Instructions { get; set; } + + /// + /// Probability of null above which `value` is null. Default 0.5. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("null_threshold")] + public double? NullThreshold { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ExtractionTextFieldTypeJsonConverter))] + public global::OpenRouter.ExtractionTextFieldType Type { 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. + /// + /// + /// What the field should contain. + /// + /// + /// Probability of null above which `value` is null. Default 0.5. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ExtractionTextField( + string? instructions, + double? nullThreshold, + global::OpenRouter.ExtractionTextFieldType type) + { + this.Instructions = instructions; + this.NullThreshold = nullThreshold; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public ExtractionTextField() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTextFieldType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTextFieldType.g.cs new file mode 100644 index 000000000..aa2a27c9c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTextFieldType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ExtractionTextFieldType + { + /// + /// + /// + Text, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ExtractionTextFieldTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ExtractionTextFieldType value) + { + return value switch + { + ExtractionTextFieldType.Text => "text", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ExtractionTextFieldType? ToEnum(string value) + { + return value switch + { + "text" => ExtractionTextFieldType.Text, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTimeAnswer.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTimeAnswer.Json.g.cs new file mode 100644 index 000000000..fee99bf50 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTimeAnswer.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ExtractionTimeAnswer + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionTimeAnswer? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ExtractionTimeAnswer), + jsonSerializerContext) as global::OpenRouter.ExtractionTimeAnswer; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionTimeAnswer? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionTimeAnswer? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionTimeAnswer), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ExtractionTimeAnswer; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTimeAnswer.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTimeAnswer.g.cs new file mode 100644 index 000000000..7909a7d49 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTimeAnswer.g.cs @@ -0,0 +1,119 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ExtractionTimeAnswer + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("confidence")] + public double? Confidence { get; set; } + + /// + /// The most likely value even when `value` is null because `p_null` crossed the threshold. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("guess")] + public string? Guess { get; set; } + + /// + /// Probability that the state contains nothing for this field. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("p_null")] + public double? PNull { get; set; } + + /// + /// Set to `image` or `document` when the answer was read from an image or a PDF rather than the state text. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("source")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ExtractionTimeAnswerSourceJsonConverter))] + public global::OpenRouter.ExtractionTimeAnswerSource? Source { get; set; } + + /// + /// Unicode code point offsets [start, end) into the state text: index code points (not UTF-16 code units or UTF-8 bytes), so an emoji or accented letter counts once. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("span")] + public global::System.Collections.Generic.IList? Span { get; set; } + + /// + /// Confidence in the spelling of text read from an image. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("spell_confidence")] + public double? SpellConfidence { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ExtractionTimeAnswerTypeJsonConverter))] + public global::OpenRouter.ExtractionTimeAnswerType Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("value")] + public string? Value { 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. + /// + /// + /// + /// The most likely value even when `value` is null because `p_null` crossed the threshold. + /// + /// + /// Probability that the state contains nothing for this field. + /// + /// + /// Set to `image` or `document` when the answer was read from an image or a PDF rather than the state text. + /// + /// + /// Unicode code point offsets [start, end) into the state text: index code points (not UTF-16 code units or UTF-8 bytes), so an emoji or accented letter counts once. + /// + /// + /// Confidence in the spelling of text read from an image. + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ExtractionTimeAnswer( + double? confidence, + string? guess, + double? pNull, + global::OpenRouter.ExtractionTimeAnswerSource? source, + global::System.Collections.Generic.IList? span, + double? spellConfidence, + global::OpenRouter.ExtractionTimeAnswerType type, + string? value) + { + this.Confidence = confidence; + this.Guess = guess; + this.PNull = pNull; + this.Source = source; + this.Span = span; + this.SpellConfidence = spellConfidence; + this.Type = type; + this.Value = value; + } + + /// + /// Initializes a new instance of the class. + /// + public ExtractionTimeAnswer() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTimeAnswerSource.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTimeAnswerSource.g.cs new file mode 100644 index 000000000..65e37f4ea --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTimeAnswerSource.g.cs @@ -0,0 +1,127 @@ + +#nullable enable + +namespace OpenRouter +{ + + /// + /// Set to `image` or `document` when the answer was read from an image or a PDF rather than the state text. + /// + public readonly partial struct ExtractionTimeAnswerSource : global::System.IEquatable + { + /// + /// + /// + public ExtractionTimeAnswerSource(string value) + { + Value = value ?? throw new global::System.ArgumentNullException(nameof(value)); + } + + /// + /// + /// + public string Value { get; } + /// + /// + /// + public static ExtractionTimeAnswerSource Document { get; } = new("document"); + + /// + /// + /// + public static ExtractionTimeAnswerSource Image { get; } = new("image"); + + /// + /// + /// + public static ExtractionTimeAnswerSource State { get; } = new("state"); + /// + /// + /// + public static ExtractionTimeAnswerSource FromValue(string value) + { + value = value ?? throw new global::System.ArgumentNullException(nameof(value)); + + return value switch + { + "document" => Document, + "image" => Image, + "state" => State, + _ => new ExtractionTimeAnswerSource(value), + }; + } + + /// + /// + /// + public bool IsKnown => Value switch + { + "document" => true, + "image" => true, + "state" => true, + _ => false, + }; + + /// + /// + /// + public override string ToString() => Value ?? string.Empty; + + /// + /// + /// + public bool Equals(ExtractionTimeAnswerSource other) + { + return string.Equals(Value, other.Value, global::System.StringComparison.Ordinal); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is ExtractionTimeAnswerSource other && Equals(other); + } + + /// + /// + /// + public override int GetHashCode() + { + return global::System.StringComparer.Ordinal.GetHashCode(Value ?? string.Empty); + } + + /// + /// + /// + public static bool operator ==(ExtractionTimeAnswerSource left, ExtractionTimeAnswerSource right) => left.Equals(right); + + /// + /// + /// + public static bool operator !=(ExtractionTimeAnswerSource left, ExtractionTimeAnswerSource right) => !left.Equals(right); + } + + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ExtractionTimeAnswerSourceExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ExtractionTimeAnswerSource value) + { + return value.Value ?? throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null); + } + + /// + /// Converts an string to a enum. + /// + public static ExtractionTimeAnswerSource? ToEnum(string value) + { + return ExtractionTimeAnswerSource.FromValue(value); + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTimeAnswerType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTimeAnswerType.g.cs new file mode 100644 index 000000000..4831386d5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTimeAnswerType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ExtractionTimeAnswerType + { + /// + /// + /// + Time, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ExtractionTimeAnswerTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ExtractionTimeAnswerType value) + { + return value switch + { + ExtractionTimeAnswerType.Time => "time", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ExtractionTimeAnswerType? ToEnum(string value) + { + return value switch + { + "time" => ExtractionTimeAnswerType.Time, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTimeField.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTimeField.Json.g.cs new file mode 100644 index 000000000..bc0ccf83d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTimeField.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ExtractionTimeField + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionTimeField? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ExtractionTimeField), + jsonSerializerContext) as global::OpenRouter.ExtractionTimeField; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionTimeField? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionTimeField? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionTimeField), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ExtractionTimeField; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTimeField.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTimeField.g.cs new file mode 100644 index 000000000..a58c8930f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTimeField.g.cs @@ -0,0 +1,67 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ExtractionTimeField + { + /// + /// What the field should contain. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("instructions")] + public string? Instructions { get; set; } + + /// + /// Probability of null above which `value` is null. Default 0.5. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("null_threshold")] + public double? NullThreshold { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ExtractionTimeFieldTypeJsonConverter))] + public global::OpenRouter.ExtractionTimeFieldType Type { 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. + /// + /// + /// What the field should contain. + /// + /// + /// Probability of null above which `value` is null. Default 0.5. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ExtractionTimeField( + string? instructions, + double? nullThreshold, + global::OpenRouter.ExtractionTimeFieldType type) + { + this.Instructions = instructions; + this.NullThreshold = nullThreshold; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public ExtractionTimeField() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTimeFieldType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTimeFieldType.g.cs new file mode 100644 index 000000000..8560058fb --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionTimeFieldType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ExtractionTimeFieldType + { + /// + /// + /// + Time, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ExtractionTimeFieldTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ExtractionTimeFieldType value) + { + return value switch + { + ExtractionTimeFieldType.Time => "time", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ExtractionTimeFieldType? ToEnum(string value) + { + return value switch + { + "time" => ExtractionTimeFieldType.Time, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsRequest.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsRequest.Json.g.cs new file mode 100644 index 000000000..dad64269a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsRequest.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ExtractionsRequest + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionsRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ExtractionsRequest), + jsonSerializerContext) as global::OpenRouter.ExtractionsRequest; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionsRequest? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionsRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionsRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ExtractionsRequest; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsRequest.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsRequest.g.cs new file mode 100644 index 000000000..86a581012 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsRequest.g.cs @@ -0,0 +1,138 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ExtractionsRequest + { + /// + /// Assets keyed by reference string. Write a reference wherever the asset belongs in `state` or a field `instructions`; every asset must be referenced at least once. A `state` that is exactly the sole asset's key carries no text of its own and is read as file-only. A model that reads either text or a document per request, not both (ScaleDown Extract with a PDF), needs that form: any other text around the key is state text and is rejected with 400. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("assets")] + public global::System.Collections.Generic.Dictionary? Assets { get; set; } + + /// + /// Map of field name to typed field spec. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("fields")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Fields { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Model { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("provider")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AllOfJsonConverter))] + public global::OpenRouter.AllOf? Provider { get; set; } + + /// + /// ISO date that anchors dates written without a year. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("reference_date")] + public string? ReferenceDate { get; set; } + + /// + /// A unique identifier for grouping related requests (e.g., a conversation or agent workflow). Used for observability grouping in Broadcast and private logging; never sent to the provider. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 256 characters.
+ /// Example: session-1234 + ///
+ /// session-1234 + [global::System.Text.Json.Serialization.JsonPropertyName("session_id")] + public string? SessionId { get; set; } + + /// + /// The text to read from. May be empty only when the request carries image assets. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("state")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string State { get; set; } + + /// + /// Metadata for observability and tracing. Known keys (trace_id, trace_name, span_name, generation_name, parent_span_id) have special handling. Additional keys are passed through as custom metadata to configured broadcast destinations.
+ /// Example: {"trace_id":"trace-abc123","trace_name":"my-app-trace"} + ///
+ /// {"trace_id":"trace-abc123","trace_name":"my-app-trace"} + [global::System.Text.Json.Serialization.JsonPropertyName("trace")] + public global::OpenRouter.TraceConfig? Trace { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("user")] + public string? User { 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. + /// + /// + /// Map of field name to typed field spec. + /// + /// + /// + /// The text to read from. May be empty only when the request carries image assets. + /// + /// + /// Assets keyed by reference string. Write a reference wherever the asset belongs in `state` or a field `instructions`; every asset must be referenced at least once. A `state` that is exactly the sole asset's key carries no text of its own and is read as file-only. A model that reads either text or a document per request, not both (ScaleDown Extract with a PDF), needs that form: any other text around the key is state text and is rejected with 400. + /// + /// + /// + /// ISO date that anchors dates written without a year. + /// + /// + /// A unique identifier for grouping related requests (e.g., a conversation or agent workflow). Used for observability grouping in Broadcast and private logging; never sent to the provider. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 256 characters.
+ /// Example: session-1234 + /// + /// + /// Metadata for observability and tracing. Known keys (trace_id, trace_name, span_name, generation_name, parent_span_id) have special handling. Additional keys are passed through as custom metadata to configured broadcast destinations.
+ /// Example: {"trace_id":"trace-abc123","trace_name":"my-app-trace"} + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ExtractionsRequest( + object fields, + string model, + string state, + global::System.Collections.Generic.Dictionary? assets, + global::OpenRouter.AllOf? provider, + string? referenceDate, + string? sessionId, + global::OpenRouter.TraceConfig? trace, + string? user) + { + this.Assets = assets; + this.Fields = fields ?? throw new global::System.ArgumentNullException(nameof(fields)); + this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model)); + this.Provider = provider; + this.ReferenceDate = referenceDate; + this.SessionId = sessionId; + this.State = state ?? throw new global::System.ArgumentNullException(nameof(state)); + this.Trace = trace; + this.User = user; + } + + /// + /// Initializes a new instance of the class. + /// + public ExtractionsRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsRequestAssets.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsRequestAssets.Json.g.cs new file mode 100644 index 000000000..54b30be83 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsRequestAssets.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ExtractionsRequestAssets + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionsRequestAssets? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ExtractionsRequestAssets), + jsonSerializerContext) as global::OpenRouter.ExtractionsRequestAssets; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionsRequestAssets? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionsRequestAssets? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionsRequestAssets), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ExtractionsRequestAssets; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsRequestAssets.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsRequestAssets.g.cs new file mode 100644 index 000000000..9835be123 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsRequestAssets.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Assets keyed by reference string. Write a reference wherever the asset belongs in `state` or a field `instructions`; every asset must be referenced at least once. A `state` that is exactly the sole asset's key carries no text of its own and is read as file-only. A model that reads either text or a document per request, not both (ScaleDown Extract with a PDF), needs that form: any other text around the key is state text and is rejected with 400. + /// + public sealed partial class ExtractionsRequestAssets + { + + /// + /// 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/OpenRouter/Generated/OpenRouter.Models.ExtractionsRequestFields.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsRequestFields.Json.g.cs new file mode 100644 index 000000000..e350794a4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsRequestFields.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ExtractionsRequestFields + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionsRequestFields? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ExtractionsRequestFields), + jsonSerializerContext) as global::OpenRouter.ExtractionsRequestFields; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionsRequestFields? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionsRequestFields? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionsRequestFields), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ExtractionsRequestFields; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsRequestFields.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsRequestFields.g.cs new file mode 100644 index 000000000..729fc128d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsRequestFields.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Map of field name to typed field spec. + /// + public sealed partial class ExtractionsRequestFields + { + + /// + /// 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/OpenRouter/Generated/OpenRouter.Models.ExtractionsRequestFieldsDiscriminator.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsRequestFieldsDiscriminator.Json.g.cs new file mode 100644 index 000000000..55778e8e1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsRequestFieldsDiscriminator.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ExtractionsRequestFieldsDiscriminator + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionsRequestFieldsDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ExtractionsRequestFieldsDiscriminator), + jsonSerializerContext) as global::OpenRouter.ExtractionsRequestFieldsDiscriminator; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionsRequestFieldsDiscriminator? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionsRequestFieldsDiscriminator? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionsRequestFieldsDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ExtractionsRequestFieldsDiscriminator; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsRequestFieldsDiscriminator.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsRequestFieldsDiscriminator.g.cs new file mode 100644 index 000000000..9d248866a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsRequestFieldsDiscriminator.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ExtractionsRequestFieldsDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ExtractionsRequestFieldsDiscriminatorTypeJsonConverter))] + public global::OpenRouter.ExtractionsRequestFieldsDiscriminatorType? Type { 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 ExtractionsRequestFieldsDiscriminator( + global::OpenRouter.ExtractionsRequestFieldsDiscriminatorType? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public ExtractionsRequestFieldsDiscriminator() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsRequestFieldsDiscriminatorType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsRequestFieldsDiscriminatorType.g.cs new file mode 100644 index 000000000..2e84af1bd --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsRequestFieldsDiscriminatorType.g.cs @@ -0,0 +1,93 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ExtractionsRequestFieldsDiscriminatorType + { + /// + /// + /// + Date, + /// + /// + /// + Datetime, + /// + /// + /// + Duration, + /// + /// + /// + Estimate, + /// + /// + /// + Forecast, + /// + /// + /// + List, + /// + /// + /// + Number, + /// + /// + /// + Text, + /// + /// + /// + Time, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ExtractionsRequestFieldsDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ExtractionsRequestFieldsDiscriminatorType value) + { + return value switch + { + ExtractionsRequestFieldsDiscriminatorType.Date => "date", + ExtractionsRequestFieldsDiscriminatorType.Datetime => "datetime", + ExtractionsRequestFieldsDiscriminatorType.Duration => "duration", + ExtractionsRequestFieldsDiscriminatorType.Estimate => "estimate", + ExtractionsRequestFieldsDiscriminatorType.Forecast => "forecast", + ExtractionsRequestFieldsDiscriminatorType.List => "list", + ExtractionsRequestFieldsDiscriminatorType.Number => "number", + ExtractionsRequestFieldsDiscriminatorType.Text => "text", + ExtractionsRequestFieldsDiscriminatorType.Time => "time", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ExtractionsRequestFieldsDiscriminatorType? ToEnum(string value) + { + return value switch + { + "date" => ExtractionsRequestFieldsDiscriminatorType.Date, + "datetime" => ExtractionsRequestFieldsDiscriminatorType.Datetime, + "duration" => ExtractionsRequestFieldsDiscriminatorType.Duration, + "estimate" => ExtractionsRequestFieldsDiscriminatorType.Estimate, + "forecast" => ExtractionsRequestFieldsDiscriminatorType.Forecast, + "list" => ExtractionsRequestFieldsDiscriminatorType.List, + "number" => ExtractionsRequestFieldsDiscriminatorType.Number, + "text" => ExtractionsRequestFieldsDiscriminatorType.Text, + "time" => ExtractionsRequestFieldsDiscriminatorType.Time, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsRequestProvider.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsRequestProvider.Json.g.cs new file mode 100644 index 000000000..50888aba1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsRequestProvider.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ExtractionsRequestProvider + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionsRequestProvider? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ExtractionsRequestProvider), + jsonSerializerContext) as global::OpenRouter.ExtractionsRequestProvider; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionsRequestProvider? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionsRequestProvider? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionsRequestProvider), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ExtractionsRequestProvider; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsRequestProvider.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsRequestProvider.g.cs new file mode 100644 index 000000000..18b7c0aff --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsRequestProvider.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Provider routing preferences for the request. + /// + public sealed partial class ExtractionsRequestProvider + { + + /// + /// 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/OpenRouter/Generated/OpenRouter.Models.ExtractionsResponse.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsResponse.Json.g.cs new file mode 100644 index 000000000..91acc9332 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ExtractionsResponse + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionsResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ExtractionsResponse), + jsonSerializerContext) as global::OpenRouter.ExtractionsResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionsResponse? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionsResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionsResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ExtractionsResponse; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsResponse.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsResponse.g.cs new file mode 100644 index 000000000..7a6ad303b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsResponse.g.cs @@ -0,0 +1,105 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ExtractionsResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("answers")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Answers { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Model { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("provider")] + public string? Provider { get; set; } + + /// + /// The text that spans index into, when requested through provider options. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("state_text")] + public string? StateText { get; set; } + + /// + /// True when the provider read only a prefix of the state. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("truncated")] + public bool? Truncated { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("usage")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ExtractionsUsage Usage { 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. + /// + /// + /// + /// + /// + /// + /// + /// The text that spans index into, when requested through provider options. + /// + /// + /// True when the provider read only a prefix of the state. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ExtractionsResponse( + object answers, + string model, + global::OpenRouter.ExtractionsUsage usage, + string? id, + string? provider, + string? stateText, + bool? truncated) + { + this.Answers = answers ?? throw new global::System.ArgumentNullException(nameof(answers)); + this.Id = id; + this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model)); + this.Provider = provider; + this.StateText = stateText; + this.Truncated = truncated; + this.Usage = usage ?? throw new global::System.ArgumentNullException(nameof(usage)); + } + + /// + /// Initializes a new instance of the class. + /// + public ExtractionsResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsResponseAnswers.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsResponseAnswers.Json.g.cs new file mode 100644 index 000000000..444529fb7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsResponseAnswers.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ExtractionsResponseAnswers + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionsResponseAnswers? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ExtractionsResponseAnswers), + jsonSerializerContext) as global::OpenRouter.ExtractionsResponseAnswers; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionsResponseAnswers? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionsResponseAnswers? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionsResponseAnswers), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ExtractionsResponseAnswers; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsResponseAnswers.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsResponseAnswers.g.cs new file mode 100644 index 000000000..3c032d983 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsResponseAnswers.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ExtractionsResponseAnswers + { + + /// + /// 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/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadStt.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsResponseAnswersDiscriminator.Json.g.cs similarity index 85% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadStt.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsResponseAnswersDiscriminator.Json.g.cs index ba0f10e56..64f5a1936 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadStt.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsResponseAnswersDiscriminator.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class PublicEndpointPerfLast30mByWorkloadStt + public sealed partial class ExtractionsResponseAnswersDiscriminator { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadStt? FromJson( + public static global::OpenRouter.ExtractionsResponseAnswersDiscriminator? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.PublicEndpointPerfLast30mByWorkloadStt), - jsonSerializerContext) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadStt; + typeof(global::OpenRouter.ExtractionsResponseAnswersDiscriminator), + jsonSerializerContext) as global::OpenRouter.ExtractionsResponseAnswersDiscriminator; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadStt? FromJson( + public static global::OpenRouter.ExtractionsResponseAnswersDiscriminator? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require 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::OpenRouter.PublicEndpointPerfLast30mByWorkloadStt? FromJson( + public static global::OpenRouter.ExtractionsResponseAnswersDiscriminator? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::OpenRouter.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + 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::OpenRouter.PublicEndpointPerfLast30mByWorkloadStt), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadStt; + typeof(global::OpenRouter.ExtractionsResponseAnswersDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ExtractionsResponseAnswersDiscriminator; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require 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( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::OpenRouter.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsResponseAnswersDiscriminator.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsResponseAnswersDiscriminator.g.cs new file mode 100644 index 000000000..f47627fea --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsResponseAnswersDiscriminator.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ExtractionsResponseAnswersDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ExtractionsResponseAnswersDiscriminatorTypeJsonConverter))] + public global::OpenRouter.ExtractionsResponseAnswersDiscriminatorType? Type { 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 ExtractionsResponseAnswersDiscriminator( + global::OpenRouter.ExtractionsResponseAnswersDiscriminatorType? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public ExtractionsResponseAnswersDiscriminator() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsResponseAnswersDiscriminatorType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsResponseAnswersDiscriminatorType.g.cs new file mode 100644 index 000000000..9d8784a67 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsResponseAnswersDiscriminatorType.g.cs @@ -0,0 +1,93 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ExtractionsResponseAnswersDiscriminatorType + { + /// + /// + /// + Date, + /// + /// + /// + Datetime, + /// + /// + /// + Duration, + /// + /// + /// + Estimate, + /// + /// + /// + Forecast, + /// + /// + /// + List, + /// + /// + /// + Number, + /// + /// + /// + Text, + /// + /// + /// + Time, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ExtractionsResponseAnswersDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ExtractionsResponseAnswersDiscriminatorType value) + { + return value switch + { + ExtractionsResponseAnswersDiscriminatorType.Date => "date", + ExtractionsResponseAnswersDiscriminatorType.Datetime => "datetime", + ExtractionsResponseAnswersDiscriminatorType.Duration => "duration", + ExtractionsResponseAnswersDiscriminatorType.Estimate => "estimate", + ExtractionsResponseAnswersDiscriminatorType.Forecast => "forecast", + ExtractionsResponseAnswersDiscriminatorType.List => "list", + ExtractionsResponseAnswersDiscriminatorType.Number => "number", + ExtractionsResponseAnswersDiscriminatorType.Text => "text", + ExtractionsResponseAnswersDiscriminatorType.Time => "time", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ExtractionsResponseAnswersDiscriminatorType? ToEnum(string value) + { + return value switch + { + "date" => ExtractionsResponseAnswersDiscriminatorType.Date, + "datetime" => ExtractionsResponseAnswersDiscriminatorType.Datetime, + "duration" => ExtractionsResponseAnswersDiscriminatorType.Duration, + "estimate" => ExtractionsResponseAnswersDiscriminatorType.Estimate, + "forecast" => ExtractionsResponseAnswersDiscriminatorType.Forecast, + "list" => ExtractionsResponseAnswersDiscriminatorType.List, + "number" => ExtractionsResponseAnswersDiscriminatorType.Number, + "text" => ExtractionsResponseAnswersDiscriminatorType.Text, + "time" => ExtractionsResponseAnswersDiscriminatorType.Time, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsUsage.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsUsage.Json.g.cs new file mode 100644 index 000000000..bafacf6f6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsUsage.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ExtractionsUsage + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionsUsage? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ExtractionsUsage), + jsonSerializerContext) as global::OpenRouter.ExtractionsUsage; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ExtractionsUsage? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionsUsage? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ExtractionsUsage), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ExtractionsUsage; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsUsage.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsUsage.g.cs new file mode 100644 index 000000000..7559f1815 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExtractionsUsage.g.cs @@ -0,0 +1,102 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ExtractionsUsage + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cost")] + public double? Cost { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("image_tokens")] + public int? ImageTokens { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("input_tokens")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int InputTokens { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("output_tokens")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int OutputTokens { get; set; } + + /// + /// Number of upstream passes when the fields did not fit in one. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("passes")] + public int? Passes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("schema_tokens")] + public int? SchemaTokens { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("state_tokens")] + public int? StateTokens { 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. + /// + /// + /// + /// + /// + /// + /// Number of upstream passes when the fields did not fit in one. + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ExtractionsUsage( + int inputTokens, + int outputTokens, + double? cost, + int? imageTokens, + int? passes, + int? schemaTokens, + int? stateTokens) + { + this.Cost = cost; + this.ImageTokens = imageTokens; + this.InputTokens = inputTokens; + this.OutputTokens = outputTokens; + this.Passes = passes; + this.SchemaTokens = schemaTokens; + this.StateTokens = stateTokens; + } + + /// + /// Initializes a new instance of the class. + /// + public ExtractionsUsage() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.Fields.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.Fields.Json.g.cs new file mode 100644 index 000000000..3b7591815 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.Fields.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public readonly partial struct Fields + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.Fields? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.Fields), + jsonSerializerContext) as global::OpenRouter.Fields?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.Fields? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.Fields? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.Fields), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.Fields?; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.Fields.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.Fields.g.cs new file mode 100644 index 000000000..599df6a8f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.Fields.g.cs @@ -0,0 +1,884 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace OpenRouter +{ + /// + /// A typed field to extract, compute, estimate or forecast from the state. Which types a model answers is model-specific; unsupported types are rejected with 400. + /// + public readonly partial struct Fields : global::System.IEquatable + { + /// + /// + /// + public global::OpenRouter.ExtractionsRequestFieldsDiscriminatorType? Type { get; } + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ExtractionTextField? Text { get; init; } +#else + public global::OpenRouter.ExtractionTextField? Text { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Text))] +#endif + public bool IsText => Text != null; + + /// + /// + /// + public bool TryPickText( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ExtractionTextField? value) + { + value = Text; + return IsText; + } + + /// + /// + /// + public global::OpenRouter.ExtractionTextField PickText() => Text is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ExtractionNumberField? Number { get; init; } +#else + public global::OpenRouter.ExtractionNumberField? Number { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Number))] +#endif + public bool IsNumber => Number != null; + + /// + /// + /// + public bool TryPickNumber( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ExtractionNumberField? value) + { + value = Number; + return IsNumber; + } + + /// + /// + /// + public global::OpenRouter.ExtractionNumberField PickNumber() => Number is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Number' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ExtractionDateField? Date { get; init; } +#else + public global::OpenRouter.ExtractionDateField? Date { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Date))] +#endif + public bool IsDate => Date != null; + + /// + /// + /// + public bool TryPickDate( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ExtractionDateField? value) + { + value = Date; + return IsDate; + } + + /// + /// + /// + public global::OpenRouter.ExtractionDateField PickDate() => Date is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Date' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ExtractionTimeField? Time { get; init; } +#else + public global::OpenRouter.ExtractionTimeField? Time { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Time))] +#endif + public bool IsTime => Time != null; + + /// + /// + /// + public bool TryPickTime( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ExtractionTimeField? value) + { + value = Time; + return IsTime; + } + + /// + /// + /// + public global::OpenRouter.ExtractionTimeField PickTime() => Time is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Time' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ExtractionDatetimeField? Datetime { get; init; } +#else + public global::OpenRouter.ExtractionDatetimeField? Datetime { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Datetime))] +#endif + public bool IsDatetime => Datetime != null; + + /// + /// + /// + public bool TryPickDatetime( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ExtractionDatetimeField? value) + { + value = Datetime; + return IsDatetime; + } + + /// + /// + /// + public global::OpenRouter.ExtractionDatetimeField PickDatetime() => Datetime is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Datetime' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ExtractionDurationField? Duration { get; init; } +#else + public global::OpenRouter.ExtractionDurationField? Duration { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Duration))] +#endif + public bool IsDuration => Duration != null; + + /// + /// + /// + public bool TryPickDuration( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ExtractionDurationField? value) + { + value = Duration; + return IsDuration; + } + + /// + /// + /// + public global::OpenRouter.ExtractionDurationField PickDuration() => Duration is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Duration' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ExtractionListField? List { get; init; } +#else + public global::OpenRouter.ExtractionListField? List { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(List))] +#endif + public bool IsList => List != null; + + /// + /// + /// + public bool TryPickList( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ExtractionListField? value) + { + value = List; + return IsList; + } + + /// + /// + /// + public global::OpenRouter.ExtractionListField PickList() => List is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'List' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ExtractionEstimateField? Estimate { get; init; } +#else + public global::OpenRouter.ExtractionEstimateField? Estimate { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Estimate))] +#endif + public bool IsEstimate => Estimate != null; + + /// + /// + /// + public bool TryPickEstimate( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ExtractionEstimateField? value) + { + value = Estimate; + return IsEstimate; + } + + /// + /// + /// + public global::OpenRouter.ExtractionEstimateField PickEstimate() => Estimate is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Estimate' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ExtractionForecastField? Forecast { get; init; } +#else + public global::OpenRouter.ExtractionForecastField? Forecast { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Forecast))] +#endif + public bool IsForecast => Forecast != null; + + /// + /// + /// + public bool TryPickForecast( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.ExtractionForecastField? value) + { + value = Forecast; + return IsForecast; + } + + /// + /// + /// + public global::OpenRouter.ExtractionForecastField PickForecast() => Forecast is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'Forecast' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator Fields(global::OpenRouter.ExtractionTextField value) => new Fields((global::OpenRouter.ExtractionTextField?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ExtractionTextField?(Fields @this) => @this.Text; + + /// + /// + /// + public Fields(global::OpenRouter.ExtractionTextField? value) + { + Text = value; + } + + /// + /// + /// + public static Fields FromText(global::OpenRouter.ExtractionTextField? value) => new Fields(value); + + /// + /// + /// + public static implicit operator Fields(global::OpenRouter.ExtractionNumberField value) => new Fields((global::OpenRouter.ExtractionNumberField?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ExtractionNumberField?(Fields @this) => @this.Number; + + /// + /// + /// + public Fields(global::OpenRouter.ExtractionNumberField? value) + { + Number = value; + } + + /// + /// + /// + public static Fields FromNumber(global::OpenRouter.ExtractionNumberField? value) => new Fields(value); + + /// + /// + /// + public static implicit operator Fields(global::OpenRouter.ExtractionDateField value) => new Fields((global::OpenRouter.ExtractionDateField?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ExtractionDateField?(Fields @this) => @this.Date; + + /// + /// + /// + public Fields(global::OpenRouter.ExtractionDateField? value) + { + Date = value; + } + + /// + /// + /// + public static Fields FromDate(global::OpenRouter.ExtractionDateField? value) => new Fields(value); + + /// + /// + /// + public static implicit operator Fields(global::OpenRouter.ExtractionTimeField value) => new Fields((global::OpenRouter.ExtractionTimeField?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ExtractionTimeField?(Fields @this) => @this.Time; + + /// + /// + /// + public Fields(global::OpenRouter.ExtractionTimeField? value) + { + Time = value; + } + + /// + /// + /// + public static Fields FromTime(global::OpenRouter.ExtractionTimeField? value) => new Fields(value); + + /// + /// + /// + public static implicit operator Fields(global::OpenRouter.ExtractionDatetimeField value) => new Fields((global::OpenRouter.ExtractionDatetimeField?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ExtractionDatetimeField?(Fields @this) => @this.Datetime; + + /// + /// + /// + public Fields(global::OpenRouter.ExtractionDatetimeField? value) + { + Datetime = value; + } + + /// + /// + /// + public static Fields FromDatetime(global::OpenRouter.ExtractionDatetimeField? value) => new Fields(value); + + /// + /// + /// + public static implicit operator Fields(global::OpenRouter.ExtractionDurationField value) => new Fields((global::OpenRouter.ExtractionDurationField?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ExtractionDurationField?(Fields @this) => @this.Duration; + + /// + /// + /// + public Fields(global::OpenRouter.ExtractionDurationField? value) + { + Duration = value; + } + + /// + /// + /// + public static Fields FromDuration(global::OpenRouter.ExtractionDurationField? value) => new Fields(value); + + /// + /// + /// + public static implicit operator Fields(global::OpenRouter.ExtractionListField value) => new Fields((global::OpenRouter.ExtractionListField?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ExtractionListField?(Fields @this) => @this.List; + + /// + /// + /// + public Fields(global::OpenRouter.ExtractionListField? value) + { + List = value; + } + + /// + /// + /// + public static Fields FromList(global::OpenRouter.ExtractionListField? value) => new Fields(value); + + /// + /// + /// + public static implicit operator Fields(global::OpenRouter.ExtractionEstimateField value) => new Fields((global::OpenRouter.ExtractionEstimateField?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ExtractionEstimateField?(Fields @this) => @this.Estimate; + + /// + /// + /// + public Fields(global::OpenRouter.ExtractionEstimateField? value) + { + Estimate = value; + } + + /// + /// + /// + public static Fields FromEstimate(global::OpenRouter.ExtractionEstimateField? value) => new Fields(value); + + /// + /// + /// + public static implicit operator Fields(global::OpenRouter.ExtractionForecastField value) => new Fields((global::OpenRouter.ExtractionForecastField?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ExtractionForecastField?(Fields @this) => @this.Forecast; + + /// + /// + /// + public Fields(global::OpenRouter.ExtractionForecastField? value) + { + Forecast = value; + } + + /// + /// + /// + public static Fields FromForecast(global::OpenRouter.ExtractionForecastField? value) => new Fields(value); + + /// + /// + /// + public Fields( + global::OpenRouter.ExtractionsRequestFieldsDiscriminatorType? type, + global::OpenRouter.ExtractionTextField? text, + global::OpenRouter.ExtractionNumberField? number, + global::OpenRouter.ExtractionDateField? date, + global::OpenRouter.ExtractionTimeField? time, + global::OpenRouter.ExtractionDatetimeField? datetime, + global::OpenRouter.ExtractionDurationField? duration, + global::OpenRouter.ExtractionListField? list, + global::OpenRouter.ExtractionEstimateField? estimate, + global::OpenRouter.ExtractionForecastField? forecast + ) + { + Type = type; + + Text = text; + Number = number; + Date = date; + Time = time; + Datetime = datetime; + Duration = duration; + List = list; + Estimate = estimate; + Forecast = forecast; + } + + /// + /// + /// + public object? Object => + Forecast as object ?? + Estimate as object ?? + List as object ?? + Duration as object ?? + Datetime as object ?? + Time as object ?? + Date as object ?? + Number as object ?? + Text as object + ; + + /// + /// + /// + public override string? ToString() => + Text?.ToString() ?? + Number?.ToString() ?? + Date?.ToString() ?? + Time?.ToString() ?? + Datetime?.ToString() ?? + Duration?.ToString() ?? + List?.ToString() ?? + Estimate?.ToString() ?? + Forecast?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsText && !IsNumber && !IsDate && !IsTime && !IsDatetime && !IsDuration && !IsList && !IsEstimate && !IsForecast || !IsText && IsNumber && !IsDate && !IsTime && !IsDatetime && !IsDuration && !IsList && !IsEstimate && !IsForecast || !IsText && !IsNumber && IsDate && !IsTime && !IsDatetime && !IsDuration && !IsList && !IsEstimate && !IsForecast || !IsText && !IsNumber && !IsDate && IsTime && !IsDatetime && !IsDuration && !IsList && !IsEstimate && !IsForecast || !IsText && !IsNumber && !IsDate && !IsTime && IsDatetime && !IsDuration && !IsList && !IsEstimate && !IsForecast || !IsText && !IsNumber && !IsDate && !IsTime && !IsDatetime && IsDuration && !IsList && !IsEstimate && !IsForecast || !IsText && !IsNumber && !IsDate && !IsTime && !IsDatetime && !IsDuration && IsList && !IsEstimate && !IsForecast || !IsText && !IsNumber && !IsDate && !IsTime && !IsDatetime && !IsDuration && !IsList && IsEstimate && !IsForecast || !IsText && !IsNumber && !IsDate && !IsTime && !IsDatetime && !IsDuration && !IsList && !IsEstimate && IsForecast; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? text = null, + global::System.Func? number = null, + global::System.Func? date = null, + global::System.Func? time = null, + global::System.Func? datetime = null, + global::System.Func? duration = null, + global::System.Func? list = null, + global::System.Func? estimate = null, + global::System.Func? forecast = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (Text is { } __value0 && text != null) + { + return text(__value0); + } + else if (Number is { } __value1 && number != null) + { + return number(__value1); + } + else if (Date is { } __value2 && date != null) + { + return date(__value2); + } + else if (Time is { } __value3 && time != null) + { + return time(__value3); + } + else if (Datetime is { } __value4 && datetime != null) + { + return datetime(__value4); + } + else if (Duration is { } __value5 && duration != null) + { + return duration(__value5); + } + else if (List is { } __value6 && list != null) + { + return list(__value6); + } + else if (Estimate is { } __value7 && estimate != null) + { + return estimate(__value7); + } + else if (Forecast is { } __value8 && forecast != null) + { + return forecast(__value8); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? text = null, + + global::System.Action? number = null, + + global::System.Action? date = null, + + global::System.Action? time = null, + + global::System.Action? datetime = null, + + global::System.Action? duration = null, + + global::System.Action? list = null, + + global::System.Action? estimate = null, + + global::System.Action? forecast = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (Text is { } __value0) + { + text?.Invoke(__value0); + } + else if (Number is { } __value1) + { + number?.Invoke(__value1); + } + else if (Date is { } __value2) + { + date?.Invoke(__value2); + } + else if (Time is { } __value3) + { + time?.Invoke(__value3); + } + else if (Datetime is { } __value4) + { + datetime?.Invoke(__value4); + } + else if (Duration is { } __value5) + { + duration?.Invoke(__value5); + } + else if (List is { } __value6) + { + list?.Invoke(__value6); + } + else if (Estimate is { } __value7) + { + estimate?.Invoke(__value7); + } + else if (Forecast is { } __value8) + { + forecast?.Invoke(__value8); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? text = null, + global::System.Action? number = null, + global::System.Action? date = null, + global::System.Action? time = null, + global::System.Action? datetime = null, + global::System.Action? duration = null, + global::System.Action? list = null, + global::System.Action? estimate = null, + global::System.Action? forecast = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (Text is { } __value0) + { + text?.Invoke(__value0); + } + else if (Number is { } __value1) + { + number?.Invoke(__value1); + } + else if (Date is { } __value2) + { + date?.Invoke(__value2); + } + else if (Time is { } __value3) + { + time?.Invoke(__value3); + } + else if (Datetime is { } __value4) + { + datetime?.Invoke(__value4); + } + else if (Duration is { } __value5) + { + duration?.Invoke(__value5); + } + else if (List is { } __value6) + { + list?.Invoke(__value6); + } + else if (Estimate is { } __value7) + { + estimate?.Invoke(__value7); + } + else if (Forecast is { } __value8) + { + forecast?.Invoke(__value8); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Text, + typeof(global::OpenRouter.ExtractionTextField), + Number, + typeof(global::OpenRouter.ExtractionNumberField), + Date, + typeof(global::OpenRouter.ExtractionDateField), + Time, + typeof(global::OpenRouter.ExtractionTimeField), + Datetime, + typeof(global::OpenRouter.ExtractionDatetimeField), + Duration, + typeof(global::OpenRouter.ExtractionDurationField), + List, + typeof(global::OpenRouter.ExtractionListField), + Estimate, + typeof(global::OpenRouter.ExtractionEstimateField), + Forecast, + typeof(global::OpenRouter.ExtractionForecastField), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(Fields other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Text, other.Text) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Number, other.Number) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Date, other.Date) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Time, other.Time) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Datetime, other.Datetime) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Duration, other.Duration) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(List, other.List) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Estimate, other.Estimate) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Forecast, other.Forecast) + ; + } + + /// + /// + /// + public static bool operator ==(Fields obj1, Fields obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(Fields obj1, Fields obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is Fields o && Equals(o); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationResponseDataApiType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationResponseDataApiType.g.cs index 41fb88131..2f3c4ca16 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationResponseDataApiType.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GenerationResponseDataApiType.g.cs @@ -36,6 +36,11 @@ public GenerationResponseDataApiType(string value) /// public static GenerationResponseDataApiType Embeddings { get; } = new("embeddings"); + /// + /// + /// + public static GenerationResponseDataApiType Extractions { get; } = new("extractions"); + /// /// /// @@ -72,6 +77,7 @@ public static GenerationResponseDataApiType FromValue(string value) "completions" => Completions, "decisions" => Decisions, "embeddings" => Embeddings, + "extractions" => Extractions, "image" => Image, "rerank" => Rerank, "stt" => Stt, @@ -89,6 +95,7 @@ public static GenerationResponseDataApiType FromValue(string value) "completions" => true, "decisions" => true, "embeddings" => true, + "extractions" => true, "image" => true, "rerank" => true, "stt" => true, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGeneration.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGeneration.Json.g.cs new file mode 100644 index 000000000..aed2b7ccc --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGeneration.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGeneration + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGeneration? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGeneration), + jsonSerializerContext) as global::OpenRouter.ImageGeneration; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGeneration? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ImageGeneration? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ImageGeneration), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGeneration; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadRerank.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGeneration.g.cs similarity index 85% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadRerank.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGeneration.g.cs index 37fc16813..5090e015a 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadRerank.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGeneration.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// /// - public sealed partial class PublicEndpointPerfLast30mByWorkloadRerank + public sealed partial class ImageGeneration { /// /// @@ -37,7 +37,7 @@ public sealed partial class PublicEndpointPerfLast30mByWorkloadRerank public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -47,7 +47,7 @@ public sealed partial class PublicEndpointPerfLast30mByWorkloadRerank #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public PublicEndpointPerfLast30mByWorkloadRerank( + public ImageGeneration( global::OpenRouter.AllOf latency, global::OpenRouter.AllOf throughput, int? requestCount) @@ -58,9 +58,9 @@ public PublicEndpointPerfLast30mByWorkloadRerank( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public PublicEndpointPerfLast30mByWorkloadRerank() + public ImageGeneration() { } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationLatency.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationLatency.Json.g.cs new file mode 100644 index 000000000..fb1233621 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationLatency.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationLatency + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationLatency? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationLatency), + jsonSerializerContext) as global::OpenRouter.ImageGenerationLatency; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationLatency? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ImageGenerationLatency? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ImageGenerationLatency), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationLatency; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadRerankLatency.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationLatency.g.cs similarity index 89% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadRerankLatency.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationLatency.g.cs index 4834165f8..0579e27b8 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadRerankLatency.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationLatency.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// Latency percentiles in milliseconds for this workload. Image and video generation report full end-to-end generation time, because their raw latency only measures request acknowledgement; every other workload reports time to first token or result. /// - public sealed partial class PublicEndpointPerfLast30mByWorkloadRerankLatency + public sealed partial class ImageGenerationLatency { /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequest.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequest.g.cs index 053c169e3..d13efe6c2 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequest.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequest.g.cs @@ -51,7 +51,7 @@ public sealed partial class ImageGenerationRequest public int? N { get; set; } /// - /// Compression level (0-100) for webp/jpeg output. Ignored for png and by providers without a compression knob.
+ /// Compression level (0-100) for jpeg/webp output. Ignored by providers without a compression knob; providers that honor it may reject it with other output formats (e.g. OpenAI requires output_format "jpeg" or "webp").
/// Example: 100 ///
/// 100 @@ -117,7 +117,7 @@ public sealed partial class ImageGenerationRequest public string? SessionId { get; set; } /// - /// Optional. A convenience shorthand for output dimensions — pass a tier ("2K", "4K") or explicit pixels ("2048x2048") and we normalize it to the right dimensions for the chosen provider. A tier size is equivalent to setting `resolution` and combines with `aspect_ratio`. An explicit pixel size is authoritative: a mismatched `resolution` or `aspect_ratio` alongside it is rejected with a 400.
+ /// Optional. A convenience shorthand for output dimensions — pass a tier ("2K", "4K") or explicit pixels ("2048x2048"). A tier size is equivalent to setting `resolution` and combines with `aspect_ratio`. Explicit pixel sizes are provider-dependent: providers that accept them treat the value as authoritative and reject a mismatched `resolution` or `aspect_ratio` alongside it with a 400. xAI and Sourceful V2/V2.5 reject explicit pixel sizes (use `resolution` and `aspect_ratio` there); Sourceful V2.6 supports them within its dimension limits and does not allow combining them with `resolution` or `aspect_ratio`.
/// Example: 2K ///
/// 2K @@ -179,7 +179,7 @@ public sealed partial class ImageGenerationRequest /// Example: 1 /// /// - /// Compression level (0-100) for webp/jpeg output. Ignored for png and by providers without a compression knob.
+ /// Compression level (0-100) for jpeg/webp output. Ignored by providers without a compression knob; providers that honor it may reject it with other output formats (e.g. OpenAI requires output_format "jpeg" or "webp").
/// Example: 100 /// /// @@ -206,7 +206,7 @@ public sealed partial class ImageGenerationRequest /// Example: session-1234 /// /// - /// Optional. A convenience shorthand for output dimensions — pass a tier ("2K", "4K") or explicit pixels ("2048x2048") and we normalize it to the right dimensions for the chosen provider. A tier size is equivalent to setting `resolution` and combines with `aspect_ratio`. An explicit pixel size is authoritative: a mismatched `resolution` or `aspect_ratio` alongside it is rejected with a 400.
+ /// Optional. A convenience shorthand for output dimensions — pass a tier ("2K", "4K") or explicit pixels ("2048x2048"). A tier size is equivalent to setting `resolution` and combines with `aspect_ratio`. Explicit pixel sizes are provider-dependent: providers that accept them treat the value as authoritative and reject a mismatched `resolution` or `aspect_ratio` alongside it with a 400. xAI and Sourceful V2/V2.5 reject explicit pixel sizes (use `resolution` and `aspect_ratio` there); Sourceful V2.6 supports them within its dimension limits and does not allow combining them with `resolution` or `aspect_ratio`.
/// Example: 2K /// /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationThroughput.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationThroughput.Json.g.cs new file mode 100644 index 000000000..6327d473c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationThroughput.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationThroughput + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationThroughput? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationThroughput), + jsonSerializerContext) as global::OpenRouter.ImageGenerationThroughput; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationThroughput? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ImageGenerationThroughput? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ImageGenerationThroughput), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationThroughput; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadRerankThroughput.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationThroughput.g.cs similarity index 89% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadRerankThroughput.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationThroughput.g.cs index b7c99f82d..a15a1299c 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadRerankThroughput.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationThroughput.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// Throughput percentiles in tokens per second; pN is the speed that N% of requests reached or exceeded, so p90 is lower than p50. Only meaningful for text generation; null for workloads without token throughput. /// - public sealed partial class PublicEndpointPerfLast30mByWorkloadRerankThroughput + public sealed partial class ImageGenerationThroughput { /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ListEndpointsZdrResponse.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ListEndpointsZdrResponse.g.cs index 9767e6dcb..53721b2f1 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ListEndpointsZdrResponse.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ListEndpointsZdrResponse.g.cs @@ -4,7 +4,7 @@ namespace OpenRouter { /// - /// Example: {"data":[{"context_length":8192,"latency_last_30m":{"p50":0.25,"p75":0.35,"p90":0.48,"p99":0.85},"max_completion_tokens":4096,"max_prompt_tokens":8192,"model_id":"openai/gpt-4","model_name":"GPT-4","name":"OpenAI: GPT-4","native_tools":{},"pricing":{"completion":"0.00006","image":"0","prompt":"0.00003","request":"0"},"provider_name":"OpenAI","quantization":"fp16","status":0,"supported_parameters":["temperature","top_p","max_tokens"],"supports_diarization":false,"supports_image_reference":false,"supports_implicit_caching":true,"supports_multiple_audio_references":false,"supports_voice_cloning":false,"tag":"openai","throughput_last_30m":{"p50":45.2,"p75":38.5,"p90":28.3,"p99":15.1},"uptime_last_1d":99.8,"uptime_last_30m":99.5,"uptime_last_5m":100}]} + /// Example: {"data":[{"context_length":8192,"latency_last_30m":{"p50":0.25,"p75":0.35,"p90":0.48,"p99":0.85},"max_completion_tokens":4096,"max_prompt_tokens":8192,"model_id":"openai/gpt-4","model_name":"GPT-4","name":"OpenAI: GPT-4","native_tools":{},"pricing":{"completion":"0.00006","image":"0","prompt":"0.00003","request":"0"},"provider_name":"OpenAI","quantization":"fp16","safety_retention":false,"status":0,"supported_parameters":["temperature","top_p","max_tokens"],"supports_diarization":false,"supports_image_reference":false,"supports_implicit_caching":true,"supports_multiple_audio_references":false,"supports_voice_cloning":false,"tag":"openai","throughput_last_30m":{"p50":45.2,"p75":38.5,"p90":28.3,"p99":15.1},"uptime_last_1d":99.8,"uptime_last_30m":99.5,"uptime_last_5m":100}]} /// public sealed partial class ListEndpointsZdrResponse { @@ -13,7 +13,7 @@ public sealed partial class ListEndpointsZdrResponse /// [global::System.Text.Json.Serialization.JsonPropertyName("data")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Data { get; set; } + public required global::System.Collections.Generic.IList Data { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -29,7 +29,7 @@ public sealed partial class ListEndpointsZdrResponse [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ListEndpointsZdrResponse( - global::System.Collections.Generic.IList data) + global::System.Collections.Generic.IList data) { this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ListModelsUserClient.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ListModelsUserClient.g.cs index c852f0e79..826546b54 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ListModelsUserClient.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ListModelsUserClient.g.cs @@ -5,7 +5,7 @@ namespace OpenRouter { /// - /// Return only the models and presets the named harness offers: those that support tool calling, and, when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor's own models (OpenAI for codex, Anthropic for claude_code and claude_desktop). One of: claude_code, claude_desktop, codex. Omit it to get every model you can use.
+ /// Filter models and presets by the named harness's eligibility policy: tool calling is required, and when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor's own models remain (OpenAI for codex, Anthropic for claude_code and claude_desktop). When your workspace's Managed Machines policy sets a model list for that harness, only the listed models remain, and a preset remains only while every model it routes to is listed. This filter doesn't apply the harness's ranking, caps or Claude Desktop model ID aliases, so returned IDs stay routable. One of: claude_code, claude_desktop, codex. Omit it to get every model you can use.
/// Example: codex ///
public readonly partial struct ListModelsUserClient : global::System.IEquatable @@ -23,17 +23,17 @@ public ListModelsUserClient(string value) ///
public string Value { get; } /// - /// those that support tool calling, and, when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor's own models (OpenAI for codex, Anthropic for claude_code and claude_desktop). One of: claude_code, claude_desktop, codex. Omit it to get every model you can use. + /// tool calling is required, and when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor's own models remain (OpenAI for codex, Anthropic for claude_code and claude_desktop). When your workspace's Managed Machines policy sets a model list for that harness, only the listed models remain, and a preset remains only while every model it routes to is listed. This filter doesn't apply the harness's ranking, caps or Claude Desktop model ID aliases, so returned IDs stay routable. One of: claude_code, claude_desktop, codex. Omit it to get every model you can use. /// public static ListModelsUserClient ClaudeCode { get; } = new("claude_code"); /// - /// those that support tool calling, and, when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor's own models (OpenAI for codex, Anthropic for claude_code and claude_desktop). One of: claude_code, claude_desktop, codex. Omit it to get every model you can use. + /// tool calling is required, and when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor's own models remain (OpenAI for codex, Anthropic for claude_code and claude_desktop). When your workspace's Managed Machines policy sets a model list for that harness, only the listed models remain, and a preset remains only while every model it routes to is listed. This filter doesn't apply the harness's ranking, caps or Claude Desktop model ID aliases, so returned IDs stay routable. One of: claude_code, claude_desktop, codex. Omit it to get every model you can use. /// public static ListModelsUserClient ClaudeDesktop { get; } = new("claude_desktop"); /// - /// those that support tool calling, and, when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor's own models (OpenAI for codex, Anthropic for claude_code and claude_desktop). One of: claude_code, claude_desktop, codex. Omit it to get every model you can use. + /// tool calling is required, and when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor's own models remain (OpenAI for codex, Anthropic for claude_code and claude_desktop). When your workspace's Managed Machines policy sets a model list for that harness, only the listed models remain, and a preset remains only while every model it routes to is listed. This filter doesn't apply the harness's ranking, caps or Claude Desktop model ID aliases, so returned IDs stay routable. One of: claude_code, claude_desktop, codex. Omit it to get every model you can use. /// public static ListModelsUserClient Codex { get; } = new("codex"); /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.Model.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.Model.g.cs index a7f336cee..bd5dbe6a0 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.Model.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.Model.g.cs @@ -77,6 +77,15 @@ public sealed partial class Model [global::System.Text.Json.Serialization.JsonPropertyName("description")] public string? Description { get; set; } + /// + /// Request API paths that serve this model, derived from the same modality and adapter rules the routers use. A model served only through an alpha surface lists only that path.
+ /// Example: [/api/v1/chat/completions, /api/v1/completions, /api/v1/messages, /api/v1/responses] + ///
+ /// [/api/v1/chat/completions, /api/v1/completions, /api/v1/messages, /api/v1/responses] + [global::System.Text.Json.Serialization.JsonPropertyName("endpoints")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Endpoints { get; set; } + /// /// The date after which the model may be removed. ISO 8601 date string (YYYY-MM-DD) or null if no expiration.
/// Example: 2025-06-01 @@ -198,6 +207,10 @@ public sealed partial class Model /// Unix timestamp of when the model was created
/// Example: 1692901234 /// + /// + /// Request API paths that serve this model, derived from the same modality and adapter rules the routers use. A model served only through an alpha surface lists only that path.
+ /// Example: [/api/v1/chat/completions, /api/v1/completions, /api/v1/messages, /api/v1/responses] + /// /// /// Unique identifier for the model
/// Example: openai/gpt-4 @@ -272,6 +285,7 @@ public Model( global::OpenRouter.ModelArchitecture architecture, string canonicalSlug, global::System.DateTimeOffset created, + global::System.Collections.Generic.IList endpoints, string id, global::OpenRouter.ModelLinks links, string name, @@ -298,6 +312,7 @@ public Model( this.Created = created; this.DefaultParameters = defaultParameters; this.Description = description; + this.Endpoints = endpoints ?? throw new global::System.ArgumentNullException(nameof(endpoints)); this.ExpirationDate = expirationDate; this.HuggingFaceId = huggingFaceId; this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ModelResponse.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ModelResponse.g.cs index 5a9634b94..538e293e7 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ModelResponse.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ModelResponse.g.cs @@ -5,7 +5,7 @@ namespace OpenRouter { /// /// Single model response
- /// Example: {"data":{"architecture":{"input_modalities":["text"],"instruct_type":"chatml","modality":"text-\u003Etext","output_modalities":["text"],"tokenizer":"GPT"},"canonical_slug":"openai/gpt-4","context_length":8192,"created":1692901234,"default_parameters":null,"description":"GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.","expiration_date":null,"id":"openai/gpt-4","knowledge_cutoff":null,"links":{"details":"/api/v1/models/openai/gpt-4/endpoints"},"name":"GPT-4","per_request_limits":null,"pricing":{"completion":"0.00006","image":"0","prompt":"0.00003","request":"0"},"supported_parameters":["temperature","top_p","max_tokens"],"supported_voices":null,"top_provider":{"context_length":8192,"is_moderated":true,"max_completion_tokens":4096}}} + /// Example: {"data":{"architecture":{"input_modalities":["text"],"instruct_type":"chatml","modality":"text-\u003Etext","output_modalities":["text"],"tokenizer":"GPT"},"canonical_slug":"openai/gpt-4","context_length":8192,"created":1692901234,"default_parameters":null,"description":"GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.","endpoints":["/api/v1/chat/completions","/api/v1/completions","/api/v1/messages","/api/v1/responses"],"expiration_date":null,"id":"openai/gpt-4","knowledge_cutoff":null,"links":{"details":"/api/v1/models/openai/gpt-4/endpoints"},"name":"GPT-4","per_request_limits":null,"pricing":{"completion":"0.00006","image":"0","prompt":"0.00003","request":"0"},"supported_parameters":["temperature","top_p","max_tokens"],"supported_voices":null,"top_provider":{"context_length":8192,"is_moderated":true,"max_completion_tokens":4096}}} ///
public sealed partial class ModelResponse { diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.NativeTools.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.NativeTools.Json.g.cs new file mode 100644 index 000000000..a8adecba3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.NativeTools.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class NativeTools + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.NativeTools? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.NativeTools), + jsonSerializerContext) as global::OpenRouter.NativeTools; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.NativeTools? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.NativeTools? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.NativeTools), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.NativeTools; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointNativeTools2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.NativeTools.g.cs similarity index 81% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointNativeTools2.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.NativeTools.g.cs index b0572a180..9361e5629 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointNativeTools2.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.NativeTools.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// /// - public sealed partial class PublicEndpointNativeTools2 + public sealed partial class NativeTools { /// /// The provider tool type the request is translated to when this tool runs natively, e.g. `web_search_20260209` on Anthropic or `google_search` on Gemini. @@ -22,7 +22,7 @@ public sealed partial class PublicEndpointNativeTools2 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The provider tool type the request is translated to when this tool runs natively, e.g. `web_search_20260209` on Anthropic or `google_search` on Gemini. @@ -30,16 +30,16 @@ public sealed partial class PublicEndpointNativeTools2 #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public PublicEndpointNativeTools2( + public NativeTools( string type) { this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public PublicEndpointNativeTools2() + public NativeTools() { } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenResponsesResultVariant2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenResponsesResultVariant2.g.cs index 93b383229..9a0590b14 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenResponsesResultVariant2.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenResponsesResultVariant2.g.cs @@ -8,6 +8,15 @@ namespace OpenRouter /// public sealed partial class OpenResponsesResultVariant2 { + /// + /// Access program the upstream provider reported for this response (OpenAI `access_programs`). `null` when the provider reported none, including OpenAI's implicit Standard program.
+ /// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464
+ /// Example: {"cyber":"standard"} + ///
+ /// {"cyber":"standard"} + [global::System.Text.Json.Serialization.JsonPropertyName("access_programs")] + public global::OpenRouter.OpenResponsesResultVariant2AccessPrograms? AccessPrograms { get; set; } + /// /// Beta. The result of the alignment plugin for this request; the shape may change.
/// Example: {"calls":[{"call":1,"outcome":"allowed","rules":[{"applicable":true,"broken":false,"probability":0.04}]}]} @@ -84,6 +93,11 @@ public sealed partial class OpenResponsesResultVariant2 /// /// Initializes a new instance of the class. /// + /// + /// Access program the upstream provider reported for this response (OpenAI `access_programs`). `null` when the provider reported none, including OpenAI's implicit Standard program.
+ /// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464
+ /// Example: {"cyber":"standard"} + /// /// /// Beta. The result of the alignment plugin for this request; the shape may change.
/// Example: {"calls":[{"call":1,"outcome":"allowed","rules":[{"applicable":true,"broken":false,"probability":0.04}]}]} @@ -116,6 +130,7 @@ public sealed partial class OpenResponsesResultVariant2 [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OpenResponsesResultVariant2( + global::OpenRouter.OpenResponsesResultVariant2AccessPrograms? accessPrograms, global::OpenRouter.Alignment? alignment, global::OpenRouter.OpenResponsesErrorField? error, global::OpenRouter.ApiErrorType? errorType, @@ -126,6 +141,7 @@ public OpenResponsesResultVariant2( global::OpenRouter.TextExtendedConfig? text, global::OpenRouter.AllOf? usage) { + this.AccessPrograms = accessPrograms; this.Alignment = alignment; this.Error = error; this.ErrorType = errorType; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadRerank.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenResponsesResultVariant2AccessPrograms.Json.g.cs similarity index 85% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadRerank.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.OpenResponsesResultVariant2AccessPrograms.Json.g.cs index 58085c7ee..0d0fa91c0 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadRerank.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenResponsesResultVariant2AccessPrograms.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class PublicEndpointPerfLast30mByWorkloadRerank + public sealed partial class OpenResponsesResultVariant2AccessPrograms { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadRerank? FromJson( + public static global::OpenRouter.OpenResponsesResultVariant2AccessPrograms? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.PublicEndpointPerfLast30mByWorkloadRerank), - jsonSerializerContext) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadRerank; + typeof(global::OpenRouter.OpenResponsesResultVariant2AccessPrograms), + jsonSerializerContext) as global::OpenRouter.OpenResponsesResultVariant2AccessPrograms; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadRerank? FromJson( + public static global::OpenRouter.OpenResponsesResultVariant2AccessPrograms? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require 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::OpenRouter.PublicEndpointPerfLast30mByWorkloadRerank? FromJson( + public static global::OpenRouter.OpenResponsesResultVariant2AccessPrograms? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::OpenRouter.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + 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::OpenRouter.PublicEndpointPerfLast30mByWorkloadRerank), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadRerank; + typeof(global::OpenRouter.OpenResponsesResultVariant2AccessPrograms), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.OpenResponsesResultVariant2AccessPrograms; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require 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( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::OpenRouter.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenResponsesResultVariant2AccessPrograms.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenResponsesResultVariant2AccessPrograms.g.cs new file mode 100644 index 000000000..a8bfa3964 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenResponsesResultVariant2AccessPrograms.g.cs @@ -0,0 +1,48 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Access program the upstream provider reported for this response (OpenAI `access_programs`). `null` when the provider reported none, including OpenAI's implicit Standard program.
+ /// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464
+ /// Example: {"cyber":"standard"} + ///
+ public sealed partial class OpenResponsesResultVariant2AccessPrograms + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cyber")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OpenResponsesResultVariant2AccessProgramsCyberJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.OpenResponsesResultVariant2AccessProgramsCyber Cyber { 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 OpenResponsesResultVariant2AccessPrograms( + global::OpenRouter.OpenResponsesResultVariant2AccessProgramsCyber cyber) + { + this.Cyber = cyber; + } + + /// + /// Initializes a new instance of the class. + /// + public OpenResponsesResultVariant2AccessPrograms() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenResponsesResultVariant2AccessProgramsCyber.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenResponsesResultVariant2AccessProgramsCyber.g.cs new file mode 100644 index 000000000..0feafefd8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OpenResponsesResultVariant2AccessProgramsCyber.g.cs @@ -0,0 +1,127 @@ + +#nullable enable + +namespace OpenRouter +{ + + /// + /// + /// + public readonly partial struct OpenResponsesResultVariant2AccessProgramsCyber : global::System.IEquatable + { + /// + /// + /// + public OpenResponsesResultVariant2AccessProgramsCyber(string value) + { + Value = value ?? throw new global::System.ArgumentNullException(nameof(value)); + } + + /// + /// + /// + public string Value { get; } + /// + /// + /// + public static OpenResponsesResultVariant2AccessProgramsCyber DaybreakBlue { get; } = new("daybreak_blue"); + + /// + /// + /// + public static OpenResponsesResultVariant2AccessProgramsCyber DaybreakRed { get; } = new("daybreak_red"); + + /// + /// + /// + public static OpenResponsesResultVariant2AccessProgramsCyber Standard { get; } = new("standard"); + /// + /// + /// + public static OpenResponsesResultVariant2AccessProgramsCyber FromValue(string value) + { + value = value ?? throw new global::System.ArgumentNullException(nameof(value)); + + return value switch + { + "daybreak_blue" => DaybreakBlue, + "daybreak_red" => DaybreakRed, + "standard" => Standard, + _ => new OpenResponsesResultVariant2AccessProgramsCyber(value), + }; + } + + /// + /// + /// + public bool IsKnown => Value switch + { + "daybreak_blue" => true, + "daybreak_red" => true, + "standard" => true, + _ => false, + }; + + /// + /// + /// + public override string ToString() => Value ?? string.Empty; + + /// + /// + /// + public bool Equals(OpenResponsesResultVariant2AccessProgramsCyber other) + { + return string.Equals(Value, other.Value, global::System.StringComparison.Ordinal); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is OpenResponsesResultVariant2AccessProgramsCyber other && Equals(other); + } + + /// + /// + /// + public override int GetHashCode() + { + return global::System.StringComparer.Ordinal.GetHashCode(Value ?? string.Empty); + } + + /// + /// + /// + public static bool operator ==(OpenResponsesResultVariant2AccessProgramsCyber left, OpenResponsesResultVariant2AccessProgramsCyber right) => left.Equals(right); + + /// + /// + /// + public static bool operator !=(OpenResponsesResultVariant2AccessProgramsCyber left, OpenResponsesResultVariant2AccessProgramsCyber right) => !left.Equals(right); + } + + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class OpenResponsesResultVariant2AccessProgramsCyberExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this OpenResponsesResultVariant2AccessProgramsCyber value) + { + return value.Value ?? throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null); + } + + /// + /// Converts an string to a enum. + /// + public static OpenResponsesResultVariant2AccessProgramsCyber? ToEnum(string value) + { + return OpenResponsesResultVariant2AccessProgramsCyber.FromValue(value); + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PerfLast30mByWorkload.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PerfLast30mByWorkload.Json.g.cs new file mode 100644 index 000000000..f42cd7781 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.PerfLast30mByWorkload.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class PerfLast30mByWorkload + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.PerfLast30mByWorkload? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.PerfLast30mByWorkload), + jsonSerializerContext) as global::OpenRouter.PerfLast30mByWorkload; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.PerfLast30mByWorkload? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.PerfLast30mByWorkload? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.PerfLast30mByWorkload), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.PerfLast30mByWorkload; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkload.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PerfLast30mByWorkload.g.cs similarity index 58% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkload.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.PerfLast30mByWorkload.g.cs index c85838adb..9fdb8b934 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkload.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.PerfLast30mByWorkload.g.cs @@ -6,61 +6,61 @@ namespace OpenRouter /// /// Endpoint performance over the last 30 minutes, keyed by the kind of request served (e.g. `text_generation`, `image_generation`). Additive to the legacy singular latency and throughput fields; image and video generation report end-to-end latency. Only visible when authenticated with an API key or cookie. /// - public sealed partial class PublicEndpointPerfLast30mByWorkload + public sealed partial class PerfLast30mByWorkload { /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("decisions")] - public global::OpenRouter.PublicEndpointPerfLast30mByWorkloadDecisions? Decisions { get; set; } + public global::OpenRouter.Decisions? Decisions { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("embeddings")] - public global::OpenRouter.PublicEndpointPerfLast30mByWorkloadEmbeddings? Embeddings { get; set; } + public global::OpenRouter.Embeddings? Embeddings { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("image_generation")] - public global::OpenRouter.PublicEndpointPerfLast30mByWorkloadImageGeneration? ImageGeneration { get; set; } + public global::OpenRouter.ImageGeneration? ImageGeneration { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("rerank")] - public global::OpenRouter.PublicEndpointPerfLast30mByWorkloadRerank? Rerank { get; set; } + public global::OpenRouter.Rerank? Rerank { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("stt")] - public global::OpenRouter.PublicEndpointPerfLast30mByWorkloadStt? Stt { get; set; } + public global::OpenRouter.Stt? Stt { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("text_generation")] - public global::OpenRouter.PublicEndpointPerfLast30mByWorkloadTextGeneration? TextGeneration { get; set; } + public global::OpenRouter.TextGeneration? TextGeneration { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("tts")] - public global::OpenRouter.PublicEndpointPerfLast30mByWorkloadTts? Tts { get; set; } + public global::OpenRouter.Tts? Tts { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("unknown")] - public global::OpenRouter.PublicEndpointPerfLast30mByWorkloadUnknown? Unknown { get; set; } + public global::OpenRouter.Unknown? Unknown { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("video_generation")] - public global::OpenRouter.PublicEndpointPerfLast30mByWorkloadVideoGeneration? VideoGeneration { get; set; } + public global::OpenRouter.VideoGeneration? VideoGeneration { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -69,7 +69,7 @@ public sealed partial class PublicEndpointPerfLast30mByWorkload public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -83,16 +83,16 @@ public sealed partial class PublicEndpointPerfLast30mByWorkload #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public PublicEndpointPerfLast30mByWorkload( - global::OpenRouter.PublicEndpointPerfLast30mByWorkloadDecisions? decisions, - global::OpenRouter.PublicEndpointPerfLast30mByWorkloadEmbeddings? embeddings, - global::OpenRouter.PublicEndpointPerfLast30mByWorkloadImageGeneration? imageGeneration, - global::OpenRouter.PublicEndpointPerfLast30mByWorkloadRerank? rerank, - global::OpenRouter.PublicEndpointPerfLast30mByWorkloadStt? stt, - global::OpenRouter.PublicEndpointPerfLast30mByWorkloadTextGeneration? textGeneration, - global::OpenRouter.PublicEndpointPerfLast30mByWorkloadTts? tts, - global::OpenRouter.PublicEndpointPerfLast30mByWorkloadUnknown? unknown, - global::OpenRouter.PublicEndpointPerfLast30mByWorkloadVideoGeneration? videoGeneration) + public PerfLast30mByWorkload( + global::OpenRouter.Decisions? decisions, + global::OpenRouter.Embeddings? embeddings, + global::OpenRouter.ImageGeneration? imageGeneration, + global::OpenRouter.Rerank? rerank, + global::OpenRouter.Stt? stt, + global::OpenRouter.TextGeneration? textGeneration, + global::OpenRouter.Tts? tts, + global::OpenRouter.Unknown? unknown, + global::OpenRouter.VideoGeneration? videoGeneration) { this.Decisions = decisions; this.Embeddings = embeddings; @@ -106,9 +106,9 @@ public PublicEndpointPerfLast30mByWorkload( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public PublicEndpointPerfLast30mByWorkload() + public PerfLast30mByWorkload() { } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.Pricing.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.Pricing.Json.g.cs new file mode 100644 index 000000000..4b3f1ec61 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.Pricing.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class Pricing + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.Pricing? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.Pricing), + jsonSerializerContext) as global::OpenRouter.Pricing; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.Pricing? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.Pricing? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.Pricing), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.Pricing; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPricing.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.Pricing.g.cs similarity index 96% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPricing.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.Pricing.g.cs index 558d60209..095083e30 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPricing.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.Pricing.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// /// - public sealed partial class PublicEndpointPricing + public sealed partial class Pricing { /// /// Price in USD per audio input token @@ -113,7 +113,7 @@ public sealed partial class PublicEndpointPricing public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Price in USD per token for completion (output) generation @@ -166,7 +166,7 @@ public sealed partial class PublicEndpointPricing #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public PublicEndpointPricing( + public Pricing( string completion, string prompt, string? audio, @@ -203,9 +203,9 @@ public PublicEndpointPricing( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public PublicEndpointPricing() + public Pricing() { } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptions.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptions.g.cs index de80e5368..2c0ae941c 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptions.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderOptions.g.cs @@ -4,7 +4,7 @@ namespace OpenRouter { /// - /// Provider-specific options keyed by provider slug. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped.
+ /// Provider-specific options keyed by provider slug. The provider segment is case-insensitive; an endpoint tag after `/` must match the endpoint slug exactly. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped.
/// Example: {"openai":{"max_tokens":1000}} ///
public sealed partial class ProviderOptions diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderPreferences.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderPreferences.g.cs index 41e69c992..72373eca6 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderPreferences.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ProviderPreferences.g.cs @@ -59,7 +59,7 @@ public sealed partial class ProviderPreferences public global::System.Collections.Generic.IList>? Only { get; set; } /// - /// Provider-specific options keyed by provider slug. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped.
+ /// Provider-specific options keyed by provider slug. The provider segment is case-insensitive; an endpoint tag after `/` must match the endpoint slug exactly. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped.
/// Example: {"openai":{"max_tokens":1000}} ///
/// {"openai":{"max_tokens":1000}} @@ -157,7 +157,7 @@ public sealed partial class ProviderPreferences /// Example: [openai, anthropic] /// /// - /// Provider-specific options keyed by provider slug. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped.
+ /// Provider-specific options keyed by provider slug. The provider segment is case-insensitive; an endpoint tag after `/` must match the endpoint slug exactly. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped.
/// Example: {"openai":{"max_tokens":1000}} /// /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpoint.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpoint.g.cs index c4acb9d03..5c3a4ed0c 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpoint.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpoint.g.cs @@ -66,20 +66,20 @@ public sealed partial class PublicEndpoint /// {"openrouter:web_search":{"type":"web_search_20260209"}} [global::System.Text.Json.Serialization.JsonPropertyName("native_tools")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.Dictionary NativeTools { get; set; } + public required global::System.Collections.Generic.Dictionary NativeTools { get; set; } /// /// Endpoint performance over the last 30 minutes, keyed by the kind of request served (e.g. `text_generation`, `image_generation`). Additive to the legacy singular latency and throughput fields; image and video generation report end-to-end latency. Only visible when authenticated with an API key or cookie. /// [global::System.Text.Json.Serialization.JsonPropertyName("perf_last_30m_by_workload")] - public global::OpenRouter.PublicEndpointPerfLast30mByWorkload? PerfLast30mByWorkload { get; set; } + public global::OpenRouter.PerfLast30mByWorkload? PerfLast30mByWorkload { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("pricing")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.PublicEndpointPricing Pricing { get; set; } + public required global::OpenRouter.Pricing Pricing { get; set; } /// /// Example: OpenAI @@ -277,8 +277,8 @@ public PublicEndpoint( string modelId, string modelName, string name, - global::System.Collections.Generic.Dictionary nativeTools, - global::OpenRouter.PublicEndpointPricing pricing, + global::System.Collections.Generic.Dictionary nativeTools, + global::OpenRouter.Pricing pricing, global::OpenRouter.ProviderName providerName, global::System.Collections.Generic.IList supportedParameters, bool supportsDiarization, @@ -289,7 +289,7 @@ public PublicEndpoint( global::OpenRouter.PercentileStats? latencyLast30m, int? maxCompletionTokens, int? maxPromptTokens, - global::OpenRouter.PublicEndpointPerfLast30mByWorkload? perfLast30mByWorkload, + global::OpenRouter.PerfLast30mByWorkload? perfLast30mByWorkload, global::OpenRouter.Quantization? quantization, global::OpenRouter.PublicServiceTier? serviceTier, int? status, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadDecisions.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadDecisions.Json.g.cs deleted file mode 100644 index 1131ce484..000000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadDecisions.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class PublicEndpointPerfLast30mByWorkloadDecisions - { - /// - /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadDecisions? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.PublicEndpointPerfLast30mByWorkloadDecisions), - jsonSerializerContext) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadDecisions; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadDecisions? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.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::OpenRouter.PublicEndpointPerfLast30mByWorkloadDecisions? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.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::OpenRouter.PublicEndpointPerfLast30mByWorkloadDecisions), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadDecisions; - } - - /// - /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadDecisions.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadDecisions.g.cs deleted file mode 100644 index 59df981e8..000000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadDecisions.g.cs +++ /dev/null @@ -1,68 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class PublicEndpointPerfLast30mByWorkloadDecisions - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("latency")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AllOfJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.AllOf Latency { get; set; } - - /// - /// Total requests admitted for this workload in the window. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("request_count")] - public int? RequestCount { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("throughput")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AllOfJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.AllOf Throughput { 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. - /// - /// - /// - /// - /// Total requests admitted for this workload in the window. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PublicEndpointPerfLast30mByWorkloadDecisions( - global::OpenRouter.AllOf latency, - global::OpenRouter.AllOf throughput, - int? requestCount) - { - this.Latency = latency; - this.RequestCount = requestCount; - this.Throughput = throughput; - } - - /// - /// Initializes a new instance of the class. - /// - public PublicEndpointPerfLast30mByWorkloadDecisions() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadDecisionsLatency.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadDecisionsLatency.Json.g.cs deleted file mode 100644 index 643fdac40..000000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadDecisionsLatency.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class PublicEndpointPerfLast30mByWorkloadDecisionsLatency - { - /// - /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadDecisionsLatency? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.PublicEndpointPerfLast30mByWorkloadDecisionsLatency), - jsonSerializerContext) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadDecisionsLatency; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadDecisionsLatency? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.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::OpenRouter.PublicEndpointPerfLast30mByWorkloadDecisionsLatency? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.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::OpenRouter.PublicEndpointPerfLast30mByWorkloadDecisionsLatency), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadDecisionsLatency; - } - - /// - /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadDecisionsLatency.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadDecisionsLatency.g.cs deleted file mode 100644 index 8f61ebd72..000000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadDecisionsLatency.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Latency percentiles in milliseconds for this workload. Image and video generation report full end-to-end generation time, because their raw latency only measures request acknowledgement; every other workload reports time to first token or result. - /// - public sealed partial class PublicEndpointPerfLast30mByWorkloadDecisionsLatency - { - - /// - /// 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/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadDecisionsThroughput.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadDecisionsThroughput.Json.g.cs deleted file mode 100644 index b585bcfbd..000000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadDecisionsThroughput.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class PublicEndpointPerfLast30mByWorkloadDecisionsThroughput - { - /// - /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadDecisionsThroughput? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.PublicEndpointPerfLast30mByWorkloadDecisionsThroughput), - jsonSerializerContext) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadDecisionsThroughput; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadDecisionsThroughput? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.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::OpenRouter.PublicEndpointPerfLast30mByWorkloadDecisionsThroughput? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.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::OpenRouter.PublicEndpointPerfLast30mByWorkloadDecisionsThroughput), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadDecisionsThroughput; - } - - /// - /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadDecisionsThroughput.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadDecisionsThroughput.g.cs deleted file mode 100644 index 3ecf160b9..000000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadDecisionsThroughput.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Throughput percentiles in tokens per second; pN is the speed that N% of requests reached or exceeded, so p90 is lower than p50. Only meaningful for text generation; null for workloads without token throughput. - /// - public sealed partial class PublicEndpointPerfLast30mByWorkloadDecisionsThroughput - { - - /// - /// 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/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadEmbeddings.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadEmbeddings.Json.g.cs deleted file mode 100644 index 22faaf9ee..000000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadEmbeddings.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class PublicEndpointPerfLast30mByWorkloadEmbeddings - { - /// - /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadEmbeddings? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.PublicEndpointPerfLast30mByWorkloadEmbeddings), - jsonSerializerContext) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadEmbeddings; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadEmbeddings? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.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::OpenRouter.PublicEndpointPerfLast30mByWorkloadEmbeddings? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.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::OpenRouter.PublicEndpointPerfLast30mByWorkloadEmbeddings), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadEmbeddings; - } - - /// - /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadEmbeddings.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadEmbeddings.g.cs deleted file mode 100644 index 1bfe70dca..000000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadEmbeddings.g.cs +++ /dev/null @@ -1,68 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class PublicEndpointPerfLast30mByWorkloadEmbeddings - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("latency")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AllOfJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.AllOf Latency { get; set; } - - /// - /// Total requests admitted for this workload in the window. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("request_count")] - public int? RequestCount { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("throughput")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AllOfJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.AllOf Throughput { 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. - /// - /// - /// - /// - /// Total requests admitted for this workload in the window. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PublicEndpointPerfLast30mByWorkloadEmbeddings( - global::OpenRouter.AllOf latency, - global::OpenRouter.AllOf throughput, - int? requestCount) - { - this.Latency = latency; - this.RequestCount = requestCount; - this.Throughput = throughput; - } - - /// - /// Initializes a new instance of the class. - /// - public PublicEndpointPerfLast30mByWorkloadEmbeddings() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadEmbeddingsLatency.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadEmbeddingsLatency.Json.g.cs deleted file mode 100644 index 1fee6a6c2..000000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadEmbeddingsLatency.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class PublicEndpointPerfLast30mByWorkloadEmbeddingsLatency - { - /// - /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadEmbeddingsLatency? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.PublicEndpointPerfLast30mByWorkloadEmbeddingsLatency), - jsonSerializerContext) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadEmbeddingsLatency; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadEmbeddingsLatency? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.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::OpenRouter.PublicEndpointPerfLast30mByWorkloadEmbeddingsLatency? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.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::OpenRouter.PublicEndpointPerfLast30mByWorkloadEmbeddingsLatency), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadEmbeddingsLatency; - } - - /// - /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadEmbeddingsLatency.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadEmbeddingsLatency.g.cs deleted file mode 100644 index cde556ba8..000000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadEmbeddingsLatency.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Latency percentiles in milliseconds for this workload. Image and video generation report full end-to-end generation time, because their raw latency only measures request acknowledgement; every other workload reports time to first token or result. - /// - public sealed partial class PublicEndpointPerfLast30mByWorkloadEmbeddingsLatency - { - - /// - /// 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/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadEmbeddingsThroughput.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadEmbeddingsThroughput.Json.g.cs deleted file mode 100644 index 94bb93c52..000000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadEmbeddingsThroughput.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class PublicEndpointPerfLast30mByWorkloadEmbeddingsThroughput - { - /// - /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadEmbeddingsThroughput? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.PublicEndpointPerfLast30mByWorkloadEmbeddingsThroughput), - jsonSerializerContext) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadEmbeddingsThroughput; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadEmbeddingsThroughput? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.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::OpenRouter.PublicEndpointPerfLast30mByWorkloadEmbeddingsThroughput? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.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::OpenRouter.PublicEndpointPerfLast30mByWorkloadEmbeddingsThroughput), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadEmbeddingsThroughput; - } - - /// - /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadEmbeddingsThroughput.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadEmbeddingsThroughput.g.cs deleted file mode 100644 index 3ebf075a2..000000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadEmbeddingsThroughput.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Throughput percentiles in tokens per second; pN is the speed that N% of requests reached or exceeded, so p90 is lower than p50. Only meaningful for text generation; null for workloads without token throughput. - /// - public sealed partial class PublicEndpointPerfLast30mByWorkloadEmbeddingsThroughput - { - - /// - /// 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/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadImageGeneration.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadImageGeneration.Json.g.cs deleted file mode 100644 index f5a960d6c..000000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadImageGeneration.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class PublicEndpointPerfLast30mByWorkloadImageGeneration - { - /// - /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadImageGeneration? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.PublicEndpointPerfLast30mByWorkloadImageGeneration), - jsonSerializerContext) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadImageGeneration; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadImageGeneration? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.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::OpenRouter.PublicEndpointPerfLast30mByWorkloadImageGeneration? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.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::OpenRouter.PublicEndpointPerfLast30mByWorkloadImageGeneration), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadImageGeneration; - } - - /// - /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadImageGeneration.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadImageGeneration.g.cs deleted file mode 100644 index 4501851a9..000000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadImageGeneration.g.cs +++ /dev/null @@ -1,68 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class PublicEndpointPerfLast30mByWorkloadImageGeneration - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("latency")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AllOfJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.AllOf Latency { get; set; } - - /// - /// Total requests admitted for this workload in the window. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("request_count")] - public int? RequestCount { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("throughput")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AllOfJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.AllOf Throughput { 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. - /// - /// - /// - /// - /// Total requests admitted for this workload in the window. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PublicEndpointPerfLast30mByWorkloadImageGeneration( - global::OpenRouter.AllOf latency, - global::OpenRouter.AllOf throughput, - int? requestCount) - { - this.Latency = latency; - this.RequestCount = requestCount; - this.Throughput = throughput; - } - - /// - /// Initializes a new instance of the class. - /// - public PublicEndpointPerfLast30mByWorkloadImageGeneration() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadImageGenerationLatency.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadImageGenerationLatency.Json.g.cs deleted file mode 100644 index 62a7ed8ba..000000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadImageGenerationLatency.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class PublicEndpointPerfLast30mByWorkloadImageGenerationLatency - { - /// - /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadImageGenerationLatency? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.PublicEndpointPerfLast30mByWorkloadImageGenerationLatency), - jsonSerializerContext) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadImageGenerationLatency; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadImageGenerationLatency? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.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::OpenRouter.PublicEndpointPerfLast30mByWorkloadImageGenerationLatency? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.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::OpenRouter.PublicEndpointPerfLast30mByWorkloadImageGenerationLatency), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadImageGenerationLatency; - } - - /// - /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadImageGenerationLatency.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadImageGenerationLatency.g.cs deleted file mode 100644 index 92a0d8422..000000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadImageGenerationLatency.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Latency percentiles in milliseconds for this workload. Image and video generation report full end-to-end generation time, because their raw latency only measures request acknowledgement; every other workload reports time to first token or result. - /// - public sealed partial class PublicEndpointPerfLast30mByWorkloadImageGenerationLatency - { - - /// - /// 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/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadImageGenerationThroughput.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadImageGenerationThroughput.Json.g.cs deleted file mode 100644 index 92528eff5..000000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadImageGenerationThroughput.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class PublicEndpointPerfLast30mByWorkloadImageGenerationThroughput - { - /// - /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadImageGenerationThroughput? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.PublicEndpointPerfLast30mByWorkloadImageGenerationThroughput), - jsonSerializerContext) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadImageGenerationThroughput; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadImageGenerationThroughput? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.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::OpenRouter.PublicEndpointPerfLast30mByWorkloadImageGenerationThroughput? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.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::OpenRouter.PublicEndpointPerfLast30mByWorkloadImageGenerationThroughput), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadImageGenerationThroughput; - } - - /// - /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadImageGenerationThroughput.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadImageGenerationThroughput.g.cs deleted file mode 100644 index ce30ffe4a..000000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadImageGenerationThroughput.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Throughput percentiles in tokens per second; pN is the speed that N% of requests reached or exceeded, so p90 is lower than p50. Only meaningful for text generation; null for workloads without token throughput. - /// - public sealed partial class PublicEndpointPerfLast30mByWorkloadImageGenerationThroughput - { - - /// - /// 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/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadRerankLatency.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadRerankLatency.Json.g.cs deleted file mode 100644 index 734853671..000000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadRerankLatency.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class PublicEndpointPerfLast30mByWorkloadRerankLatency - { - /// - /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadRerankLatency? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.PublicEndpointPerfLast30mByWorkloadRerankLatency), - jsonSerializerContext) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadRerankLatency; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadRerankLatency? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.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::OpenRouter.PublicEndpointPerfLast30mByWorkloadRerankLatency? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.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::OpenRouter.PublicEndpointPerfLast30mByWorkloadRerankLatency), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadRerankLatency; - } - - /// - /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadRerankThroughput.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadRerankThroughput.Json.g.cs deleted file mode 100644 index e8865bc7f..000000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadRerankThroughput.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class PublicEndpointPerfLast30mByWorkloadRerankThroughput - { - /// - /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadRerankThroughput? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.PublicEndpointPerfLast30mByWorkloadRerankThroughput), - jsonSerializerContext) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadRerankThroughput; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadRerankThroughput? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.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::OpenRouter.PublicEndpointPerfLast30mByWorkloadRerankThroughput? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.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::OpenRouter.PublicEndpointPerfLast30mByWorkloadRerankThroughput), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadRerankThroughput; - } - - /// - /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadSttLatency.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadSttLatency.Json.g.cs deleted file mode 100644 index ebff085b8..000000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadSttLatency.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class PublicEndpointPerfLast30mByWorkloadSttLatency - { - /// - /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadSttLatency? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.PublicEndpointPerfLast30mByWorkloadSttLatency), - jsonSerializerContext) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadSttLatency; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadSttLatency? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.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::OpenRouter.PublicEndpointPerfLast30mByWorkloadSttLatency? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.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::OpenRouter.PublicEndpointPerfLast30mByWorkloadSttLatency), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadSttLatency; - } - - /// - /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadSttThroughput.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadSttThroughput.Json.g.cs deleted file mode 100644 index 4561d8499..000000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadSttThroughput.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class PublicEndpointPerfLast30mByWorkloadSttThroughput - { - /// - /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadSttThroughput? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.PublicEndpointPerfLast30mByWorkloadSttThroughput), - jsonSerializerContext) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadSttThroughput; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadSttThroughput? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.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::OpenRouter.PublicEndpointPerfLast30mByWorkloadSttThroughput? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.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::OpenRouter.PublicEndpointPerfLast30mByWorkloadSttThroughput), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadSttThroughput; - } - - /// - /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadTextGeneration.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadTextGeneration.Json.g.cs deleted file mode 100644 index f56092965..000000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadTextGeneration.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class PublicEndpointPerfLast30mByWorkloadTextGeneration - { - /// - /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadTextGeneration? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.PublicEndpointPerfLast30mByWorkloadTextGeneration), - jsonSerializerContext) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadTextGeneration; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadTextGeneration? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.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::OpenRouter.PublicEndpointPerfLast30mByWorkloadTextGeneration? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.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::OpenRouter.PublicEndpointPerfLast30mByWorkloadTextGeneration), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadTextGeneration; - } - - /// - /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadTextGeneration.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadTextGeneration.g.cs deleted file mode 100644 index 31c0a9bed..000000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadTextGeneration.g.cs +++ /dev/null @@ -1,68 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class PublicEndpointPerfLast30mByWorkloadTextGeneration - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("latency")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AllOfJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.AllOf Latency { get; set; } - - /// - /// Total requests admitted for this workload in the window. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("request_count")] - public int? RequestCount { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("throughput")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AllOfJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.AllOf Throughput { 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. - /// - /// - /// - /// - /// Total requests admitted for this workload in the window. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PublicEndpointPerfLast30mByWorkloadTextGeneration( - global::OpenRouter.AllOf latency, - global::OpenRouter.AllOf throughput, - int? requestCount) - { - this.Latency = latency; - this.RequestCount = requestCount; - this.Throughput = throughput; - } - - /// - /// Initializes a new instance of the class. - /// - public PublicEndpointPerfLast30mByWorkloadTextGeneration() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadTextGenerationLatency.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadTextGenerationLatency.Json.g.cs deleted file mode 100644 index a0b3b3083..000000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadTextGenerationLatency.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class PublicEndpointPerfLast30mByWorkloadTextGenerationLatency - { - /// - /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadTextGenerationLatency? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.PublicEndpointPerfLast30mByWorkloadTextGenerationLatency), - jsonSerializerContext) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadTextGenerationLatency; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadTextGenerationLatency? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.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::OpenRouter.PublicEndpointPerfLast30mByWorkloadTextGenerationLatency? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.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::OpenRouter.PublicEndpointPerfLast30mByWorkloadTextGenerationLatency), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadTextGenerationLatency; - } - - /// - /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadTextGenerationLatency.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadTextGenerationLatency.g.cs deleted file mode 100644 index c542b2200..000000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadTextGenerationLatency.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Latency percentiles in milliseconds for this workload. Image and video generation report full end-to-end generation time, because their raw latency only measures request acknowledgement; every other workload reports time to first token or result. - /// - public sealed partial class PublicEndpointPerfLast30mByWorkloadTextGenerationLatency - { - - /// - /// 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/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadTextGenerationThroughput.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadTextGenerationThroughput.Json.g.cs deleted file mode 100644 index 5b9df46a5..000000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadTextGenerationThroughput.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class PublicEndpointPerfLast30mByWorkloadTextGenerationThroughput - { - /// - /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadTextGenerationThroughput? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.PublicEndpointPerfLast30mByWorkloadTextGenerationThroughput), - jsonSerializerContext) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadTextGenerationThroughput; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadTextGenerationThroughput? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.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::OpenRouter.PublicEndpointPerfLast30mByWorkloadTextGenerationThroughput? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.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::OpenRouter.PublicEndpointPerfLast30mByWorkloadTextGenerationThroughput), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadTextGenerationThroughput; - } - - /// - /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadTextGenerationThroughput.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadTextGenerationThroughput.g.cs deleted file mode 100644 index 4073c3ac8..000000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadTextGenerationThroughput.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Throughput percentiles in tokens per second; pN is the speed that N% of requests reached or exceeded, so p90 is lower than p50. Only meaningful for text generation; null for workloads without token throughput. - /// - public sealed partial class PublicEndpointPerfLast30mByWorkloadTextGenerationThroughput - { - - /// - /// 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/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadTtsLatency.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadTtsLatency.Json.g.cs deleted file mode 100644 index c87248196..000000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadTtsLatency.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class PublicEndpointPerfLast30mByWorkloadTtsLatency - { - /// - /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadTtsLatency? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.PublicEndpointPerfLast30mByWorkloadTtsLatency), - jsonSerializerContext) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadTtsLatency; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadTtsLatency? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.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::OpenRouter.PublicEndpointPerfLast30mByWorkloadTtsLatency? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.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::OpenRouter.PublicEndpointPerfLast30mByWorkloadTtsLatency), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadTtsLatency; - } - - /// - /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadTtsThroughput.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadTtsThroughput.Json.g.cs deleted file mode 100644 index 9046d7b10..000000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadTtsThroughput.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class PublicEndpointPerfLast30mByWorkloadTtsThroughput - { - /// - /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadTtsThroughput? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.PublicEndpointPerfLast30mByWorkloadTtsThroughput), - jsonSerializerContext) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadTtsThroughput; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadTtsThroughput? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.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::OpenRouter.PublicEndpointPerfLast30mByWorkloadTtsThroughput? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.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::OpenRouter.PublicEndpointPerfLast30mByWorkloadTtsThroughput), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadTtsThroughput; - } - - /// - /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadUnknownLatency.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadUnknownLatency.Json.g.cs deleted file mode 100644 index ab102ed95..000000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadUnknownLatency.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class PublicEndpointPerfLast30mByWorkloadUnknownLatency - { - /// - /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadUnknownLatency? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.PublicEndpointPerfLast30mByWorkloadUnknownLatency), - jsonSerializerContext) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadUnknownLatency; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadUnknownLatency? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.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::OpenRouter.PublicEndpointPerfLast30mByWorkloadUnknownLatency? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.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::OpenRouter.PublicEndpointPerfLast30mByWorkloadUnknownLatency), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadUnknownLatency; - } - - /// - /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadUnknownThroughput.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadUnknownThroughput.Json.g.cs deleted file mode 100644 index 178e30cdd..000000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadUnknownThroughput.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class PublicEndpointPerfLast30mByWorkloadUnknownThroughput - { - /// - /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadUnknownThroughput? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.PublicEndpointPerfLast30mByWorkloadUnknownThroughput), - jsonSerializerContext) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadUnknownThroughput; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadUnknownThroughput? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.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::OpenRouter.PublicEndpointPerfLast30mByWorkloadUnknownThroughput? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.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::OpenRouter.PublicEndpointPerfLast30mByWorkloadUnknownThroughput), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadUnknownThroughput; - } - - /// - /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadVideoGeneration.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadVideoGeneration.Json.g.cs deleted file mode 100644 index 45381c4ff..000000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadVideoGeneration.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class PublicEndpointPerfLast30mByWorkloadVideoGeneration - { - /// - /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadVideoGeneration? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.PublicEndpointPerfLast30mByWorkloadVideoGeneration), - jsonSerializerContext) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadVideoGeneration; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadVideoGeneration? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.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::OpenRouter.PublicEndpointPerfLast30mByWorkloadVideoGeneration? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.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::OpenRouter.PublicEndpointPerfLast30mByWorkloadVideoGeneration), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadVideoGeneration; - } - - /// - /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadVideoGeneration.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadVideoGeneration.g.cs deleted file mode 100644 index 1eb9cd628..000000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadVideoGeneration.g.cs +++ /dev/null @@ -1,68 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public sealed partial class PublicEndpointPerfLast30mByWorkloadVideoGeneration - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("latency")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AllOfJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.AllOf Latency { get; set; } - - /// - /// Total requests admitted for this workload in the window. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("request_count")] - public int? RequestCount { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("throughput")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AllOfJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.AllOf Throughput { 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. - /// - /// - /// - /// - /// Total requests admitted for this workload in the window. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PublicEndpointPerfLast30mByWorkloadVideoGeneration( - global::OpenRouter.AllOf latency, - global::OpenRouter.AllOf throughput, - int? requestCount) - { - this.Latency = latency; - this.RequestCount = requestCount; - this.Throughput = throughput; - } - - /// - /// Initializes a new instance of the class. - /// - public PublicEndpointPerfLast30mByWorkloadVideoGeneration() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadVideoGenerationLatency.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadVideoGenerationLatency.Json.g.cs deleted file mode 100644 index 72e4ec90b..000000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadVideoGenerationLatency.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class PublicEndpointPerfLast30mByWorkloadVideoGenerationLatency - { - /// - /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadVideoGenerationLatency? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.PublicEndpointPerfLast30mByWorkloadVideoGenerationLatency), - jsonSerializerContext) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadVideoGenerationLatency; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadVideoGenerationLatency? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.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::OpenRouter.PublicEndpointPerfLast30mByWorkloadVideoGenerationLatency? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.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::OpenRouter.PublicEndpointPerfLast30mByWorkloadVideoGenerationLatency), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadVideoGenerationLatency; - } - - /// - /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadVideoGenerationLatency.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadVideoGenerationLatency.g.cs deleted file mode 100644 index 33cdc6f84..000000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadVideoGenerationLatency.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Latency percentiles in milliseconds for this workload. Image and video generation report full end-to-end generation time, because their raw latency only measures request acknowledgement; every other workload reports time to first token or result. - /// - public sealed partial class PublicEndpointPerfLast30mByWorkloadVideoGenerationLatency - { - - /// - /// 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/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadVideoGenerationThroughput.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadVideoGenerationThroughput.Json.g.cs deleted file mode 100644 index 60569ee1d..000000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadVideoGenerationThroughput.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class PublicEndpointPerfLast30mByWorkloadVideoGenerationThroughput - { - /// - /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadVideoGenerationThroughput? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.PublicEndpointPerfLast30mByWorkloadVideoGenerationThroughput), - jsonSerializerContext) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadVideoGenerationThroughput; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.PublicEndpointPerfLast30mByWorkloadVideoGenerationThroughput? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.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::OpenRouter.PublicEndpointPerfLast30mByWorkloadVideoGenerationThroughput? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.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::OpenRouter.PublicEndpointPerfLast30mByWorkloadVideoGenerationThroughput), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.PublicEndpointPerfLast30mByWorkloadVideoGenerationThroughput; - } - - /// - /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadVideoGenerationThroughput.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadVideoGenerationThroughput.g.cs deleted file mode 100644 index 810f1a5c4..000000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadVideoGenerationThroughput.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Throughput percentiles in tokens per second; pN is the speed that N% of requests reached or exceeded, so p90 is lower than p50. Only meaningful for text generation; null for workloads without token throughput. - /// - public sealed partial class PublicEndpointPerfLast30mByWorkloadVideoGenerationThroughput - { - - /// - /// 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/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPricing.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicZdrEndpoint.Json.g.cs similarity index 88% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPricing.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.PublicZdrEndpoint.Json.g.cs index 13a62cfc5..9acf975fe 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPricing.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicZdrEndpoint.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class PublicEndpointPricing + public readonly partial struct PublicZdrEndpoint { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::OpenRouter.PublicEndpointPricing? FromJson( + public static global::OpenRouter.PublicZdrEndpoint? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.PublicEndpointPricing), - jsonSerializerContext) as global::OpenRouter.PublicEndpointPricing; + typeof(global::OpenRouter.PublicZdrEndpoint), + jsonSerializerContext) as global::OpenRouter.PublicZdrEndpoint?; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::OpenRouter.PublicEndpointPricing? FromJson( + public static global::OpenRouter.PublicZdrEndpoint? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require 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::OpenRouter.PublicEndpointPricing? FromJson( + public static global::OpenRouter.PublicZdrEndpoint? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::OpenRouter.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + 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::OpenRouter.PublicEndpointPricing), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.PublicEndpointPricing; + typeof(global::OpenRouter.PublicZdrEndpoint), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.PublicZdrEndpoint?; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require 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( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::OpenRouter.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicZdrEndpoint.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicZdrEndpoint.g.cs new file mode 100644 index 000000000..4c9b5bb89 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicZdrEndpoint.g.cs @@ -0,0 +1,297 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace OpenRouter +{ + /// + /// An endpoint whose data policy does not retain prompts by default
+ /// Example: {"context_length":1048576,"latency_last_30m":null,"max_completion_tokens":65535,"max_prompt_tokens":null,"model_id":"google/gemini-2.5-flash","model_name":"Gemini 2.5 Flash","name":"Google: Gemini 2.5 Flash","native_tools":{},"pricing":{"completion":"0.0000025","image":"0","prompt":"0.0000003","request":"0"},"provider_name":"Google","quantization":null,"safety_retention":true,"service_tier":null,"status":0,"supported_parameters":["temperature","top_p","max_tokens"],"supports_diarization":false,"supports_image_reference":false,"supports_implicit_caching":true,"supports_multiple_audio_references":false,"supports_tool_choice":{"auto":true,"function":true,"none":true,"required":true},"supports_voice_cloning":false,"tag":"google-vertex","throughput_last_30m":null,"uptime_last_1d":99.8,"uptime_last_30m":99.5,"uptime_last_5m":100} + ///
+ public readonly partial struct PublicZdrEndpoint : global::System.IEquatable + { + /// + /// Information about a specific model endpoint
+ /// Example: {"context_length":8192,"latency_last_30m":{"p50":0.25,"p75":0.35,"p90":0.48,"p99":0.85},"max_completion_tokens":4096,"max_prompt_tokens":8192,"model_id":"openai/gpt-4","model_name":"GPT-4","name":"OpenAI: GPT-4","native_tools":{"openrouter:web_search":{"type":"web_search_20260209"}},"perf_last_30m_by_workload":{"text_generation":{"latency":{"p50":250,"p75":350,"p90":480,"p99":850},"request_count":1000,"throughput":{"p50":45.2,"p75":38.5,"p90":28.3,"p99":15.1}}},"pricing":{"completion":"0.00006","image":"0","prompt":"0.00003","request":"0"},"provider_name":"OpenAI","quantization":"fp16","service_tier":null,"status":0,"supported_parameters":["temperature","top_p","max_tokens"],"supports_diarization":false,"supports_image_reference":false,"supports_implicit_caching":true,"supports_multiple_audio_references":false,"supports_tool_choice":{"auto":true,"function":true,"none":true,"required":true},"supports_voice_cloning":false,"tag":"openai","throughput_last_30m":{"p50":45.2,"p75":38.5,"p90":28.3,"p99":15.1},"uptime_last_1d":99.8,"uptime_last_30m":99.5,"uptime_last_5m":100} + ///
+#if NET6_0_OR_GREATER + public global::OpenRouter.PublicEndpoint? PublicEndpoint { get; init; } +#else + public global::OpenRouter.PublicEndpoint? PublicEndpoint { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(PublicEndpoint))] +#endif + public bool IsPublicEndpoint => PublicEndpoint != null; + + /// + /// + /// + public bool TryPickPublicEndpoint( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.PublicEndpoint? value) + { + value = PublicEndpoint; + return IsPublicEndpoint; + } + + /// + /// + /// + public global::OpenRouter.PublicEndpoint PickPublicEndpoint() => PublicEndpoint is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'PublicEndpoint' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.PublicZdrEndpointVariant2? PublicZdrEndpointVariant2 { get; init; } +#else + public global::OpenRouter.PublicZdrEndpointVariant2? PublicZdrEndpointVariant2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(PublicZdrEndpointVariant2))] +#endif + public bool IsPublicZdrEndpointVariant2 => PublicZdrEndpointVariant2 != null; + + /// + /// + /// + public bool TryPickPublicZdrEndpointVariant2( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.PublicZdrEndpointVariant2? value) + { + value = PublicZdrEndpointVariant2; + return IsPublicZdrEndpointVariant2; + } + + /// + /// + /// + public global::OpenRouter.PublicZdrEndpointVariant2 PickPublicZdrEndpointVariant2() => PublicZdrEndpointVariant2 is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'PublicZdrEndpointVariant2' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator PublicZdrEndpoint(global::OpenRouter.PublicEndpoint value) => new PublicZdrEndpoint((global::OpenRouter.PublicEndpoint?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.PublicEndpoint?(PublicZdrEndpoint @this) => @this.PublicEndpoint; + + /// + /// + /// + public PublicZdrEndpoint(global::OpenRouter.PublicEndpoint? value) + { + PublicEndpoint = value; + } + + /// + /// + /// + public static PublicZdrEndpoint FromPublicEndpoint(global::OpenRouter.PublicEndpoint? value) => new PublicZdrEndpoint(value); + + /// + /// + /// + public static implicit operator PublicZdrEndpoint(global::OpenRouter.PublicZdrEndpointVariant2 value) => new PublicZdrEndpoint((global::OpenRouter.PublicZdrEndpointVariant2?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.PublicZdrEndpointVariant2?(PublicZdrEndpoint @this) => @this.PublicZdrEndpointVariant2; + + /// + /// + /// + public PublicZdrEndpoint(global::OpenRouter.PublicZdrEndpointVariant2? value) + { + PublicZdrEndpointVariant2 = value; + } + + /// + /// + /// + public static PublicZdrEndpoint FromPublicZdrEndpointVariant2(global::OpenRouter.PublicZdrEndpointVariant2? value) => new PublicZdrEndpoint(value); + + /// + /// + /// + public PublicZdrEndpoint( + global::OpenRouter.PublicEndpoint? publicEndpoint, + global::OpenRouter.PublicZdrEndpointVariant2? publicZdrEndpointVariant2 + ) + { + PublicEndpoint = publicEndpoint; + PublicZdrEndpointVariant2 = publicZdrEndpointVariant2; + } + + /// + /// + /// + public object? Object => + PublicZdrEndpointVariant2 as object ?? + PublicEndpoint as object + ; + + /// + /// + /// + public override string? ToString() => + PublicEndpoint?.ToString() ?? + PublicZdrEndpointVariant2?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsPublicEndpoint && IsPublicZdrEndpointVariant2; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? publicEndpoint = null, + global::System.Func? publicZdrEndpointVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (PublicEndpoint is { } __value0 && publicEndpoint != null) + { + return publicEndpoint(__value0); + } + else if (PublicZdrEndpointVariant2 is { } __value1 && publicZdrEndpointVariant2 != null) + { + return publicZdrEndpointVariant2(__value1); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? publicEndpoint = null, + + global::System.Action? publicZdrEndpointVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (PublicEndpoint is { } __value0) + { + publicEndpoint?.Invoke(__value0); + } + else if (PublicZdrEndpointVariant2 is { } __value1) + { + publicZdrEndpointVariant2?.Invoke(__value1); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? publicEndpoint = null, + global::System.Action? publicZdrEndpointVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (PublicEndpoint is { } __value0) + { + publicEndpoint?.Invoke(__value0); + } + else if (PublicZdrEndpointVariant2 is { } __value1) + { + publicZdrEndpointVariant2?.Invoke(__value1); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + PublicEndpoint, + typeof(global::OpenRouter.PublicEndpoint), + PublicZdrEndpointVariant2, + typeof(global::OpenRouter.PublicZdrEndpointVariant2), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(PublicZdrEndpoint other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(PublicEndpoint, other.PublicEndpoint) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(PublicZdrEndpointVariant2, other.PublicZdrEndpointVariant2) + ; + } + + /// + /// + /// + public static bool operator ==(PublicZdrEndpoint obj1, PublicZdrEndpoint obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(PublicZdrEndpoint obj1, PublicZdrEndpoint obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is PublicZdrEndpoint o && Equals(o); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointNativeTools2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicZdrEndpointVariant2.Json.g.cs similarity index 88% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointNativeTools2.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.PublicZdrEndpointVariant2.Json.g.cs index 12ed3de61..7dcf4b573 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointNativeTools2.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicZdrEndpointVariant2.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class PublicEndpointNativeTools2 + public sealed partial class PublicZdrEndpointVariant2 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::OpenRouter.PublicEndpointNativeTools2? FromJson( + public static global::OpenRouter.PublicZdrEndpointVariant2? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.PublicEndpointNativeTools2), - jsonSerializerContext) as global::OpenRouter.PublicEndpointNativeTools2; + typeof(global::OpenRouter.PublicZdrEndpointVariant2), + jsonSerializerContext) as global::OpenRouter.PublicZdrEndpointVariant2; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::OpenRouter.PublicEndpointNativeTools2? FromJson( + public static global::OpenRouter.PublicZdrEndpointVariant2? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require 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::OpenRouter.PublicEndpointNativeTools2? FromJson( + public static global::OpenRouter.PublicZdrEndpointVariant2? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::OpenRouter.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + 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::OpenRouter.PublicEndpointNativeTools2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.PublicEndpointNativeTools2; + typeof(global::OpenRouter.PublicZdrEndpointVariant2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.PublicZdrEndpointVariant2; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require 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( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::OpenRouter.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicZdrEndpointVariant2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicZdrEndpointVariant2.g.cs new file mode 100644 index 000000000..d149f5cc2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicZdrEndpointVariant2.g.cs @@ -0,0 +1,50 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class PublicZdrEndpointVariant2 + { + /// + /// Whether the endpoint uses Safety Retention: prompts are not retained by default, but the provider may retain prompts its safety classifiers flag. A ZDR-enforced request reaches these endpoints only when the account allows Safety Retention and no applied guardrail disallows it.
+ /// Example: false + ///
+ /// false + [global::System.Text.Json.Serialization.JsonPropertyName("safety_retention")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool SafetyRetention { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Whether the endpoint uses Safety Retention: prompts are not retained by default, but the provider may retain prompts its safety classifiers flag. A ZDR-enforced request reaches these endpoints only when the account allows Safety Retention and no applied guardrail disallows it.
+ /// Example: false + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public PublicZdrEndpointVariant2( + bool safetyRetention) + { + this.SafetyRetention = safetyRetention; + } + + /// + /// Initializes a new instance of the class. + /// + public PublicZdrEndpointVariant2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.Rerank.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.Rerank.Json.g.cs new file mode 100644 index 000000000..a36d5e2b6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.Rerank.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class Rerank + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.Rerank? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.Rerank), + jsonSerializerContext) as global::OpenRouter.Rerank; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.Rerank? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.Rerank? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.Rerank), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.Rerank; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadUnknown.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.Rerank.g.cs similarity index 85% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadUnknown.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.Rerank.g.cs index a8979172b..1a1fa7f6c 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadUnknown.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.Rerank.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// /// - public sealed partial class PublicEndpointPerfLast30mByWorkloadUnknown + public sealed partial class Rerank { /// /// @@ -37,7 +37,7 @@ public sealed partial class PublicEndpointPerfLast30mByWorkloadUnknown public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -47,7 +47,7 @@ public sealed partial class PublicEndpointPerfLast30mByWorkloadUnknown #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public PublicEndpointPerfLast30mByWorkloadUnknown( + public Rerank( global::OpenRouter.AllOf latency, global::OpenRouter.AllOf throughput, int? requestCount) @@ -58,9 +58,9 @@ public PublicEndpointPerfLast30mByWorkloadUnknown( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public PublicEndpointPerfLast30mByWorkloadUnknown() + public Rerank() { } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.RerankLatency.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.RerankLatency.Json.g.cs new file mode 100644 index 000000000..6c7f8012d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.RerankLatency.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class RerankLatency + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.RerankLatency? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.RerankLatency), + jsonSerializerContext) as global::OpenRouter.RerankLatency; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.RerankLatency? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.RerankLatency? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.RerankLatency), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.RerankLatency; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadUnknownLatency.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.RerankLatency.g.cs similarity index 89% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadUnknownLatency.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.RerankLatency.g.cs index fa531b502..fca65ab25 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadUnknownLatency.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.RerankLatency.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// Latency percentiles in milliseconds for this workload. Image and video generation report full end-to-end generation time, because their raw latency only measures request acknowledgement; every other workload reports time to first token or result. /// - public sealed partial class PublicEndpointPerfLast30mByWorkloadUnknownLatency + public sealed partial class RerankLatency { /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.RerankThroughput.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.RerankThroughput.Json.g.cs new file mode 100644 index 000000000..a91ec05a1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.RerankThroughput.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class RerankThroughput + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.RerankThroughput? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.RerankThroughput), + jsonSerializerContext) as global::OpenRouter.RerankThroughput; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.RerankThroughput? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.RerankThroughput? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.RerankThroughput), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.RerankThroughput; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadUnknownThroughput.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.RerankThroughput.g.cs similarity index 89% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadUnknownThroughput.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.RerankThroughput.g.cs index 692c74300..c278a6a19 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.PublicEndpointPerfLast30mByWorkloadUnknownThroughput.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.RerankThroughput.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// Throughput percentiles in tokens per second; pN is the speed that N% of requests reached or exceeded, so p90 is lower than p50. Only meaningful for text generation; null for workloads without token throughput. /// - public sealed partial class PublicEndpointPerfLast30mByWorkloadUnknownThroughput + public sealed partial class RerankThroughput { /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequest.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequest.g.cs index 9679eb73b..fa9995673 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequest.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequest.g.cs @@ -11,6 +11,14 @@ namespace OpenRouter /// public sealed partial class ResponsesRequest { + /// + /// OpenAI access programs for this request. `cyber` selects the Cyber access program: `standard`, `daybreak_blue`, or `daybreak_red`. A program other than `standard` is supported only on BYOK requests that run on your own OpenAI key enrolled in that program; any other endpoint, including OpenRouter's own OpenAI credentials, rejects it with a 400 error. Requests on OpenRouter's OpenAI credentials always run `standard`. Omit the field unless your key is enrolled in a Daybreak program.
+ /// Example: {"cyber":"standard"} + ///
+ /// {"cyber":"standard"} + [global::System.Text.Json.Serialization.JsonPropertyName("access_programs")] + public global::OpenRouter.ResponsesRequestAccessPrograms? AccessPrograms { get; set; } + /// /// /// @@ -318,6 +326,10 @@ public sealed partial class ResponsesRequest /// /// Initializes a new instance of the class. /// + /// + /// OpenAI access programs for this request. `cyber` selects the Cyber access program: `standard`, `daybreak_blue`, or `daybreak_red`. A program other than `standard` is supported only on BYOK requests that run on your own OpenAI key enrolled in that program; any other endpoint, including OpenRouter's own OpenAI credentials, rejects it with a 400 error. Requests on OpenRouter's OpenAI credentials always run `standard`. Omit the field unless your key is enrolled in a Daybreak program.
+ /// Example: {"cyber":"standard"} + /// /// /// /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.
@@ -432,6 +444,7 @@ public sealed partial class ResponsesRequest [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ResponsesRequest( + global::OpenRouter.ResponsesRequestAccessPrograms? accessPrograms, bool? background, global::OpenRouter.AnthropicCacheControlDirective? cacheControl, global::OpenRouter.ChatDebugOptions? debug, @@ -474,6 +487,7 @@ public ResponsesRequest( global::OpenRouter.OpenAIResponsesTruncation? truncation, string? user) { + this.AccessPrograms = accessPrograms; this.Background = background; this.CacheControl = cacheControl; this.Debug = debug; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestAccessPrograms.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestAccessPrograms.Json.g.cs new file mode 100644 index 000000000..a67642293 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestAccessPrograms.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ResponsesRequestAccessPrograms + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.ResponsesRequestAccessPrograms? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ResponsesRequestAccessPrograms), + jsonSerializerContext) as global::OpenRouter.ResponsesRequestAccessPrograms; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ResponsesRequestAccessPrograms? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ResponsesRequestAccessPrograms? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.ResponsesRequestAccessPrograms), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ResponsesRequestAccessPrograms; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestAccessPrograms.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestAccessPrograms.g.cs new file mode 100644 index 000000000..8a2eaf12c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestAccessPrograms.g.cs @@ -0,0 +1,46 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// OpenAI access programs for this request. `cyber` selects the Cyber access program: `standard`, `daybreak_blue`, or `daybreak_red`. A program other than `standard` is supported only on BYOK requests that run on your own OpenAI key enrolled in that program; any other endpoint, including OpenRouter's own OpenAI credentials, rejects it with a 400 error. Requests on OpenRouter's OpenAI credentials always run `standard`. Omit the field unless your key is enrolled in a Daybreak program.
+ /// Example: {"cyber":"standard"} + ///
+ public sealed partial class ResponsesRequestAccessPrograms + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cyber")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ResponsesRequestAccessProgramsCyberJsonConverter))] + public global::OpenRouter.ResponsesRequestAccessProgramsCyber? Cyber { 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 ResponsesRequestAccessPrograms( + global::OpenRouter.ResponsesRequestAccessProgramsCyber? cyber) + { + this.Cyber = cyber; + } + + /// + /// Initializes a new instance of the class. + /// + public ResponsesRequestAccessPrograms() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestAccessProgramsCyber.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestAccessProgramsCyber.g.cs new file mode 100644 index 000000000..45d8cb2e6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestAccessProgramsCyber.g.cs @@ -0,0 +1,127 @@ + +#nullable enable + +namespace OpenRouter +{ + + /// + /// + /// + public readonly partial struct ResponsesRequestAccessProgramsCyber : global::System.IEquatable + { + /// + /// + /// + public ResponsesRequestAccessProgramsCyber(string value) + { + Value = value ?? throw new global::System.ArgumentNullException(nameof(value)); + } + + /// + /// + /// + public string Value { get; } + /// + /// + /// + public static ResponsesRequestAccessProgramsCyber DaybreakBlue { get; } = new("daybreak_blue"); + + /// + /// + /// + public static ResponsesRequestAccessProgramsCyber DaybreakRed { get; } = new("daybreak_red"); + + /// + /// + /// + public static ResponsesRequestAccessProgramsCyber Standard { get; } = new("standard"); + /// + /// + /// + public static ResponsesRequestAccessProgramsCyber FromValue(string value) + { + value = value ?? throw new global::System.ArgumentNullException(nameof(value)); + + return value switch + { + "daybreak_blue" => DaybreakBlue, + "daybreak_red" => DaybreakRed, + "standard" => Standard, + _ => new ResponsesRequestAccessProgramsCyber(value), + }; + } + + /// + /// + /// + public bool IsKnown => Value switch + { + "daybreak_blue" => true, + "daybreak_red" => true, + "standard" => true, + _ => false, + }; + + /// + /// + /// + public override string ToString() => Value ?? string.Empty; + + /// + /// + /// + public bool Equals(ResponsesRequestAccessProgramsCyber other) + { + return string.Equals(Value, other.Value, global::System.StringComparison.Ordinal); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is ResponsesRequestAccessProgramsCyber other && Equals(other); + } + + /// + /// + /// + public override int GetHashCode() + { + return global::System.StringComparer.Ordinal.GetHashCode(Value ?? string.Empty); + } + + /// + /// + /// + public static bool operator ==(ResponsesRequestAccessProgramsCyber left, ResponsesRequestAccessProgramsCyber right) => left.Equals(right); + + /// + /// + /// + public static bool operator !=(ResponsesRequestAccessProgramsCyber left, ResponsesRequestAccessProgramsCyber right) => !left.Equals(right); + } + + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ResponsesRequestAccessProgramsCyberExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ResponsesRequestAccessProgramsCyber value) + { + return value.Value ?? throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null); + } + + /// + /// Converts an string to a enum. + /// + public static ResponsesRequestAccessProgramsCyber? ToEnum(string value) + { + return ResponsesRequestAccessProgramsCyber.FromValue(value); + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.STTRequestProvider.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.STTRequestProvider.g.cs index 433620386..378bb463c 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.STTRequestProvider.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.STTRequestProvider.g.cs @@ -20,7 +20,7 @@ public sealed partial class STTRequestProvider public global::OpenRouter.STTRequestProviderDataCollection? DataCollection { get; set; } /// - /// Provider-specific options keyed by provider slug. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped.
+ /// Provider-specific options keyed by provider slug. The provider segment is case-insensitive; an endpoint tag after `/` must match the endpoint slug exactly. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped.
/// Example: {"openai":{"max_tokens":1000}} ///
/// {"openai":{"max_tokens":1000}} @@ -51,7 +51,7 @@ public sealed partial class STTRequestProvider /// Example: allow /// /// - /// Provider-specific options keyed by provider slug. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped.
+ /// Provider-specific options keyed by provider slug. The provider segment is case-insensitive; an endpoint tag after `/` must match the endpoint slug exactly. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped.
/// Example: {"openai":{"max_tokens":1000}} /// /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.SpeechRequestProvider.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.SpeechRequestProvider.g.cs index 468a68d40..a7a9f67b5 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.SpeechRequestProvider.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.SpeechRequestProvider.g.cs @@ -20,7 +20,7 @@ public sealed partial class SpeechRequestProvider public global::OpenRouter.SpeechRequestProviderDataCollection? DataCollection { get; set; } /// - /// Provider-specific options keyed by provider slug. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped.
+ /// Provider-specific options keyed by provider slug. The provider segment is case-insensitive; an endpoint tag after `/` must match the endpoint slug exactly. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped.
/// Example: {"openai":{"max_tokens":1000}} ///
/// {"openai":{"max_tokens":1000}} @@ -51,7 +51,7 @@ public sealed partial class SpeechRequestProvider /// Example: allow /// /// - /// Provider-specific options keyed by provider slug. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped.
+ /// Provider-specific options keyed by provider slug. The provider segment is case-insensitive; an endpoint tag after `/` must match the endpoint slug exactly. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped.
/// Example: {"openai":{"max_tokens":1000}} /// /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.Stt.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.Stt.Json.g.cs new file mode 100644 index 000000000..523588f0c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.Stt.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class Stt + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.Stt? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.Stt), + jsonSerializerContext) as global::OpenRouter.Stt; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.Stt? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.Stt? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.Stt), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.Stt; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.Stt.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.Stt.g.cs new file mode 100644 index 000000000..a3ee4cfec --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.Stt.g.cs @@ -0,0 +1,68 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class Stt + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("latency")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AllOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.AllOf Latency { get; set; } + + /// + /// Total requests admitted for this workload in the window. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("request_count")] + public int? RequestCount { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("throughput")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AllOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.AllOf Throughput { 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. + /// + /// + /// + /// + /// Total requests admitted for this workload in the window. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public Stt( + global::OpenRouter.AllOf latency, + global::OpenRouter.AllOf throughput, + int? requestCount) + { + this.Latency = latency; + this.RequestCount = requestCount; + this.Throughput = throughput; + } + + /// + /// Initializes a new instance of the class. + /// + public Stt() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.SttLatency.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.SttLatency.Json.g.cs new file mode 100644 index 000000000..36b34cd83 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.SttLatency.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class SttLatency + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.SttLatency? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.SttLatency), + jsonSerializerContext) as global::OpenRouter.SttLatency; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.SttLatency? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.SttLatency? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.SttLatency), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.SttLatency; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.SttLatency.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.SttLatency.g.cs new file mode 100644 index 000000000..dd667046f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.SttLatency.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Latency percentiles in milliseconds for this workload. Image and video generation report full end-to-end generation time, because their raw latency only measures request acknowledgement; every other workload reports time to first token or result. + /// + public sealed partial class SttLatency + { + + /// + /// 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/OpenRouter/Generated/OpenRouter.Models.SttThroughput.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.SttThroughput.Json.g.cs new file mode 100644 index 000000000..59bc7cad6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.SttThroughput.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class SttThroughput + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.SttThroughput? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.SttThroughput), + jsonSerializerContext) as global::OpenRouter.SttThroughput; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.SttThroughput? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.SttThroughput? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.SttThroughput), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.SttThroughput; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.SttThroughput.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.SttThroughput.g.cs new file mode 100644 index 000000000..028899696 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.SttThroughput.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Throughput percentiles in tokens per second; pN is the speed that N% of requests reached or exceeded, so p90 is lower than p50. Only meaningful for text generation; null for workloads without token throughput. + /// + public sealed partial class SttThroughput + { + + /// + /// 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/OpenRouter/Generated/OpenRouter.Models.TextGeneration.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.TextGeneration.Json.g.cs new file mode 100644 index 000000000..1455ed6ed --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.TextGeneration.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class TextGeneration + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.TextGeneration? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.TextGeneration), + jsonSerializerContext) as global::OpenRouter.TextGeneration; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.TextGeneration? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.TextGeneration? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.TextGeneration), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.TextGeneration; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.TextGeneration.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.TextGeneration.g.cs new file mode 100644 index 000000000..f5f3b52ba --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.TextGeneration.g.cs @@ -0,0 +1,68 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class TextGeneration + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("latency")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AllOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.AllOf Latency { get; set; } + + /// + /// Total requests admitted for this workload in the window. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("request_count")] + public int? RequestCount { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("throughput")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AllOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.AllOf Throughput { 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. + /// + /// + /// + /// + /// Total requests admitted for this workload in the window. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public TextGeneration( + global::OpenRouter.AllOf latency, + global::OpenRouter.AllOf throughput, + int? requestCount) + { + this.Latency = latency; + this.RequestCount = requestCount; + this.Throughput = throughput; + } + + /// + /// Initializes a new instance of the class. + /// + public TextGeneration() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.TextGenerationLatency.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.TextGenerationLatency.Json.g.cs new file mode 100644 index 000000000..04098f028 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.TextGenerationLatency.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class TextGenerationLatency + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.TextGenerationLatency? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.TextGenerationLatency), + jsonSerializerContext) as global::OpenRouter.TextGenerationLatency; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.TextGenerationLatency? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.TextGenerationLatency? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.TextGenerationLatency), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.TextGenerationLatency; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.TextGenerationLatency.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.TextGenerationLatency.g.cs new file mode 100644 index 000000000..66a6b94b8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.TextGenerationLatency.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Latency percentiles in milliseconds for this workload. Image and video generation report full end-to-end generation time, because their raw latency only measures request acknowledgement; every other workload reports time to first token or result. + /// + public sealed partial class TextGenerationLatency + { + + /// + /// 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/OpenRouter/Generated/OpenRouter.Models.TextGenerationThroughput.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.TextGenerationThroughput.Json.g.cs new file mode 100644 index 000000000..138232a5e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.TextGenerationThroughput.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class TextGenerationThroughput + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.TextGenerationThroughput? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.TextGenerationThroughput), + jsonSerializerContext) as global::OpenRouter.TextGenerationThroughput; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.TextGenerationThroughput? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.TextGenerationThroughput? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.TextGenerationThroughput), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.TextGenerationThroughput; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.TextGenerationThroughput.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.TextGenerationThroughput.g.cs new file mode 100644 index 000000000..f11b8fe33 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.TextGenerationThroughput.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Throughput percentiles in tokens per second; pN is the speed that N% of requests reached or exceeded, so p90 is lower than p50. Only meaningful for text generation; null for workloads without token throughput. + /// + public sealed partial class TextGenerationThroughput + { + + /// + /// 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/OpenRouter/Generated/OpenRouter.Models.Tts.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.Tts.Json.g.cs new file mode 100644 index 000000000..28d89c873 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.Tts.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class Tts + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.Tts? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.Tts), + jsonSerializerContext) as global::OpenRouter.Tts; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.Tts? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.Tts? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.Tts), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.Tts; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.Tts.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.Tts.g.cs new file mode 100644 index 000000000..3302fac88 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.Tts.g.cs @@ -0,0 +1,68 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class Tts + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("latency")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AllOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.AllOf Latency { get; set; } + + /// + /// Total requests admitted for this workload in the window. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("request_count")] + public int? RequestCount { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("throughput")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AllOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.AllOf Throughput { 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. + /// + /// + /// + /// + /// Total requests admitted for this workload in the window. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public Tts( + global::OpenRouter.AllOf latency, + global::OpenRouter.AllOf throughput, + int? requestCount) + { + this.Latency = latency; + this.RequestCount = requestCount; + this.Throughput = throughput; + } + + /// + /// Initializes a new instance of the class. + /// + public Tts() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.TtsLatency.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.TtsLatency.Json.g.cs new file mode 100644 index 000000000..818c41b7b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.TtsLatency.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class TtsLatency + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.TtsLatency? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.TtsLatency), + jsonSerializerContext) as global::OpenRouter.TtsLatency; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.TtsLatency? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.TtsLatency? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.TtsLatency), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.TtsLatency; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.TtsLatency.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.TtsLatency.g.cs new file mode 100644 index 000000000..d12bc2dae --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.TtsLatency.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Latency percentiles in milliseconds for this workload. Image and video generation report full end-to-end generation time, because their raw latency only measures request acknowledgement; every other workload reports time to first token or result. + /// + public sealed partial class TtsLatency + { + + /// + /// 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/OpenRouter/Generated/OpenRouter.Models.TtsThroughput.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.TtsThroughput.Json.g.cs new file mode 100644 index 000000000..48a5a302f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.TtsThroughput.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class TtsThroughput + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.TtsThroughput? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.TtsThroughput), + jsonSerializerContext) as global::OpenRouter.TtsThroughput; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.TtsThroughput? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.TtsThroughput? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.TtsThroughput), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.TtsThroughput; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.TtsThroughput.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.TtsThroughput.g.cs new file mode 100644 index 000000000..c9d7e5cc1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.TtsThroughput.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Throughput percentiles in tokens per second; pN is the speed that N% of requests reached or exceeded, so p90 is lower than p50. Only meaningful for text generation; null for workloads without token throughput. + /// + public sealed partial class TtsThroughput + { + + /// + /// 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/OpenRouter/Generated/OpenRouter.Models.Unknown.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.Unknown.Json.g.cs new file mode 100644 index 000000000..848186e7a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.Unknown.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class Unknown + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.Unknown? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.Unknown), + jsonSerializerContext) as global::OpenRouter.Unknown; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.Unknown? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.Unknown? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.Unknown), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.Unknown; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.Unknown.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.Unknown.g.cs new file mode 100644 index 000000000..a6b0f7e08 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.Unknown.g.cs @@ -0,0 +1,68 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class Unknown + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("latency")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AllOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.AllOf Latency { get; set; } + + /// + /// Total requests admitted for this workload in the window. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("request_count")] + public int? RequestCount { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("throughput")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AllOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.AllOf Throughput { 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. + /// + /// + /// + /// + /// Total requests admitted for this workload in the window. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public Unknown( + global::OpenRouter.AllOf latency, + global::OpenRouter.AllOf throughput, + int? requestCount) + { + this.Latency = latency; + this.RequestCount = requestCount; + this.Throughput = throughput; + } + + /// + /// Initializes a new instance of the class. + /// + public Unknown() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UnknownLatency.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UnknownLatency.Json.g.cs new file mode 100644 index 000000000..380d8314b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UnknownLatency.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UnknownLatency + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UnknownLatency? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UnknownLatency), + jsonSerializerContext) as global::OpenRouter.UnknownLatency; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.UnknownLatency? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.UnknownLatency? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.UnknownLatency), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UnknownLatency; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UnknownLatency.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UnknownLatency.g.cs new file mode 100644 index 000000000..7c1bd3f2d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UnknownLatency.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Latency percentiles in milliseconds for this workload. Image and video generation report full end-to-end generation time, because their raw latency only measures request acknowledgement; every other workload reports time to first token or result. + /// + public sealed partial class UnknownLatency + { + + /// + /// 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/OpenRouter/Generated/OpenRouter.Models.UnknownThroughput.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UnknownThroughput.Json.g.cs new file mode 100644 index 000000000..cc14b7393 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UnknownThroughput.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UnknownThroughput + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UnknownThroughput? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UnknownThroughput), + jsonSerializerContext) as global::OpenRouter.UnknownThroughput; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.UnknownThroughput? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.UnknownThroughput? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.UnknownThroughput), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UnknownThroughput; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UnknownThroughput.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UnknownThroughput.g.cs new file mode 100644 index 000000000..966f32875 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UnknownThroughput.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Throughput percentiles in tokens per second; pN is the speed that N% of requests reached or exceeded, so p90 is lower than p50. Only meaningful for text generation; null for workloads without token throughput. + /// + public sealed partial class UnknownThroughput + { + + /// + /// 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/OpenRouter/Generated/OpenRouter.Models.VideoGeneration.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGeneration.Json.g.cs new file mode 100644 index 000000000..e521db7a5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGeneration.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class VideoGeneration + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.VideoGeneration? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.VideoGeneration), + jsonSerializerContext) as global::OpenRouter.VideoGeneration; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.VideoGeneration? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.VideoGeneration? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.VideoGeneration), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.VideoGeneration; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGeneration.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGeneration.g.cs new file mode 100644 index 000000000..c3c852d6c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGeneration.g.cs @@ -0,0 +1,68 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class VideoGeneration + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("latency")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AllOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.AllOf Latency { get; set; } + + /// + /// Total requests admitted for this workload in the window. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("request_count")] + public int? RequestCount { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("throughput")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AllOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.AllOf Throughput { 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. + /// + /// + /// + /// + /// Total requests admitted for this workload in the window. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public VideoGeneration( + global::OpenRouter.AllOf latency, + global::OpenRouter.AllOf throughput, + int? requestCount) + { + this.Latency = latency; + this.RequestCount = requestCount; + this.Throughput = throughput; + } + + /// + /// Initializes a new instance of the class. + /// + public VideoGeneration() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationLatency.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationLatency.Json.g.cs new file mode 100644 index 000000000..89b8a4eab --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationLatency.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class VideoGenerationLatency + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.VideoGenerationLatency? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.VideoGenerationLatency), + jsonSerializerContext) as global::OpenRouter.VideoGenerationLatency; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.VideoGenerationLatency? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.VideoGenerationLatency? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.VideoGenerationLatency), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.VideoGenerationLatency; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationLatency.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationLatency.g.cs new file mode 100644 index 000000000..b4560cebb --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationLatency.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Latency percentiles in milliseconds for this workload. Image and video generation report full end-to-end generation time, because their raw latency only measures request acknowledgement; every other workload reports time to first token or result. + /// + public sealed partial class VideoGenerationLatency + { + + /// + /// 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/OpenRouter/Generated/OpenRouter.Models.VideoGenerationThroughput.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationThroughput.Json.g.cs new file mode 100644 index 000000000..a5dc411ba --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationThroughput.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class VideoGenerationThroughput + { + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.VideoGenerationThroughput? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.VideoGenerationThroughput), + jsonSerializerContext) as global::OpenRouter.VideoGenerationThroughput; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.VideoGenerationThroughput? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.VideoGenerationThroughput? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.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::OpenRouter.VideoGenerationThroughput), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.VideoGenerationThroughput; + } + + /// + /// 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::OpenRouter.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::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationThroughput.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationThroughput.g.cs new file mode 100644 index 000000000..042dc913f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.VideoGenerationThroughput.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Throughput percentiles in tokens per second; pN is the speed that N% of requests reached or exceeded, so p90 is lower than p50. Only meaningful for text generation; null for workloads without token throughput. + /// + public sealed partial class VideoGenerationThroughput + { + + /// + /// 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/OpenRouter/Generated/OpenRouter.ModelsClient.ListForUser.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ModelsClient.ListForUser.g.cs index 1eba7ebaa..aa96b62bc 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.ModelsClient.ListForUser.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.ModelsClient.ListForUser.g.cs @@ -72,7 +72,7 @@ partial void ProcessListForUserResponseContent( /// Example: newest /// /// - /// Return only the models and presets the named harness offers: those that support tool calling, and, when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor's own models (OpenAI for codex, Anthropic for claude_code and claude_desktop). One of: claude_code, claude_desktop, codex. Omit it to get every model you can use.
+ /// Filter models and presets by the named harness's eligibility policy: tool calling is required, and when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor's own models remain (OpenAI for codex, Anthropic for claude_code and claude_desktop). When your workspace's Managed Machines policy sets a model list for that harness, only the listed models remain, and a preset remains only while every model it routes to is listed. This filter doesn't apply the harness's ranking, caps or Claude Desktop model ID aliases, so returned IDs stay routable. One of: claude_code, claude_desktop, codex. Omit it to get every model you can use.
/// Example: codex /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -122,7 +122,7 @@ partial void ProcessListForUserResponseContent( /// Example: newest /// /// - /// Return only the models and presets the named harness offers: those that support tool calling, and, when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor's own models (OpenAI for codex, Anthropic for claude_code and claude_desktop). One of: claude_code, claude_desktop, codex. Omit it to get every model you can use.
+ /// Filter models and presets by the named harness's eligibility policy: tool calling is required, and when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor's own models remain (OpenAI for codex, Anthropic for claude_code and claude_desktop). When your workspace's Managed Machines policy sets a model list for that harness, only the listed models remain, and a preset remains only while every model it routes to is listed. This filter doesn't apply the harness's ranking, caps or Claude Desktop model ID aliases, so returned IDs stay routable. One of: claude_code, claude_desktop, codex. Omit it to get every model you can use.
/// Example: codex /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. diff --git a/src/libs/OpenRouter/Generated/OpenRouter.OpenRouterClient.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.OpenRouterClient.g.cs index 93d27580e..39983f504 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.OpenRouterClient.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.OpenRouterClient.g.cs @@ -65,6 +65,17 @@ public sealed partial class OpenRouterClient : global::OpenRouter.IOpenRouterCli AutoSDKServerConfiguration = AutoSDKServerConfiguration, }; + /// + /// Alpha feature endpoints for Extractions requests. + /// + public AlphaExtractionsClient AlphaExtractions => new AlphaExtractionsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) + { + ReadResponseAsString = ReadResponseAsString, + CreateIdempotencyKey = CreateIdempotencyKey, + JsonSerializerContextProvider = JsonSerializerContextProvider, + AutoSDKServerConfiguration = AutoSDKServerConfiguration, + }; + /// /// Analytics and usage endpoints. /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.PresetsClient.CreatePresetsResponses.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.PresetsClient.CreatePresetsResponses.g.cs index 585ab28f6..657a4386f 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.PresetsClient.CreatePresetsResponses.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.PresetsClient.CreatePresetsResponses.g.cs @@ -682,6 +682,10 @@ partial void ProcessCreatePresetsResponsesResponseContent( /// URL-safe slug identifying the preset. Created if it does not exist.
/// Example: my-preset /// + /// + /// OpenAI access programs for this request. `cyber` selects the Cyber access program: `standard`, `daybreak_blue`, or `daybreak_red`. A program other than `standard` is supported only on BYOK requests that run on your own OpenAI key enrolled in that program; any other endpoint, including OpenRouter's own OpenAI credentials, rejects it with a 400 error. Requests on OpenRouter's OpenAI credentials always run `standard`. Omit the field unless your key is enrolled in a Daybreak program.
+ /// Example: {"cyber":"standard"} + /// /// /// /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.
@@ -797,6 +801,7 @@ partial void ProcessCreatePresetsResponsesResponseContent( /// public async global::System.Threading.Tasks.Task CreatePresetsResponsesAsync( string slug, + global::OpenRouter.ResponsesRequestAccessPrograms? accessPrograms = default, bool? background = default, global::OpenRouter.AnthropicCacheControlDirective? cacheControl = default, global::OpenRouter.ChatDebugOptions? debug = default, @@ -843,6 +848,7 @@ partial void ProcessCreatePresetsResponsesResponseContent( { var __request = new global::OpenRouter.ResponsesRequest { + AccessPrograms = accessPrograms, Background = background, CacheControl = cacheControl, Debug = debug, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ResponsesClient.Send.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ResponsesClient.Send.g.cs index a647ba74a..e95b74802 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.ResponsesClient.Send.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.ResponsesClient.Send.g.cs @@ -97,6 +97,7 @@ partial void ProcessSendResponseContent( request = new global::OpenRouter.ResponsesRequest { + AccessPrograms = request.AccessPrograms, Background = request.Background, CacheControl = request.CacheControl, Debug = request.Debug, @@ -1030,6 +1031,10 @@ partial void ProcessSendResponseContent( /// Opt-in level for surfacing routing metadata on the response under `openrouter_metadata`.
/// Example: enabled /// + /// + /// OpenAI access programs for this request. `cyber` selects the Cyber access program: `standard`, `daybreak_blue`, or `daybreak_red`. A program other than `standard` is supported only on BYOK requests that run on your own OpenAI key enrolled in that program; any other endpoint, including OpenRouter's own OpenAI credentials, rejects it with a 400 error. Requests on OpenRouter's OpenAI credentials always run `standard`. Omit the field unless your key is enrolled in a Daybreak program.
+ /// Example: {"cyber":"standard"} + /// /// /// /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.
@@ -1142,6 +1147,7 @@ partial void ProcessSendResponseContent( /// public async global::System.Threading.Tasks.Task SendAsync( global::OpenRouter.MetadataLevel? xOpenRouterMetadata = default, + global::OpenRouter.ResponsesRequestAccessPrograms? accessPrograms = default, bool? background = default, global::OpenRouter.AnthropicCacheControlDirective? cacheControl = default, global::OpenRouter.ChatDebugOptions? debug = default, @@ -1187,6 +1193,7 @@ partial void ProcessSendResponseContent( { var __request = new global::OpenRouter.ResponsesRequest { + AccessPrograms = accessPrograms, Background = background, CacheControl = cacheControl, Debug = debug, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ResponsesClient.SendAsStream.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ResponsesClient.SendAsStream.g.cs index 431fdd332..dd013e17d 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.ResponsesClient.SendAsStream.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.ResponsesClient.SendAsStream.g.cs @@ -63,6 +63,7 @@ partial void ProcessSendAsStreamResponse( request = new global::OpenRouter.ResponsesRequest { + AccessPrograms = request.AccessPrograms, Background = request.Background, CacheControl = request.CacheControl, Debug = request.Debug, @@ -449,6 +450,10 @@ partial void ProcessSendAsStreamResponse( /// Opt-in level for surfacing routing metadata on the response under `openrouter_metadata`.
/// Example: enabled /// + /// + /// OpenAI access programs for this request. `cyber` selects the Cyber access program: `standard`, `daybreak_blue`, or `daybreak_red`. A program other than `standard` is supported only on BYOK requests that run on your own OpenAI key enrolled in that program; any other endpoint, including OpenRouter's own OpenAI credentials, rejects it with a 400 error. Requests on OpenRouter's OpenAI credentials always run `standard`. Omit the field unless your key is enrolled in a Daybreak program.
+ /// Example: {"cyber":"standard"} + /// /// /// /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.
@@ -561,6 +566,7 @@ partial void ProcessSendAsStreamResponse( /// public async global::System.Collections.Generic.IAsyncEnumerable SendAsStreamAsync( global::OpenRouter.MetadataLevel? xOpenRouterMetadata = default, + global::OpenRouter.ResponsesRequestAccessPrograms? accessPrograms = default, bool? background = default, global::OpenRouter.AnthropicCacheControlDirective? cacheControl = default, global::OpenRouter.ChatDebugOptions? debug = default, @@ -606,6 +612,7 @@ partial void ProcessSendAsStreamResponse( { var __request = new global::OpenRouter.ResponsesRequest { + AccessPrograms = accessPrograms, Background = background, CacheControl = cacheControl, Debug = debug, diff --git a/src/libs/OpenRouter/Generated/autosdk.generated-examples.json b/src/libs/OpenRouter/Generated/autosdk.generated-examples.json index c98d6db5e..0888850ca 100644 --- a/src/libs/OpenRouter/Generated/autosdk.generated-examples.json +++ b/src/libs/OpenRouter/Generated/autosdk.generated-examples.json @@ -13,6 +13,17 @@ }, { "Order": 2, + "Title": "Submit an Extractions request", + "Slug": "createapialphaextractions", + "Description": "Extracts, computes, estimates or forecasts typed fields from a state string and image assets using an extraction-style System One model. Alpha: the shape is not stable.", + "Language": "csharp", + "Code": "using var client = new OpenRouterClient(apiKey);\n\nvar request = global::System.Text.Json.JsonSerializer.Deserialize\u003Cglobal::OpenRouter.DecisionsRequest\u003E(\n @\u0022{\n \u0022\u0022fields\u0022\u0022: {\n \u0022\u0022contacts\u0022\u0022: {\n \u0022\u0022items\u0022\u0022: \u0022\u0022text\u0022\u0022,\n \u0022\u0022type\u0022\u0022: \u0022\u0022list\u0022\u0022\n },\n \u0022\u0022days_to_pay\u0022\u0022: {\n \u0022\u0022max\u0022\u0022: 120,\n \u0022\u0022min\u0022\u0022: 0,\n \u0022\u0022step\u0022\u0022: 1,\n \u0022\u0022type\u0022\u0022: \u0022\u0022estimate\u0022\u0022\n },\n \u0022\u0022due_date\u0022\u0022: {\n \u0022\u0022instructions\u0022\u0022: \u0022\u0022Issue date plus the net payment days\u0022\u0022,\n \u0022\u0022type\u0022\u0022: \u0022\u0022date\u0022\u0022\n },\n \u0022\u0022invoice_number\u0022\u0022: {\n \u0022\u0022type\u0022\u0022: \u0022\u0022text\u0022\u0022\n },\n \u0022\u0022total\u0022\u0022: {\n \u0022\u0022decimals\u0022\u0022: 2,\n \u0022\u0022type\u0022\u0022: \u0022\u0022number\u0022\u0022,\n \u0022\u0022unit\u0022\u0022: \u0022\u0022USD\u0022\u0022\n }\n },\n \u0022\u0022model\u0022\u0022: \u0022\u0022cloudflare/clairic\u0022\u0022,\n \u0022\u0022reference_date\u0022\u0022: \u0022\u00222026-10-28\u0022\u0022,\n \u0022\u0022state\u0022\u0022: \u0022\u0022Invoice INV-2291 issued 2026-09-02, net 30. Contacts: Dana Ruiz, Priya Shah. Total $1080.\u0022\u0022\n}\u0022)!;\n\nvar response = await client.AlphaDecisions.CreateAsync(\n request: request\n);\n\n// Example response:\n// {\n// \u0022answers\u0022: {\n// \u0022contacts\u0022: {\n// \u0022confidence\u0022: 0.9999,\n// \u0022spans\u0022: [\n// [\n// 53,\n// 62\n// ],\n// [\n// 64,\n// 74\n// ]\n// ],\n// \u0022type\u0022: \u0022list\u0022,\n// \u0022value\u0022: [\n// \u0022Dana Ruiz\u0022,\n// \u0022Priya Shah\u0022\n// ]\n// },\n// \u0022days_to_pay\u0022: {\n// \u0022mean\u0022: 29.5,\n// \u0022median\u0022: 30,\n// \u0022p10\u0022: 21,\n// \u0022p90\u0022: 38,\n// \u0022type\u0022: \u0022estimate\u0022,\n// \u0022value\u0022: 30\n// },\n// \u0022due_date\u0022: {\n// \u0022guess\u0022: \u00222026-10-02\u0022,\n// \u0022p_null\u0022: 1.9E-8,\n// \u0022type\u0022: \u0022date\u0022,\n// \u0022value\u0022: \u00222026-10-02\u0022\n// },\n// \u0022invoice_number\u0022: {\n// \u0022confidence\u0022: 1,\n// \u0022guess\u0022: \u0022INV-2291\u0022,\n// \u0022p_null\u0022: 3.8E-10,\n// \u0022span\u0022: [\n// 8,\n// 16\n// ],\n// \u0022type\u0022: \u0022text\u0022,\n// \u0022value\u0022: \u0022INV-2291\u0022\n// },\n// \u0022total\u0022: {\n// \u0022confidence\u0022: 0.9999,\n// \u0022guess\u0022: 1080,\n// \u0022p_null\u0022: 2.3E-8,\n// \u0022type\u0022: \u0022number\u0022,\n// \u0022value\u0022: 1080\n// }\n// },\n// \u0022id\u0022: \u0022gen-dec-1793251006-X5e5eKGQdvR9rblyX250\u0022,\n// \u0022model\u0022: \u0022cloudflare/clairic\u0022,\n// \u0022provider\u0022: \u0022Cloudflare\u0022,\n// \u0022truncated\u0022: false,\n// \u0022usage\u0022: {\n// \u0022cost\u0022: 0.0000655,\n// \u0022image_tokens\u0022: 0,\n// \u0022input_tokens\u0022: 655,\n// \u0022output_tokens\u0022: 0,\n// \u0022passes\u0022: 3,\n// \u0022schema_tokens\u0022: 472,\n// \u0022state_tokens\u0022: 61\n// }\n// }", + "Format": "sdk", + "OperationId": "createApiAlphaExtractions", + "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." + }, + { + "Order": 3, "Title": "Get available analytics metrics and dimensions", "Slug": "getanalyticsmeta", "Description": "Returns the available metrics, dimensions, filter operators, and granularities for the analytics query endpoint. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -23,7 +34,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 3, + "Order": 4, "Title": "Get user activity grouped by endpoint", "Slug": "getuseractivity", "Description": "Returns user activity data grouped by endpoint for the last 30 (completed) UTC days. Pass \u0060workspace_id\u0060 to scope the response to a single workspace. Pass \u0060group_by=workspace\u0060 to split each row per workspace and include \u0060workspace_id\u0060 on every item; by default rows are aggregated across workspaces and \u0060workspace_id\u0060 is not returned. Activity recorded before workspace resolution existed is permanently attributed to the account default workspace (no backfill is possible). [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -34,7 +45,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 4, + "Order": 5, "Title": "Query analytics data", "Slug": "queryanalytics", "Description": "Execute an analytics query with specified metrics, dimensions, filters, and time range. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -45,7 +56,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 5, + "Order": 6, "Title": "Create a new API key", "Slug": "createkeys", "Description": "Create a new API key for the authenticated user. The plaintext \u0060key\u0060 is returned only in this response. Treat it as a write-only, sensitive value; it cannot be retrieved later. Authenticate with a [management key](/docs/guides/overview/auth/management-api-keys). The optional \u0060external\u0060 object associates the key with a partner-defined user and lookup key.", @@ -56,29 +67,29 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 6, + "Order": 7, "Title": "Delete an API key", "Slug": "deletekeys", "Description": "Delete an existing API key. Authenticate with a [management key](/docs/guides/overview/auth/management-api-keys).", "Language": "http", - "Code": "### Delete an API key\n# @name deleteKeys\nDELETE {{host}}/keys/{{hash}}\nAuthorization: Bearer {{token}}\nAccept: application/json\n\n## Responses\n# 200\n# Description: API key deleted successfully\n# Content-Type: application/json\n# 401\n# Description: Unauthorized - Authentication required or invalid credentials\n# Content-Type: application/json\n# 404\n# Description: Not Found - Resource does not exist\n# Content-Type: application/json\n# 429\n# Description: Too Many Requests - Rate limit exceeded\n# Content-Type: application/json\n# 500\n# Description: Internal Server Error - Unexpected server error\n# Content-Type: application/json", + "Code": "### Delete an API key\n# @name deleteKeys\nDELETE {{host}}/keys/{{hash}}\nAuthorization: Bearer {{token}}\nAccept: application/json\n\n## Responses\n# 200\n# Description: API key deleted successfully\n# Content-Type: application/json\n# 401\n# Description: Unauthorized - Authentication required or invalid credentials\n# Content-Type: application/json\n# 403\n# Description: Forbidden - Authentication successful but insufficient permissions\n# Content-Type: application/json\n# 404\n# Description: Not Found - Resource does not exist\n# Content-Type: application/json\n# 429\n# Description: Too Many Requests - Rate limit exceeded\n# Content-Type: application/json\n# 500\n# Description: Internal Server Error - Unexpected server error\n# Content-Type: application/json", "Format": "http", "OperationId": "deleteKeys", "Setup": null }, { - "Order": 7, + "Order": 8, "Title": "Get a single API key", "Slug": "getkey", "Description": "Get a single API key by hash. [Management key](/docs/guides/overview/auth/management-api-keys) required.", "Language": "http", - "Code": "### Get a single API key\n# @name getKey\nGET {{host}}/keys/{{hash}}\nAuthorization: Bearer {{token}}\nAccept: application/json\n\n## Responses\n# 200\n# Description: API key details\n# Content-Type: application/json\n# 401\n# Description: Unauthorized - Authentication required or invalid credentials\n# Content-Type: application/json\n# 404\n# Description: Not Found - Resource does not exist\n# Content-Type: application/json\n# 429\n# Description: Too Many Requests - Rate limit exceeded\n# Content-Type: application/json\n# 500\n# Description: Internal Server Error - Unexpected server error\n# Content-Type: application/json", + "Code": "### Get a single API key\n# @name getKey\nGET {{host}}/keys/{{hash}}\nAuthorization: Bearer {{token}}\nAccept: application/json\n\n## Responses\n# 200\n# Description: API key details\n# Content-Type: application/json\n# 401\n# Description: Unauthorized - Authentication required or invalid credentials\n# Content-Type: application/json\n# 403\n# Description: Forbidden - Authentication successful but insufficient permissions\n# Content-Type: application/json\n# 404\n# Description: Not Found - Resource does not exist\n# Content-Type: application/json\n# 429\n# Description: Too Many Requests - Rate limit exceeded\n# Content-Type: application/json\n# 500\n# Description: Internal Server Error - Unexpected server error\n# Content-Type: application/json", "Format": "http", "OperationId": "getKey", "Setup": null }, { - "Order": 8, + "Order": 9, "Title": "Get current API key", "Slug": "getcurrentkey", "Description": "Get information on the API key associated with the current authentication session", @@ -89,7 +100,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 9, + "Order": 10, "Title": "List API keys", "Slug": "list", "Description": "List all API keys for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -100,7 +111,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 10, + "Order": 11, "Title": "Update an API key", "Slug": "updatekeys", "Description": "Update an existing API key. Authenticate with a [management key](/docs/guides/overview/auth/management-api-keys).\n\nSet \u0060workspace_id\u0060 to move the key to another workspace.\n\n\u003CWarning\u003E\nThe request body accepts only the fields listed below, and unrecognized fields are ignored. If the body contains none of the accepted fields, the request fails with \u0060400\u0060 and the message \u0060No update fields provided\u0060.\n\u003C/Warning\u003E", @@ -111,7 +122,7 @@ "Setup": null }, { - "Order": 11, + "Order": 12, "Title": "Create a batch", "Slug": "createbatches", "Description": "Creates a batch of requests that run asynchronously against a single endpoint (\u0060/v1/chat/completions\u0060, \u0060/v1/responses\u0060, \u0060/v1/messages\u0060, \u0060/v1/embeddings\u0060). Returns \u0060202\u0060 with \u0060status: \u0022validating\u0022\u0060. Poll \u0060GET /batches/{id}\u0060 for progress and results. See the [Batch API Quickstart](https://openrouter.ai/docs/batch-quickstart).", @@ -122,7 +133,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 12, + "Order": 13, "Title": "Delete a batch", "Slug": "deletebatch", "Description": "Deletes a batch in a terminal status (\u0060completed\u0060, \u0060failed\u0060, \u0060expired\u0060, or \u0060cancelled\u0060) and its stored requests and results. Batches still in progress return \u0060409\u0060. Billing and usage records are kept. See the [Batch API Quickstart](https://openrouter.ai/docs/batch-quickstart).", @@ -133,7 +144,7 @@ "Setup": null }, { - "Order": 13, + "Order": 14, "Title": "Get a batch", "Slug": "getbatches", "Description": "Returns a batch with its status and request counts. Batches in a terminal status include \u0060results\u0060. Failed batches report the reason in \u0060error.message\u0060. See the [Batch API Quickstart](https://openrouter.ai/docs/batch-quickstart).", @@ -144,7 +155,7 @@ "Setup": null }, { - "Order": 14, + "Order": 15, "Title": "List batches", "Slug": "listbatches", "Description": "Lists batches in the workspace of the authenticating API key, newest first. To fetch the next page, pass the previous page\u0027s \u0060last_id\u0060 as \u0060after\u0060. List items omit \u0060results\u0060. Use \u0060GET /batches/{id}\u0060 to get them. See the [Batch API Quickstart](https://openrouter.ai/docs/batch-quickstart).", @@ -155,7 +166,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 15, + "Order": 16, "Title": "List Benchmarks", "Slug": "getbenchmarks", "Description": "Unified benchmark endpoint that aggregates scores from multiple benchmark sources (Artificial Analysis, Design Arena, and OpenRouter\u0027s own tau-bench, GPQA, and web-search evals). Filter by source to reproduce the exact shapes from the legacy per-source endpoints, or use task_type to find models suited for specific workloads. Use task_type=search (or a search_* benchmark_type) for OpenRouter\u0027s search benchmarks, which publish each model\u0027s highest-scoring eligible evaluation configuration with same-configuration runs combined by task-weighted mean. Authenticate with any valid OpenRouter API key. Rate-limited to 30 requests/minute per key and 500 requests/day per account.", @@ -166,7 +177,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 16, + "Order": 17, "Title": "Create a BYOK provider credential", "Slug": "createbyokkey", "Description": "Create a new bring-your-own-key (BYOK) provider credential. The raw key is encrypted at rest and never returned in API responses. When \u0060workspace_id\u0060 is omitted, the credential is created in the default workspace; if that default has been deleted, the request returns a 400 and you must pass \u0060workspace_id\u0060 explicitly. Treat the raw key as write-only; it is never returned after creation. Use \u0060allowed_api_key_hashes\u0060 to restrict the credential to specific OpenRouter API keys. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -177,7 +188,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 17, + "Order": 18, "Title": "Delete a BYOK provider credential", "Slug": "deletebyokkey", "Description": "Delete (soft-delete) a bring-your-own-key (BYOK) provider credential by its \u0060id\u0060. The encrypted key material is wiped and the record is marked as deleted. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -188,7 +199,7 @@ "Setup": null }, { - "Order": 18, + "Order": 19, "Title": "Get a BYOK provider credential", "Slug": "getbyokkey", "Description": "Get a single bring-your-own-key (BYOK) provider credential by its \u0060id\u0060. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -199,7 +210,7 @@ "Setup": null }, { - "Order": 19, + "Order": 20, "Title": "List BYOK provider credentials", "Slug": "listbyokkeys", "Description": "List the bring-your-own-key (BYOK) provider credentials for the authenticated entity\u0027s default workspace. Use the \u0060workspace_id\u0060 query parameter to scope the result to a different workspace, or the \u0060provider\u0060 query parameter to filter by upstream provider. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -210,7 +221,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 20, + "Order": 21, "Title": "Update a BYOK provider credential", "Slug": "updatebyokkey", "Description": "Update an existing bring-your-own-key (BYOK) provider credential by its \u0060id\u0060. Include the \u0060key\u0060 field to rotate the raw provider API key in-place (the previous key material is overwritten). Use \u0060allowed_api_key_hashes\u0060 to restrict the credential to specific OpenRouter API keys (\u0060null\u0060 clears the restriction). [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -221,7 +232,7 @@ "Setup": null }, { - "Order": 21, + "Order": 22, "Title": "Create a chat completion", "Slug": "sendchatcompletionrequest", "Description": "Sends a request for a model response for the given chat conversation. Supports both streaming and non-streaming modes.", @@ -232,7 +243,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 22, + "Order": 23, "Title": "Task classification market share", "Slug": "gettaskclassifications", "Description": "Returns the market-share breakdown of OpenRouter traffic by task classification\n(e.g. code generation, web search, summarization) over a trailing time window.\n\nEach classification reports its share of classified sampled requests (\u0060usage_share\u0060)\nand classified sampled token volume (\u0060token_share\u0060) as fractions between 0 and 1.\nThe unclassified \u0060other\u0060 bucket is excluded. Absolute volumes are not exposed\nbecause the underlying data is sampled.\n\nEach classification also includes a \u0060models\u0060 array listing the top models by\nrequest volume within that classification, with their within-tag usage and token shares.\n\nClassifications are grouped into macro-categories (Code, Data, Agent, General)\nwith aggregate shares provided for each.\n\nAuthenticate with any valid OpenRouter API key (same key used for inference).\nRate-limited to 30 requests/minute per key and 500 requests/day per account.\n\nWhen republishing or quoting this data, cite as:\n\u0022Source: OpenRouter (openrouter.ai/rankings), as of {as_of}.\u0022", @@ -243,7 +254,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 23, + "Order": 24, "Title": "Download container file content", "Slug": "downloadcontainerfilecontent", "Description": "Streams the raw bytes of a file in a container.", @@ -254,7 +265,7 @@ "Setup": null }, { - "Order": 24, + "Order": 25, "Title": "Retrieve a container file", "Slug": "getcontainerfile", "Description": "Returns the metadata of a single file in a container.", @@ -265,7 +276,7 @@ "Setup": null }, { - "Order": 25, + "Order": 26, "Title": "List container files", "Slug": "listcontainerfiles", "Description": "Lists the files in a container, in lexicographic path order. The container id is the canonical id returned in bash/shell tool results; a restarted session is a separate container with its own id. Paginate with \u0060limit\u0060 and \u0060after\u0060 (pass the previous page\u2019s \u0060last_id\u0060); \u0060has_more: true\u0060 always means the next page is fetchable that way. \u0060last_id\u0060 is the resume cursor: it is the last listed file\u2019s id, except when a page ends at the per-request scan bound on hidden bookkeeping objects, where it names the scan position instead and may not appear in \u0060data\u0060 (which can then be empty).", @@ -276,7 +287,7 @@ "Setup": null }, { - "Order": 26, + "Order": 27, "Title": "Promote a container file into workspace documents", "Slug": "promotecontainerfile", "Description": "Copies a file from the container\u0027s sandbox prefix into the workspace\u0027s durable document storage, so it outlives the container. Returns the new document in the Files API shape, with a durable file id in the documents namespace. The copy counts against the workspace\u0027s storage quota. Unlike a direct upload, promoted files are downloadable.", @@ -287,7 +298,7 @@ "Setup": null }, { - "Order": 27, + "Order": 28, "Title": "Get remaining credits", "Slug": "getcredits", "Description": "Get total credits purchased and used for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -298,7 +309,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 28, + "Order": 29, "Title": "Top apps by token usage", "Slug": "getapprankings", "Description": "Returns the top public apps on OpenRouter ranked by token usage inside the requested\ndate window, matching the public apps marketplace on openrouter.ai/apps. Token totals\nare \u0060prompt_tokens \u002B completion_tokens\u0060; hidden and private apps are excluded and\ntraffic from related app aliases is merged into the canonical visible app.\n\n\u0060sort=popular\u0060 (default) ranks by total token volume inside the window.\n\u0060sort=trending\u0060 ranks by absolute excess token growth: window volume minus the average\nvolume of the three equal-length periods immediately preceding the window. Apps with\nno excess growth are omitted, so \u0060trending\u0060 may return fewer than \u0060limit\u0060 rows.\n\nFilter with \u0060category\u0060 (marketplace category group, e.g. \u0060coding\u0060) or \u0060subcategory\u0060\n(e.g. \u0060cli-agent\u0060). Ranks are re-numbered 1..N after filtering. Page with \u0060offset\u0060 \u2014\n\u0060rank\u0060 stays absolute, so the first row of \u0060offset=50\u0060 is \u0060rank: 51\u0060.\n\nAuthenticate with any valid OpenRouter API key (same key used for inference).\nRate-limited to 30 requests/minute per key and 500 requests/day per account.\n\nWhen republishing or quoting this dataset, OpenRouter must be cited as:\n\u0022Source: OpenRouter (openrouter.ai/apps), as of {as_of}.\u0022\n\nToken counts come from each upstream provider\u0027s own tokenizer, so a token attributed\nto one app is not directly comparable to a token attributed to another app whose\ntraffic flows through a different provider.\n\nLicensed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/): reuse and republish with attribution to OpenRouter.", @@ -309,7 +320,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 29, + "Order": 30, "Title": "Daily token totals for top 50 models", "Slug": "getrankingsdaily", "Description": "Returns the top 50 public models per day by total token usage on OpenRouter, plus a\nsingle aggregated \u0060other\u0060 row per day that sums every model outside that top 50.\nToken totals are \u0060prompt_tokens \u002B completion_tokens\u0060, matching the public rankings\nchart on openrouter.ai/rankings.\n\nEach row is a distinct \u0060(date, model_permaslug)\u0060 pair. The \u0060other\u0060 row uses the\nreserved permaslug \u0060other\u0060 and is always returned last within its date, so callers\ncan compute \u0060top-50 traffic / total daily traffic\u0060 without a second request.\n\nOptional filters slice the dataset. \u0060period\u0060 (\u0060day\u0060/\u0060week\u0060/\u0060month\u0060) sets the time\ngrain. \u0060modality\u0060 and \u0060context_bucket\u0060 narrow the exact dataset by output/input\nmodality (or tool-calling activity) and request context length. \u0060category\u0060 and\n\u0060language_type\u0060 instead read a sampled, upsampled dataset whose \u0060total_tokens\u0060 are\nweekly-grain estimates \u2014 they cannot be combined with each other or with the exact\nfilters, and reject \u0060period=day\u0060 with a 400.\n\nAuthenticate with any valid OpenRouter API key (same key used for inference).\nRate-limited to 30 requests/minute per key and 500 requests/day per account.\n\nWhen republishing or quoting this dataset, OpenRouter must be cited as:\n\u0022Source: OpenRouter (openrouter.ai/rankings), as of {as_of}.\u0022\n\nToken counts come from each upstream provider\u0027s own tokenizer (Anthropic counts\nare as reported by Anthropic, OpenAI counts are as reported by OpenAI, etc.), so\na token in one row is not directly comparable to a token in another row from a\ndifferent provider.\n\nLicensed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/): reuse and republish with attribution to OpenRouter.", @@ -320,7 +331,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 30, + "Order": 31, "Title": "Cost per session by harness and model", "Slug": "getsessioncost", "Description": "Returns weekly refreshed, aggregated cost-per-session cells for the published harnesses.\nSessions are never pooled across apps. Medians are of per-session USD spend, and\nprivacy-preserving aggregation never exposes clerk_user_id values or per-session rows.\n\nFilter by \u0060app_slug\u0060, \u0060model\u0060, or \u0060turn_range\u0060. Filtering by \u0060model\u0060 alone works across apps\nfor harness-vs-harness comparison at a fixed model. Results refresh weekly and include the source snapshot\nwindow in \u0060meta\u0060.\n\nLicensed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/): reuse and republish with attribution to OpenRouter.", @@ -331,7 +342,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 31, + "Order": 32, "Title": "Submit an embedding request", "Slug": "createembeddings", "Description": "Submits an embedding request to the embeddings router", @@ -342,18 +353,18 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 32, + "Order": 33, "Title": "List all embeddings models", "Slug": "listembeddingsmodels", "Description": "Returns a list of all available embeddings models and their properties", "Language": "csharp", - "Code": "using var client = new OpenRouterClient(apiKey);\nvar response = await client.Embeddings.ListModelsAsync();\n\n// Example response:\n// {\n// \u0022data\u0022: [\n// {\n// \u0022architecture\u0022: {\n// \u0022input_modalities\u0022: [\n// \u0022text\u0022\n// ],\n// \u0022instruct_type\u0022: null,\n// \u0022modality\u0022: \u0022text-\\u003Eembeddings\u0022,\n// \u0022output_modalities\u0022: [\n// \u0022embeddings\u0022\n// ],\n// \u0022tokenizer\u0022: \u0022GPT\u0022\n// },\n// \u0022canonical_slug\u0022: \u0022openai/text-embedding-3-small\u0022,\n// \u0022context_length\u0022: 8192,\n// \u0022created\u0022: 1692901234,\n// \u0022default_parameters\u0022: null,\n// \u0022description\u0022: \u0022OpenAI text embedding model optimized for performance.\u0022,\n// \u0022expiration_date\u0022: null,\n// \u0022id\u0022: \u0022openai/text-embedding-3-small\u0022,\n// \u0022knowledge_cutoff\u0022: null,\n// \u0022links\u0022: {\n// \u0022details\u0022: \u0022/api/v1/models/openai/text-embedding-3-small/endpoints\u0022\n// },\n// \u0022name\u0022: \u0022Text Embedding 3 Small\u0022,\n// \u0022per_request_limits\u0022: null,\n// \u0022pricing\u0022: {\n// \u0022completion\u0022: \u00220\u0022,\n// \u0022image\u0022: \u00220\u0022,\n// \u0022prompt\u0022: \u00220.00000002\u0022,\n// \u0022request\u0022: \u00220\u0022\n// },\n// \u0022supported_parameters\u0022: [],\n// \u0022supported_voices\u0022: null,\n// \u0022top_provider\u0022: {\n// \u0022context_length\u0022: 8192,\n// \u0022is_moderated\u0022: false,\n// \u0022max_completion_tokens\u0022: null\n// }\n// }\n// ]\n// }", + "Code": "using var client = new OpenRouterClient(apiKey);\nvar response = await client.Embeddings.ListModelsAsync();\n\n// Example response:\n// {\n// \u0022data\u0022: [\n// {\n// \u0022architecture\u0022: {\n// \u0022input_modalities\u0022: [\n// \u0022text\u0022\n// ],\n// \u0022instruct_type\u0022: null,\n// \u0022modality\u0022: \u0022text-\\u003Eembeddings\u0022,\n// \u0022output_modalities\u0022: [\n// \u0022embeddings\u0022\n// ],\n// \u0022tokenizer\u0022: \u0022GPT\u0022\n// },\n// \u0022canonical_slug\u0022: \u0022openai/text-embedding-3-small\u0022,\n// \u0022context_length\u0022: 8192,\n// \u0022created\u0022: 1692901234,\n// \u0022default_parameters\u0022: null,\n// \u0022description\u0022: \u0022OpenAI text embedding model optimized for performance.\u0022,\n// \u0022endpoints\u0022: [\n// \u0022/api/v1/embeddings\u0022\n// ],\n// \u0022expiration_date\u0022: null,\n// \u0022id\u0022: \u0022openai/text-embedding-3-small\u0022,\n// \u0022knowledge_cutoff\u0022: null,\n// \u0022links\u0022: {\n// \u0022details\u0022: \u0022/api/v1/models/openai/text-embedding-3-small/endpoints\u0022\n// },\n// \u0022name\u0022: \u0022Text Embedding 3 Small\u0022,\n// \u0022per_request_limits\u0022: null,\n// \u0022pricing\u0022: {\n// \u0022completion\u0022: \u00220\u0022,\n// \u0022image\u0022: \u00220\u0022,\n// \u0022prompt\u0022: \u00220.00000002\u0022,\n// \u0022request\u0022: \u00220\u0022\n// },\n// \u0022supported_parameters\u0022: [],\n// \u0022supported_voices\u0022: null,\n// \u0022top_provider\u0022: {\n// \u0022context_length\u0022: 8192,\n// \u0022is_moderated\u0022: false,\n// \u0022max_completion_tokens\u0022: null\n// }\n// }\n// ]\n// }", "Format": "sdk", "OperationId": "listEmbeddingsModels", "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 33, + "Order": 34, "Title": "List all endpoints for a model", "Slug": "listendpoints", "Description": "Generated from OpenAPI examples.", @@ -364,18 +375,18 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 34, + "Order": 35, "Title": "Preview the impact of ZDR on the available endpoints", "Slug": "listendpointszdr", "Description": "Generated from OpenAPI examples.", "Language": "csharp", - "Code": "using var client = new OpenRouterClient(apiKey);\nvar response = await client.Endpoints.ListZdrEndpointsAsync();\n\n// Example response:\n// {\n// \u0022data\u0022: [\n// {\n// \u0022context_length\u0022: 8192,\n// \u0022latency_last_30m\u0022: {\n// \u0022p50\u0022: 0.25,\n// \u0022p75\u0022: 0.35,\n// \u0022p90\u0022: 0.48,\n// \u0022p99\u0022: 0.85\n// },\n// \u0022max_completion_tokens\u0022: 4096,\n// \u0022max_prompt_tokens\u0022: 8192,\n// \u0022model_id\u0022: \u0022openai/gpt-4\u0022,\n// \u0022model_name\u0022: \u0022GPT-4\u0022,\n// \u0022name\u0022: \u0022OpenAI: GPT-4\u0022,\n// \u0022native_tools\u0022: {},\n// \u0022pricing\u0022: {\n// \u0022completion\u0022: \u00220.00006\u0022,\n// \u0022image\u0022: \u00220\u0022,\n// \u0022prompt\u0022: \u00220.00003\u0022,\n// \u0022request\u0022: \u00220\u0022\n// },\n// \u0022provider_name\u0022: \u0022OpenAI\u0022,\n// \u0022quantization\u0022: \u0022fp16\u0022,\n// \u0022status\u0022: 0,\n// \u0022supported_parameters\u0022: [\n// \u0022temperature\u0022,\n// \u0022top_p\u0022,\n// \u0022max_tokens\u0022\n// ],\n// \u0022supports_diarization\u0022: false,\n// \u0022supports_image_reference\u0022: false,\n// \u0022supports_implicit_caching\u0022: true,\n// \u0022supports_multiple_audio_references\u0022: false,\n// \u0022supports_voice_cloning\u0022: false,\n// \u0022tag\u0022: \u0022openai\u0022,\n// \u0022throughput_last_30m\u0022: {\n// \u0022p50\u0022: 45.2,\n// \u0022p75\u0022: 38.5,\n// \u0022p90\u0022: 28.3,\n// \u0022p99\u0022: 15.1\n// },\n// \u0022uptime_last_1d\u0022: 99.8,\n// \u0022uptime_last_30m\u0022: 99.5,\n// \u0022uptime_last_5m\u0022: 100\n// }\n// ]\n// }", + "Code": "using var client = new OpenRouterClient(apiKey);\nvar response = await client.Endpoints.ListZdrEndpointsAsync();\n\n// Example response:\n// {\n// \u0022data\u0022: [\n// {\n// \u0022context_length\u0022: 8192,\n// \u0022latency_last_30m\u0022: {\n// \u0022p50\u0022: 0.25,\n// \u0022p75\u0022: 0.35,\n// \u0022p90\u0022: 0.48,\n// \u0022p99\u0022: 0.85\n// },\n// \u0022max_completion_tokens\u0022: 4096,\n// \u0022max_prompt_tokens\u0022: 8192,\n// \u0022model_id\u0022: \u0022openai/gpt-4\u0022,\n// \u0022model_name\u0022: \u0022GPT-4\u0022,\n// \u0022name\u0022: \u0022OpenAI: GPT-4\u0022,\n// \u0022native_tools\u0022: {},\n// \u0022pricing\u0022: {\n// \u0022completion\u0022: \u00220.00006\u0022,\n// \u0022image\u0022: \u00220\u0022,\n// \u0022prompt\u0022: \u00220.00003\u0022,\n// \u0022request\u0022: \u00220\u0022\n// },\n// \u0022provider_name\u0022: \u0022OpenAI\u0022,\n// \u0022quantization\u0022: \u0022fp16\u0022,\n// \u0022safety_retention\u0022: false,\n// \u0022status\u0022: 0,\n// \u0022supported_parameters\u0022: [\n// \u0022temperature\u0022,\n// \u0022top_p\u0022,\n// \u0022max_tokens\u0022\n// ],\n// \u0022supports_diarization\u0022: false,\n// \u0022supports_image_reference\u0022: false,\n// \u0022supports_implicit_caching\u0022: true,\n// \u0022supports_multiple_audio_references\u0022: false,\n// \u0022supports_voice_cloning\u0022: false,\n// \u0022tag\u0022: \u0022openai\u0022,\n// \u0022throughput_last_30m\u0022: {\n// \u0022p50\u0022: 45.2,\n// \u0022p75\u0022: 38.5,\n// \u0022p90\u0022: 28.3,\n// \u0022p99\u0022: 15.1\n// },\n// \u0022uptime_last_1d\u0022: 99.8,\n// \u0022uptime_last_30m\u0022: 99.5,\n// \u0022uptime_last_5m\u0022: 100\n// }\n// ]\n// }", "Format": "sdk", "OperationId": "listEndpointsZdr", "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 35, + "Order": 36, "Title": "Register an external user", "Slug": "createexternaluser", "Description": "Register a caller-supplied tracking ID under the authenticated organization. No login account, policy, or credentials are created. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -386,7 +397,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 36, + "Order": 37, "Title": "Deactivate a registered external user", "Slug": "deleteexternaluser", "Description": "Soft-deactivate a registration while retaining its tracking ID. Repeat deactivation succeeds. This does not block inference; reactivate through PATCH. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -397,7 +408,7 @@ "Setup": null }, { - "Order": 37, + "Order": 38, "Title": "Get a registered external user", "Slug": "getexternaluser", "Description": "Retrieve an active or inactive registration by its URL-encoded, caller-supplied tracking ID. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -408,7 +419,7 @@ "Setup": null }, { - "Order": 38, + "Order": 39, "Title": "List registered external users", "Slug": "listexternalusers", "Description": "List registrations belonging to the authenticated organization. Inactive registrations are excluded by default. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -419,7 +430,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 39, + "Order": 40, "Title": "Update a registered external user", "Slug": "updateexternaluser", "Description": "Update registration state without changing identity. State changes do not enforce inference access. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -430,7 +441,7 @@ "Setup": null }, { - "Order": 40, + "Order": 41, "Title": "Delete a file", "Slug": "deletefile", "Description": "Deletes a file owned by the requesting workspace. Deletion is irreversible.", @@ -441,7 +452,7 @@ "Setup": null }, { - "Order": 41, + "Order": 42, "Title": "Download file content", "Slug": "downloadfilecontent", "Description": "Downloads the raw bytes of a file. Only files created server-side are downloadable; uploaded files return 400.", @@ -452,7 +463,7 @@ "Setup": null }, { - "Order": 42, + "Order": 43, "Title": "List files", "Slug": "listfiles", "Description": "Lists files belonging to the workspace of the authenticating API key.", @@ -463,7 +474,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 43, + "Order": 44, "Title": "Get file metadata", "Slug": "getfilemetadata", "Description": "Retrieves metadata for a single file owned by the requesting workspace.", @@ -474,7 +485,7 @@ "Setup": null }, { - "Order": 44, + "Order": 45, "Title": "Upload a file", "Slug": "uploadfile", "Description": "Uploads a file to be referenced in future API calls. The file is stored under the workspace of the authenticating API key. Maximum file size: 100 MB; empty files are rejected. The file type is determined from the file contents \u2014 not the filename or the declared content type \u2014 and must be a PDF, a PNG/JPEG/GIF/WebP image, a DOCX/XLSX/PPTX document, an MP3/WAV/FLAC/OGG audio file, or UTF-8 text. Text is reported by its structure as \u0060application/json\u0060, \u0060application/x-ndjson\u0060, \u0060text/csv\u0060, \u0060text/markdown\u0060, or \u0060text/plain\u0060.", @@ -485,7 +496,7 @@ "Setup": null }, { - "Order": 45, + "Order": 46, "Title": "Get request \u0026 usage metadata for a generation", "Slug": "getgeneration", "Description": "Generated from OpenAPI examples.", @@ -496,7 +507,7 @@ "Setup": null }, { - "Order": 46, + "Order": 47, "Title": "Get stored prompt, completion, and error content for a generation", "Slug": "listgenerationcontent", "Description": "Generated from OpenAPI examples.", @@ -507,7 +518,7 @@ "Setup": null }, { - "Order": 47, + "Order": 48, "Title": "Submit feedback for a generation", "Slug": "submitgenerationfeedback", "Description": "Submit structured feedback on a generation the authenticated user made. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -518,7 +529,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 48, + "Order": 49, "Title": "Bulk assign keys to a guardrail", "Slug": "bulkassignkeystoguardrail", "Description": "Assign multiple API keys to a specific guardrail. A key may hold at most one guardrail; assigning replaces any existing assignment. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -529,7 +540,7 @@ "Setup": null }, { - "Order": 49, + "Order": 50, "Title": "Bulk assign members to a guardrail", "Slug": "bulkassignmemberstoguardrail", "Description": "Assign multiple organization members to a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -540,7 +551,7 @@ "Setup": null }, { - "Order": 50, + "Order": 51, "Title": "Bulk unassign keys from a guardrail", "Slug": "bulkunassignkeysfromguardrail", "Description": "Unassign multiple API keys from a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -551,7 +562,7 @@ "Setup": null }, { - "Order": 51, + "Order": 52, "Title": "Bulk unassign members from a guardrail", "Slug": "bulkunassignmembersfromguardrail", "Description": "Unassign multiple organization members from a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -562,7 +573,7 @@ "Setup": null }, { - "Order": 52, + "Order": 53, "Title": "Create a guardrail", "Slug": "createguardrail", "Description": "Create a new guardrail for the authenticated user. A newly created guardrail enforces nothing until it is assigned to API keys or organization members; \u0060workspace_id\u0060 places the guardrail in a workspace but does not apply it to that workspace\u0027s traffic. To restrict all traffic in a workspace, update the workspace\u0027s default guardrail instead. Set \u0060allowed_data_regions\u0060 to enforce [In-Region Routing](/docs/guides/features/in-region-routing#enforcing-in-region-routing-with-guardrails): governed requests must arrive through one of the listed OpenRouter domains and are rejected with a 403 otherwise. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -573,7 +584,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 53, + "Order": 54, "Title": "Delete a guardrail", "Slug": "deleteguardrail", "Description": "Delete an existing guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -584,7 +595,7 @@ "Setup": null }, { - "Order": 54, + "Order": 55, "Title": "Get a guardrail", "Slug": "getguardrail", "Description": "Get a single guardrail by ID. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -595,7 +606,7 @@ "Setup": null }, { - "Order": 55, + "Order": 56, "Title": "List guardrails", "Slug": "listguardrails", "Description": "List all guardrails for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -606,7 +617,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 56, + "Order": 57, "Title": "List key assignments for a guardrail", "Slug": "listguardrailkeyassignments", "Description": "List all API key assignments for a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -617,7 +628,7 @@ "Setup": null }, { - "Order": 57, + "Order": 58, "Title": "List member assignments for a guardrail", "Slug": "listguardrailmemberassignments", "Description": "List all organization member assignments for a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -628,7 +639,7 @@ "Setup": null }, { - "Order": 58, + "Order": 59, "Title": "List all key assignments", "Slug": "listkeyassignments", "Description": "List all API key guardrail assignments for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -639,7 +650,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 59, + "Order": 60, "Title": "List all member assignments", "Slug": "listmemberassignments", "Description": "List all organization member guardrail assignments for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -650,7 +661,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 60, + "Order": 61, "Title": "Update a guardrail", "Slug": "updateguardrail", "Description": "Update an existing guardrail, or materialize an unconfigured workspace default guardrail. Collection fields use replace semantics: send the full desired set on every update. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -661,7 +672,7 @@ "Setup": null }, { - "Order": 61, + "Order": 62, "Title": "Generate an image", "Slug": "createimages", "Description": "Generates an image from a text prompt via the image generation router", @@ -672,7 +683,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 62, + "Order": 63, "Title": "List endpoints for an image model", "Slug": "listimagemodelendpoints", "Description": "Returns the full per-endpoint records for an image model: each endpoint\u0027s definitive supported parameters, pricing, and passthrough allowlist.", @@ -683,7 +694,7 @@ "Setup": null }, { - "Order": 63, + "Order": 64, "Title": "List image generation models", "Slug": "listimagemodels", "Description": "Lists every image generation model with its top-level supported-parameter superset and a URL to its full per-endpoint records.", @@ -694,7 +705,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 64, + "Order": 65, "Title": "Get total count of available models", "Slug": "listmodelscount", "Description": "Generated from OpenAPI examples.", @@ -705,7 +716,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 65, + "Order": 66, "Title": "Get a model by its slug", "Slug": "getmodel", "Description": "Returns full details for a single model identified by its author and slug (e.g. openai/gpt-4). Supports variant suffixes (e.g. openai/gpt-4:free) and resolves known slug aliases.", @@ -716,29 +727,29 @@ "Setup": null }, { - "Order": 66, + "Order": 67, "Title": "List all models and their properties", "Slug": "getmodels", "Description": "Generated from OpenAPI examples.", "Language": "csharp", - "Code": "using var client = new OpenRouterClient(apiKey);\nvar response = await client.ApiKeys.ListAsync();\n\n// Example response:\n// {\n// \u0022data\u0022: [\n// {\n// \u0022architecture\u0022: {\n// \u0022input_modalities\u0022: [\n// \u0022text\u0022\n// ],\n// \u0022instruct_type\u0022: \u0022chatml\u0022,\n// \u0022modality\u0022: \u0022text-\\u003Etext\u0022,\n// \u0022output_modalities\u0022: [\n// \u0022text\u0022\n// ],\n// \u0022tokenizer\u0022: \u0022GPT\u0022\n// },\n// \u0022canonical_slug\u0022: \u0022openai/gpt-4\u0022,\n// \u0022context_length\u0022: 8192,\n// \u0022created\u0022: 1692901234,\n// \u0022default_parameters\u0022: null,\n// \u0022description\u0022: \u0022GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.\u0022,\n// \u0022expiration_date\u0022: null,\n// \u0022id\u0022: \u0022openai/gpt-4\u0022,\n// \u0022knowledge_cutoff\u0022: null,\n// \u0022links\u0022: {\n// \u0022details\u0022: \u0022/api/v1/models/openai/gpt-4/endpoints\u0022\n// },\n// \u0022name\u0022: \u0022GPT-4\u0022,\n// \u0022per_request_limits\u0022: null,\n// \u0022pricing\u0022: {\n// \u0022completion\u0022: \u00220.00006\u0022,\n// \u0022image\u0022: \u00220\u0022,\n// \u0022prompt\u0022: \u00220.00003\u0022,\n// \u0022request\u0022: \u00220\u0022\n// },\n// \u0022supported_parameters\u0022: [\n// \u0022temperature\u0022,\n// \u0022top_p\u0022,\n// \u0022max_tokens\u0022\n// ],\n// \u0022supported_voices\u0022: null,\n// \u0022top_provider\u0022: {\n// \u0022context_length\u0022: 8192,\n// \u0022is_moderated\u0022: true,\n// \u0022max_completion_tokens\u0022: 4096\n// }\n// }\n// ]\n// }", + "Code": "using var client = new OpenRouterClient(apiKey);\nvar response = await client.ApiKeys.ListAsync();\n\n// Example response:\n// {\n// \u0022data\u0022: [\n// {\n// \u0022architecture\u0022: {\n// \u0022input_modalities\u0022: [\n// \u0022text\u0022\n// ],\n// \u0022instruct_type\u0022: \u0022chatml\u0022,\n// \u0022modality\u0022: \u0022text-\\u003Etext\u0022,\n// \u0022output_modalities\u0022: [\n// \u0022text\u0022\n// ],\n// \u0022tokenizer\u0022: \u0022GPT\u0022\n// },\n// \u0022canonical_slug\u0022: \u0022openai/gpt-4\u0022,\n// \u0022context_length\u0022: 8192,\n// \u0022created\u0022: 1692901234,\n// \u0022default_parameters\u0022: null,\n// \u0022description\u0022: \u0022GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.\u0022,\n// \u0022endpoints\u0022: [\n// \u0022/api/v1/chat/completions\u0022,\n// \u0022/api/v1/completions\u0022,\n// \u0022/api/v1/messages\u0022,\n// \u0022/api/v1/responses\u0022\n// ],\n// \u0022expiration_date\u0022: null,\n// \u0022id\u0022: \u0022openai/gpt-4\u0022,\n// \u0022knowledge_cutoff\u0022: null,\n// \u0022links\u0022: {\n// \u0022details\u0022: \u0022/api/v1/models/openai/gpt-4/endpoints\u0022\n// },\n// \u0022name\u0022: \u0022GPT-4\u0022,\n// \u0022per_request_limits\u0022: null,\n// \u0022pricing\u0022: {\n// \u0022completion\u0022: \u00220.00006\u0022,\n// \u0022image\u0022: \u00220\u0022,\n// \u0022prompt\u0022: \u00220.00003\u0022,\n// \u0022request\u0022: \u00220\u0022\n// },\n// \u0022supported_parameters\u0022: [\n// \u0022temperature\u0022,\n// \u0022top_p\u0022,\n// \u0022max_tokens\u0022\n// ],\n// \u0022supported_voices\u0022: null,\n// \u0022top_provider\u0022: {\n// \u0022context_length\u0022: 8192,\n// \u0022is_moderated\u0022: true,\n// \u0022max_completion_tokens\u0022: 4096\n// }\n// }\n// ]\n// }", "Format": "sdk", "OperationId": "getModels", "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 67, + "Order": 68, "Title": "List models filtered by user provider preferences, privacy settings, and guardrails", "Slug": "listmodelsuser", "Description": "List models filtered by user provider preferences, [privacy settings](https://openrouter.ai/docs/guides/privacy/provider-logging), and [guardrails](https://openrouter.ai/docs/guides/features/guardrails). Returns text-output models by default; pass \u0060output_modalities\u0060 (a comma-separated list of \u0060text\u0060, \u0060image\u0060, \u0060embeddings\u0060, \u0060audio\u0060, \u0060video\u0060, \u0060rerank\u0060, \u0060speech\u0060, \u0060transcription\u0060, or \u0060all\u0060) to include other modalities. If requesting through a regional hostname, the results will be filtered to models that satisfy in-region routing for that region.", "Language": "csharp", - "Code": "using var client = new OpenRouterClient(apiKey);\nvar response = await client.Models.ListForUserAsync();\n\n// Example response:\n// {\n// \u0022data\u0022: [\n// {\n// \u0022architecture\u0022: {\n// \u0022input_modalities\u0022: [\n// \u0022text\u0022\n// ],\n// \u0022instruct_type\u0022: \u0022chatml\u0022,\n// \u0022modality\u0022: \u0022text-\\u003Etext\u0022,\n// \u0022output_modalities\u0022: [\n// \u0022text\u0022\n// ],\n// \u0022tokenizer\u0022: \u0022GPT\u0022\n// },\n// \u0022canonical_slug\u0022: \u0022openai/gpt-4\u0022,\n// \u0022context_length\u0022: 8192,\n// \u0022created\u0022: 1692901234,\n// \u0022default_parameters\u0022: null,\n// \u0022description\u0022: \u0022GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.\u0022,\n// \u0022expiration_date\u0022: null,\n// \u0022id\u0022: \u0022openai/gpt-4\u0022,\n// \u0022knowledge_cutoff\u0022: null,\n// \u0022links\u0022: {\n// \u0022details\u0022: \u0022/api/v1/models/openai/gpt-4/endpoints\u0022\n// },\n// \u0022name\u0022: \u0022GPT-4\u0022,\n// \u0022per_request_limits\u0022: null,\n// \u0022pricing\u0022: {\n// \u0022completion\u0022: \u00220.00006\u0022,\n// \u0022image\u0022: \u00220\u0022,\n// \u0022prompt\u0022: \u00220.00003\u0022,\n// \u0022request\u0022: \u00220\u0022\n// },\n// \u0022supported_parameters\u0022: [\n// \u0022temperature\u0022,\n// \u0022top_p\u0022,\n// \u0022max_tokens\u0022\n// ],\n// \u0022supported_voices\u0022: null,\n// \u0022top_provider\u0022: {\n// \u0022context_length\u0022: 8192,\n// \u0022is_moderated\u0022: true,\n// \u0022max_completion_tokens\u0022: 4096\n// }\n// }\n// ]\n// }", + "Code": "using var client = new OpenRouterClient(apiKey);\nvar response = await client.Models.ListForUserAsync();\n\n// Example response:\n// {\n// \u0022data\u0022: [\n// {\n// \u0022architecture\u0022: {\n// \u0022input_modalities\u0022: [\n// \u0022text\u0022\n// ],\n// \u0022instruct_type\u0022: \u0022chatml\u0022,\n// \u0022modality\u0022: \u0022text-\\u003Etext\u0022,\n// \u0022output_modalities\u0022: [\n// \u0022text\u0022\n// ],\n// \u0022tokenizer\u0022: \u0022GPT\u0022\n// },\n// \u0022canonical_slug\u0022: \u0022openai/gpt-4\u0022,\n// \u0022context_length\u0022: 8192,\n// \u0022created\u0022: 1692901234,\n// \u0022default_parameters\u0022: null,\n// \u0022description\u0022: \u0022GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.\u0022,\n// \u0022endpoints\u0022: [\n// \u0022/api/v1/chat/completions\u0022,\n// \u0022/api/v1/completions\u0022,\n// \u0022/api/v1/messages\u0022,\n// \u0022/api/v1/responses\u0022\n// ],\n// \u0022expiration_date\u0022: null,\n// \u0022id\u0022: \u0022openai/gpt-4\u0022,\n// \u0022knowledge_cutoff\u0022: null,\n// \u0022links\u0022: {\n// \u0022details\u0022: \u0022/api/v1/models/openai/gpt-4/endpoints\u0022\n// },\n// \u0022name\u0022: \u0022GPT-4\u0022,\n// \u0022per_request_limits\u0022: null,\n// \u0022pricing\u0022: {\n// \u0022completion\u0022: \u00220.00006\u0022,\n// \u0022image\u0022: \u00220\u0022,\n// \u0022prompt\u0022: \u00220.00003\u0022,\n// \u0022request\u0022: \u00220\u0022\n// },\n// \u0022supported_parameters\u0022: [\n// \u0022temperature\u0022,\n// \u0022top_p\u0022,\n// \u0022max_tokens\u0022\n// ],\n// \u0022supported_voices\u0022: null,\n// \u0022top_provider\u0022: {\n// \u0022context_length\u0022: 8192,\n// \u0022is_moderated\u0022: true,\n// \u0022max_completion_tokens\u0022: 4096\n// }\n// }\n// ]\n// }", "Format": "sdk", "OperationId": "listModelsUser", "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 68, + "Order": 69, "Title": "Create authorization code", "Slug": "createauthkeyscode", "Description": "Create an authorization code for the PKCE flow to generate a user-controlled API key", @@ -749,7 +760,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 69, + "Order": 70, "Title": "Exchange a workload identity token", "Slug": "createoauthtoken", "Description": "RFC 8693 token exchange. Presents a JWT from an issuer your organization trusts (Settings \u2192 Workload identity) and receives a short-lived OpenRouter access token that acts as the API key the matching federation policy targets.", @@ -760,7 +771,7 @@ "Setup": null }, { - "Order": 70, + "Order": 71, "Title": "Exchange authorization code for API key", "Slug": "exchangeauthcodeforapikey", "Description": "Exchange an authorization code from the PKCE flow for a user-controlled API key", @@ -771,7 +782,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 71, + "Order": 72, "Title": "OpenRouter access token signing keys", "Slug": "listoauthjwks", "Description": "RFC 7517 JWK Set containing the public keys OpenRouter signs access tokens with.", @@ -782,7 +793,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 72, + "Order": 73, "Title": "Create an observability destination", "Slug": "createobservabilitydestination", "Description": "Create a new observability destination. A maximum of 5 destinations per type is allowed. Defaults to the authenticated entity\u0027s default workspace; use the \u0060workspace_id\u0060 body field to scope to a different workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -793,7 +804,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 73, + "Order": 74, "Title": "Delete an observability destination", "Slug": "deleteobservabilitydestination", "Description": "Delete an existing observability destination. This performs a soft delete. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -804,7 +815,7 @@ "Setup": null }, { - "Order": 74, + "Order": 75, "Title": "Get an observability destination", "Slug": "getobservabilitydestination", "Description": "Fetch a single observability destination by its UUID. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -815,7 +826,7 @@ "Setup": null }, { - "Order": 75, + "Order": 76, "Title": "List observability destinations", "Slug": "listobservabilitydestinations", "Description": "List the observability destinations configured for the authenticated entity\u0027s default workspace. Use the \u0060workspace_id\u0060 query parameter to scope the result to a different workspace. Only destinations with stable release status are surfaced \u2014 destinations of other types are excluded. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -826,7 +837,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 76, + "Order": 77, "Title": "Update an observability destination", "Slug": "updateobservabilitydestination", "Description": "Update an existing observability destination. Only the fields provided in the request body are updated. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -837,7 +848,7 @@ "Setup": null }, { - "Order": 77, + "Order": 78, "Title": "Get organization settings", "Slug": "getorganizationsettings", "Description": "Get the settings of the organization associated with the authenticated management key. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -848,7 +859,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 78, + "Order": 79, "Title": "List organization members", "Slug": "listorganizationmembers", "Description": "List all members of the organization associated with the authenticated management key. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -859,7 +870,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 79, + "Order": 80, "Title": "Update organization settings", "Slug": "updateorganizationsettings", "Description": "Update the settings of the organization associated with the authenticated management key. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -870,7 +881,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 80, + "Order": 81, "Title": "Create a preset from a chat-completions request body", "Slug": "createpresetschatcompletions", "Description": "Creates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap with the preset config are persisted; other fields (e.g. \u0060messages\u0060, \u0060stream\u0060, \u0060prompt\u0060) are silently ignored.", @@ -881,7 +892,7 @@ "Setup": null }, { - "Order": 81, + "Order": 82, "Title": "Create a preset from a messages request body", "Slug": "createpresetsmessages", "Description": "Creates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap with the preset config are persisted; other fields (e.g. \u0060messages\u0060, \u0060stream\u0060, \u0060prompt\u0060) are silently ignored.", @@ -892,7 +903,7 @@ "Setup": null }, { - "Order": 82, + "Order": 83, "Title": "Create a preset from a responses request body", "Slug": "createpresetsresponses", "Description": "Creates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap with the preset config are persisted; other fields (e.g. \u0060messages\u0060, \u0060stream\u0060, \u0060prompt\u0060) are silently ignored.", @@ -903,7 +914,7 @@ "Setup": null }, { - "Order": 83, + "Order": 84, "Title": "Get a preset", "Slug": "getpreset", "Description": "Retrieves a preset by its slug with its currently designated version inline.", @@ -914,7 +925,7 @@ "Setup": null }, { - "Order": 84, + "Order": 85, "Title": "Get a specific version of a preset", "Slug": "getpresetversion", "Description": "Retrieves a specific version of a preset by its slug and version number.", @@ -925,7 +936,7 @@ "Setup": null }, { - "Order": 85, + "Order": 86, "Title": "List presets", "Slug": "listpresets", "Description": "Lists all presets for the authenticated user, ordered by most recently updated first.", @@ -936,7 +947,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 86, + "Order": 87, "Title": "List versions of a preset", "Slug": "listpresetversions", "Description": "Lists all versions of a preset, ordered by version number ascending (oldest first).", @@ -947,7 +958,7 @@ "Setup": null }, { - "Order": 87, + "Order": 88, "Title": "Activate a validated private endpoint", "Slug": "activateprivateendpoint", "Description": "Make a validated draft routable. Returns 409 when the endpoint was never validated, the validation is stale, or it is already active. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -958,7 +969,7 @@ "Setup": null }, { - "Order": 88, + "Order": 89, "Title": "Create a private endpoint", "Slug": "createprivateendpoint", "Description": "Create a private endpoint as a draft. Drafts are not routable: validate one with \u0060POST /private-endpoints/{id}/validate\u0060, then activate it with \u0060POST /private-endpoints/{id}/activate\u0060. Pass \u0060activate\u0060 to do all three in one call; if validation fails the draft is kept and returned with the failed checks. Send an \u0060Idempotency-Key\u0060 header to make retries safe: a repeated key with the same request returns the endpoint the first request created; reusing it with different fields returns 422 \u0060idempotency_key_reused\u0060. Returns 400 \u0060parameters_invalid\u0060 when \u0060tool_choice\u0060 is declared without \u0060tools\u0060. The response does not echo \u0060declared_parameters\u0060 or \u0060tested_parameters\u0060; read them with \u0060GET /private-endpoints/{id}\u0060. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -969,7 +980,7 @@ "Setup": null }, { - "Order": 89, + "Order": 90, "Title": "Delete a private endpoint", "Slug": "deleteprivateendpoint", "Description": "Delete a private endpoint and stop routing to it. Pass \u0060draft_only=true\u0060 to refuse (409) when the endpoint has been activated. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -980,7 +991,7 @@ "Setup": null }, { - "Order": 90, + "Order": 91, "Title": "Disable a private endpoint", "Slug": "disableprivateendpoint", "Description": "Stop routing to an active endpoint without deleting it. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -991,7 +1002,7 @@ "Setup": null }, { - "Order": 91, + "Order": 92, "Title": "Enable a private endpoint", "Slug": "enableprivateendpoint", "Description": "Resume routing to a disabled endpoint. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -1002,7 +1013,7 @@ "Setup": null }, { - "Order": 92, + "Order": 93, "Title": "Get a private endpoint", "Slug": "getprivateendpoint", "Description": "Get one private endpoint with its upstream configuration and current pricing. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -1013,7 +1024,7 @@ "Setup": null }, { - "Order": 93, + "Order": 94, "Title": "List private endpoints", "Slug": "listprivateendpoints", "Description": "List the organization\u0027s private endpoints, including drafts. Requires the private endpoints entitlement. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -1024,7 +1035,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 94, + "Order": 95, "Title": "Update a private endpoint", "Slug": "updateprivateendpoint", "Description": "Change any of the endpoint fields you own in one call; only the fields present change, and the response is the whole endpoint. \u0060pricing\u0060 and \u0060declared_parameters\u0060 replace their stored value, \u0060settings\u0060 changes only the fields it names (\u0060null\u0060 clears a limit or restores the provider default); routing picks these up for subsequent requests on drafts and active endpoints alike. \u0060upstream_model_id\u0060, \u0060base_url\u0060, \u0060declared_zdr\u0060 and \u0060declared_region\u0060 re-point a draft: an omitted \u0060upstream_model_id\u0060 or \u0060base_url\u0060 keeps the stored one, omitted data-policy declarations are kept while the upstream is unchanged and cleared when it changes, and any upstream change clears earlier validation. Naming an upstream field on an active endpoint returns 409 \u0060already_active\u0060 and writes nothing; delete and re-create instead. Every group is checked before anything is written: 400 \u0060parameters_invalid\u0060 when \u0060tool_choice\u0060 is declared without \u0060tools\u0060 tested or declared, 400 \u0060settings_invalid\u0060 when \u0060max_prompt_tokens\u0060 exceeds the context length, both completion APIs are off, or \u0060excluded_parameters\u0060 names a tested parameter, 422 \u0060pricing_invalid\u0060 for rates the provider strategy cannot represent. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -1035,7 +1046,7 @@ "Setup": null }, { - "Order": 95, + "Order": 96, "Title": "Validate a draft private endpoint", "Slug": "validateprivateendpoint", "Description": "Send a live test request to the draft endpoint using the given workspace\u0027s BYOK credential for its provider. A passing validation is required before activation. Failed checks return 200 with \u0060passed: false\u0060. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -1046,7 +1057,7 @@ "Setup": null }, { - "Order": 96, + "Order": 97, "Title": "Create a private provider", "Slug": "createprivateprovider", "Description": "Create a private, bring-your-own-key provider visible only to your organization. Use its slug as \u0060provider_slug\u0060 when creating private endpoints. Requires both the private endpoints and the private providers entitlements. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -1057,7 +1068,7 @@ "Setup": null }, { - "Order": 97, + "Order": 98, "Title": "Delete a private provider", "Slug": "deleteprivateprovider", "Description": "Delete a private provider. Refuses (409) while any private endpoint still runs under it. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -1068,7 +1079,7 @@ "Setup": null }, { - "Order": 98, + "Order": 99, "Title": "Get a private provider", "Slug": "getprivateprovider", "Description": "Get one of the organization\u2019s private providers by slug. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -1079,7 +1090,7 @@ "Setup": null }, { - "Order": 99, + "Order": 100, "Title": "List private providers", "Slug": "listprivateproviders", "Description": "List the organization\u0027s private providers. Requires the private endpoints entitlement. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -1090,7 +1101,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 100, + "Order": 101, "Title": "Update a private provider", "Slug": "updateprivateprovider", "Description": "Update a private provider\u2019s details or declared data policy. The name and slug cannot change. Refuses (409) a data-policy change while OpenRouter pins the declared policy on one of its endpoints. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -1101,7 +1112,7 @@ "Setup": null }, { - "Order": 101, + "Order": 102, "Title": "List all providers", "Slug": "listproviders", "Description": "Generated from OpenAPI examples.", @@ -1112,7 +1123,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 102, + "Order": 103, "Title": "Submit a rerank request", "Slug": "creatererank", "Description": "Submits a rerank request to the rerank router", @@ -1123,7 +1134,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 103, + "Order": 104, "Title": "Create a response", "Slug": "createresponses", "Description": "Creates a streaming or non-streaming response using OpenResponses API format", @@ -1134,7 +1145,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 104, + "Order": 105, "Title": "Create a SCIM group mapping", "Slug": "createscimgroupmapping", "Description": "Create a SCIM group-to-workspace role mapping. Creating a mapping that already exists with the same role succeeds and re-applies the mapping to the group members. Requesting a different role for an existing mapping returns 409. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -1145,7 +1156,7 @@ "Setup": null }, { - "Order": 105, + "Order": 106, "Title": "Start a SCIM directory sync", "Slug": "createscimsyncjob", "Description": "Start a SCIM directory sync. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -1156,7 +1167,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 106, + "Order": 107, "Title": "Delete a SCIM group mapping", "Slug": "deletescimgroupmapping", "Description": "Delete a SCIM group-to-workspace mapping. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -1167,7 +1178,7 @@ "Setup": null }, { - "Order": 107, + "Order": 108, "Title": "Get SCIM directory sync status", "Slug": "getscimsyncjob", "Description": "Get SCIM directory sync status. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -1178,7 +1189,7 @@ "Setup": null }, { - "Order": 108, + "Order": 109, "Title": "List SCIM groups", "Slug": "listscimgroups", "Description": "List SCIM groups for the organization. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -1189,7 +1200,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 109, + "Order": 110, "Title": "List SCIM group mappings", "Slug": "listscimgroupmappings", "Description": "List SCIM group-to-workspace mappings for the organization. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -1200,7 +1211,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 110, + "Order": 111, "Title": "Get a SCIM group mapping", "Slug": "getscimgroupmapping", "Description": "Get a SCIM group-to-workspace mapping. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -1211,7 +1222,7 @@ "Setup": null }, { - "Order": 111, + "Order": 112, "Title": "Update a SCIM group mapping", "Slug": "updatescimgroupmapping", "Description": "Update a SCIM group mapping role. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -1222,7 +1233,7 @@ "Setup": null }, { - "Order": 112, + "Order": 113, "Title": "Create transcription", "Slug": "createaudiotranscriptions", "Description": "Transcribes audio into text. Accepts base64-encoded audio input as JSON, an OpenAI-style multipart/form-data file upload, or a URL the provider downloads directly, and returns the transcribed text.", @@ -1233,7 +1244,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 113, + "Order": 114, "Title": "Submit a System One request", "Slug": "createsystemone", "Description": "Sends state and typed questions to a System One model such as Jev and returns its answers. Compatible with the TypeSafe SDKs. Bare System One model IDs such as \u0060jev-1.13\u0060 and \u0060jev-latest\u0060 are mapped onto the \u0060typesafe/\u0060 namespace.", @@ -1244,7 +1255,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 114, + "Order": 115, "Title": "Get a server tool", "Slug": "gettool", "Description": "One server tool by canonical name or any accepted alias, with the models that run it natively.", @@ -1255,7 +1266,7 @@ "Setup": null }, { - "Order": 115, + "Order": 116, "Title": "List server tools", "Slug": "listtools", "Description": "Lists every server tool OpenRouter can run on behalf of a model: accepted \u0060tools[].type\u0060 spellings per API format, the engines behind it with their pricing, and how many endpoints run it natively.", @@ -1266,7 +1277,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 116, + "Order": 117, "Title": "Create speech", "Slug": "createaudiospeech", "Description": "Synthesizes audio from the input text. Returns a raw audio bytestream in the requested format (e.g. mp3, pcm, wav).", @@ -1277,7 +1288,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 117, + "Order": 118, "Title": "Copy workspace secrets to an intern", "Slug": "copyvaultsecretstointern", "Description": "Copies the named workspace secrets into one intern\u0027s scope, replacing any intern secret with the same name. Each copy keeps the source value and host bindings. Every name must exist in the workspace scope or the request fails with 404 and nothing is copied. A workspace secret whose \u0060hosts\u0060 is \u0060null\u0060 cannot be copied: the request fails with 409 and nothing is copied until that secret is stored again with hosts. The response carries metadata only. Writes return 503 while vault writes are disabled for the caller. The scope is selected by the API key: workspace routes act on the key\u0027s active workspace and intern routes act on one intern inside that workspace. There is no default workspace and no fallback to another scope. Every vault route, including reads, requires access to the Intern API programme and returns 404 outside it. An intern\u0027s own API key is confined to that intern: it can always read the intern\u0027s secrets and effective secrets, writes to them follow the rules above, and every other intern and every workspace route answers 404. Requests on regional hostnames such as \u0060eu.openrouter.ai\u0060 are refused. [API key](/docs/api-reference/authentication) required.", @@ -1288,7 +1299,7 @@ "Setup": null }, { - "Order": 118, + "Order": 119, "Title": "Delete an intern secret", "Slug": "deleteinternvaultsecret", "Description": "Deletes a secret stored for one intern. Returns 204 with no body on success and 404 when the secret does not exist in the selected scope. Writes return 503 while vault writes are disabled for the caller. The scope is selected by the API key: workspace routes act on the key\u0027s active workspace and intern routes act on one intern inside that workspace. There is no default workspace and no fallback to another scope. Every vault route, including reads, requires access to the Intern API programme and returns 404 outside it. An intern\u0027s own API key is confined to that intern: it can always read the intern\u0027s secrets and effective secrets, writes to them follow the rules above, and every other intern and every workspace route answers 404. Requests on regional hostnames such as \u0060eu.openrouter.ai\u0060 are refused. [API key](/docs/api-reference/authentication) required.", @@ -1299,7 +1310,7 @@ "Setup": null }, { - "Order": 119, + "Order": 120, "Title": "Delete a workspace secret", "Slug": "deletevaultsecret", "Description": "Deletes a secret from the workspace of the authenticated API key. Returns 204 with no body on success and 404 when the secret does not exist in the selected scope. Writes return 503 while vault writes are disabled for the caller. The scope is selected by the API key: workspace routes act on the key\u0027s active workspace and intern routes act on one intern inside that workspace. There is no default workspace and no fallback to another scope. Every vault route, including reads, requires access to the Intern API programme and returns 404 outside it. An intern\u0027s own API key is confined to that intern: it can always read the intern\u0027s secrets and effective secrets, writes to them follow the rules above, and every other intern and every workspace route answers 404. Requests on regional hostnames such as \u0060eu.openrouter.ai\u0060 are refused. [API key](/docs/api-reference/authentication) required.", @@ -1310,7 +1321,7 @@ "Setup": null }, { - "Order": 120, + "Order": 121, "Title": "List the connections an intern can use", "Slug": "listinternconnections", "Description": "Lists the connections in scope for the intern, by the key of their card on the dashboard\u0027s Connections tab: \u0060github\u0060, \u0060slack\u0060, \u0060google\u0060, a catalog MCP server such as \u0060linear\u0060 or \u0060notion\u0060, or \u0060mcp:\u003Chost\u003E\u0060 for a custom MCP server. A connection is listed when it is stored, enabled, and not turned off or hidden for this intern, as the Connections tab lists it; whether its last test passed is not part of the rule. \u0060ori features add\u0060 checks a feature\u0027s \u0060ori.requires.connections\u0060 against this list. \u0060routing\u0060 is the vault\u0027s routing table for the intern: the credentials it holds and what it would inject each for, from the same lookups the egress proxy picks a credential with, GitHub repository coverage read through the installation token and cached. \u0060routing_text\u0060 is that table as the lines the intern reads in its instructions. Never credentials. Returns 404 for an intern the key cannot see. The scope is selected by the API key: workspace routes act on the key\u0027s active workspace and intern routes act on one intern inside that workspace. There is no default workspace and no fallback to another scope. Every vault route, including reads, requires access to the Intern API programme and returns 404 outside it. An intern\u0027s own API key is confined to that intern: it can always read the intern\u0027s secrets and effective secrets, writes to them follow the rules above, and every other intern and every workspace route answers 404. Requests on regional hostnames such as \u0060eu.openrouter.ai\u0060 are refused. [API key](/docs/api-reference/authentication) required.", @@ -1321,7 +1332,7 @@ "Setup": null }, { - "Order": 121, + "Order": 122, "Title": "List the secrets an intern receives", "Slug": "listinterneffectivevaultsecrets", "Description": "Lists, one entry per name, the secret the intern\u0027s outbound requests receive: its own secrets, secrets from an attached vault, and workspace secrets, including ones stored before workspace-scoped storage. Where several vaults hold a name, the entry is the one that wins, in the order intern, attached, workspace. The same resolution decides what outbound requests receive, so this list and the intern\u0027s requests agree. \u0060scope\u0060 says which vault the entry comes from. Responses carry metadata only, never values. Results are ordered by name and paginated with \u0060limit\u0060 and \u0060offset\u0060. Returns 404 when the intern\u0027s attached vault is no longer available, since the intern then receives no secrets. The scope is selected by the API key: workspace routes act on the key\u0027s active workspace and intern routes act on one intern inside that workspace. There is no default workspace and no fallback to another scope. Every vault route, including reads, requires access to the Intern API programme and returns 404 outside it. An intern\u0027s own API key is confined to that intern: it can always read the intern\u0027s secrets and effective secrets, writes to them follow the rules above, and every other intern and every workspace route answers 404. Requests on regional hostnames such as \u0060eu.openrouter.ai\u0060 are refused. [API key](/docs/api-reference/authentication) required.", @@ -1332,7 +1343,7 @@ "Setup": null }, { - "Order": 122, + "Order": 123, "Title": "List intern secrets", "Slug": "listinternvaultsecrets", "Description": "Lists secret metadata stored for one intern. The list includes secrets stored from the dashboard or at provisioning before workspace-scoped storage; where both exist under one name, the one stored through this API is listed. Those older secrets cannot be deleted or copied through this API, and storing the same name through this API replaces them. Responses contain names, bound hosts, fingerprints and creation times, never secret values. Results are ordered by name and paginated with \u0060limit\u0060 and \u0060offset\u0060. The scope is selected by the API key: workspace routes act on the key\u0027s active workspace and intern routes act on one intern inside that workspace. There is no default workspace and no fallback to another scope. Every vault route, including reads, requires access to the Intern API programme and returns 404 outside it. An intern\u0027s own API key is confined to that intern: it can always read the intern\u0027s secrets and effective secrets, writes to them follow the rules above, and every other intern and every workspace route answers 404. Requests on regional hostnames such as \u0060eu.openrouter.ai\u0060 are refused. [API key](/docs/api-reference/authentication) required.", @@ -1343,7 +1354,7 @@ "Setup": null }, { - "Order": 123, + "Order": 124, "Title": "List workspace secrets", "Slug": "listvaultsecrets", "Description": "Lists secret metadata for the workspace of the authenticated API key. The list includes secrets stored from the dashboard or at provisioning before workspace-scoped storage; where both exist under one name, the one stored through this API is listed. Those older secrets cannot be deleted or copied through this API, and storing the same name through this API replaces them. Responses contain names, bound hosts, fingerprints and creation times, never secret values. Results are ordered by name and paginated with \u0060limit\u0060 and \u0060offset\u0060. The scope is selected by the API key: workspace routes act on the key\u0027s active workspace and intern routes act on one intern inside that workspace. There is no default workspace and no fallback to another scope. Every vault route, including reads, requires access to the Intern API programme and returns 404 outside it. An intern\u0027s own API key is confined to that intern: it can always read the intern\u0027s secrets and effective secrets, writes to them follow the rules above, and every other intern and every workspace route answers 404. Requests on regional hostnames such as \u0060eu.openrouter.ai\u0060 are refused. [API key](/docs/api-reference/authentication) required.", @@ -1354,7 +1365,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 124, + "Order": 125, "Title": "Store an intern secret", "Slug": "storeinternvaultsecret", "Description": "Creates or replaces a secret stored for one intern. The value is encrypted at rest and released only to the exact hostnames in \u0060hosts\u0060. The response carries metadata only. Writes return 503 while vault writes are disabled for the caller. The scope is selected by the API key: workspace routes act on the key\u0027s active workspace and intern routes act on one intern inside that workspace. There is no default workspace and no fallback to another scope. Every vault route, including reads, requires access to the Intern API programme and returns 404 outside it. An intern\u0027s own API key is confined to that intern: it can always read the intern\u0027s secrets and effective secrets, writes to them follow the rules above, and every other intern and every workspace route answers 404. Requests on regional hostnames such as \u0060eu.openrouter.ai\u0060 are refused. [API key](/docs/api-reference/authentication) required.", @@ -1365,7 +1376,7 @@ "Setup": null }, { - "Order": 125, + "Order": 126, "Title": "Store a workspace secret", "Slug": "storevaultsecret", "Description": "Creates or replaces a secret in the workspace of the authenticated API key. The value is encrypted at rest and released only to the exact hostnames in \u0060hosts\u0060. The response carries metadata only. Writes return 503 while vault writes are disabled for the caller. The scope is selected by the API key: workspace routes act on the key\u0027s active workspace and intern routes act on one intern inside that workspace. There is no default workspace and no fallback to another scope. Every vault route, including reads, requires access to the Intern API programme and returns 404 outside it. An intern\u0027s own API key is confined to that intern: it can always read the intern\u0027s secrets and effective secrets, writes to them follow the rules above, and every other intern and every workspace route answers 404. Requests on regional hostnames such as \u0060eu.openrouter.ai\u0060 are refused. [API key](/docs/api-reference/authentication) required.", @@ -1376,7 +1387,7 @@ "Setup": null }, { - "Order": 126, + "Order": 127, "Title": "Submit a video generation request", "Slug": "createvideos", "Description": "Submits a video generation request and returns a polling URL to check status", @@ -1387,7 +1398,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 127, + "Order": 128, "Title": "Poll video generation status", "Slug": "getvideos", "Description": "Returns job status and content URLs when completed", @@ -1398,7 +1409,7 @@ "Setup": null }, { - "Order": 128, + "Order": 129, "Title": "Download generated video content", "Slug": "listvideoscontent", "Description": "Streams the generated video content from the upstream provider", @@ -1409,7 +1420,7 @@ "Setup": null }, { - "Order": 129, + "Order": 130, "Title": "List all video generation models", "Slug": "listvideosmodels", "Description": "Returns a list of all available video generation models and their properties", @@ -1420,7 +1431,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 130, + "Order": 131, "Title": "Bulk add members to a workspace", "Slug": "bulkaddworkspacemembers", "Description": "Add multiple organization members to a workspace. Members are assigned the same role they hold in the organization. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -1431,7 +1442,7 @@ "Setup": null }, { - "Order": 131, + "Order": 132, "Title": "Bulk remove members from a workspace", "Slug": "bulkremoveworkspacemembers", "Description": "Remove multiple members from a workspace. Members with active API keys in the workspace cannot be removed. SCIM-managed members cannot be removed; changes must be made in your identity provider. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -1442,7 +1453,7 @@ "Setup": null }, { - "Order": 132, + "Order": 133, "Title": "Create a workspace", "Slug": "createworkspace", "Description": "Create a new workspace for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -1453,7 +1464,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 133, + "Order": 134, "Title": "Delete a workspace", "Slug": "deleteworkspace", "Description": "Delete an existing workspace. Workspaces with active API keys cannot be deleted; remove the keys first. Deleting the default workspace requires confirm_default_workspace_deletion=true. Deleting any workspace permanently deletes its budgets and guardrails and disables its classifiers and broadcast destinations. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -1464,7 +1475,7 @@ "Setup": null }, { - "Order": 134, + "Order": 135, "Title": "Delete a workspace budget", "Slug": "deleteworkspacebudget", "Description": "Remove the budget for a given interval. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -1475,7 +1486,7 @@ "Setup": null }, { - "Order": 135, + "Order": 136, "Title": "Get a workspace", "Slug": "getworkspace", "Description": "Get a single workspace by ID or slug. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -1486,7 +1497,7 @@ "Setup": null }, { - "Order": 136, + "Order": 137, "Title": "Get a workspace budget", "Slug": "getworkspacebudget", "Description": "Retrieve the budget for a given interval. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -1497,7 +1508,7 @@ "Setup": null }, { - "Order": 137, + "Order": 138, "Title": "List workspaces", "Slug": "listworkspaces", "Description": "List all workspaces for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -1508,7 +1519,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 138, + "Order": 139, "Title": "List workspace budgets", "Slug": "listworkspacebudgets", "Description": "List all budgets configured for a workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -1519,7 +1530,7 @@ "Setup": null }, { - "Order": 139, + "Order": 140, "Title": "List workspace members", "Slug": "listworkspacemembers", "Description": "List all members of a workspace. Returns paginated results. For the default workspace, returns all organization members (implicit membership). [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -1530,7 +1541,7 @@ "Setup": "This example assumes \u0060using OpenRouter;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 140, + "Order": 141, "Title": "Create or update a workspace budget", "Slug": "upsertworkspacebudget", "Description": "Create or update the budget for a given interval. Budget limits must strictly decrease as the interval narrows (lifetime \u003E monthly \u003E weekly \u003E daily). The optional \u0060include_byok_in_budgets\u0060 flag is a workspace-wide setting: when provided it applies to every budget interval for the workspace, not just the interval in this request. Note that a change made here is applied to budget enforcement immediately, but an already-open workspace settings page in the web dashboard may keep showing the previous value until it is reloaded. [Management key](/docs/guides/overview/auth/management-api-keys) required.", @@ -1541,7 +1552,7 @@ "Setup": null }, { - "Order": 141, + "Order": 142, "Title": "Update a workspace", "Slug": "updateworkspace", "Description": "Update an existing workspace by ID or slug. [Management key](/docs/guides/overview/auth/management-api-keys) required.", diff --git a/src/libs/OpenRouter/openapi.yaml b/src/libs/OpenRouter/openapi.yaml index 760641f12..52304e0bc 100644 --- a/src/libs/OpenRouter/openapi.yaml +++ b/src/libs/OpenRouter/openapi.yaml @@ -15799,6 +15799,43 @@ ], "type": "object" }, + "Decisions": { + "properties": { + "latency": { + "allOf": [ + { + "$ref": "#/components/schemas/PercentileStats" + }, + { + "description": "Latency percentiles in milliseconds for this workload. Image and video generation report full end-to-end generation time, because their raw latency only measures request acknowledgement; every other workload reports time to first token or result." + } + ] + }, + "request_count": { + "description": "Total requests admitted for this workload in the window.", + "type": [ + "integer", + "null" + ] + }, + "throughput": { + "allOf": [ + { + "$ref": "#/components/schemas/PercentileStats" + }, + { + "description": "Throughput percentiles in tokens per second; pN is the speed that N% of requests reached or exceeded, so p90 is lower than p50. Only meaningful for text generation; null for workloads without token throughput." + } + ] + } + }, + "required": [ + "latency", + "throughput", + "request_count" + ], + "type": "object" + }, "DecisionsBoxAnswer": { "properties": { "box": { @@ -16773,262 +16810,1764 @@ "type": "string" }, { - "enum": [ - "assistant" - ], - "type": "string" + "enum": [ + "assistant" + ], + "type": "string" + }, + { + "enum": [ + "developer" + ], + "type": "string" + } + ] + }, + "type": { + "enum": [ + "message" + ], + "type": "string" + } + }, + "required": [ + "role" + ], + "type": "object" + }, + "EdgeNetworkTimeoutResponse": { + "description": "Infrastructure Timeout - Provider request timed out at edge network", + "example": { + "error": { + "code": 524, + "message": "Request timed out. Please try again later." + } + }, + "properties": { + "error": { + "$ref": "#/components/schemas/EdgeNetworkTimeoutResponseErrorData" + }, + "openrouter_metadata": { + "additionalProperties": {}, + "type": [ + "object", + "null" + ] + }, + "user_id": { + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "error" + ], + "type": "object" + }, + "EdgeNetworkTimeoutResponseErrorData": { + "description": "Error data for EdgeNetworkTimeoutResponse", + "example": { + "code": 524, + "message": "Request timed out. Please try again later." + }, + "properties": { + "code": { + "type": "integer" + }, + "message": { + "type": "string" + }, + "metadata": { + "additionalProperties": {}, + "type": [ + "object", + "null" + ] + } + }, + "required": [ + "code", + "message" + ], + "type": "object" + }, + "Embeddings": { + "properties": { + "latency": { + "allOf": [ + { + "$ref": "#/components/schemas/PercentileStats" + }, + { + "description": "Latency percentiles in milliseconds for this workload. Image and video generation report full end-to-end generation time, because their raw latency only measures request acknowledgement; every other workload reports time to first token or result." + } + ] + }, + "request_count": { + "description": "Total requests admitted for this workload in the window.", + "type": [ + "integer", + "null" + ] + }, + "throughput": { + "allOf": [ + { + "$ref": "#/components/schemas/PercentileStats" + }, + { + "description": "Throughput percentiles in tokens per second; pN is the speed that N% of requests reached or exceeded, so p90 is lower than p50. Only meaningful for text generation; null for workloads without token throughput." + } + ] + } + }, + "required": [ + "latency", + "throughput", + "request_count" + ], + "type": "object" + }, + "EndpointInfo": { + "example": { + "model": "openai/gpt-4o", + "provider": "OpenAI", + "selected": true + }, + "properties": { + "model": { + "type": "string" + }, + "provider": { + "type": "string" + }, + "selected": { + "type": "boolean" + } + }, + "required": [ + "provider", + "model", + "selected" + ], + "type": "object" + }, + "EndpointsMetadata": { + "example": { + "available": [ + { + "model": "openai/gpt-4o", + "provider": "OpenAI", + "selected": true + } + ], + "total": 3 + }, + "properties": { + "available": { + "items": { + "$ref": "#/components/schemas/EndpointInfo" + }, + "type": "array" + }, + "total": { + "type": "integer" + } + }, + "required": [ + "total", + "available" + ], + "type": "object" + }, + "EndpointStatus": { + "enum": [ + 0, + -1, + -2, + -3, + -5, + -10 + ], + "example": 0, + "type": "integer", + "x-speakeasy-unknown-values": "allow" + }, + "EnumCapability": { + "description": "A parameter that accepts one of a discrete set of string values.", + "example": { + "type": "enum", + "values": [ + "1K", + "2K", + "4K" + ] + }, + "properties": { + "type": { + "enum": [ + "enum" + ], + "type": "string" + }, + "values": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "type", + "values" + ], + "type": "object" + }, + "ErrorEvent": { + "allOf": [ + { + "$ref": "#/components/schemas/BaseErrorEvent" + }, + { + "properties": {}, + "type": "object" + } + ], + "description": "Event emitted when an error occurs during streaming", + "example": { + "code": "rate_limit_exceeded", + "message": "Rate limit exceeded. Please try again later.", + "param": null, + "sequence_number": 2, + "type": "error" + } + }, + "ExternalUser": { + "additionalProperties": false, + "example": { + "created_at": "2026-09-16T12:00:00Z", + "is_active": true, + "updated_at": "2026-09-16T12:00:00Z", + "user": "employee_123" + }, + "properties": { + "created_at": { + "description": "Registration creation time.", + "example": "2026-09-16T12:00:00Z", + "format": "date-time", + "type": "string" + }, + "is_active": { + "description": "Whether this registration is active. Not an inference authorization decision.", + "example": true, + "type": "boolean" + }, + "updated_at": { + "description": "Last registration lifecycle update time.", + "example": "2026-09-16T12:00:00Z", + "format": "date-time", + "type": "string" + }, + "user": { + "description": "Immutable case-sensitive tracking string supplied as user on inference requests or as external.user on API keys: 1 to 512 characters, well-formed Unicode, no NUL, no surrounding whitespace. URL-encode it in resource paths; an ID of `.` or `..` cannot be addressed by path, so look it up with the list filter.", + "example": "employee_123", + "maxLength": 512, + "minLength": 1, + "pattern": "^(?!\\s)(?![\\s\\S]*\\s$)[^\\u0000]+$", + "type": "string" + } + }, + "required": [ + "user", + "is_active", + "created_at", + "updated_at" + ], + "type": "object" + }, + "ExternalUserResponse": { + "example": { + "data": { + "created_at": "2026-09-16T12:00:00Z", + "is_active": true, + "updated_at": "2026-09-16T12:00:00Z", + "user": "employee_123" + } + }, + "properties": { + "data": { + "$ref": "#/components/schemas/ExternalUser" + } + }, + "required": [ + "data" + ], + "type": "object" + }, + "ExtractionAsset": { + "additionalProperties": false, + "description": "An image or PDF sent once and referenced by its key in the `assets` map. `data_base64` is the file in standard base64 with no `data:` prefix. PDF is read by document models only.", + "properties": { + "data_base64": { + "minLength": 1, + "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$", + "type": "string" + }, + "format": { + "enum": [ + "png", + "jpg", + "jpeg", + "pdf" + ], + "type": "string", + "x-speakeasy-unknown-values": "allow" + }, + "type": { + "enum": [ + "image", + "document" + ], + "type": "string", + "x-speakeasy-unknown-values": "allow" + } + }, + "required": [ + "format", + "data_base64" + ], + "type": "object" + }, + "ExtractionDateAnswer": { + "properties": { + "confidence": { + "format": "double", + "type": "number" + }, + "guess": { + "description": "The most likely value even when `value` is null because `p_null` crossed the threshold.", + "type": "string" + }, + "p_null": { + "description": "Probability that the state contains nothing for this field.", + "format": "double", + "type": "number" + }, + "source": { + "description": "Set to `image` or `document` when the answer was read from an image or a PDF rather than the state text.", + "enum": [ + "state", + "image", + "document" + ], + "type": "string", + "x-speakeasy-unknown-values": "allow" + }, + "span": { + "description": "Unicode code point offsets [start, end) into the state text: index code points (not UTF-16 code units or UTF-8 bytes), so an emoji or accented letter counts once.", + "items": { + "type": "integer" + }, + "maxItems": 2, + "minItems": 2, + "type": "array" + }, + "spell_confidence": { + "description": "Confidence in the spelling of text read from an image.", + "format": "double", + "type": "number" + }, + "type": { + "enum": [ + "date" + ], + "type": "string" + }, + "value": { + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "value" + ], + "type": "object" + }, + "ExtractionDateField": { + "additionalProperties": false, + "properties": { + "instructions": { + "description": "What the field should contain.", + "type": "string" + }, + "null_threshold": { + "description": "Probability of null above which `value` is null. Default 0.5.", + "format": "double", + "maximum": 1, + "minimum": 0, + "type": "number" + }, + "type": { + "enum": [ + "date" + ], + "type": "string" + } + }, + "required": [ + "type" + ], + "type": "object" + }, + "ExtractionDatetimeAnswer": { + "properties": { + "confidence": { + "format": "double", + "type": "number" + }, + "guess": { + "description": "The most likely value even when `value` is null because `p_null` crossed the threshold.", + "type": "string" + }, + "p_null": { + "description": "Probability that the state contains nothing for this field.", + "format": "double", + "type": "number" + }, + "source": { + "description": "Set to `image` or `document` when the answer was read from an image or a PDF rather than the state text.", + "enum": [ + "state", + "image", + "document" + ], + "type": "string", + "x-speakeasy-unknown-values": "allow" + }, + "span": { + "description": "Unicode code point offsets [start, end) into the state text: index code points (not UTF-16 code units or UTF-8 bytes), so an emoji or accented letter counts once.", + "items": { + "type": "integer" + }, + "maxItems": 2, + "minItems": 2, + "type": "array" + }, + "spell_confidence": { + "description": "Confidence in the spelling of text read from an image.", + "format": "double", + "type": "number" + }, + "type": { + "enum": [ + "datetime" + ], + "type": "string" + }, + "value": { + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "value" + ], + "type": "object" + }, + "ExtractionDatetimeField": { + "additionalProperties": false, + "properties": { + "instructions": { + "description": "What the field should contain.", + "type": "string" + }, + "null_threshold": { + "description": "Probability of null above which `value` is null. Default 0.5.", + "format": "double", + "maximum": 1, + "minimum": 0, + "type": "number" + }, + "type": { + "enum": [ + "datetime" + ], + "type": "string" + } + }, + "required": [ + "type" + ], + "type": "object" + }, + "ExtractionDurationAnswer": { + "properties": { + "confidence": { + "format": "double", + "type": "number" + }, + "guess": { + "description": "The most likely value even when `value` is null because `p_null` crossed the threshold.", + "format": "double", + "type": "number" + }, + "p_null": { + "description": "Probability that the state contains nothing for this field.", + "format": "double", + "type": "number" + }, + "source": { + "description": "Set to `image` or `document` when the answer was read from an image or a PDF rather than the state text.", + "enum": [ + "state", + "image", + "document" + ], + "type": "string", + "x-speakeasy-unknown-values": "allow" + }, + "span": { + "description": "Unicode code point offsets [start, end) into the state text: index code points (not UTF-16 code units or UTF-8 bytes), so an emoji or accented letter counts once.", + "items": { + "type": "integer" + }, + "maxItems": 2, + "minItems": 2, + "type": "array" + }, + "spell_confidence": { + "description": "Confidence in the spelling of text read from an image.", + "format": "double", + "type": "number" + }, + "type": { + "enum": [ + "duration" + ], + "type": "string" + }, + "unit": { + "description": "The unit `value` is expressed in.", + "type": "string" + }, + "value": { + "format": "double", + "type": [ + "number", + "null" + ] + } + }, + "required": [ + "type", + "value" + ], + "type": "object" + }, + "ExtractionDurationField": { + "additionalProperties": false, + "properties": { + "decimals": { + "description": "Decimal places kept in `value`.", + "maximum": 6, + "minimum": 0, + "type": "integer" + }, + "instructions": { + "description": "What the field should contain.", + "type": "string" + }, + "integer": { + "type": "boolean" + }, + "null_threshold": { + "description": "Probability of null above which `value` is null. Default 0.5.", + "format": "double", + "maximum": 1, + "minimum": 0, + "type": "number" + }, + "type": { + "enum": [ + "duration" + ], + "type": "string" + }, + "unit": { + "description": "seconds, minutes, hours, days, weeks, months or years.", + "type": "string" + } + }, + "required": [ + "type" + ], + "type": "object" + }, + "ExtractionEstimateAnswer": { + "properties": { + "confidence": { + "format": "double", + "type": "number" + }, + "guess": { + "anyOf": [ + { + "format": "double", + "type": "number" + }, + { + "type": "string" + } + ], + "description": "The most likely value even when `value` is null because `p_null` crossed the threshold." + }, + "mean": { + "anyOf": [ + { + "format": "double", + "type": "number" + }, + { + "type": "string" + } + ] + }, + "median": { + "anyOf": [ + { + "format": "double", + "type": "number" + }, + { + "type": "string" + } + ] + }, + "p_above": { + "description": "Probability mass above `max`.", + "format": "double", + "type": "number" + }, + "p_below": { + "description": "Probability mass below `min`.", + "format": "double", + "type": "number" + }, + "p_null": { + "description": "Probability that the state contains nothing for this field.", + "format": "double", + "type": "number" + }, + "p10": { + "anyOf": [ + { + "format": "double", + "type": "number" + }, + { + "type": "string" + } + ] + }, + "p90": { + "anyOf": [ + { + "format": "double", + "type": "number" + }, + { + "type": "string" + } + ] + }, + "quantiles": { + "description": "99 percentiles, present when the provider is asked for quantiles.", + "items": { + "anyOf": [ + { + "format": "double", + "type": "number" + }, + { + "type": "string" + } + ] + }, + "type": "array" + }, + "source": { + "description": "Set to `image` or `document` when the answer was read from an image or a PDF rather than the state text.", + "enum": [ + "state", + "image", + "document" + ], + "type": "string", + "x-speakeasy-unknown-values": "allow" + }, + "spell_confidence": { + "description": "Confidence in the spelling of text read from an image.", + "format": "double", + "type": "number" + }, + "type": { + "enum": [ + "estimate" + ], + "type": "string" + }, + "value": { + "anyOf": [ + { + "format": "double", + "type": "number" + }, + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "type", + "value" + ], + "type": "object" + }, + "ExtractionEstimateField": { + "additionalProperties": false, + "properties": { + "instructions": { + "description": "What the field should contain.", + "type": "string" + }, + "max": { + "anyOf": [ + { + "format": "double", + "type": "number" + }, + { + "type": "string" + } + ] + }, + "min": { + "anyOf": [ + { + "format": "double", + "type": "number" + }, + { + "type": "string" + } + ] + }, + "null_threshold": { + "description": "Probability of null above which `value` is null. Default 0.5.", + "format": "double", + "maximum": 1, + "minimum": 0, + "type": "number" + }, + "scale": { + "enum": [ + "linear", + "log" + ], + "type": "string", + "x-speakeasy-unknown-values": "allow" + }, + "step": { + "anyOf": [ + { + "exclusiveMinimum": 0, + "format": "double", + "type": "number" + }, + { + "enum": [ + "month" + ], + "type": "string" + }, + { + "enum": [ + "year" + ], + "type": "string" + } + ] + }, + "type": { + "enum": [ + "estimate" + ], + "type": "string" + }, + "unit": { + "type": "string" + } + }, + "required": [ + "type", + "min", + "max" + ], + "type": "object" + }, + "ExtractionForecastAnswer": { + "properties": { + "confidence": { + "format": "double", + "type": "number" + }, + "guess": { + "description": "The most likely value even when `value` is null because `p_null` crossed the threshold.", + "items": { + "anyOf": [ + { + "format": "double", + "type": "number" + }, + { + "type": "string" + } + ] + }, + "type": "array" + }, + "mean": { + "items": { + "anyOf": [ + { + "format": "double", + "type": "number" + }, + { + "type": "string" + } + ] + }, + "type": "array" + }, + "median": { + "items": { + "anyOf": [ + { + "format": "double", + "type": "number" + }, + { + "type": "string" + } + ] + }, + "type": "array" + }, + "p_null": { + "description": "Probability that the state contains nothing for this field.", + "format": "double", + "type": "number" + }, + "p10": { + "items": { + "anyOf": [ + { + "format": "double", + "type": "number" + }, + { + "type": "string" + } + ] + }, + "type": "array" + }, + "p90": { + "items": { + "anyOf": [ + { + "format": "double", + "type": "number" + }, + { + "type": "string" + } + ] + }, + "type": "array" + }, + "source": { + "description": "Set to `image` or `document` when the answer was read from an image or a PDF rather than the state text.", + "enum": [ + "state", + "image", + "document" + ], + "type": "string", + "x-speakeasy-unknown-values": "allow" + }, + "spell_confidence": { + "description": "Confidence in the spelling of text read from an image.", + "format": "double", + "type": "number" + }, + "steps": { + "items": { + "$ref": "#/components/schemas/ExtractionForecastStep" + }, + "type": "array" + }, + "type": { + "enum": [ + "forecast" + ], + "type": "string" + }, + "value": { + "items": { + "anyOf": [ + { + "format": "double", + "type": "number" + }, + { + "type": "string" + } + ] + }, + "type": [ + "array", + "null" + ] + } + }, + "required": [ + "type", + "value" + ], + "type": "object" + }, + "ExtractionForecastField": { + "additionalProperties": false, + "properties": { + "horizon": { + "description": "Number of forecast steps.", + "maximum": 64, + "minimum": 1, + "type": "integer" + }, + "instructions": { + "description": "What the field should contain.", + "type": "string" + }, + "interval": { + "enum": [ + "step", + "minute", + "hour", + "day", + "week", + "month", + "quarter", + "year" + ], + "type": "string", + "x-speakeasy-unknown-values": "allow" + }, + "max": { + "anyOf": [ + { + "format": "double", + "type": "number" + }, + { + "type": "string" + } + ] + }, + "min": { + "anyOf": [ + { + "format": "double", + "type": "number" + }, + { + "type": "string" + } + ] + }, + "null_threshold": { + "description": "Probability of null above which `value` is null. Default 0.5.", + "format": "double", + "maximum": 1, + "minimum": 0, + "type": "number" + }, + "scale": { + "enum": [ + "linear", + "log" + ], + "type": "string", + "x-speakeasy-unknown-values": "allow" + }, + "step": { + "anyOf": [ + { + "exclusiveMinimum": 0, + "format": "double", + "type": "number" + }, + { + "enum": [ + "month" + ], + "type": "string" + }, + { + "enum": [ + "year" + ], + "type": "string" + } + ] + }, + "type": { + "enum": [ + "forecast" + ], + "type": "string" + }, + "unit": { + "type": "string" + } + }, + "required": [ + "type", + "min", + "max", + "horizon", + "interval" + ], + "type": "object" + }, + "ExtractionForecastStep": { + "properties": { + "mean": { + "anyOf": [ + { + "format": "double", + "type": "number" + }, + { + "type": "string" + } + ] + }, + "median": { + "anyOf": [ + { + "format": "double", + "type": "number" + }, + { + "type": "string" + } + ] + }, + "p_above": { + "description": "Probability mass above `max`.", + "format": "double", + "type": "number" + }, + "p_below": { + "description": "Probability mass below `min`.", + "format": "double", + "type": "number" + }, + "p10": { + "anyOf": [ + { + "format": "double", + "type": "number" + }, + { + "type": "string" + } + ] + }, + "p90": { + "anyOf": [ + { + "format": "double", + "type": "number" + }, + { + "type": "string" + } + ] + }, + "quantiles": { + "description": "99 percentiles, present when the provider is asked for quantiles.", + "items": { + "anyOf": [ + { + "format": "double", + "type": "number" + }, + { + "type": "string" + } + ] + }, + "type": "array" + }, + "value": { + "anyOf": [ + { + "format": "double", + "type": "number" + }, + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "value" + ], + "type": "object" + }, + "ExtractionListAnswer": { + "properties": { + "confidence": { + "format": "double", + "type": "number" + }, + "confidences": { + "description": "One confidence per item of `value`, in the same order.", + "items": { + "format": "double", + "type": "number" + }, + "type": "array" + }, + "guess": { + "description": "The most likely value even when `value` is null because `p_null` crossed the threshold.", + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "format": "double", + "type": "number" + } + ] + }, + "type": "array" + }, + "p_null": { + "description": "Probability that the state contains nothing for this field.", + "format": "double", + "type": "number" + }, + "source": { + "description": "Set to `image` or `document` when the answer was read from an image or a PDF rather than the state text.", + "enum": [ + "state", + "image", + "document" + ], + "type": "string", + "x-speakeasy-unknown-values": "allow" + }, + "spans": { + "items": { + "description": "Unicode code point offsets [start, end) into the state text: index code points (not UTF-16 code units or UTF-8 bytes), so an emoji or accented letter counts once.", + "items": { + "type": "integer" + }, + "maxItems": 2, + "minItems": 2, + "type": "array" + }, + "type": "array" + }, + "spell_confidence": { + "description": "Confidence in the spelling of text read from an image.", + "format": "double", + "type": "number" + }, + "type": { + "enum": [ + "list" + ], + "type": "string" + }, + "value": { + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "format": "double", + "type": "number" + } + ] + }, + "type": [ + "array", + "null" + ] + } + }, + "required": [ + "type", + "value" + ], + "type": "object" + }, + "ExtractionListField": { + "additionalProperties": false, + "properties": { + "decimals": { + "description": "Decimal places kept in `value`.", + "maximum": 6, + "minimum": 0, + "type": "integer" + }, + "instructions": { + "description": "What the field should contain.", + "type": "string" + }, + "items": { + "enum": [ + "text", + "number", + "date" + ], + "type": "string", + "x-speakeasy-unknown-values": "allow" + }, + "null_threshold": { + "description": "Probability of null above which `value` is null. Default 0.5.", + "format": "double", + "maximum": 1, + "minimum": 0, + "type": "number" + }, + "type": { + "enum": [ + "list" + ], + "type": "string" + } + }, + "required": [ + "type", + "items" + ], + "type": "object" + }, + "ExtractionNumberAnswer": { + "properties": { + "confidence": { + "format": "double", + "type": "number" + }, + "guess": { + "description": "The most likely value even when `value` is null because `p_null` crossed the threshold.", + "format": "double", + "type": "number" + }, + "p_null": { + "description": "Probability that the state contains nothing for this field.", + "format": "double", + "type": "number" + }, + "source": { + "description": "Set to `image` or `document` when the answer was read from an image or a PDF rather than the state text.", + "enum": [ + "state", + "image", + "document" + ], + "type": "string", + "x-speakeasy-unknown-values": "allow" + }, + "span": { + "description": "Unicode code point offsets [start, end) into the state text: index code points (not UTF-16 code units or UTF-8 bytes), so an emoji or accented letter counts once.", + "items": { + "type": "integer" + }, + "maxItems": 2, + "minItems": 2, + "type": "array" + }, + "spell_confidence": { + "description": "Confidence in the spelling of text read from an image.", + "format": "double", + "type": "number" + }, + "type": { + "enum": [ + "number" + ], + "type": "string" + }, + "value": { + "format": "double", + "type": [ + "number", + "null" + ] + } + }, + "required": [ + "type", + "value" + ], + "type": "object" + }, + "ExtractionNumberField": { + "additionalProperties": false, + "properties": { + "decimals": { + "description": "Decimal places kept in `value`.", + "maximum": 6, + "minimum": 0, + "type": "integer" + }, + "instructions": { + "description": "What the field should contain.", + "type": "string" + }, + "integer": { + "type": "boolean" + }, + "null_threshold": { + "description": "Probability of null above which `value` is null. Default 0.5.", + "format": "double", + "maximum": 1, + "minimum": 0, + "type": "number" + }, + "type": { + "enum": [ + "number" + ], + "type": "string" + }, + "unit": { + "type": "string" + } + }, + "required": [ + "type" + ], + "type": "object" + }, + "ExtractionsRequest": { + "additionalProperties": false, + "properties": { + "assets": { + "additionalProperties": { + "$ref": "#/components/schemas/ExtractionAsset" + }, + "description": "Assets keyed by reference string. Write a reference wherever the asset belongs in `state` or a field `instructions`; every asset must be referenced at least once. A `state` that is exactly the sole asset's key carries no text of its own and is read as file-only. A model that reads either text or a document per request, not both (ScaleDown Extract with a PDF), needs that form: any other text around the key is state text and is rejected with 400.", + "type": "object" + }, + "fields": { + "additionalProperties": { + "description": "A typed field to extract, compute, estimate or forecast from the state. Which types a model answers is model-specific; unsupported types are rejected with 400.", + "discriminator": { + "mapping": { + "date": "#/components/schemas/ExtractionDateField", + "datetime": "#/components/schemas/ExtractionDatetimeField", + "duration": "#/components/schemas/ExtractionDurationField", + "estimate": "#/components/schemas/ExtractionEstimateField", + "forecast": "#/components/schemas/ExtractionForecastField", + "list": "#/components/schemas/ExtractionListField", + "number": "#/components/schemas/ExtractionNumberField", + "text": "#/components/schemas/ExtractionTextField", + "time": "#/components/schemas/ExtractionTimeField" + }, + "propertyName": "type" + }, + "oneOf": [ + { + "$ref": "#/components/schemas/ExtractionTextField" + }, + { + "$ref": "#/components/schemas/ExtractionNumberField" + }, + { + "$ref": "#/components/schemas/ExtractionDateField" + }, + { + "$ref": "#/components/schemas/ExtractionTimeField" + }, + { + "$ref": "#/components/schemas/ExtractionDatetimeField" + }, + { + "$ref": "#/components/schemas/ExtractionDurationField" + }, + { + "$ref": "#/components/schemas/ExtractionListField" + }, + { + "$ref": "#/components/schemas/ExtractionEstimateField" + }, + { + "$ref": "#/components/schemas/ExtractionForecastField" + } + ] + }, + "description": "Map of field name to typed field spec.", + "type": "object" + }, + "model": { + "type": "string" + }, + "provider": { + "allOf": [ + { + "$ref": "#/components/schemas/ProviderPreferences" }, { - "enum": [ - "developer" - ], - "type": "string" + "description": "Provider routing preferences for the request." } ] }, - "type": { - "enum": [ - "message" - ], + "reference_date": { + "description": "ISO date that anchors dates written without a year.", + "pattern": "^\\d{4}-\\d{2}-\\d{2}$", + "type": "string" + }, + "session_id": { + "description": "A unique identifier for grouping related requests (e.g., a conversation or agent workflow). Used for observability grouping in Broadcast and private logging; never sent to the provider. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 256 characters.", + "example": "session-1234", + "maxLength": 256, + "type": "string" + }, + "state": { + "description": "The text to read from. May be empty only when the request carries image assets.", + "type": "string" + }, + "trace": { + "$ref": "#/components/schemas/TraceConfig" + }, + "user": { + "maxLength": 256, "type": "string" } }, "required": [ - "role" + "model", + "state", + "fields" ], "type": "object" }, - "EdgeNetworkTimeoutResponse": { - "description": "Infrastructure Timeout - Provider request timed out at edge network", - "example": { - "error": { - "code": 524, - "message": "Request timed out. Please try again later." - } - }, + "ExtractionsResponse": { "properties": { - "error": { - "$ref": "#/components/schemas/EdgeNetworkTimeoutResponseErrorData" + "answers": { + "additionalProperties": { + "description": "One answer per requested field. `value` is null when the state does not determine it.", + "discriminator": { + "mapping": { + "date": "#/components/schemas/ExtractionDateAnswer", + "datetime": "#/components/schemas/ExtractionDatetimeAnswer", + "duration": "#/components/schemas/ExtractionDurationAnswer", + "estimate": "#/components/schemas/ExtractionEstimateAnswer", + "forecast": "#/components/schemas/ExtractionForecastAnswer", + "list": "#/components/schemas/ExtractionListAnswer", + "number": "#/components/schemas/ExtractionNumberAnswer", + "text": "#/components/schemas/ExtractionTextAnswer", + "time": "#/components/schemas/ExtractionTimeAnswer" + }, + "propertyName": "type" + }, + "oneOf": [ + { + "$ref": "#/components/schemas/ExtractionTextAnswer" + }, + { + "$ref": "#/components/schemas/ExtractionNumberAnswer" + }, + { + "$ref": "#/components/schemas/ExtractionDateAnswer" + }, + { + "$ref": "#/components/schemas/ExtractionTimeAnswer" + }, + { + "$ref": "#/components/schemas/ExtractionDatetimeAnswer" + }, + { + "$ref": "#/components/schemas/ExtractionDurationAnswer" + }, + { + "$ref": "#/components/schemas/ExtractionListAnswer" + }, + { + "$ref": "#/components/schemas/ExtractionEstimateAnswer" + }, + { + "$ref": "#/components/schemas/ExtractionForecastAnswer" + } + ] + }, + "type": "object" }, - "openrouter_metadata": { - "additionalProperties": {}, - "type": [ - "object", - "null" - ] + "id": { + "type": "string" }, - "user_id": { + "model": { + "type": "string" + }, + "provider": { + "type": "string" + }, + "state_text": { + "description": "The text that spans index into, when requested through provider options.", "type": [ "string", "null" ] + }, + "truncated": { + "description": "True when the provider read only a prefix of the state.", + "type": "boolean" + }, + "usage": { + "$ref": "#/components/schemas/ExtractionsUsage" } }, "required": [ - "error" + "model", + "answers", + "usage" ], "type": "object" }, - "EdgeNetworkTimeoutResponseErrorData": { - "description": "Error data for EdgeNetworkTimeoutResponse", - "example": { - "code": 524, - "message": "Request timed out. Please try again later." - }, + "ExtractionsUsage": { "properties": { - "code": { + "cost": { + "format": "double", + "type": "number" + }, + "image_tokens": { "type": "integer" }, - "message": { - "type": "string" + "input_tokens": { + "type": "integer" }, - "metadata": { - "additionalProperties": {}, - "type": [ - "object", - "null" - ] + "output_tokens": { + "type": "integer" + }, + "passes": { + "description": "Number of upstream passes when the fields did not fit in one.", + "type": "integer" + }, + "schema_tokens": { + "type": "integer" + }, + "state_tokens": { + "type": "integer" } }, "required": [ - "code", - "message" + "input_tokens", + "output_tokens" ], "type": "object" }, - "EndpointInfo": { - "example": { - "model": "openai/gpt-4o", - "provider": "OpenAI", - "selected": true - }, + "ExtractionTextAnswer": { "properties": { - "model": { + "confidence": { + "format": "double", + "type": "number" + }, + "guess": { + "description": "The most likely value even when `value` is null because `p_null` crossed the threshold.", "type": "string" }, - "provider": { + "p_null": { + "description": "Probability that the state contains nothing for this field.", + "format": "double", + "type": "number" + }, + "source": { + "description": "Set to `image` or `document` when the answer was read from an image or a PDF rather than the state text.", + "enum": [ + "state", + "image", + "document" + ], + "type": "string", + "x-speakeasy-unknown-values": "allow" + }, + "span": { + "description": "Unicode code point offsets [start, end) into the state text: index code points (not UTF-16 code units or UTF-8 bytes), so an emoji or accented letter counts once.", + "items": { + "type": "integer" + }, + "maxItems": 2, + "minItems": 2, + "type": "array" + }, + "spell_confidence": { + "description": "Confidence in the spelling of text read from an image.", + "format": "double", + "type": "number" + }, + "type": { + "enum": [ + "text" + ], "type": "string" }, - "selected": { - "type": "boolean" + "value": { + "type": [ + "string", + "null" + ] } }, "required": [ - "provider", - "model", - "selected" + "type", + "value" ], "type": "object" }, - "EndpointsMetadata": { - "example": { - "available": [ - { - "model": "openai/gpt-4o", - "provider": "OpenAI", - "selected": true - } - ], - "total": 3 - }, + "ExtractionTextField": { + "additionalProperties": false, "properties": { - "available": { - "items": { - "$ref": "#/components/schemas/EndpointInfo" - }, - "type": "array" + "instructions": { + "description": "What the field should contain.", + "type": "string" }, - "total": { - "type": "integer" + "null_threshold": { + "description": "Probability of null above which `value` is null. Default 0.5.", + "format": "double", + "maximum": 1, + "minimum": 0, + "type": "number" + }, + "type": { + "enum": [ + "text" + ], + "type": "string" } }, "required": [ - "total", - "available" + "type" ], "type": "object" }, - "EndpointStatus": { - "enum": [ - 0, - -1, - -2, - -3, - -5, - -10 - ], - "example": 0, - "type": "integer", - "x-speakeasy-unknown-values": "allow" - }, - "EnumCapability": { - "description": "A parameter that accepts one of a discrete set of string values.", - "example": { - "type": "enum", - "values": [ - "1K", - "2K", - "4K" - ] - }, + "ExtractionTimeAnswer": { "properties": { - "type": { + "confidence": { + "format": "double", + "type": "number" + }, + "guess": { + "description": "The most likely value even when `value` is null because `p_null` crossed the threshold.", + "type": "string" + }, + "p_null": { + "description": "Probability that the state contains nothing for this field.", + "format": "double", + "type": "number" + }, + "source": { + "description": "Set to `image` or `document` when the answer was read from an image or a PDF rather than the state text.", "enum": [ - "enum" + "state", + "image", + "document" ], - "type": "string" + "type": "string", + "x-speakeasy-unknown-values": "allow" }, - "values": { + "span": { + "description": "Unicode code point offsets [start, end) into the state text: index code points (not UTF-16 code units or UTF-8 bytes), so an emoji or accented letter counts once.", "items": { - "type": "string" + "type": "integer" }, + "maxItems": 2, + "minItems": 2, "type": "array" + }, + "spell_confidence": { + "description": "Confidence in the spelling of text read from an image.", + "format": "double", + "type": "number" + }, + "type": { + "enum": [ + "time" + ], + "type": "string" + }, + "value": { + "type": [ + "string", + "null" + ] } }, "required": [ "type", - "values" + "value" ], "type": "object" }, - "ErrorEvent": { - "allOf": [ - { - "$ref": "#/components/schemas/BaseErrorEvent" - }, - { - "properties": {}, - "type": "object" - } - ], - "description": "Event emitted when an error occurs during streaming", - "example": { - "code": "rate_limit_exceeded", - "message": "Rate limit exceeded. Please try again later.", - "param": null, - "sequence_number": 2, - "type": "error" - } - }, - "ExternalUser": { + "ExtractionTimeField": { "additionalProperties": false, - "example": { - "created_at": "2026-09-16T12:00:00Z", - "is_active": true, - "updated_at": "2026-09-16T12:00:00Z", - "user": "employee_123" - }, "properties": { - "created_at": { - "description": "Registration creation time.", - "example": "2026-09-16T12:00:00Z", - "format": "date-time", + "instructions": { + "description": "What the field should contain.", "type": "string" }, - "is_active": { - "description": "Whether this registration is active. Not an inference authorization decision.", - "example": true, - "type": "boolean" - }, - "updated_at": { - "description": "Last registration lifecycle update time.", - "example": "2026-09-16T12:00:00Z", - "format": "date-time", - "type": "string" + "null_threshold": { + "description": "Probability of null above which `value` is null. Default 0.5.", + "format": "double", + "maximum": 1, + "minimum": 0, + "type": "number" }, - "user": { - "description": "Immutable case-sensitive tracking string supplied as user on inference requests or as external.user on API keys: 1 to 512 characters, well-formed Unicode, no NUL, no surrounding whitespace. URL-encode it in resource paths; an ID of `.` or `..` cannot be addressed by path, so look it up with the list filter.", - "example": "employee_123", - "maxLength": 512, - "minLength": 1, - "pattern": "^(?!\\s)(?![\\s\\S]*\\s$)[^\\u0000]+$", + "type": { + "enum": [ + "time" + ], "type": "string" } }, "required": [ - "user", - "is_active", - "created_at", - "updated_at" - ], - "type": "object" - }, - "ExternalUserResponse": { - "example": { - "data": { - "created_at": "2026-09-16T12:00:00Z", - "is_active": true, - "updated_at": "2026-09-16T12:00:00Z", - "user": "employee_123" - } - }, - "properties": { - "data": { - "$ref": "#/components/schemas/ExternalUser" - } - }, - "required": [ - "data" + "type" ], "type": "object" }, @@ -19097,6 +20636,7 @@ "embeddings", "rerank", "decisions", + "extractions", "video", "tts", "stt", @@ -20443,6 +21983,43 @@ ], "type": "object" }, + "ImageGeneration": { + "properties": { + "latency": { + "allOf": [ + { + "$ref": "#/components/schemas/PercentileStats" + }, + { + "description": "Latency percentiles in milliseconds for this workload. Image and video generation report full end-to-end generation time, because their raw latency only measures request acknowledgement; every other workload reports time to first token or result." + } + ] + }, + "request_count": { + "description": "Total requests admitted for this workload in the window.", + "type": [ + "integer", + "null" + ] + }, + "throughput": { + "allOf": [ + { + "$ref": "#/components/schemas/PercentileStats" + }, + { + "description": "Throughput percentiles in tokens per second; pN is the speed that N% of requests reached or exceeded, so p90 is lower than p50. Only meaningful for text generation; null for workloads without token throughput." + } + ] + } + }, + "required": [ + "latency", + "throughput", + "request_count" + ], + "type": "object" + }, "ImageGenerationProviderPreferences": { "description": "Provider routing preferences and provider-specific passthrough configuration.", "example": { @@ -20626,7 +22203,7 @@ "type": "integer" }, "output_compression": { - "description": "Compression level (0-100) for webp/jpeg output. Ignored for png and by providers without a compression knob.", + "description": "Compression level (0-100) for jpeg/webp output. Ignored by providers without a compression knob; providers that honor it may reject it with other output formats (e.g. OpenAI requires output_format \"jpeg\" or \"webp\").", "example": 100, "type": "integer" }, @@ -20690,7 +22267,7 @@ "type": "string" }, "size": { - "description": "Optional. A convenience shorthand for output dimensions — pass a tier (\"2K\", \"4K\") or explicit pixels (\"2048x2048\") and we normalize it to the right dimensions for the chosen provider. A tier size is equivalent to setting `resolution` and combines with `aspect_ratio`. An explicit pixel size is authoritative: a mismatched `resolution` or `aspect_ratio` alongside it is rejected with a 400.", + "description": "Optional. A convenience shorthand for output dimensions — pass a tier (\"2K\", \"4K\") or explicit pixels (\"2048x2048\"). A tier size is equivalent to setting `resolution` and combines with `aspect_ratio`. Explicit pixel sizes are provider-dependent: providers that accept them treat the value as authoritative and reject a mismatched `resolution` or `aspect_ratio` alongside it with a 400. xAI and Sourceful V2/V2.5 reject explicit pixel sizes (use `resolution` and `aspect_ratio` there); Sourceful V2.6 supports them within its dimension limits and does not allow combining them with `resolution` or `aspect_ratio`.", "example": "2K", "type": "string" }, @@ -26809,6 +28386,19 @@ "example": "GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.", "type": "string" }, + "endpoints": { + "description": "Request API paths that serve this model, derived from the same modality and adapter rules the routers use. A model served only through an alpha surface lists only that path.", + "example": [ + "/api/v1/chat/completions", + "/api/v1/completions", + "/api/v1/messages", + "/api/v1/responses" + ], + "items": { + "type": "string" + }, + "type": "array" + }, "expiration_date": { "description": "The date after which the model may be removed. ISO 8601 date string (YYYY-MM-DD) or null if no expiration.", "example": "2025-06-01", @@ -26890,7 +28480,8 @@ "supported_parameters", "default_parameters", "supported_voices", - "links" + "links", + "endpoints" ], "type": "object" }, @@ -27132,6 +28723,12 @@ "created": 1692901234, "default_parameters": null, "description": "GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.", + "endpoints": [ + "/api/v1/chat/completions", + "/api/v1/completions", + "/api/v1/messages", + "/api/v1/responses" + ], "expiration_date": null, "id": "openai/gpt-4", "knowledge_cutoff": null, @@ -27495,6 +29092,18 @@ ], "type": "object" }, + "NativeTools": { + "properties": { + "type": { + "description": "The provider tool type the request is translated to when this tool runs natively, e.g. `web_search_20260209` on Anthropic or `google_search` on Gemini.", + "type": "string" + } + }, + "required": [ + "type" + ], + "type": "object" + }, "NotFoundResponse": { "description": "Not Found - Resource does not exist", "example": { @@ -32388,6 +33997,31 @@ }, { "properties": { + "access_programs": { + "default": null, + "description": "Access program the upstream provider reported for this response (OpenAI `access_programs`). `null` when the provider reported none, including OpenAI's implicit Standard program.", + "example": { + "cyber": "standard" + }, + "properties": { + "cyber": { + "enum": [ + "standard", + "daybreak_blue", + "daybreak_red" + ], + "type": "string", + "x-speakeasy-unknown-values": "allow" + } + }, + "required": [ + "cyber" + ], + "type": [ + "object", + "null" + ] + }, "alignment": { "$ref": "#/components/schemas/Alignment" }, @@ -36281,6 +37915,40 @@ }, "type": "object" }, + "PerfLast30mByWorkload": { + "additionalProperties": false, + "description": "Endpoint performance over the last 30 minutes, keyed by the kind of request served (e.g. `text_generation`, `image_generation`). Additive to the legacy singular latency and throughput fields; image and video generation report end-to-end latency. Only visible when authenticated with an API key or cookie.", + "properties": { + "decisions": { + "$ref": "#/components/schemas/Decisions" + }, + "embeddings": { + "$ref": "#/components/schemas/Embeddings" + }, + "image_generation": { + "$ref": "#/components/schemas/ImageGeneration" + }, + "rerank": { + "$ref": "#/components/schemas/Rerank" + }, + "stt": { + "$ref": "#/components/schemas/STT" + }, + "text_generation": { + "$ref": "#/components/schemas/TextGeneration" + }, + "tts": { + "$ref": "#/components/schemas/TTS" + }, + "unknown": { + "$ref": "#/components/schemas/Unknown" + }, + "video_generation": { + "$ref": "#/components/schemas/VideoGeneration" + } + }, + "type": "object" + }, "PerRequestLimits": { "description": "Per-request token limits", "example": { @@ -36799,6 +38467,83 @@ "null" ] }, + "Pricing": { + "properties": { + "audio": { + "description": "Price in USD per audio input token", + "type": "string" + }, + "audio_output": { + "description": "Price in USD per audio output token", + "type": "string" + }, + "completion": { + "description": "Price in USD per token for completion (output) generation", + "type": "string" + }, + "discount": { + "description": "Fractional discount applied to this endpoint's pricing; the price is multiplied by (1 - discount) (0 = no discount, 1 = free)", + "format": "double", + "type": "number" + }, + "image": { + "description": "Price in USD per input image", + "type": "string" + }, + "image_output": { + "description": "Price in USD per output image", + "type": "string" + }, + "image_token": { + "description": "Price in USD per image token", + "type": "string" + }, + "input_audio_cache": { + "description": "Price in USD per cached audio input token", + "type": "string" + }, + "input_cache_read": { + "description": "Price in USD per cached input token (read)", + "type": "string" + }, + "input_cache_write": { + "description": "Price per cache-write token, in USD per token. For providers with multiple cache TTLs (e.g. Anthropic), this is the default (5-minute) cache-write rate.", + "type": "string" + }, + "input_cache_write_1h": { + "description": "Price per 1-hour cache-write token, in USD per token. Only present for providers that price an extended (1-hour) cache TTL separately, such as Anthropic.", + "type": "string" + }, + "internal_reasoning": { + "description": "Price in USD per internal reasoning token", + "type": "string" + }, + "overrides": { + "description": "Conditional overrides of the base pricing (e.g. long-context or time-based pricing). An entry applies when all of its condition fields (e.g. min_prompt_tokens, or the utc_start/utc_end time window) match the request; among applicable entries, later entries win per key; price keys absent from an entry inherit the base price. The top-level pricing keys always reflect the price that applies under default conditions.", + "items": { + "$ref": "#/components/schemas/PricingOverride" + }, + "type": "array" + }, + "prompt": { + "description": "Price in USD per token for prompt (input) processing", + "type": "string" + }, + "request": { + "description": "Price in USD per request", + "type": "string" + }, + "web_search": { + "description": "Price in USD per web search", + "type": "string" + } + }, + "required": [ + "prompt", + "completion" + ], + "type": "object" + }, "PricingOverride": { "description": "A conditional override of the base pricing. An entry applies only when all of its condition fields (e.g. min_prompt_tokens, or the utc_start/utc_end time window) match the request; among applicable entries, later entries win per price key; price keys absent from an entry inherit the base price.", "example": { @@ -37969,7 +39714,7 @@ "x-speakeasy-unknown-values": "allow" }, "ProviderOptions": { - "description": "Provider-specific options keyed by provider slug. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped.", + "description": "Provider-specific options keyed by provider slug. The provider segment is case-insensitive; an endpoint tag after `/` must match the endpoint slug exactly. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped.", "example": { "openai": { "max_tokens": 1000 @@ -39198,16 +40943,7 @@ }, "native_tools": { "additionalProperties": { - "properties": { - "type": { - "description": "The provider tool type the request is translated to when this tool runs natively, e.g. `web_search_20260209` on Anthropic or `google_search` on Gemini.", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object" + "$ref": "#/components/schemas/NativeTools" }, "description": "The server tools this endpoint accepts as the provider's own built-in tool (`engine: \"native\"`) instead of an OpenRouter engine, keyed by canonical `openrouter:*` name. Each value names the provider tool type the request is translated to. Where that tool runs (provider-side, or returned to the client as with Anthropic bash) is documented per tool. Empty when the provider has none.", "example": { @@ -39218,421 +40954,10 @@ "type": "object" }, "perf_last_30m_by_workload": { - "additionalProperties": false, - "description": "Endpoint performance over the last 30 minutes, keyed by the kind of request served (e.g. `text_generation`, `image_generation`). Additive to the legacy singular latency and throughput fields; image and video generation report end-to-end latency. Only visible when authenticated with an API key or cookie.", - "properties": { - "decisions": { - "properties": { - "latency": { - "allOf": [ - { - "$ref": "#/components/schemas/PercentileStats" - }, - { - "description": "Latency percentiles in milliseconds for this workload. Image and video generation report full end-to-end generation time, because their raw latency only measures request acknowledgement; every other workload reports time to first token or result." - } - ] - }, - "request_count": { - "description": "Total requests admitted for this workload in the window.", - "type": [ - "integer", - "null" - ] - }, - "throughput": { - "allOf": [ - { - "$ref": "#/components/schemas/PercentileStats" - }, - { - "description": "Throughput percentiles in tokens per second; pN is the speed that N% of requests reached or exceeded, so p90 is lower than p50. Only meaningful for text generation; null for workloads without token throughput." - } - ] - } - }, - "required": [ - "latency", - "throughput", - "request_count" - ], - "type": "object" - }, - "embeddings": { - "properties": { - "latency": { - "allOf": [ - { - "$ref": "#/components/schemas/PercentileStats" - }, - { - "description": "Latency percentiles in milliseconds for this workload. Image and video generation report full end-to-end generation time, because their raw latency only measures request acknowledgement; every other workload reports time to first token or result." - } - ] - }, - "request_count": { - "description": "Total requests admitted for this workload in the window.", - "type": [ - "integer", - "null" - ] - }, - "throughput": { - "allOf": [ - { - "$ref": "#/components/schemas/PercentileStats" - }, - { - "description": "Throughput percentiles in tokens per second; pN is the speed that N% of requests reached or exceeded, so p90 is lower than p50. Only meaningful for text generation; null for workloads without token throughput." - } - ] - } - }, - "required": [ - "latency", - "throughput", - "request_count" - ], - "type": "object" - }, - "image_generation": { - "properties": { - "latency": { - "allOf": [ - { - "$ref": "#/components/schemas/PercentileStats" - }, - { - "description": "Latency percentiles in milliseconds for this workload. Image and video generation report full end-to-end generation time, because their raw latency only measures request acknowledgement; every other workload reports time to first token or result." - } - ] - }, - "request_count": { - "description": "Total requests admitted for this workload in the window.", - "type": [ - "integer", - "null" - ] - }, - "throughput": { - "allOf": [ - { - "$ref": "#/components/schemas/PercentileStats" - }, - { - "description": "Throughput percentiles in tokens per second; pN is the speed that N% of requests reached or exceeded, so p90 is lower than p50. Only meaningful for text generation; null for workloads without token throughput." - } - ] - } - }, - "required": [ - "latency", - "throughput", - "request_count" - ], - "type": "object" - }, - "rerank": { - "properties": { - "latency": { - "allOf": [ - { - "$ref": "#/components/schemas/PercentileStats" - }, - { - "description": "Latency percentiles in milliseconds for this workload. Image and video generation report full end-to-end generation time, because their raw latency only measures request acknowledgement; every other workload reports time to first token or result." - } - ] - }, - "request_count": { - "description": "Total requests admitted for this workload in the window.", - "type": [ - "integer", - "null" - ] - }, - "throughput": { - "allOf": [ - { - "$ref": "#/components/schemas/PercentileStats" - }, - { - "description": "Throughput percentiles in tokens per second; pN is the speed that N% of requests reached or exceeded, so p90 is lower than p50. Only meaningful for text generation; null for workloads without token throughput." - } - ] - } - }, - "required": [ - "latency", - "throughput", - "request_count" - ], - "type": "object" - }, - "stt": { - "properties": { - "latency": { - "allOf": [ - { - "$ref": "#/components/schemas/PercentileStats" - }, - { - "description": "Latency percentiles in milliseconds for this workload. Image and video generation report full end-to-end generation time, because their raw latency only measures request acknowledgement; every other workload reports time to first token or result." - } - ] - }, - "request_count": { - "description": "Total requests admitted for this workload in the window.", - "type": [ - "integer", - "null" - ] - }, - "throughput": { - "allOf": [ - { - "$ref": "#/components/schemas/PercentileStats" - }, - { - "description": "Throughput percentiles in tokens per second; pN is the speed that N% of requests reached or exceeded, so p90 is lower than p50. Only meaningful for text generation; null for workloads without token throughput." - } - ] - } - }, - "required": [ - "latency", - "throughput", - "request_count" - ], - "type": "object" - }, - "text_generation": { - "properties": { - "latency": { - "allOf": [ - { - "$ref": "#/components/schemas/PercentileStats" - }, - { - "description": "Latency percentiles in milliseconds for this workload. Image and video generation report full end-to-end generation time, because their raw latency only measures request acknowledgement; every other workload reports time to first token or result." - } - ] - }, - "request_count": { - "description": "Total requests admitted for this workload in the window.", - "type": [ - "integer", - "null" - ] - }, - "throughput": { - "allOf": [ - { - "$ref": "#/components/schemas/PercentileStats" - }, - { - "description": "Throughput percentiles in tokens per second; pN is the speed that N% of requests reached or exceeded, so p90 is lower than p50. Only meaningful for text generation; null for workloads without token throughput." - } - ] - } - }, - "required": [ - "latency", - "throughput", - "request_count" - ], - "type": "object" - }, - "tts": { - "properties": { - "latency": { - "allOf": [ - { - "$ref": "#/components/schemas/PercentileStats" - }, - { - "description": "Latency percentiles in milliseconds for this workload. Image and video generation report full end-to-end generation time, because their raw latency only measures request acknowledgement; every other workload reports time to first token or result." - } - ] - }, - "request_count": { - "description": "Total requests admitted for this workload in the window.", - "type": [ - "integer", - "null" - ] - }, - "throughput": { - "allOf": [ - { - "$ref": "#/components/schemas/PercentileStats" - }, - { - "description": "Throughput percentiles in tokens per second; pN is the speed that N% of requests reached or exceeded, so p90 is lower than p50. Only meaningful for text generation; null for workloads without token throughput." - } - ] - } - }, - "required": [ - "latency", - "throughput", - "request_count" - ], - "type": "object" - }, - "unknown": { - "properties": { - "latency": { - "allOf": [ - { - "$ref": "#/components/schemas/PercentileStats" - }, - { - "description": "Latency percentiles in milliseconds for this workload. Image and video generation report full end-to-end generation time, because their raw latency only measures request acknowledgement; every other workload reports time to first token or result." - } - ] - }, - "request_count": { - "description": "Total requests admitted for this workload in the window.", - "type": [ - "integer", - "null" - ] - }, - "throughput": { - "allOf": [ - { - "$ref": "#/components/schemas/PercentileStats" - }, - { - "description": "Throughput percentiles in tokens per second; pN is the speed that N% of requests reached or exceeded, so p90 is lower than p50. Only meaningful for text generation; null for workloads without token throughput." - } - ] - } - }, - "required": [ - "latency", - "throughput", - "request_count" - ], - "type": "object" - }, - "video_generation": { - "properties": { - "latency": { - "allOf": [ - { - "$ref": "#/components/schemas/PercentileStats" - }, - { - "description": "Latency percentiles in milliseconds for this workload. Image and video generation report full end-to-end generation time, because their raw latency only measures request acknowledgement; every other workload reports time to first token or result." - } - ] - }, - "request_count": { - "description": "Total requests admitted for this workload in the window.", - "type": [ - "integer", - "null" - ] - }, - "throughput": { - "allOf": [ - { - "$ref": "#/components/schemas/PercentileStats" - }, - { - "description": "Throughput percentiles in tokens per second; pN is the speed that N% of requests reached or exceeded, so p90 is lower than p50. Only meaningful for text generation; null for workloads without token throughput." - } - ] - } - }, - "required": [ - "latency", - "throughput", - "request_count" - ], - "type": "object" - } - }, - "type": "object" + "$ref": "#/components/schemas/PerfLast30mByWorkload" }, "pricing": { - "properties": { - "audio": { - "description": "Price in USD per audio input token", - "type": "string" - }, - "audio_output": { - "description": "Price in USD per audio output token", - "type": "string" - }, - "completion": { - "description": "Price in USD per token for completion (output) generation", - "type": "string" - }, - "discount": { - "description": "Fractional discount applied to this endpoint's pricing; the price is multiplied by (1 - discount) (0 = no discount, 1 = free)", - "format": "double", - "type": "number" - }, - "image": { - "description": "Price in USD per input image", - "type": "string" - }, - "image_output": { - "description": "Price in USD per output image", - "type": "string" - }, - "image_token": { - "description": "Price in USD per image token", - "type": "string" - }, - "input_audio_cache": { - "description": "Price in USD per cached audio input token", - "type": "string" - }, - "input_cache_read": { - "description": "Price in USD per cached input token (read)", - "type": "string" - }, - "input_cache_write": { - "description": "Price per cache-write token, in USD per token. For providers with multiple cache TTLs (e.g. Anthropic), this is the default (5-minute) cache-write rate.", - "type": "string" - }, - "input_cache_write_1h": { - "description": "Price per 1-hour cache-write token, in USD per token. Only present for providers that price an extended (1-hour) cache TTL separately, such as Anthropic.", - "type": "string" - }, - "internal_reasoning": { - "description": "Price in USD per internal reasoning token", - "type": "string" - }, - "overrides": { - "description": "Conditional overrides of the base pricing (e.g. long-context or time-based pricing). An entry applies when all of its condition fields (e.g. min_prompt_tokens, or the utc_start/utc_end time window) match the request; among applicable entries, later entries win per key; price keys absent from an entry inherit the base price. The top-level pricing keys always reflect the price that applies under default conditions.", - "items": { - "$ref": "#/components/schemas/PricingOverride" - }, - "type": "array" - }, - "prompt": { - "description": "Price in USD per token for prompt (input) processing", - "type": "string" - }, - "request": { - "description": "Price in USD per request", - "type": "string" - }, - "web_search": { - "description": "Price in USD per web search", - "type": "string" - } - }, - "required": [ - "prompt", - "completion" - ], - "type": "object" + "$ref": "#/components/schemas/Pricing" }, "provider_name": { "$ref": "#/components/schemas/ProviderName" @@ -39845,6 +41170,69 @@ ], "x-speakeasy-unknown-values": "allow" }, + "PublicZdrEndpoint": { + "allOf": [ + { + "$ref": "#/components/schemas/PublicEndpoint" + }, + { + "properties": { + "safety_retention": { + "description": "Whether the endpoint uses Safety Retention: prompts are not retained by default, but the provider may retain prompts its safety classifiers flag. A ZDR-enforced request reaches these endpoints only when the account allows Safety Retention and no applied guardrail disallows it.", + "example": false, + "type": "boolean" + } + }, + "required": [ + "safety_retention" + ], + "type": "object" + } + ], + "description": "An endpoint whose data policy does not retain prompts by default", + "example": { + "context_length": 1048576, + "latency_last_30m": null, + "max_completion_tokens": 65535, + "max_prompt_tokens": null, + "model_id": "google/gemini-2.5-flash", + "model_name": "Gemini 2.5 Flash", + "name": "Google: Gemini 2.5 Flash", + "native_tools": {}, + "pricing": { + "completion": "0.0000025", + "image": "0", + "prompt": "0.0000003", + "request": "0" + }, + "provider_name": "Google", + "quantization": null, + "safety_retention": true, + "service_tier": null, + "status": 0, + "supported_parameters": [ + "temperature", + "top_p", + "max_tokens" + ], + "supports_diarization": false, + "supports_image_reference": false, + "supports_implicit_caching": true, + "supports_multiple_audio_references": false, + "supports_tool_choice": { + "auto": true, + "function": true, + "none": true, + "required": true + }, + "supports_voice_cloning": false, + "tag": "google-vertex", + "throughput_last_30m": null, + "uptime_last_1d": 99.8, + "uptime_last_30m": 99.5, + "uptime_last_5m": 100 + } + }, "Quantization": { "enum": [ "int4", @@ -40637,6 +42025,43 @@ ], "type": "object" }, + "Rerank": { + "properties": { + "latency": { + "allOf": [ + { + "$ref": "#/components/schemas/PercentileStats" + }, + { + "description": "Latency percentiles in milliseconds for this workload. Image and video generation report full end-to-end generation time, because their raw latency only measures request acknowledgement; every other workload reports time to first token or result." + } + ] + }, + "request_count": { + "description": "Total requests admitted for this workload in the window.", + "type": [ + "integer", + "null" + ] + }, + "throughput": { + "allOf": [ + { + "$ref": "#/components/schemas/PercentileStats" + }, + { + "description": "Throughput percentiles in tokens per second; pN is the speed that N% of requests reached or exceeded, so p90 is lower than p50. Only meaningful for text generation; null for workloads without token throughput." + } + ] + } + }, + "required": [ + "latency", + "throughput", + "request_count" + ], + "type": "object" + }, "ResponseHealingPlugin": { "example": { "enabled": true, @@ -40840,6 +42265,24 @@ "top_p": 0.9 }, "properties": { + "access_programs": { + "description": "OpenAI access programs for this request. `cyber` selects the Cyber access program: `standard`, `daybreak_blue`, or `daybreak_red`. A program other than `standard` is supported only on BYOK requests that run on your own OpenAI key enrolled in that program; any other endpoint, including OpenRouter's own OpenAI credentials, rejects it with a 400 error. Requests on OpenRouter's OpenAI credentials always run `standard`. Omit the field unless your key is enrolled in a Daybreak program.", + "example": { + "cyber": "standard" + }, + "properties": { + "cyber": { + "enum": [ + "standard", + "daybreak_blue", + "daybreak_red" + ], + "type": "string", + "x-speakeasy-unknown-values": "allow" + } + }, + "type": "object" + }, "background": { "type": [ "boolean", @@ -43648,6 +45091,43 @@ "token": "Hello" } }, + "STT": { + "properties": { + "latency": { + "allOf": [ + { + "$ref": "#/components/schemas/PercentileStats" + }, + { + "description": "Latency percentiles in milliseconds for this workload. Image and video generation report full end-to-end generation time, because their raw latency only measures request acknowledgement; every other workload reports time to first token or result." + } + ] + }, + "request_count": { + "description": "Total requests admitted for this workload in the window.", + "type": [ + "integer", + "null" + ] + }, + "throughput": { + "allOf": [ + { + "$ref": "#/components/schemas/PercentileStats" + }, + { + "description": "Throughput percentiles in tokens per second; pN is the speed that N% of requests reached or exceeded, so p90 is lower than p50. Only meaningful for text generation; null for workloads without token throughput." + } + ] + } + }, + "required": [ + "latency", + "throughput", + "request_count" + ], + "type": "object" + }, "STTEntity": { "description": "A detected entity, returned when the provider runs entity detection", "example": { @@ -44778,6 +46258,43 @@ } } }, + "TextGeneration": { + "properties": { + "latency": { + "allOf": [ + { + "$ref": "#/components/schemas/PercentileStats" + }, + { + "description": "Latency percentiles in milliseconds for this workload. Image and video generation report full end-to-end generation time, because their raw latency only measures request acknowledgement; every other workload reports time to first token or result." + } + ] + }, + "request_count": { + "description": "Total requests admitted for this workload in the window.", + "type": [ + "integer", + "null" + ] + }, + "throughput": { + "allOf": [ + { + "$ref": "#/components/schemas/PercentileStats" + }, + { + "description": "Throughput percentiles in tokens per second; pN is the speed that N% of requests reached or exceeded, so p90 is lower than p50. Only meaningful for text generation; null for workloads without token throughput." + } + ] + } + }, + "required": [ + "latency", + "throughput", + "request_count" + ], + "type": "object" + }, "TokenExchangeRequest": { "description": "RFC 8693 token exchange request body (application/x-www-form-urlencoded).", "example": { @@ -45453,6 +46970,43 @@ ], "x-speakeasy-unknown-values": "allow" }, + "TTS": { + "properties": { + "latency": { + "allOf": [ + { + "$ref": "#/components/schemas/PercentileStats" + }, + { + "description": "Latency percentiles in milliseconds for this workload. Image and video generation report full end-to-end generation time, because their raw latency only measures request acknowledgement; every other workload reports time to first token or result." + } + ] + }, + "request_count": { + "description": "Total requests admitted for this workload in the window.", + "type": [ + "integer", + "null" + ] + }, + "throughput": { + "allOf": [ + { + "$ref": "#/components/schemas/PercentileStats" + }, + { + "description": "Throughput percentiles in tokens per second; pN is the speed that N% of requests reached or exceeded, so p90 is lower than p50. Only meaningful for text generation; null for workloads without token throughput." + } + ] + } + }, + "required": [ + "latency", + "throughput", + "request_count" + ], + "type": "object" + }, "UnauthorizedResponse": { "description": "Unauthorized - Authentication required or invalid credentials", "example": { @@ -46121,6 +47675,43 @@ ], "type": "object" }, + "Unknown": { + "properties": { + "latency": { + "allOf": [ + { + "$ref": "#/components/schemas/PercentileStats" + }, + { + "description": "Latency percentiles in milliseconds for this workload. Image and video generation report full end-to-end generation time, because their raw latency only measures request acknowledgement; every other workload reports time to first token or result." + } + ] + }, + "request_count": { + "description": "Total requests admitted for this workload in the window.", + "type": [ + "integer", + "null" + ] + }, + "throughput": { + "allOf": [ + { + "$ref": "#/components/schemas/PercentileStats" + }, + { + "description": "Throughput percentiles in tokens per second; pN is the speed that N% of requests reached or exceeded, so p90 is lower than p50. Only meaningful for text generation; null for workloads without token throughput." + } + ] + } + }, + "required": [ + "latency", + "throughput", + "request_count" + ], + "type": "object" + }, "UnprocessableEntityResponse": { "description": "Unprocessable Entity - Semantic validation failure", "example": { @@ -48309,6 +49900,43 @@ ], "type": "object" }, + "VideoGeneration": { + "properties": { + "latency": { + "allOf": [ + { + "$ref": "#/components/schemas/PercentileStats" + }, + { + "description": "Latency percentiles in milliseconds for this workload. Image and video generation report full end-to-end generation time, because their raw latency only measures request acknowledgement; every other workload reports time to first token or result." + } + ] + }, + "request_count": { + "description": "Total requests admitted for this workload in the window.", + "type": [ + "integer", + "null" + ] + }, + "throughput": { + "allOf": [ + { + "$ref": "#/components/schemas/PercentileStats" + }, + { + "description": "Throughput percentiles in tokens per second; pN is the speed that N% of requests reached or exceeded, so p90 is lower than p50. Only meaningful for text generation; null for workloads without token throughput." + } + ] + } + }, + "required": [ + "latency", + "throughput", + "request_count" + ], + "type": "object" + }, "VideoGenerationRequest": { "example": { "aspect_ratio": "16:9", @@ -50648,21 +52276,269 @@ }, "description": "Forbidden - Authentication successful but insufficient permissions" }, - "408": { + "408": { + "content": { + "application/json": { + "example": { + "error": { + "code": 408, + "message": "Operation timed out. Please try again later." + } + }, + "schema": { + "$ref": "#/components/schemas/RequestTimeoutResponse" + } + } + }, + "description": "Request Timeout - Operation exceeded time limit" + }, + "500": { + "content": { + "application/json": { + "example": { + "error": { + "code": 500, + "message": "Internal Server Error" + } + }, + "schema": { + "$ref": "#/components/schemas/InternalServerResponse" + } + } + }, + "description": "Internal Server Error - Unexpected server error" + } + }, + "summary": "Query analytics data", + "tags": [ + "Analytics" + ], + "parameters": [] + }, + "parameters": [ + { + "$ref": "#/components/parameters/AppIdentifier" + }, + { + "$ref": "#/components/parameters/AppDisplayName" + }, + { + "$ref": "#/components/parameters/AppCategories" + } + ] + }, + "/api/alpha/decisions": { + "post": { + "description": "Submits a Decisions request to the Decisions router", + "operationId": "createApiAlphaDecisions", + "requestBody": { + "content": { + "application/json": { + "example": { + "model": "typesafe/jev-1.13", + "questions": { + "is_bug": { + "criteria": { + "false": "The customer is asking a question or requesting a feature.", + "true": "The customer describes broken or unexpected product behavior." + }, + "instructions": "Is the customer reporting a software defect?", + "type": "noul" + }, + "team": { + "criteria": { + "account": "Login, permissions, or profile issues.", + "frontend": "Rendering, layout, or browser compatibility issues.", + "payments": "Checkout, billing, or payment processing issues." + }, + "instructions": "Which team should own this ticket?", + "type": "choice" + }, + "urgency": { + "criteria": [ + "Can wait for the next release", + "Should be fixed this week", + "Blocking revenue right now" + ], + "instructions": "How urgent is this ticket?", + "type": "score" + } + }, + "state": { + "customer_tier": "enterprise", + "ticket": "My checkout page shows a blank screen after I click Pay. I have tried two browsers." + } + }, + "schema": { + "$ref": "#/components/schemas/DecisionsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "example": { + "answers": { + "is_bug": { + "noul": 0.96, + "type": "noul" + }, + "team": { + "choice": "payments", + "confidence": 0.75, + "probabilities": { + "account": 0, + "frontend": 0.16, + "payments": 0.84 + }, + "type": "choice" + }, + "urgency": { + "confidence": 0.99, + "legend": { + "0": "Can wait for the next release", + "1": "Should be fixed this week", + "2": "Blocking revenue right now" + }, + "probabilities": { + "0": 0, + "1": 0.01, + "2": 0.99 + }, + "score": 1.99, + "type": "score" + } + }, + "id": "gen-dec-1789738314-X5e5eKGQdvR9rblyX250", + "model": "typesafe/jev-1.13-20260917", + "provider": "TypeSafe", + "usage": { + "cost": 0.000019992, + "input_tokens": 476, + "output_tokens": 70 + } + }, + "schema": { + "$ref": "#/components/schemas/DecisionsResponse" + } + } + }, + "description": "Decisions response" + }, + "400": { + "content": { + "application/json": { + "example": { + "error": { + "code": 400, + "message": "Invalid request parameters" + } + }, + "schema": { + "$ref": "#/components/schemas/BadRequestResponse" + } + } + }, + "description": "Bad Request - Invalid request parameters or malformed input" + }, + "401": { + "content": { + "application/json": { + "example": { + "error": { + "code": 401, + "message": "Missing Authentication header" + } + }, + "schema": { + "$ref": "#/components/schemas/UnauthorizedResponse" + } + } + }, + "description": "Unauthorized - Authentication required or invalid credentials" + }, + "402": { + "content": { + "application/json": { + "example": { + "error": { + "code": 402, + "message": "Insufficient credits. Add more using https://openrouter.ai/credits" + } + }, + "schema": { + "$ref": "#/components/schemas/PaymentRequiredResponse" + } + } + }, + "description": "Payment Required - Insufficient credits or quota to complete request" + }, + "403": { + "content": { + "application/json": { + "example": { + "error": { + "code": 403, + "message": "Only management keys can perform this operation" + } + }, + "schema": { + "$ref": "#/components/schemas/ForbiddenResponse" + } + } + }, + "description": "Forbidden - Authentication successful but insufficient permissions" + }, + "404": { "content": { "application/json": { "example": { "error": { - "code": 408, - "message": "Operation timed out. Please try again later." + "code": 404, + "message": "Resource not found" } }, "schema": { - "$ref": "#/components/schemas/RequestTimeoutResponse" + "$ref": "#/components/schemas/NotFoundResponse" } } }, - "description": "Request Timeout - Operation exceeded time limit" + "description": "Not Found - Resource does not exist" + }, + "413": { + "content": { + "application/json": { + "example": { + "error": { + "code": 413, + "message": "Request payload too large" + } + }, + "schema": { + "$ref": "#/components/schemas/PayloadTooLargeResponse" + } + } + }, + "description": "Payload Too Large - Request payload exceeds size limits" + }, + "429": { + "content": { + "application/json": { + "example": { + "error": { + "code": 429, + "message": "Rate limit exceeded" + } + }, + "schema": { + "$ref": "#/components/schemas/TooManyRequestsResponse" + } + } + }, + "description": "Too Many Requests - Rate limit exceeded" }, "500": { "content": { @@ -50679,12 +52555,82 @@ } }, "description": "Internal Server Error - Unexpected server error" + }, + "502": { + "content": { + "application/json": { + "example": { + "error": { + "code": 502, + "message": "Provider returned error" + } + }, + "schema": { + "$ref": "#/components/schemas/BadGatewayResponse" + } + } + }, + "description": "Bad Gateway - Provider/upstream API failure" + }, + "503": { + "content": { + "application/json": { + "example": { + "error": { + "code": 503, + "message": "Service temporarily unavailable" + } + }, + "schema": { + "$ref": "#/components/schemas/ServiceUnavailableResponse" + } + } + }, + "description": "Service Unavailable - Service temporarily unavailable" + }, + "524": { + "content": { + "application/json": { + "example": { + "error": { + "code": 524, + "message": "Request timed out. Please try again later." + } + }, + "schema": { + "$ref": "#/components/schemas/EdgeNetworkTimeoutResponse" + } + } + }, + "description": "Infrastructure Timeout - Provider request timed out at edge network" + }, + "529": { + "content": { + "application/json": { + "example": { + "error": { + "code": 529, + "message": "Provider returned error" + } + }, + "schema": { + "$ref": "#/components/schemas/ProviderOverloadedResponse" + } + } + }, + "description": "Provider Overloaded - Provider is temporarily overloaded" } }, - "summary": "Query analytics data", + "servers": [ + { + "url": "https://openrouter.ai" + } + ], + "summary": "Submit a Decisions request", "tags": [ - "Analytics" + "alpha.decisions" ], + "x-speakeasy-name-override": "create", "parameters": [] }, "parameters": [ @@ -50699,50 +52645,44 @@ } ] }, - "/api/alpha/decisions": { + "/api/alpha/extractions": { "post": { - "description": "Submits a Decisions request to the Decisions router", - "operationId": "createApiAlphaDecisions", + "description": "Extracts, computes, estimates or forecasts typed fields from a state string and image assets using an extraction-style System One model. Alpha: the shape is not stable.", + "operationId": "createApiAlphaExtractions", "requestBody": { "content": { "application/json": { "example": { - "model": "typesafe/jev-1.13", - "questions": { - "is_bug": { - "criteria": { - "false": "The customer is asking a question or requesting a feature.", - "true": "The customer describes broken or unexpected product behavior." - }, - "instructions": "Is the customer reporting a software defect?", - "type": "noul" + "fields": { + "contacts": { + "items": "text", + "type": "list" }, - "team": { - "criteria": { - "account": "Login, permissions, or profile issues.", - "frontend": "Rendering, layout, or browser compatibility issues.", - "payments": "Checkout, billing, or payment processing issues." - }, - "instructions": "Which team should own this ticket?", - "type": "choice" + "days_to_pay": { + "max": 120, + "min": 0, + "step": 1, + "type": "estimate" }, - "urgency": { - "criteria": [ - "Can wait for the next release", - "Should be fixed this week", - "Blocking revenue right now" - ], - "instructions": "How urgent is this ticket?", - "type": "score" + "due_date": { + "instructions": "Issue date plus the net payment days", + "type": "date" + }, + "invoice_number": { + "type": "text" + }, + "total": { + "decimals": 2, + "type": "number", + "unit": "USD" } }, - "state": { - "customer_tier": "enterprise", - "ticket": "My checkout page shows a blank screen after I click Pay. I have tried two browsers." - } + "model": "cloudflare/clairic", + "reference_date": "2026-10-28", + "state": "Invoice INV-2291 issued 2026-09-02, net 30. Contacts: Dana Ruiz, Priya Shah. Total $1080." }, "schema": { - "$ref": "#/components/schemas/DecisionsRequest" + "$ref": "#/components/schemas/ExtractionsRequest" } } }, @@ -50754,51 +52694,77 @@ "application/json": { "example": { "answers": { - "is_bug": { - "noul": 0.96, - "type": "noul" + "contacts": { + "confidence": 0.9999, + "spans": [ + [ + 53, + 62 + ], + [ + 64, + 74 + ] + ], + "type": "list", + "value": [ + "Dana Ruiz", + "Priya Shah" + ] }, - "team": { - "choice": "payments", - "confidence": 0.75, - "probabilities": { - "account": 0, - "frontend": 0.16, - "payments": 0.84 - }, - "type": "choice" + "days_to_pay": { + "mean": 29.5, + "median": 30, + "p10": 21, + "p90": 38, + "type": "estimate", + "value": 30 }, - "urgency": { - "confidence": 0.99, - "legend": { - "0": "Can wait for the next release", - "1": "Should be fixed this week", - "2": "Blocking revenue right now" - }, - "probabilities": { - "0": 0, - "1": 0.01, - "2": 0.99 - }, - "score": 1.99, - "type": "score" + "due_date": { + "guess": "2026-10-02", + "p_null": 1.9E-8, + "type": "date", + "value": "2026-10-02" + }, + "invoice_number": { + "confidence": 1, + "guess": "INV-2291", + "p_null": 3.8E-10, + "span": [ + 8, + 16 + ], + "type": "text", + "value": "INV-2291" + }, + "total": { + "confidence": 0.9999, + "guess": 1080, + "p_null": 2.3E-8, + "type": "number", + "value": 1080 } }, - "id": "gen-dec-1789738314-X5e5eKGQdvR9rblyX250", - "model": "typesafe/jev-1.13-20260917", - "provider": "TypeSafe", + "id": "gen-dec-1793251006-X5e5eKGQdvR9rblyX250", + "model": "cloudflare/clairic", + "provider": "Cloudflare", + "truncated": false, "usage": { - "cost": 0.000019992, - "input_tokens": 476, - "output_tokens": 70 + "cost": 0.0000655, + "image_tokens": 0, + "input_tokens": 655, + "output_tokens": 0, + "passes": 3, + "schema_tokens": 472, + "state_tokens": 61 } }, "schema": { - "$ref": "#/components/schemas/DecisionsResponse" + "$ref": "#/components/schemas/ExtractionsResponse" } } }, - "description": "Decisions response" + "description": "Extractions response" }, "400": { "content": { @@ -50998,9 +52964,9 @@ "url": "https://openrouter.ai" } ], - "summary": "Submit a Decisions request", + "summary": "Submit an Extractions request", "tags": [ - "alpha.decisions" + "alpha.extractions" ], "x-speakeasy-name-override": "create", "parameters": [] @@ -56797,6 +58763,9 @@ "created": 1692901234, "default_parameters": null, "description": "OpenAI text embedding model optimized for performance.", + "endpoints": [ + "/api/v1/embeddings" + ], "expiration_date": null, "id": "openai/text-embedding-3-small", "knowledge_cutoff": null, @@ -56928,6 +58897,7 @@ }, "provider_name": "OpenAI", "quantization": "fp16", + "safety_retention": false, "status": 0, "supported_parameters": [ "temperature", @@ -56977,6 +58947,7 @@ }, "provider_name": "OpenAI", "quantization": "fp16", + "safety_retention": false, "status": 0, "supported_parameters": [ "temperature", @@ -57004,7 +58975,7 @@ "properties": { "data": { "items": { - "$ref": "#/components/schemas/PublicEndpoint" + "$ref": "#/components/schemas/PublicZdrEndpoint" }, "type": "array" } @@ -62472,12 +64443,12 @@ } }, { - "description": "Filter API keys by workspace ID. By default, keys in the default workspace are returned.", + "description": "Filter API keys by workspace ID. By default an organization-scoped management key gets the default workspace; a workspace-scoped management key always gets its own workspace and cannot list another.", "in": "query", "name": "workspace_id", "required": false, "schema": { - "description": "Filter API keys by workspace ID. By default, keys in the default workspace are returned.", + "description": "Filter API keys by workspace ID. By default an organization-scoped management key gets the default workspace; a workspace-scoped management key always gets its own workspace and cannot list another.", "example": "0df9e665-d932-5740-b2c7-b52af166bc11", "format": "uuid", "type": "string" @@ -62798,6 +64769,22 @@ }, "description": "Unauthorized - Authentication required or invalid credentials" }, + "403": { + "content": { + "application/json": { + "example": { + "error": { + "code": 403, + "message": "Only management keys can perform this operation" + } + }, + "schema": { + "$ref": "#/components/schemas/ForbiddenResponse" + } + } + }, + "description": "Forbidden - Authentication successful but insufficient permissions" + }, "404": { "content": { "application/json": { @@ -62954,7 +64941,7 @@ "type": "string" }, "workspace_id": { - "description": "The workspace to create the API key in. Defaults to the default workspace if not provided.", + "description": "The workspace to create the API key in. Defaults to the default workspace for an organization-scoped management key, or to the management key's own workspace for a workspace-scoped one, which cannot create keys elsewhere.", "example": "0df9e665-d932-5740-b2c7-b52af166bc11", "format": "uuid", "type": "string" @@ -63414,6 +65401,22 @@ }, "description": "Unauthorized - Authentication required or invalid credentials" }, + "403": { + "content": { + "application/json": { + "example": { + "error": { + "code": 403, + "message": "Only management keys can perform this operation" + } + }, + "schema": { + "$ref": "#/components/schemas/ForbiddenResponse" + } + } + }, + "description": "Forbidden - Authentication successful but insufficient permissions" + }, "404": { "content": { "application/json": { @@ -63776,6 +65779,22 @@ }, "description": "Unauthorized - Authentication required or invalid credentials" }, + "403": { + "content": { + "application/json": { + "example": { + "error": { + "code": 403, + "message": "Only management keys can perform this operation" + } + }, + "schema": { + "$ref": "#/components/schemas/ForbiddenResponse" + } + } + }, + "description": "Forbidden - Authentication successful but insufficient permissions" + }, "404": { "content": { "application/json": { @@ -64674,6 +66693,12 @@ "created": 1692901234, "default_parameters": null, "description": "GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.", + "endpoints": [ + "/api/v1/chat/completions", + "/api/v1/completions", + "/api/v1/messages", + "/api/v1/responses" + ], "expiration_date": null, "id": "openai/gpt-4", "knowledge_cutoff": null, @@ -65232,6 +67257,12 @@ "created": 1692901234, "default_parameters": null, "description": "GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.", + "endpoints": [ + "/api/v1/chat/completions", + "/api/v1/completions", + "/api/v1/messages", + "/api/v1/responses" + ], "expiration_date": null, "id": "openai/gpt-4", "knowledge_cutoff": null, @@ -65831,12 +67862,12 @@ } }, { - "description": "Return only the models and presets the named harness offers: those that support tool calling, and, when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor's own models (OpenAI for codex, Anthropic for claude_code and claude_desktop). One of: claude_code, claude_desktop, codex. Omit it to get every model you can use.", + "description": "Filter models and presets by the named harness's eligibility policy: tool calling is required, and when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor's own models remain (OpenAI for codex, Anthropic for claude_code and claude_desktop). When your workspace's Managed Machines policy sets a model list for that harness, only the listed models remain, and a preset remains only while every model it routes to is listed. This filter doesn't apply the harness's ranking, caps or Claude Desktop model ID aliases, so returned IDs stay routable. One of: claude_code, claude_desktop, codex. Omit it to get every model you can use.", "in": "query", "name": "client", "required": false, "schema": { - "description": "Return only the models and presets the named harness offers: those that support tool calling, and, when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor's own models (OpenAI for codex, Anthropic for claude_code and claude_desktop). One of: claude_code, claude_desktop, codex. Omit it to get every model you can use.", + "description": "Filter models and presets by the named harness's eligibility policy: tool calling is required, and when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor's own models remain (OpenAI for codex, Anthropic for claude_code and claude_desktop). When your workspace's Managed Machines policy sets a model list for that harness, only the listed models remain, and a preset remains only while every model it routes to is listed. This filter doesn't apply the harness's ranking, caps or Claude Desktop model ID aliases, so returned IDs stay routable. One of: claude_code, claude_desktop, codex. Omit it to get every model you can use.", "enum": [ "claude_code", "claude_desktop", @@ -65871,6 +67902,12 @@ "created": 1692901234, "default_parameters": null, "description": "GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.", + "endpoints": [ + "/api/v1/chat/completions", + "/api/v1/completions", + "/api/v1/messages", + "/api/v1/responses" + ], "expiration_date": null, "id": "openai/gpt-4", "knowledge_cutoff": null, @@ -80439,6 +82476,10 @@ "description": "Alpha feature endpoints for Decisions requests", "name": "alpha.decisions" }, + { + "description": "Alpha feature endpoints for Extractions requests", + "name": "alpha.extractions" + }, { "name": "beta.responses", "description": "Deprecated alias of responses. Use responses instead; scheduled for removal (sunset date TBD)."