From e920b2ee41186b1a48b4a30bbff0a633201d7915 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 22 Jun 2026 22:50:24 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../OpenRouter.IOpenRouterClient.g.cs | 5 + ...geBetaResponsesClient.CreateResponses.g.cs | 4 + ....ISubpackageImagesClient.CreateImages.g.cs | 100 + ...eImagesClient.ListImageModelEndpoints.g.cs | 36 + ...ubpackageImagesClient.ListImageModels.g.cs | 28 + .../OpenRouter.ISubpackageImagesClient.g.cs | 48 + ...ePresetsClient.CreatePresetsResponses.g.cs | 4 + ...r.JsonConverters.CapabilityDescriptor.g.cs | 87 + ...CapabilityDescriptorDiscriminatorType.g.cs | 53 + ...tyDescriptorDiscriminatorTypeNullable.g.cs | 60 + ...ters.CapabilityDescriptorVariant1Type.g.cs | 53 + ...abilityDescriptorVariant1TypeNullable.g.cs | 60 + ...ter.JsonConverters.EnumCapabilityType.g.cs | 53 + ...Converters.EnumCapabilityTypeNullable.g.cs | 60 + ...ers.ImageGenerationRequestAspectRatio.g.cs | 53 + ...eGenerationRequestAspectRatioNullable.g.cs | 60 + ...ters.ImageGenerationRequestBackground.g.cs | 53 + ...geGenerationRequestBackgroundNullable.g.cs | 60 + ...rs.ImageGenerationRequestOutputFormat.g.cs | 53 + ...GenerationRequestOutputFormatNullable.g.cs | 60 + ...verters.ImageGenerationRequestQuality.g.cs | 53 + ...ImageGenerationRequestQualityNullable.g.cs | 60 + ...ters.ImageGenerationRequestResolution.g.cs | 53 + ...geGenerationRequestResolutionNullable.g.cs | 60 + ...er.JsonConverters.ImageOutputModality.g.cs | 53 + ...onverters.ImageOutputModalityNullable.g.cs | 60 + ...nConverters.ImagePricingEntryBillable.g.cs | 53 + ...ers.ImagePricingEntryBillableNullable.g.cs | 60 + ....JsonConverters.ImagePricingEntryUnit.g.cs | 53 + ...verters.ImagePricingEntryUnitNullable.g.cs | 60 + ...er.JsonConverters.RangeCapabilityType.g.cs | 53 + ...onverters.RangeCapabilityTypeNullable.g.cs | 60 + ...Converters.ResponsesRequestToolsItems.g.cs | 1 + .../OpenRouter.JsonSerializerContext.g.cs | 785 +++- ...OpenRouter.JsonSerializerContextTypes.g.cs | 3956 +++++++++-------- ...uter.Models.CapabilityDescriptor.Json.g.cs | 141 + ...penRouter.Models.CapabilityDescriptor.g.cs | 386 ++ ...apabilityDescriptorDiscriminator.Json.g.cs | 141 + ...els.CapabilityDescriptorDiscriminator.g.cs | 45 + ...CapabilityDescriptorDiscriminatorType.g.cs | 57 + ...els.CapabilityDescriptorVariant1.Json.g.cs | 141 + ...r.Models.CapabilityDescriptorVariant1.g.cs | 47 + ...dels.CapabilityDescriptorVariant1Type.g.cs | 45 + ...els.CapabilityDescriptorVariant2.Json.g.cs | 141 + ...r.Models.CapabilityDescriptorVariant2.g.cs | 55 + ...els.CapabilityDescriptorVariant3.Json.g.cs | 141 + ...r.Models.CapabilityDescriptorVariant3.g.cs | 65 + ...enRouter.Models.ContentPartImage.Json.g.cs | 141 + .../OpenRouter.Models.ContentPartImage.g.cs | 45 + .../OpenRouter.Models.EnumCapabilityType.g.cs | 45 + ...nRouter.Models.FusionServerToolConfig.g.cs | 11 + .../OpenRouter.Models.ImageEndpoint.Json.g.cs | 141 + .../OpenRouter.Models.ImageEndpoint.g.cs | 116 + ...ImageEndpointSupportedParameters.Json.g.cs | 141 + ...dels.ImageEndpointSupportedParameters.g.cs | 19 + ...er.Models.ImageGenerationRequest.Json.g.cs | 141 + ...nRouter.Models.ImageGenerationRequest.g.cs | 196 + ...els.ImageGenerationRequestAspectRatio.g.cs | 171 + ...dels.ImageGenerationRequestBackground.g.cs | 57 + ...ls.ImageGenerationRequestOutputFormat.g.cs | 57 + ...s.ImageGenerationRequestProvider.Json.g.cs | 141 + ...Models.ImageGenerationRequestProvider.g.cs | 46 + ...GenerationRequestProviderOptions.Json.g.cs | 141 + ...ImageGenerationRequestProviderOptions.g.cs | 1070 +++++ ...rationRequestProviderOptionsAi21.Json.g.cs | 141 + ...eGenerationRequestProviderOptionsAi21.g.cs | 19 + ...ationRequestProviderOptionsAi212.Json.g.cs | 141 + ...GenerationRequestProviderOptionsAi212.g.cs | 19 + ...onRequestProviderOptionsAionLabs.Json.g.cs | 141 + ...erationRequestProviderOptionsAionLabs.g.cs | 19 + ...nRequestProviderOptionsAionLabs2.Json.g.cs | 141 + ...rationRequestProviderOptionsAionLabs2.g.cs | 19 + ...ionRequestProviderOptionsAkashml.Json.g.cs | 141 + ...nerationRequestProviderOptionsAkashml.g.cs | 19 + ...onRequestProviderOptionsAkashml2.Json.g.cs | 141 + ...erationRequestProviderOptionsAkashml2.g.cs | 19 + ...ionRequestProviderOptionsAlibaba.Json.g.cs | 141 + ...nerationRequestProviderOptionsAlibaba.g.cs | 19 + ...onRequestProviderOptionsAlibaba2.Json.g.cs | 141 + ...erationRequestProviderOptionsAlibaba2.g.cs | 19 + ...uestProviderOptionsAmazonBedrock.Json.g.cs | 141 + ...onRequestProviderOptionsAmazonBedrock.g.cs | 19 + ...estProviderOptionsAmazonBedrock2.Json.g.cs | 141 + ...nRequestProviderOptionsAmazonBedrock2.g.cs | 19 + ...RequestProviderOptionsAmazonNova.Json.g.cs | 141 + ...ationRequestProviderOptionsAmazonNova.g.cs | 19 + ...equestProviderOptionsAmazonNova2.Json.g.cs | 141 + ...tionRequestProviderOptionsAmazonNova2.g.cs | 19 + ...ionRequestProviderOptionsAmbient.Json.g.cs | 141 + ...nerationRequestProviderOptionsAmbient.g.cs | 19 + ...onRequestProviderOptionsAmbient2.Json.g.cs | 141 + ...erationRequestProviderOptionsAmbient2.g.cs | 19 + ...nRequestProviderOptionsAnthropic.Json.g.cs | 141 + ...rationRequestProviderOptionsAnthropic.g.cs | 19 + ...RequestProviderOptionsAnthropic2.Json.g.cs | 141 + ...ationRequestProviderOptionsAnthropic2.g.cs | 19 + ...onRequestProviderOptionsAnyscale.Json.g.cs | 141 + ...erationRequestProviderOptionsAnyscale.g.cs | 19 + ...nRequestProviderOptionsAnyscale2.Json.g.cs | 141 + ...rationRequestProviderOptionsAnyscale2.g.cs | 19 + ...ionRequestProviderOptionsArceeAi.Json.g.cs | 141 + ...nerationRequestProviderOptionsArceeAi.g.cs | 19 + ...onRequestProviderOptionsArceeAi2.Json.g.cs | 141 + ...erationRequestProviderOptionsArceeAi2.g.cs | 19 + ...RequestProviderOptionsAtlasCloud.Json.g.cs | 141 + ...ationRequestProviderOptionsAtlasCloud.g.cs | 19 + ...equestProviderOptionsAtlasCloud2.Json.g.cs | 141 + ...tionRequestProviderOptionsAtlasCloud2.g.cs | 19 + ...ationRequestProviderOptionsAtoma.Json.g.cs | 141 + ...GenerationRequestProviderOptionsAtoma.g.cs | 19 + ...tionRequestProviderOptionsAtoma2.Json.g.cs | 141 + ...enerationRequestProviderOptionsAtoma2.g.cs | 19 + ...ationRequestProviderOptionsAvian.Json.g.cs | 141 + ...GenerationRequestProviderOptionsAvian.g.cs | 19 + ...tionRequestProviderOptionsAvian2.Json.g.cs | 141 + ...enerationRequestProviderOptionsAvian2.g.cs | 19 + ...ationRequestProviderOptionsAzure.Json.g.cs | 141 + ...GenerationRequestProviderOptionsAzure.g.cs | 19 + ...tionRequestProviderOptionsAzure2.Json.g.cs | 141 + ...enerationRequestProviderOptionsAzure2.g.cs | 19 + ...ationRequestProviderOptionsBaidu.Json.g.cs | 141 + ...GenerationRequestProviderOptionsBaidu.g.cs | 19 + ...tionRequestProviderOptionsBaidu2.Json.g.cs | 141 + ...enerationRequestProviderOptionsBaidu2.g.cs | 19 + ...ionRequestProviderOptionsBaseten.Json.g.cs | 141 + ...nerationRequestProviderOptionsBaseten.g.cs | 19 + ...onRequestProviderOptionsBaseten2.Json.g.cs | 141 + ...erationRequestProviderOptionsBaseten2.g.cs | 19 + ...stProviderOptionsBlackForestLabs.Json.g.cs | 141 + ...RequestProviderOptionsBlackForestLabs.g.cs | 19 + ...tProviderOptionsBlackForestLabs2.Json.g.cs | 141 + ...equestProviderOptionsBlackForestLabs2.g.cs | 19 + ...onRequestProviderOptionsByteplus.Json.g.cs | 141 + ...erationRequestProviderOptionsByteplus.g.cs | 19 + ...nRequestProviderOptionsByteplus2.Json.g.cs | 141 + ...rationRequestProviderOptionsByteplus2.g.cs | 19 + ...tionRequestProviderOptionsCentml.Json.g.cs | 141 + ...enerationRequestProviderOptionsCentml.g.cs | 19 + ...ionRequestProviderOptionsCentml2.Json.g.cs | 141 + ...nerationRequestProviderOptionsCentml2.g.cs | 19 + ...onRequestProviderOptionsCerebras.Json.g.cs | 141 + ...erationRequestProviderOptionsCerebras.g.cs | 19 + ...nRequestProviderOptionsCerebras2.Json.g.cs | 141 + ...rationRequestProviderOptionsCerebras2.g.cs | 19 + ...tionRequestProviderOptionsChutes.Json.g.cs | 141 + ...enerationRequestProviderOptionsChutes.g.cs | 19 + ...ionRequestProviderOptionsChutes2.Json.g.cs | 141 + ...nerationRequestProviderOptionsChutes2.g.cs | 19 + ...RequestProviderOptionsCirrascale.Json.g.cs | 141 + ...ationRequestProviderOptionsCirrascale.g.cs | 19 + ...equestProviderOptionsCirrascale2.Json.g.cs | 141 + ...tionRequestProviderOptionsCirrascale2.g.cs | 19 + ...onRequestProviderOptionsClarifai.Json.g.cs | 141 + ...erationRequestProviderOptionsClarifai.g.cs | 19 + ...nRequestProviderOptionsClarifai2.Json.g.cs | 141 + ...rationRequestProviderOptionsClarifai2.g.cs | 19 + ...RequestProviderOptionsCloudflare.Json.g.cs | 141 + ...ationRequestProviderOptionsCloudflare.g.cs | 19 + ...equestProviderOptionsCloudflare2.Json.g.cs | 141 + ...tionRequestProviderOptionsCloudflare2.g.cs | 19 + ...tionRequestProviderOptionsCohere.Json.g.cs | 141 + ...enerationRequestProviderOptionsCohere.g.cs | 19 + ...ionRequestProviderOptionsCohere2.Json.g.cs | 141 + ...nerationRequestProviderOptionsCohere2.g.cs | 19 + ...tionRequestProviderOptionsCrofai.Json.g.cs | 141 + ...enerationRequestProviderOptionsCrofai.g.cs | 19 + ...ionRequestProviderOptionsCrofai2.Json.g.cs | 141 + ...nerationRequestProviderOptionsCrofai2.g.cs | 19 + ...onRequestProviderOptionsCrucible.Json.g.cs | 141 + ...erationRequestProviderOptionsCrucible.g.cs | 19 + ...nRequestProviderOptionsCrucible2.Json.g.cs | 141 + ...rationRequestProviderOptionsCrucible2.g.cs | 19 + ...tionRequestProviderOptionsCrusoe.Json.g.cs | 141 + ...enerationRequestProviderOptionsCrusoe.g.cs | 19 + ...ionRequestProviderOptionsCrusoe2.Json.g.cs | 141 + ...nerationRequestProviderOptionsCrusoe2.g.cs | 19 + ...nRequestProviderOptionsDarkbloom.Json.g.cs | 141 + ...rationRequestProviderOptionsDarkbloom.g.cs | 19 + ...RequestProviderOptionsDarkbloom2.Json.g.cs | 141 + ...ationRequestProviderOptionsDarkbloom2.g.cs | 19 + ...tionRequestProviderOptionsDecart.Json.g.cs | 141 + ...enerationRequestProviderOptionsDecart.g.cs | 19 + ...ionRequestProviderOptionsDecart2.Json.g.cs | 141 + ...nerationRequestProviderOptionsDecart2.g.cs | 19 + ...nRequestProviderOptionsDeepinfra.Json.g.cs | 141 + ...rationRequestProviderOptionsDeepinfra.g.cs | 19 + ...RequestProviderOptionsDeepinfra2.Json.g.cs | 141 + ...ationRequestProviderOptionsDeepinfra2.g.cs | 19 + ...onRequestProviderOptionsDeepseek.Json.g.cs | 141 + ...erationRequestProviderOptionsDeepseek.g.cs | 19 + ...nRequestProviderOptionsDeepseek2.Json.g.cs | 141 + ...rationRequestProviderOptionsDeepseek2.g.cs | 19 + ...ionRequestProviderOptionsDekallm.Json.g.cs | 141 + ...nerationRequestProviderOptionsDekallm.g.cs | 19 + ...onRequestProviderOptionsDekallm2.Json.g.cs | 141 + ...erationRequestProviderOptionsDekallm2.g.cs | 19 + ...questProviderOptionsDigitalocean.Json.g.cs | 141 + ...ionRequestProviderOptionsDigitalocean.g.cs | 19 + ...uestProviderOptionsDigitalocean2.Json.g.cs | 141 + ...onRequestProviderOptionsDigitalocean2.g.cs | 19 + ...ationRequestProviderOptionsEnfer.Json.g.cs | 141 + ...GenerationRequestProviderOptionsEnfer.g.cs | 19 + ...tionRequestProviderOptionsEnfer2.Json.g.cs | 141 + ...enerationRequestProviderOptionsEnfer2.g.cs | 19 + ...questProviderOptionsFakeProvider.Json.g.cs | 141 + ...ionRequestProviderOptionsFakeProvider.g.cs | 19 + ...uestProviderOptionsFakeProvider2.Json.g.cs | 141 + ...onRequestProviderOptionsFakeProvider2.g.cs | 19 + ...equestProviderOptionsFeatherless.Json.g.cs | 141 + ...tionRequestProviderOptionsFeatherless.g.cs | 19 + ...questProviderOptionsFeatherless2.Json.g.cs | 141 + ...ionRequestProviderOptionsFeatherless2.g.cs | 19 + ...nRequestProviderOptionsFireworks.Json.g.cs | 141 + ...rationRequestProviderOptionsFireworks.g.cs | 19 + ...RequestProviderOptionsFireworks2.Json.g.cs | 141 + ...ationRequestProviderOptionsFireworks2.g.cs | 19 + ...onRequestProviderOptionsFriendli.Json.g.cs | 141 + ...erationRequestProviderOptionsFriendli.g.cs | 19 + ...nRequestProviderOptionsFriendli2.Json.g.cs | 141 + ...rationRequestProviderOptionsFriendli2.g.cs | 19 + ...onRequestProviderOptionsGmicloud.Json.g.cs | 141 + ...erationRequestProviderOptionsGmicloud.g.cs | 19 + ...nRequestProviderOptionsGmicloud2.Json.g.cs | 141 + ...rationRequestProviderOptionsGmicloud2.g.cs | 19 + ...estProviderOptionsGoogleAiStudio.Json.g.cs | 141 + ...nRequestProviderOptionsGoogleAiStudio.g.cs | 19 + ...stProviderOptionsGoogleAiStudio2.Json.g.cs | 141 + ...RequestProviderOptionsGoogleAiStudio2.g.cs | 19 + ...questProviderOptionsGoogleVertex.Json.g.cs | 141 + ...ionRequestProviderOptionsGoogleVertex.g.cs | 19 + ...uestProviderOptionsGoogleVertex2.Json.g.cs | 141 + ...onRequestProviderOptionsGoogleVertex2.g.cs | 19 + ...onRequestProviderOptionsGopomelo.Json.g.cs | 141 + ...erationRequestProviderOptionsGopomelo.g.cs | 19 + ...nRequestProviderOptionsGopomelo2.Json.g.cs | 141 + ...rationRequestProviderOptionsGopomelo2.g.cs | 19 + ...rationRequestProviderOptionsGroq.Json.g.cs | 141 + ...eGenerationRequestProviderOptionsGroq.g.cs | 19 + ...ationRequestProviderOptionsGroq2.Json.g.cs | 141 + ...GenerationRequestProviderOptionsGroq2.g.cs | 19 + ...equestProviderOptionsHuggingface.Json.g.cs | 141 + ...tionRequestProviderOptionsHuggingface.g.cs | 19 + ...questProviderOptionsHuggingface2.Json.g.cs | 141 + ...ionRequestProviderOptionsHuggingface2.g.cs | 19 + ...RequestProviderOptionsHyperbolic.Json.g.cs | 141 + ...ationRequestProviderOptionsHyperbolic.g.cs | 19 + ...equestProviderOptionsHyperbolic2.Json.g.cs | 141 + ...tionRequestProviderOptionsHyperbolic2.g.cs | 19 + ...oviderOptionsHyperbolicQuantized.Json.g.cs | 141 + ...estProviderOptionsHyperbolicQuantized.g.cs | 19 + ...viderOptionsHyperbolicQuantized2.Json.g.cs | 141 + ...stProviderOptionsHyperbolicQuantized2.g.cs | 19 + ...nRequestProviderOptionsInception.Json.g.cs | 141 + ...rationRequestProviderOptionsInception.g.cs | 19 + ...RequestProviderOptionsInception2.Json.g.cs | 141 + ...ationRequestProviderOptionsInception2.g.cs | 19 + ...nRequestProviderOptionsInceptron.Json.g.cs | 141 + ...rationRequestProviderOptionsInceptron.g.cs | 19 + ...RequestProviderOptionsInceptron2.Json.g.cs | 141 + ...ationRequestProviderOptionsInceptron2.g.cs | 19 + ...questProviderOptionsInferenceNet.Json.g.cs | 141 + ...ionRequestProviderOptionsInferenceNet.g.cs | 19 + ...uestProviderOptionsInferenceNet2.Json.g.cs | 141 + ...onRequestProviderOptionsInferenceNet2.g.cs | 19 + ...RequestProviderOptionsInfermatic.Json.g.cs | 141 + ...ationRequestProviderOptionsInfermatic.g.cs | 19 + ...equestProviderOptionsInfermatic2.Json.g.cs | 141 + ...tionRequestProviderOptionsInfermatic2.g.cs | 19 + ...RequestProviderOptionsInflection.Json.g.cs | 141 + ...ationRequestProviderOptionsInflection.g.cs | 19 + ...equestProviderOptionsInflection2.Json.g.cs | 141 + ...tionRequestProviderOptionsInflection2.g.cs | 19 + ...onRequestProviderOptionsInocloud.Json.g.cs | 141 + ...erationRequestProviderOptionsInocloud.g.cs | 19 + ...nRequestProviderOptionsInocloud2.Json.g.cs | 141 + ...rationRequestProviderOptionsInocloud2.g.cs | 19 + ...ationRequestProviderOptionsIoNet.Json.g.cs | 141 + ...GenerationRequestProviderOptionsIoNet.g.cs | 19 + ...tionRequestProviderOptionsIoNet2.Json.g.cs | 141 + ...enerationRequestProviderOptionsIoNet2.g.cs | 19 + ...nRequestProviderOptionsIonstream.Json.g.cs | 141 + ...rationRequestProviderOptionsIonstream.g.cs | 19 + ...RequestProviderOptionsIonstream2.Json.g.cs | 141 + ...ationRequestProviderOptionsIonstream2.g.cs | 19 + ...nRequestProviderOptionsKlusterai.Json.g.cs | 141 + ...rationRequestProviderOptionsKlusterai.g.cs | 19 + ...RequestProviderOptionsKlusterai2.Json.g.cs | 141 + ...ationRequestProviderOptionsKlusterai2.g.cs | 19 + ...tionRequestProviderOptionsLambda.Json.g.cs | 141 + ...enerationRequestProviderOptionsLambda.g.cs | 19 + ...ionRequestProviderOptionsLambda2.Json.g.cs | 141 + ...nerationRequestProviderOptionsLambda2.g.cs | 19 + ...tionRequestProviderOptionsLepton.Json.g.cs | 141 + ...enerationRequestProviderOptionsLepton.g.cs | 19 + ...ionRequestProviderOptionsLepton2.Json.g.cs | 141 + ...nerationRequestProviderOptionsLepton2.g.cs | 19 + ...tionRequestProviderOptionsLiquid.Json.g.cs | 141 + ...enerationRequestProviderOptionsLiquid.g.cs | 19 + ...ionRequestProviderOptionsLiquid2.Json.g.cs | 141 + ...nerationRequestProviderOptionsLiquid2.g.cs | 19 + ...rationRequestProviderOptionsLynn.Json.g.cs | 141 + ...eGenerationRequestProviderOptionsLynn.g.cs | 19 + ...ationRequestProviderOptionsLynn2.Json.g.cs | 141 + ...GenerationRequestProviderOptionsLynn2.g.cs | 19 + ...equestProviderOptionsLynnPrivate.Json.g.cs | 141 + ...tionRequestProviderOptionsLynnPrivate.g.cs | 19 + ...questProviderOptionsLynnPrivate2.Json.g.cs | 141 + ...ionRequestProviderOptionsLynnPrivate2.g.cs | 19 + ...tionRequestProviderOptionsMancer.Json.g.cs | 141 + ...enerationRequestProviderOptionsMancer.g.cs | 19 + ...ionRequestProviderOptionsMancer2.Json.g.cs | 141 + ...nerationRequestProviderOptionsMancer2.g.cs | 19 + ...nRequestProviderOptionsMancerOld.Json.g.cs | 141 + ...rationRequestProviderOptionsMancerOld.g.cs | 19 + ...RequestProviderOptionsMancerOld2.Json.g.cs | 141 + ...ationRequestProviderOptionsMancerOld2.g.cs | 19 + ...rationRequestProviderOptionsMara.Json.g.cs | 141 + ...eGenerationRequestProviderOptionsMara.g.cs | 19 + ...ationRequestProviderOptionsMara2.Json.g.cs | 141 + ...GenerationRequestProviderOptionsMara2.g.cs | 19 + ...rationRequestProviderOptionsMeta.Json.g.cs | 141 + ...eGenerationRequestProviderOptionsMeta.g.cs | 19 + ...ationRequestProviderOptionsMeta2.Json.g.cs | 141 + ...GenerationRequestProviderOptionsMeta2.g.cs | 19 + ...ionRequestProviderOptionsMinimax.Json.g.cs | 141 + ...nerationRequestProviderOptionsMinimax.g.cs | 19 + ...onRequestProviderOptionsMinimax2.Json.g.cs | 141 + ...erationRequestProviderOptionsMinimax2.g.cs | 19 + ...ionRequestProviderOptionsMistral.Json.g.cs | 141 + ...nerationRequestProviderOptionsMistral.g.cs | 19 + ...onRequestProviderOptionsMistral2.Json.g.cs | 141 + ...erationRequestProviderOptionsMistral2.g.cs | 19 + ...ationRequestProviderOptionsModal.Json.g.cs | 141 + ...GenerationRequestProviderOptionsModal.g.cs | 19 + ...tionRequestProviderOptionsModal2.Json.g.cs | 141 + ...enerationRequestProviderOptionsModal2.g.cs | 19 + ...onRequestProviderOptionsModelrun.Json.g.cs | 141 + ...erationRequestProviderOptionsModelrun.g.cs | 19 + ...nRequestProviderOptionsModelrun2.Json.g.cs | 141 + ...rationRequestProviderOptionsModelrun2.g.cs | 19 + ...ionRequestProviderOptionsModular.Json.g.cs | 141 + ...nerationRequestProviderOptionsModular.g.cs | 19 + ...onRequestProviderOptionsModular2.Json.g.cs | 141 + ...erationRequestProviderOptionsModular2.g.cs | 19 + ...RequestProviderOptionsMoonshotai.Json.g.cs | 141 + ...ationRequestProviderOptionsMoonshotai.g.cs | 19 + ...equestProviderOptionsMoonshotai2.Json.g.cs | 141 + ...tionRequestProviderOptionsMoonshotai2.g.cs | 19 + ...ationRequestProviderOptionsMorph.Json.g.cs | 141 + ...GenerationRequestProviderOptionsMorph.g.cs | 19 + ...tionRequestProviderOptionsMorph2.Json.g.cs | 141 + ...enerationRequestProviderOptionsMorph2.g.cs | 19 + ...onRequestProviderOptionsNcompass.Json.g.cs | 141 + ...erationRequestProviderOptionsNcompass.g.cs | 19 + ...nRequestProviderOptionsNcompass2.Json.g.cs | 141 + ...rationRequestProviderOptionsNcompass2.g.cs | 19 + ...tionRequestProviderOptionsNebius.Json.g.cs | 141 + ...enerationRequestProviderOptionsNebius.g.cs | 19 + ...ionRequestProviderOptionsNebius2.Json.g.cs | 141 + ...nerationRequestProviderOptionsNebius2.g.cs | 19 + ...tionRequestProviderOptionsNexAgi.Json.g.cs | 141 + ...enerationRequestProviderOptionsNexAgi.g.cs | 19 + ...ionRequestProviderOptionsNexAgi2.Json.g.cs | 141 + ...nerationRequestProviderOptionsNexAgi2.g.cs | 19 + ...ionRequestProviderOptionsNextbit.Json.g.cs | 141 + ...nerationRequestProviderOptionsNextbit.g.cs | 19 + ...onRequestProviderOptionsNextbit2.Json.g.cs | 141 + ...erationRequestProviderOptionsNextbit2.g.cs | 19 + ...onRequestProviderOptionsNineteen.Json.g.cs | 141 + ...erationRequestProviderOptionsNineteen.g.cs | 19 + ...nRequestProviderOptionsNineteen2.Json.g.cs | 141 + ...rationRequestProviderOptionsNineteen2.g.cs | 19 + ...tionRequestProviderOptionsNovita.Json.g.cs | 141 + ...enerationRequestProviderOptionsNovita.g.cs | 19 + ...ionRequestProviderOptionsNovita2.Json.g.cs | 141 + ...nerationRequestProviderOptionsNovita2.g.cs | 19 + ...tionRequestProviderOptionsNvidia.Json.g.cs | 141 + ...enerationRequestProviderOptionsNvidia.g.cs | 19 + ...ionRequestProviderOptionsNvidia2.Json.g.cs | 141 + ...nerationRequestProviderOptionsNvidia2.g.cs | 19 + ...tionRequestProviderOptionsOctoai.Json.g.cs | 141 + ...enerationRequestProviderOptionsOctoai.g.cs | 19 + ...ionRequestProviderOptionsOctoai2.Json.g.cs | 141 + ...nerationRequestProviderOptionsOctoai2.g.cs | 19 + ...uestProviderOptionsOpenInference.Json.g.cs | 141 + ...onRequestProviderOptionsOpenInference.g.cs | 19 + ...estProviderOptionsOpenInference2.Json.g.cs | 141 + ...nRequestProviderOptionsOpenInference2.g.cs | 19 + ...tionRequestProviderOptionsOpenai.Json.g.cs | 141 + ...enerationRequestProviderOptionsOpenai.g.cs | 19 + ...ionRequestProviderOptionsOpenai2.Json.g.cs | 141 + ...nerationRequestProviderOptionsOpenai2.g.cs | 19 + ...onRequestProviderOptionsParasail.Json.g.cs | 141 + ...erationRequestProviderOptionsParasail.g.cs | 19 + ...nRequestProviderOptionsParasail2.Json.g.cs | 141 + ...rationRequestProviderOptionsParasail2.g.cs | 19 + ...RequestProviderOptionsPerceptron.Json.g.cs | 141 + ...ationRequestProviderOptionsPerceptron.g.cs | 19 + ...equestProviderOptionsPerceptron2.Json.g.cs | 141 + ...tionRequestProviderOptionsPerceptron2.g.cs | 19 + ...RequestProviderOptionsPerplexity.Json.g.cs | 141 + ...ationRequestProviderOptionsPerplexity.g.cs | 19 + ...equestProviderOptionsPerplexity2.Json.g.cs | 141 + ...tionRequestProviderOptionsPerplexity2.g.cs | 19 + ...ationRequestProviderOptionsPhala.Json.g.cs | 141 + ...GenerationRequestProviderOptionsPhala.g.cs | 19 + ...tionRequestProviderOptionsPhala2.Json.g.cs | 141 + ...enerationRequestProviderOptionsPhala2.g.cs | 19 + ...onRequestProviderOptionsPoolside.Json.g.cs | 141 + ...erationRequestProviderOptionsPoolside.g.cs | 19 + ...nRequestProviderOptionsPoolside2.Json.g.cs | 141 + ...rationRequestProviderOptionsPoolside2.g.cs | 19 + ...ionRequestProviderOptionsRecraft.Json.g.cs | 141 + ...nerationRequestProviderOptionsRecraft.g.cs | 19 + ...onRequestProviderOptionsRecraft2.Json.g.cs | 141 + ...erationRequestProviderOptionsRecraft2.g.cs | 19 + ...onRequestProviderOptionsRecursal.Json.g.cs | 141 + ...erationRequestProviderOptionsRecursal.g.cs | 19 + ...nRequestProviderOptionsRecursal2.Json.g.cs | 141 + ...rationRequestProviderOptionsRecursal2.g.cs | 19 + ...RequestProviderOptionsReflection.Json.g.cs | 141 + ...ationRequestProviderOptionsReflection.g.cs | 19 + ...equestProviderOptionsReflection2.Json.g.cs | 141 + ...tionRequestProviderOptionsReflection2.g.cs | 19 + ...rationRequestProviderOptionsReka.Json.g.cs | 141 + ...eGenerationRequestProviderOptionsReka.g.cs | 19 + ...ationRequestProviderOptionsReka2.Json.g.cs | 141 + ...GenerationRequestProviderOptionsReka2.g.cs | 19 + ...tionRequestProviderOptionsRelace.Json.g.cs | 141 + ...enerationRequestProviderOptionsRelace.g.cs | 19 + ...ionRequestProviderOptionsRelace2.Json.g.cs | 141 + ...nerationRequestProviderOptionsRelace2.g.cs | 19 + ...nRequestProviderOptionsReplicate.Json.g.cs | 141 + ...rationRequestProviderOptionsReplicate.g.cs | 19 + ...RequestProviderOptionsReplicate2.Json.g.cs | 141 + ...ationRequestProviderOptionsReplicate2.g.cs | 19 + ...nRequestProviderOptionsSambanova.Json.g.cs | 141 + ...rationRequestProviderOptionsSambanova.g.cs | 19 + ...RequestProviderOptionsSambanova2.Json.g.cs | 141 + ...ationRequestProviderOptionsSambanova2.g.cs | 19 + ...tProviderOptionsSambanovaCloaked.Json.g.cs | 141 + ...equestProviderOptionsSambanovaCloaked.g.cs | 19 + ...ProviderOptionsSambanovaCloaked2.Json.g.cs | 141 + ...questProviderOptionsSambanovaCloaked2.g.cs | 19 + ...rationRequestProviderOptionsSeed.Json.g.cs | 141 + ...eGenerationRequestProviderOptionsSeed.g.cs | 19 + ...ationRequestProviderOptionsSeed2.Json.g.cs | 141 + ...GenerationRequestProviderOptionsSeed2.g.cs | 19 + ...nRequestProviderOptionsSfCompute.Json.g.cs | 141 + ...rationRequestProviderOptionsSfCompute.g.cs | 19 + ...RequestProviderOptionsSfCompute2.Json.g.cs | 141 + ...ationRequestProviderOptionsSfCompute2.g.cs | 19 + ...equestProviderOptionsSiliconflow.Json.g.cs | 141 + ...tionRequestProviderOptionsSiliconflow.g.cs | 19 + ...questProviderOptionsSiliconflow2.Json.g.cs | 141 + ...ionRequestProviderOptionsSiliconflow2.g.cs | 19 + ...nRequestProviderOptionsSourceful.Json.g.cs | 141 + ...rationRequestProviderOptionsSourceful.g.cs | 19 + ...RequestProviderOptionsSourceful2.Json.g.cs | 141 + ...ationRequestProviderOptionsSourceful2.g.cs | 19 + ...ionRequestProviderOptionsStealth.Json.g.cs | 141 + ...nerationRequestProviderOptionsStealth.g.cs | 19 + ...onRequestProviderOptionsStealth2.Json.g.cs | 141 + ...erationRequestProviderOptionsStealth2.g.cs | 19 + ...ionRequestProviderOptionsStepfun.Json.g.cs | 141 + ...nerationRequestProviderOptionsStepfun.g.cs | 19 + ...onRequestProviderOptionsStepfun2.Json.g.cs | 141 + ...erationRequestProviderOptionsStepfun2.g.cs | 19 + ...RequestProviderOptionsStreamlake.Json.g.cs | 141 + ...ationRequestProviderOptionsStreamlake.g.cs | 19 + ...equestProviderOptionsStreamlake2.Json.g.cs | 141 + ...tionRequestProviderOptionsStreamlake2.g.cs | 19 + ...equestProviderOptionsSwitchpoint.Json.g.cs | 141 + ...tionRequestProviderOptionsSwitchpoint.g.cs | 19 + ...questProviderOptionsSwitchpoint2.Json.g.cs | 141 + ...ionRequestProviderOptionsSwitchpoint2.g.cs | 19 + ...tionRequestProviderOptionsTargon.Json.g.cs | 141 + ...enerationRequestProviderOptionsTargon.g.cs | 19 + ...ionRequestProviderOptionsTargon2.Json.g.cs | 141 + ...nerationRequestProviderOptionsTargon2.g.cs | 19 + ...onRequestProviderOptionsTogether.Json.g.cs | 141 + ...erationRequestProviderOptionsTogether.g.cs | 19 + ...nRequestProviderOptionsTogether2.Json.g.cs | 141 + ...rationRequestProviderOptionsTogether2.g.cs | 19 + ...questProviderOptionsTogetherLite.Json.g.cs | 141 + ...ionRequestProviderOptionsTogetherLite.g.cs | 19 + ...uestProviderOptionsTogetherLite2.Json.g.cs | 141 + ...onRequestProviderOptionsTogetherLite2.g.cs | 19 + ...onRequestProviderOptionsUbicloud.Json.g.cs | 141 + ...erationRequestProviderOptionsUbicloud.g.cs | 19 + ...nRequestProviderOptionsUbicloud2.Json.g.cs | 141 + ...rationRequestProviderOptionsUbicloud2.g.cs | 19 + ...ionRequestProviderOptionsUpstage.Json.g.cs | 141 + ...nerationRequestProviderOptionsUpstage.g.cs | 19 + ...onRequestProviderOptionsUpstage2.Json.g.cs | 141 + ...erationRequestProviderOptionsUpstage2.g.cs | 19 + ...tionRequestProviderOptionsVenice.Json.g.cs | 141 + ...enerationRequestProviderOptionsVenice.g.cs | 19 + ...ionRequestProviderOptionsVenice2.Json.g.cs | 141 + ...nerationRequestProviderOptionsVenice2.g.cs | 19 + ...ationRequestProviderOptionsWafer.Json.g.cs | 141 + ...GenerationRequestProviderOptionsWafer.g.cs | 19 + ...tionRequestProviderOptionsWafer2.Json.g.cs | 141 + ...enerationRequestProviderOptionsWafer2.g.cs | 19 + ...ationRequestProviderOptionsWandb.Json.g.cs | 141 + ...GenerationRequestProviderOptionsWandb.g.cs | 19 + ...tionRequestProviderOptionsWandb2.Json.g.cs | 141 + ...enerationRequestProviderOptionsWandb2.g.cs | 19 + ...erationRequestProviderOptionsXai.Json.g.cs | 141 + ...geGenerationRequestProviderOptionsXai.g.cs | 19 + ...rationRequestProviderOptionsXai2.Json.g.cs | 141 + ...eGenerationRequestProviderOptionsXai2.g.cs | 19 + ...tionRequestProviderOptionsXiaomi.Json.g.cs | 141 + ...enerationRequestProviderOptionsXiaomi.g.cs | 19 + ...ionRequestProviderOptionsXiaomi2.Json.g.cs | 141 + ...nerationRequestProviderOptionsXiaomi2.g.cs | 19 + ...erationRequestProviderOptionsZAi.Json.g.cs | 141 + ...geGenerationRequestProviderOptionsZAi.g.cs | 19 + ...rationRequestProviderOptionsZAi2.Json.g.cs | 141 + ...eGenerationRequestProviderOptionsZAi2.g.cs | 19 + ...ationRequestProviderOptionsx01ai.Json.g.cs | 141 + ...GenerationRequestProviderOptionsx01ai.g.cs | 19 + ...tionRequestProviderOptionsx01ai2.Json.g.cs | 141 + ...enerationRequestProviderOptionsx01ai2.g.cs | 19 + ....Models.ImageGenerationRequestQuality.g.cs | 63 + ...dels.ImageGenerationRequestResolution.g.cs | 63 + ...r.Models.ImageGenerationResponse.Json.g.cs | 141 + ...Router.Models.ImageGenerationResponse.g.cs | 71 + ...ImageGenerationResponseDataItems.Json.g.cs | 141 + ...dels.ImageGenerationResponseDataItems.g.cs | 47 + ...uter.Models.ImageGenerationUsage.Json.g.cs | 141 + ...penRouter.Models.ImageGenerationUsage.g.cs | 168 + ...tionUsageCompletionTokensDetails.Json.g.cs | 141 + ...enerationUsageCompletionTokensDetails.g.cs | 68 + ...nerationUsagePromptTokensDetails.Json.g.cs | 141 + ...ageGenerationUsagePromptTokensDetails.g.cs | 90 + ...mageGenerationUsageServerToolUse.Json.g.cs | 141 + ...els.ImageGenerationUsageServerToolUse.g.cs | 68 + ...er.Models.ImageModelArchitecture.Json.g.cs | 141 + ...nRouter.Models.ImageModelArchitecture.g.cs | 59 + ...dels.ImageModelEndpointsResponse.Json.g.cs | 141 + ...er.Models.ImageModelEndpointsResponse.g.cs | 57 + ...Router.Models.ImageModelListItem.Json.g.cs | 141 + .../OpenRouter.Models.ImageModelListItem.g.cs | 128 + ...r.Models.ImageModelsListResponse.Json.g.cs | 141 + ...Router.Models.ImageModelsListResponse.g.cs | 45 + ...OpenRouter.Models.ImageOutputModality.g.cs | 87 + ...nRouter.Models.ImagePricingEntry.Json.g.cs | 141 + .../OpenRouter.Models.ImagePricingEntry.g.cs | 76 + ...uter.Models.ImagePricingEntryBillable.g.cs | 69 + ...enRouter.Models.ImagePricingEntryUnit.g.cs | 57 + ...OpenRouter.Models.RangeCapabilityType.g.cs | 45 + .../OpenRouter.Models.ResponsesRequest.g.cs | 11 + ...outer.Models.SupportedParameters.Json.g.cs | 141 + ...OpenRouter.Models.SupportedParameters.g.cs | 19 + .../OpenRouter.OpenRouterClient.g.cs | 9 + ...geBetaResponsesClient.CreateResponses.g.cs | 5 + ...r.SubpackageImagesClient.CreateImages.g.cs | 823 ++++ ...eImagesClient.ListImageModelEndpoints.g.cs | 509 +++ ...ubpackageImagesClient.ListImageModels.g.cs | 454 ++ .../OpenRouter.SubpackageImagesClient.g.cs | 136 + ...ePresetsClient.CreatePresetsResponses.g.cs | 5 + src/libs/OpenRouter/openapi.yaml | 2677 ++++++++--- 563 files changed, 52238 insertions(+), 2657 deletions(-) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.ISubpackageImagesClient.CreateImages.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.ISubpackageImagesClient.ListImageModelEndpoints.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.ISubpackageImagesClient.ListImageModels.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.ISubpackageImagesClient.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CapabilityDescriptor.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CapabilityDescriptorDiscriminatorType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CapabilityDescriptorDiscriminatorTypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CapabilityDescriptorVariant1Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CapabilityDescriptorVariant1TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.EnumCapabilityType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.EnumCapabilityTypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationRequestAspectRatio.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationRequestAspectRatioNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationRequestBackground.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationRequestBackgroundNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationRequestOutputFormat.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationRequestOutputFormatNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationRequestQuality.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationRequestQualityNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationRequestResolution.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationRequestResolutionNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageOutputModality.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageOutputModalityNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImagePricingEntryBillable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImagePricingEntryBillableNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImagePricingEntryUnit.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImagePricingEntryUnitNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.RangeCapabilityType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.RangeCapabilityTypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CapabilityDescriptor.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CapabilityDescriptor.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CapabilityDescriptorDiscriminator.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CapabilityDescriptorDiscriminator.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CapabilityDescriptorDiscriminatorType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CapabilityDescriptorVariant1.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CapabilityDescriptorVariant1.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CapabilityDescriptorVariant1Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CapabilityDescriptorVariant2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CapabilityDescriptorVariant2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CapabilityDescriptorVariant3.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CapabilityDescriptorVariant3.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ContentPartImage.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ContentPartImage.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.EnumCapabilityType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageEndpoint.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageEndpoint.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageEndpointSupportedParameters.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageEndpointSupportedParameters.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequest.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequest.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestAspectRatio.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestBackground.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestOutputFormat.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProvider.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProvider.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptions.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptions.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAi21.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAi21.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAi212.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAi212.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAionLabs.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAionLabs.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAionLabs2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAionLabs2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAkashml.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAkashml.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAkashml2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAkashml2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAlibaba.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAlibaba.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAlibaba2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAlibaba2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmazonBedrock.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmazonBedrock.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmazonBedrock2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmazonBedrock2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmazonNova.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmazonNova.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmazonNova2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmazonNova2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmbient.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmbient.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmbient2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmbient2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAnthropic.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAnthropic.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAnthropic2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAnthropic2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAnyscale.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAnyscale.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAnyscale2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAnyscale2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsArceeAi.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsArceeAi.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsArceeAi2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsArceeAi2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAtlasCloud.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAtlasCloud.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAtlasCloud2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAtlasCloud2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAtoma.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAtoma.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAtoma2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAtoma2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAvian.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAvian.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAvian2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAvian2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAzure.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAzure.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAzure2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAzure2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBaidu.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBaidu.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBaidu2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBaidu2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBaseten.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBaseten.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBaseten2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBaseten2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBlackForestLabs.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBlackForestLabs.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBlackForestLabs2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBlackForestLabs2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsByteplus.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsByteplus.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsByteplus2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsByteplus2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCentml.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCentml.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCentml2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCentml2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCerebras.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCerebras.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCerebras2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCerebras2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsChutes.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsChutes.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsChutes2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsChutes2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCirrascale.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCirrascale.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCirrascale2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCirrascale2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsClarifai.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsClarifai.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsClarifai2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsClarifai2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCloudflare.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCloudflare.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCloudflare2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCloudflare2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCohere.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCohere.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCohere2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCohere2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrofai.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrofai.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrofai2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrofai2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrucible.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrucible.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrucible2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrucible2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrusoe.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrusoe.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrusoe2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrusoe2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDarkbloom.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDarkbloom.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDarkbloom2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDarkbloom2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDecart.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDecart.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDecart2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDecart2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDeepinfra.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDeepinfra.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDeepinfra2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDeepinfra2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDeepseek.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDeepseek.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDeepseek2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDeepseek2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDekallm.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDekallm.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDekallm2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDekallm2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDigitalocean.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDigitalocean.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDigitalocean2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDigitalocean2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsEnfer.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsEnfer.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsEnfer2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsEnfer2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFakeProvider.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFakeProvider.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFakeProvider2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFakeProvider2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFeatherless.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFeatherless.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFeatherless2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFeatherless2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFireworks.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFireworks.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFireworks2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFireworks2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFriendli.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFriendli.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFriendli2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFriendli2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGmicloud.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGmicloud.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGmicloud2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGmicloud2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGoogleAiStudio.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGoogleAiStudio.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGoogleAiStudio2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGoogleAiStudio2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGoogleVertex.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGoogleVertex.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGoogleVertex2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGoogleVertex2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGopomelo.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGopomelo.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGopomelo2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGopomelo2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGroq.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGroq.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGroq2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGroq2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHuggingface.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHuggingface.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHuggingface2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHuggingface2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHyperbolic.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHyperbolic.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHyperbolic2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHyperbolic2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHyperbolicQuantized.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHyperbolicQuantized.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHyperbolicQuantized2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHyperbolicQuantized2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInception.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInception.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInception2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInception2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInceptron.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInceptron.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInceptron2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInceptron2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInferenceNet.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInferenceNet.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInferenceNet2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInferenceNet2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInfermatic.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInfermatic.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInfermatic2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInfermatic2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInflection.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInflection.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInflection2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInflection2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInocloud.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInocloud.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInocloud2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInocloud2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsIoNet.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsIoNet.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsIoNet2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsIoNet2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsIonstream.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsIonstream.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsIonstream2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsIonstream2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsKlusterai.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsKlusterai.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsKlusterai2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsKlusterai2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLambda.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLambda.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLambda2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLambda2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLepton.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLepton.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLepton2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLepton2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLiquid.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLiquid.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLiquid2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLiquid2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLynn.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLynn.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLynn2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLynn2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLynnPrivate.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLynnPrivate.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLynnPrivate2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLynnPrivate2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMancer.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMancer.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMancer2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMancer2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMancerOld.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMancerOld.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMancerOld2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMancerOld2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMara.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMara.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMara2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMara2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMeta.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMeta.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMeta2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMeta2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMinimax.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMinimax.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMinimax2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMinimax2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMistral.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMistral.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMistral2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMistral2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModal.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModal.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModal2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModal2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModelrun.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModelrun.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModelrun2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModelrun2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModular.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModular.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModular2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModular2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMoonshotai.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMoonshotai.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMoonshotai2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMoonshotai2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMorph.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMorph.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMorph2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMorph2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNcompass.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNcompass.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNcompass2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNcompass2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNebius.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNebius.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNebius2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNebius2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNexAgi.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNexAgi.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNexAgi2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNexAgi2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNextbit.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNextbit.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNextbit2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNextbit2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNineteen.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNineteen.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNineteen2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNineteen2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNovita.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNovita.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNovita2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNovita2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNvidia.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNvidia.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNvidia2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNvidia2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOctoai.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOctoai.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOctoai2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOctoai2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOpenInference.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOpenInference.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOpenInference2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOpenInference2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOpenai.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOpenai.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOpenai2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOpenai2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsParasail.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsParasail.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsParasail2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsParasail2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPerceptron.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPerceptron.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPerceptron2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPerceptron2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPerplexity.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPerplexity.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPerplexity2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPerplexity2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPhala.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPhala.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPhala2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPhala2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPoolside.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPoolside.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPoolside2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPoolside2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRecraft.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRecraft.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRecraft2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRecraft2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRecursal.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRecursal.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRecursal2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRecursal2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReflection.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReflection.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReflection2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReflection2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReka.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReka.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReka2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReka2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRelace.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRelace.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRelace2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRelace2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReplicate.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReplicate.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReplicate2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReplicate2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSambanova.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSambanova.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSambanova2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSambanova2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSambanovaCloaked.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSambanovaCloaked.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSambanovaCloaked2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSambanovaCloaked2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSeed.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSeed.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSeed2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSeed2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSfCompute.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSfCompute.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSfCompute2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSfCompute2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSiliconflow.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSiliconflow.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSiliconflow2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSiliconflow2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSourceful.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSourceful.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSourceful2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSourceful2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStealth.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStealth.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStealth2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStealth2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStepfun.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStepfun.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStepfun2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStepfun2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStreamlake.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStreamlake.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStreamlake2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStreamlake2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSwitchpoint.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSwitchpoint.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSwitchpoint2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSwitchpoint2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTargon.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTargon.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTargon2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTargon2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTogether.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTogether.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTogether2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTogether2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTogetherLite.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTogetherLite.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTogetherLite2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTogetherLite2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsUbicloud.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsUbicloud.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsUbicloud2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsUbicloud2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsUpstage.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsUpstage.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsUpstage2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsUpstage2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsVenice.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsVenice.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsVenice2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsVenice2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsWafer.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsWafer.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsWafer2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsWafer2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsWandb.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsWandb.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsWandb2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsWandb2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsXai.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsXai.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsXai2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsXai2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsXiaomi.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsXiaomi.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsXiaomi2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsXiaomi2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsZAi.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsZAi.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsZAi2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsZAi2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsx01ai.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsx01ai.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsx01ai2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsx01ai2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestQuality.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestResolution.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationResponse.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationResponse.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationResponseDataItems.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationResponseDataItems.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationUsage.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationUsage.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationUsageCompletionTokensDetails.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationUsageCompletionTokensDetails.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationUsagePromptTokensDetails.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationUsagePromptTokensDetails.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationUsageServerToolUse.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationUsageServerToolUse.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageModelArchitecture.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageModelArchitecture.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageModelEndpointsResponse.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageModelEndpointsResponse.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageModelListItem.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageModelListItem.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageModelsListResponse.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageModelsListResponse.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageOutputModality.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImagePricingEntry.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImagePricingEntry.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImagePricingEntryBillable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImagePricingEntryUnit.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.RangeCapabilityType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.SupportedParameters.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.SupportedParameters.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.SubpackageImagesClient.CreateImages.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.SubpackageImagesClient.ListImageModelEndpoints.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.SubpackageImagesClient.ListImageModels.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.SubpackageImagesClient.g.cs diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IOpenRouterClient.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IOpenRouterClient.g.cs index 4e345221..7cc49edb 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IOpenRouterClient.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IOpenRouterClient.g.cs @@ -119,6 +119,11 @@ public partial interface IOpenRouterClient : global::System.IDisposable /// public SubpackageGuardrailsClient SubpackageGuardrails { get; } + /// + /// + /// + public SubpackageImagesClient SubpackageImages { get; } + /// /// /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageBetaResponsesClient.CreateResponses.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageBetaResponsesClient.CreateResponses.g.cs index 3085e974..605e105a 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageBetaResponsesClient.CreateResponses.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageBetaResponsesClient.CreateResponses.g.cs @@ -49,6 +49,9 @@ public partial interface ISubpackageBetaResponsesClient /// /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. /// + /// + /// Debug options for inspecting request transformations (streaming only) + /// /// /// /// @@ -118,6 +121,7 @@ public partial interface ISubpackageBetaResponsesClient global::OpenRouter.MetadataLevel? xOpenRouterMetadata = default, bool? background = default, global::OpenRouter.AnthropicCacheControlDirective? cacheControl = default, + global::OpenRouter.ChatDebugOptions? debug = default, double? frequencyPenalty = default, global::OpenRouter.ImageConfig? imageConfig = default, global::System.Collections.Generic.IList? include = default, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageImagesClient.CreateImages.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageImagesClient.CreateImages.g.cs new file mode 100644 index 00000000..0525011d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageImagesClient.CreateImages.g.cs @@ -0,0 +1,100 @@ +#nullable enable + +namespace OpenRouter +{ + public partial interface ISubpackageImagesClient + { + /// + /// Generate an image
+ /// Generates an image from a text prompt via the image generation router + ///
+ /// + /// 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 CreateImagesAsync( + + global::OpenRouter.ImageGenerationRequest request, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Generate an image
+ /// Generates an image from a text prompt via the image generation router + ///
+ /// + /// 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> CreateImagesAsResponseAsync( + + global::OpenRouter.ImageGenerationRequest request, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Generate an image
+ /// Generates an image from a text prompt via the image generation router + ///
+ /// + /// Normalized aspect ratio of the generated image. Providers clamp to their supported subset. + /// + /// + /// Background treatment. `transparent` requires an output_format that supports alpha (png or webp). + /// + /// + /// Reference images to guide image-to-image generation, as base64 data URLs or HTTP(S) URLs. + /// + /// + /// The image generation model to use + /// + /// + /// Number of images to generate (1-10). Providers that only support single-image generation reject n > 1. + /// + /// + /// Compression level (0-100) for webp/jpeg output. Ignored for png and by providers without a compression knob. + /// + /// + /// Encoding of the returned image bytes. + /// + /// + /// Text description of the desired image + /// + /// + /// Provider-specific passthrough configuration + /// + /// + /// Rendering quality. Providers without a quality knob ignore this. + /// + /// + /// Normalized resolution tier of the generated image. Concrete pixel dimensions are derived per-provider. + /// + /// + /// If specified, the generation will sample deterministically, such that repeated requests with the same seed and parameters should return the same result. Determinism is not guaranteed for all providers. + /// + /// + /// 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. Interchangeable with resolution + aspect_ratio; use those directly for enumerated, per-model discoverable values. Conflicting size + resolution/aspect_ratio is rejected. + /// + /// + /// If true, partial images are streamed as SSE events as they become available. Only supported by providers with native streaming (currently OpenAI). Non-streaming providers ignore this flag and return a buffered response. + /// + /// 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 CreateImagesAsync( + string model, + string prompt, + global::OpenRouter.ImageGenerationRequestAspectRatio? aspectRatio = default, + global::OpenRouter.ImageGenerationRequestBackground? background = default, + global::System.Collections.Generic.IList? inputReferences = default, + int? n = default, + int? outputCompression = default, + global::OpenRouter.ImageGenerationRequestOutputFormat? outputFormat = default, + global::OpenRouter.ImageGenerationRequestProvider? provider = default, + global::OpenRouter.ImageGenerationRequestQuality? quality = default, + global::OpenRouter.ImageGenerationRequestResolution? resolution = default, + int? seed = default, + string? size = default, + bool? stream = 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.ISubpackageImagesClient.ListImageModelEndpoints.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageImagesClient.ListImageModelEndpoints.g.cs new file mode 100644 index 00000000..9c0de893 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageImagesClient.ListImageModelEndpoints.g.cs @@ -0,0 +1,36 @@ +#nullable enable + +namespace OpenRouter +{ + public partial interface ISubpackageImagesClient + { + /// + /// List endpoints for an image model
+ /// Returns the full per-endpoint records for an image model: each endpoint's definitive supported parameters, pricing, and passthrough allowlist. + ///
+ /// + /// + /// 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 ListImageModelEndpointsAsync( + string author, + string slug, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// List endpoints for an image model
+ /// Returns the full per-endpoint records for an image model: each endpoint's definitive supported parameters, pricing, and passthrough allowlist. + ///
+ /// + /// + /// 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> ListImageModelEndpointsAsResponseAsync( + string author, + string slug, + 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.ISubpackageImagesClient.ListImageModels.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageImagesClient.ListImageModels.g.cs new file mode 100644 index 00000000..6011297c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageImagesClient.ListImageModels.g.cs @@ -0,0 +1,28 @@ +#nullable enable + +namespace OpenRouter +{ + public partial interface ISubpackageImagesClient + { + /// + /// List image generation models
+ /// Lists every image generation model with its top-level supported-parameter superset and a URL to its full per-endpoint records. + ///
+ /// 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 ListImageModelsAsync( + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// List image generation models
+ /// Lists every image generation model with its top-level supported-parameter superset and a URL to its full per-endpoint records. + ///
+ /// 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> ListImageModelsAsResponseAsync( + 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.ISubpackageImagesClient.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageImagesClient.g.cs new file mode 100644 index 00000000..8550e4d9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageImagesClient.g.cs @@ -0,0 +1,48 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// 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 ISubpackageImagesClient : 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; } + + + /// + /// + /// + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ISubpackagePresetsClient.CreatePresetsResponses.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackagePresetsClient.CreatePresetsResponses.g.cs index 2e1d5fb7..7927401b 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.ISubpackagePresetsClient.CreatePresetsResponses.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackagePresetsClient.CreatePresetsResponses.g.cs @@ -43,6 +43,9 @@ public partial interface ISubpackagePresetsClient /// /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. /// + /// + /// Debug options for inspecting request transformations (streaming only) + /// /// /// /// @@ -112,6 +115,7 @@ public partial interface ISubpackagePresetsClient string slug, bool? background = default, global::OpenRouter.AnthropicCacheControlDirective? cacheControl = default, + global::OpenRouter.ChatDebugOptions? debug = default, double? frequencyPenalty = default, global::OpenRouter.ImageConfig? imageConfig = default, global::System.Collections.Generic.IList? include = default, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CapabilityDescriptor.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CapabilityDescriptor.g.cs new file mode 100644 index 00000000..50719fd0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CapabilityDescriptor.g.cs @@ -0,0 +1,87 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace OpenRouter.JsonConverters +{ + /// + public class CapabilityDescriptorJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CapabilityDescriptor 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.CapabilityDescriptorDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.CapabilityDescriptorDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); + + global::OpenRouter.CapabilityDescriptorVariant1? boolean = default; + if (discriminator?.Type == global::OpenRouter.CapabilityDescriptorDiscriminatorType.Boolean) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CapabilityDescriptorVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.CapabilityDescriptorVariant1)}"); + boolean = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.CapabilityDescriptorVariant2? @enum = default; + if (discriminator?.Type == global::OpenRouter.CapabilityDescriptorDiscriminatorType.Enum) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CapabilityDescriptorVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.CapabilityDescriptorVariant2)}"); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.CapabilityDescriptorVariant3? range = default; + if (discriminator?.Type == global::OpenRouter.CapabilityDescriptorDiscriminatorType.Range) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CapabilityDescriptorVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.CapabilityDescriptorVariant3)}"); + range = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + var __value = new global::OpenRouter.CapabilityDescriptor( + discriminator?.Type, + boolean, + + @enum, + + range + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CapabilityDescriptor 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.IsBoolean) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CapabilityDescriptorVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.CapabilityDescriptorVariant1).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Boolean!, typeInfo); + } + else if (value.IsEnum) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CapabilityDescriptorVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.CapabilityDescriptorVariant2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum!, typeInfo); + } + else if (value.IsRange) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CapabilityDescriptorVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.CapabilityDescriptorVariant3).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Range!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CapabilityDescriptorDiscriminatorType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CapabilityDescriptorDiscriminatorType.g.cs new file mode 100644 index 00000000..9c2021ef --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CapabilityDescriptorDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class CapabilityDescriptorDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CapabilityDescriptorDiscriminatorType 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.CapabilityDescriptorDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.CapabilityDescriptorDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.CapabilityDescriptorDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CapabilityDescriptorDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.CapabilityDescriptorDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CapabilityDescriptorDiscriminatorTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CapabilityDescriptorDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..9b5a8ae1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CapabilityDescriptorDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class CapabilityDescriptorDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CapabilityDescriptorDiscriminatorType? 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.CapabilityDescriptorDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.CapabilityDescriptorDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.CapabilityDescriptorDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CapabilityDescriptorDiscriminatorType? 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.CapabilityDescriptorDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CapabilityDescriptorVariant1Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CapabilityDescriptorVariant1Type.g.cs new file mode 100644 index 00000000..10d5ea09 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CapabilityDescriptorVariant1Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class CapabilityDescriptorVariant1TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CapabilityDescriptorVariant1Type 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.CapabilityDescriptorVariant1TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.CapabilityDescriptorVariant1Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.CapabilityDescriptorVariant1Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CapabilityDescriptorVariant1Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.CapabilityDescriptorVariant1TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CapabilityDescriptorVariant1TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CapabilityDescriptorVariant1TypeNullable.g.cs new file mode 100644 index 00000000..52449a5e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CapabilityDescriptorVariant1TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class CapabilityDescriptorVariant1TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CapabilityDescriptorVariant1Type? 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.CapabilityDescriptorVariant1TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.CapabilityDescriptorVariant1Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.CapabilityDescriptorVariant1Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CapabilityDescriptorVariant1Type? 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.CapabilityDescriptorVariant1TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.EnumCapabilityType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.EnumCapabilityType.g.cs new file mode 100644 index 00000000..0c816f1a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.EnumCapabilityType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class EnumCapabilityTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.EnumCapabilityType 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.EnumCapabilityTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.EnumCapabilityType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.EnumCapabilityType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.EnumCapabilityType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.EnumCapabilityTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.EnumCapabilityTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.EnumCapabilityTypeNullable.g.cs new file mode 100644 index 00000000..b27200c0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.EnumCapabilityTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class EnumCapabilityTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.EnumCapabilityType? 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.EnumCapabilityTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.EnumCapabilityType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.EnumCapabilityType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.EnumCapabilityType? 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.EnumCapabilityTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationRequestAspectRatio.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationRequestAspectRatio.g.cs new file mode 100644 index 00000000..be07ee28 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationRequestAspectRatio.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ImageGenerationRequestAspectRatioJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ImageGenerationRequestAspectRatio 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.ImageGenerationRequestAspectRatioExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ImageGenerationRequestAspectRatio)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ImageGenerationRequestAspectRatio); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ImageGenerationRequestAspectRatio value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ImageGenerationRequestAspectRatioExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationRequestAspectRatioNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationRequestAspectRatioNullable.g.cs new file mode 100644 index 00000000..5102126a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationRequestAspectRatioNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ImageGenerationRequestAspectRatioNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ImageGenerationRequestAspectRatio? 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.ImageGenerationRequestAspectRatioExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ImageGenerationRequestAspectRatio)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ImageGenerationRequestAspectRatio?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ImageGenerationRequestAspectRatio? 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.ImageGenerationRequestAspectRatioExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationRequestBackground.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationRequestBackground.g.cs new file mode 100644 index 00000000..d1878939 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationRequestBackground.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ImageGenerationRequestBackgroundJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ImageGenerationRequestBackground 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.ImageGenerationRequestBackgroundExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ImageGenerationRequestBackground)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ImageGenerationRequestBackground); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ImageGenerationRequestBackground value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ImageGenerationRequestBackgroundExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationRequestBackgroundNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationRequestBackgroundNullable.g.cs new file mode 100644 index 00000000..0f62d5d2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationRequestBackgroundNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ImageGenerationRequestBackgroundNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ImageGenerationRequestBackground? 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.ImageGenerationRequestBackgroundExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ImageGenerationRequestBackground)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ImageGenerationRequestBackground?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ImageGenerationRequestBackground? 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.ImageGenerationRequestBackgroundExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationRequestOutputFormat.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationRequestOutputFormat.g.cs new file mode 100644 index 00000000..e3b8937c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationRequestOutputFormat.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ImageGenerationRequestOutputFormatJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ImageGenerationRequestOutputFormat 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.ImageGenerationRequestOutputFormatExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ImageGenerationRequestOutputFormat)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ImageGenerationRequestOutputFormat); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ImageGenerationRequestOutputFormat value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ImageGenerationRequestOutputFormatExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationRequestOutputFormatNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationRequestOutputFormatNullable.g.cs new file mode 100644 index 00000000..baeaaa7a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationRequestOutputFormatNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ImageGenerationRequestOutputFormatNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ImageGenerationRequestOutputFormat? 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.ImageGenerationRequestOutputFormatExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ImageGenerationRequestOutputFormat)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ImageGenerationRequestOutputFormat?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ImageGenerationRequestOutputFormat? 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.ImageGenerationRequestOutputFormatExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationRequestQuality.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationRequestQuality.g.cs new file mode 100644 index 00000000..3f1c45d0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationRequestQuality.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ImageGenerationRequestQualityJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ImageGenerationRequestQuality 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.ImageGenerationRequestQualityExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ImageGenerationRequestQuality)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ImageGenerationRequestQuality); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ImageGenerationRequestQuality value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ImageGenerationRequestQualityExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationRequestQualityNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationRequestQualityNullable.g.cs new file mode 100644 index 00000000..0173eb4f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationRequestQualityNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ImageGenerationRequestQualityNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ImageGenerationRequestQuality? 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.ImageGenerationRequestQualityExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ImageGenerationRequestQuality)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ImageGenerationRequestQuality?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ImageGenerationRequestQuality? 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.ImageGenerationRequestQualityExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationRequestResolution.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationRequestResolution.g.cs new file mode 100644 index 00000000..79749ced --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationRequestResolution.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ImageGenerationRequestResolutionJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ImageGenerationRequestResolution 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.ImageGenerationRequestResolutionExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ImageGenerationRequestResolution)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ImageGenerationRequestResolution); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ImageGenerationRequestResolution value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ImageGenerationRequestResolutionExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationRequestResolutionNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationRequestResolutionNullable.g.cs new file mode 100644 index 00000000..2e8fb1be --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationRequestResolutionNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ImageGenerationRequestResolutionNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ImageGenerationRequestResolution? 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.ImageGenerationRequestResolutionExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ImageGenerationRequestResolution)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ImageGenerationRequestResolution?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ImageGenerationRequestResolution? 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.ImageGenerationRequestResolutionExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageOutputModality.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageOutputModality.g.cs new file mode 100644 index 00000000..5db4f4b8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageOutputModality.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ImageOutputModalityJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ImageOutputModality 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.ImageOutputModalityExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ImageOutputModality)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ImageOutputModality); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ImageOutputModality value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ImageOutputModalityExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageOutputModalityNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageOutputModalityNullable.g.cs new file mode 100644 index 00000000..293bb610 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageOutputModalityNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ImageOutputModalityNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ImageOutputModality? 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.ImageOutputModalityExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ImageOutputModality)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ImageOutputModality?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ImageOutputModality? 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.ImageOutputModalityExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImagePricingEntryBillable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImagePricingEntryBillable.g.cs new file mode 100644 index 00000000..2a60587c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImagePricingEntryBillable.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ImagePricingEntryBillableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ImagePricingEntryBillable 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.ImagePricingEntryBillableExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ImagePricingEntryBillable)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ImagePricingEntryBillable); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ImagePricingEntryBillable value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ImagePricingEntryBillableExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImagePricingEntryBillableNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImagePricingEntryBillableNullable.g.cs new file mode 100644 index 00000000..d40342ce --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImagePricingEntryBillableNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ImagePricingEntryBillableNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ImagePricingEntryBillable? 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.ImagePricingEntryBillableExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ImagePricingEntryBillable)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ImagePricingEntryBillable?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ImagePricingEntryBillable? 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.ImagePricingEntryBillableExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImagePricingEntryUnit.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImagePricingEntryUnit.g.cs new file mode 100644 index 00000000..43cc48e0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImagePricingEntryUnit.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ImagePricingEntryUnitJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ImagePricingEntryUnit 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.ImagePricingEntryUnitExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ImagePricingEntryUnit)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ImagePricingEntryUnit); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ImagePricingEntryUnit value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ImagePricingEntryUnitExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImagePricingEntryUnitNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImagePricingEntryUnitNullable.g.cs new file mode 100644 index 00000000..f887bda3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImagePricingEntryUnitNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ImagePricingEntryUnitNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ImagePricingEntryUnit? 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.ImagePricingEntryUnitExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ImagePricingEntryUnit)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ImagePricingEntryUnit?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ImagePricingEntryUnit? 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.ImagePricingEntryUnitExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.RangeCapabilityType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.RangeCapabilityType.g.cs new file mode 100644 index 00000000..525a35fe --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.RangeCapabilityType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class RangeCapabilityTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.RangeCapabilityType 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.RangeCapabilityTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.RangeCapabilityType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.RangeCapabilityType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.RangeCapabilityType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.RangeCapabilityTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.RangeCapabilityTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.RangeCapabilityTypeNullable.g.cs new file mode 100644 index 00000000..c4272740 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.RangeCapabilityTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class RangeCapabilityTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.RangeCapabilityType? 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.RangeCapabilityTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.RangeCapabilityType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.RangeCapabilityType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.RangeCapabilityType? 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.RangeCapabilityTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestToolsItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestToolsItems.g.cs index d9aaa8de..ce73e5e0 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestToolsItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestToolsItems.g.cs @@ -177,6 +177,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. var __score17 = 0; if (__jsonProps.Contains("parameters")) __score17++; if (__jsonProps.Contains("parameters.analysis_models")) __score17++; + if (__jsonProps.Contains("parameters.cache_control")) __score17++; if (__jsonProps.Contains("parameters.max_completion_tokens")) __score17++; if (__jsonProps.Contains("parameters.max_tool_calls")) __score17++; if (__jsonProps.Contains("parameters.model")) __score17++; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs index 997020a6..ba287f45 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs @@ -1165,6 +1165,74 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.AuthKeysCodePostRequestBodyContentApplicationJsonSchemaUsageLimitTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageGenerationRequestAspectRatioJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationRequestAspectRatioNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationRequestBackgroundJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationRequestBackgroundNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationRequestOutputFormatJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationRequestOutputFormatNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationRequestQualityJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationRequestQualityNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationRequestResolutionJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationRequestResolutionNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicCompactionUsageIterationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicCompactionUsageIterationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicMessageUsageIterationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicMessageUsageIterationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicAdvisorMessageUsageIterationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicAdvisorMessageUsageIterationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicSpeedJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicSpeedNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.InputModalityJsonConverter), + + typeof(global::OpenRouter.JsonConverters.InputModalityNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageOutputModalityJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageOutputModalityNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EnumCapabilityTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EnumCapabilityTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.RangeCapabilityTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.RangeCapabilityTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CapabilityDescriptorVariant1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CapabilityDescriptorVariant1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CapabilityDescriptorDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CapabilityDescriptorDiscriminatorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImagePricingEntryBillableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImagePricingEntryBillableNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImagePricingEntryUnitJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImagePricingEntryUnitNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.SpeechRequestResponseFormatJsonConverter), typeof(global::OpenRouter.JsonConverters.SpeechRequestResponseFormatNullableJsonConverter), @@ -1465,10 +1533,6 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.EmbeddingsPostResponsesContentApplicationJsonSchemaObjectNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.InputModalityJsonConverter), - - typeof(global::OpenRouter.JsonConverters.InputModalityNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ModelArchitectureInstructTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.ModelArchitectureInstructTypeNullableJsonConverter), @@ -1773,10 +1837,6 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsDiscriminatorIdNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.AnthropicSpeedJsonConverter), - - typeof(global::OpenRouter.JsonConverters.AnthropicSpeedNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.AnthropicThinkingDisplayJsonConverter), typeof(global::OpenRouter.JsonConverters.AnthropicThinkingDisplayNullableJsonConverter), @@ -2125,18 +2185,6 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.AnthropicServiceTierNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.AnthropicCompactionUsageIterationTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.AnthropicCompactionUsageIterationTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.AnthropicMessageUsageIterationTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.AnthropicMessageUsageIterationTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.AnthropicAdvisorMessageUsageIterationTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.AnthropicAdvisorMessageUsageIterationTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.MessagesErrorResponseTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.MessagesErrorResponseTypeNullableJsonConverter), @@ -2713,6 +2761,10 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.OpenResponsesResultToolsItemsJsonConverter), + typeof(global::OpenRouter.JsonConverters.AnthropicUsageIterationJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CapabilityDescriptorJsonConverter), + typeof(global::OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaFiltersItemsValueOneOf2ItemsJsonConverter), typeof(global::OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaFiltersItemsValueJsonConverter), @@ -2821,8 +2873,6 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.ORAnthropicContentBlockJsonConverter), - typeof(global::OpenRouter.JsonConverters.AnthropicUsageIterationJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueJsonConverter), typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationJsonConverter), @@ -2863,6 +2913,12 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), @@ -2922,6 +2978,8 @@ namespace OpenRouter [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCacheControlTtl), TypeInfoPropertyName = "AnthropicCacheControlTtl2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCacheControlDirectiveType), TypeInfoPropertyName = "AnthropicCacheControlDirectiveType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCacheControlDirective))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatDebugOptions))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageConfig), TypeInfoPropertyName = "ImageConfig2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] @@ -3136,7 +3194,6 @@ namespace OpenRouter [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.McpApprovalRequestItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.McpApprovalResponseItemType), TypeInfoPropertyName = "McpApprovalResponseItemType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.McpApprovalResponseItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.McpCallItemType), TypeInfoPropertyName = "McpCallItemType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.McpCallItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CustomToolCallItemType), TypeInfoPropertyName = "CustomToolCallItemType2")] @@ -3416,7 +3473,6 @@ namespace OpenRouter [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ShellServerToolOpenRouter))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestToolsItems), TypeInfoPropertyName = "ResponsesRequestToolsItems2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.TraceConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAIResponsesTruncation), TypeInfoPropertyName = "OpenAIResponsesTruncation2")] internal sealed partial class SourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -4580,6 +4636,74 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.AuthKeysCodePostRequestBodyContentApplicationJsonSchemaUsageLimitTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageGenerationRequestAspectRatioJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationRequestAspectRatioNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationRequestBackgroundJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationRequestBackgroundNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationRequestOutputFormatJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationRequestOutputFormatNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationRequestQualityJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationRequestQualityNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationRequestResolutionJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationRequestResolutionNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicCompactionUsageIterationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicCompactionUsageIterationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicMessageUsageIterationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicMessageUsageIterationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicAdvisorMessageUsageIterationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicAdvisorMessageUsageIterationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicSpeedJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicSpeedNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.InputModalityJsonConverter), + + typeof(global::OpenRouter.JsonConverters.InputModalityNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageOutputModalityJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageOutputModalityNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EnumCapabilityTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EnumCapabilityTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.RangeCapabilityTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.RangeCapabilityTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CapabilityDescriptorVariant1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CapabilityDescriptorVariant1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CapabilityDescriptorDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CapabilityDescriptorDiscriminatorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImagePricingEntryBillableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImagePricingEntryBillableNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImagePricingEntryUnitJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImagePricingEntryUnitNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.SpeechRequestResponseFormatJsonConverter), typeof(global::OpenRouter.JsonConverters.SpeechRequestResponseFormatNullableJsonConverter), @@ -4880,10 +5004,6 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.EmbeddingsPostResponsesContentApplicationJsonSchemaObjectNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.InputModalityJsonConverter), - - typeof(global::OpenRouter.JsonConverters.InputModalityNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ModelArchitectureInstructTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.ModelArchitectureInstructTypeNullableJsonConverter), @@ -5188,10 +5308,6 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsDiscriminatorIdNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.AnthropicSpeedJsonConverter), - - typeof(global::OpenRouter.JsonConverters.AnthropicSpeedNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.AnthropicThinkingDisplayJsonConverter), typeof(global::OpenRouter.JsonConverters.AnthropicThinkingDisplayNullableJsonConverter), @@ -5540,18 +5656,6 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.AnthropicServiceTierNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.AnthropicCompactionUsageIterationTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.AnthropicCompactionUsageIterationTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.AnthropicMessageUsageIterationTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.AnthropicMessageUsageIterationTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.AnthropicAdvisorMessageUsageIterationTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.AnthropicAdvisorMessageUsageIterationTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.MessagesErrorResponseTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.MessagesErrorResponseTypeNullableJsonConverter), @@ -6128,6 +6232,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.OpenResponsesResultToolsItemsJsonConverter), + typeof(global::OpenRouter.JsonConverters.AnthropicUsageIterationJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CapabilityDescriptorJsonConverter), + typeof(global::OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaFiltersItemsValueOneOf2ItemsJsonConverter), typeof(global::OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaFiltersItemsValueJsonConverter), @@ -6236,8 +6344,6 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ORAnthropicContentBlockJsonConverter), - typeof(global::OpenRouter.JsonConverters.AnthropicUsageIterationJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueJsonConverter), typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationJsonConverter), @@ -6278,6 +6384,12 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), @@ -6332,6 +6444,7 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.UnixTimestampJsonConverter), })] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAIResponsesTruncation), TypeInfoPropertyName = "OpenAIResponsesTruncation2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -6560,6 +6673,65 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OAuthCreateAuthKeysCodeResponse200))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ConflictResponseErrorData))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ConflictResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationRequestAspectRatio), TypeInfoPropertyName = "ImageGenerationRequestAspectRatio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationRequestBackground), TypeInfoPropertyName = "ImageGenerationRequestBackground2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputReferenceDiscriminatorMappingImageUrlImageUrl))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ContentPartImage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationRequestOutputFormat), TypeInfoPropertyName = "ImageGenerationRequestOutputFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationRequestProviderOptions))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationRequestProvider))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationRequestQuality), TypeInfoPropertyName = "ImageGenerationRequestQuality2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationRequestResolution), TypeInfoPropertyName = "ImageGenerationRequestResolution2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationResponseDataItems))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationUsageCompletionTokensDetails))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CostDetails))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicIterationCacheCreation))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCompactionUsageIterationType), TypeInfoPropertyName = "AnthropicCompactionUsageIterationType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCompactionUsageIteration))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicMessageUsageIterationType), TypeInfoPropertyName = "AnthropicMessageUsageIterationType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicMessageUsageIteration))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicAdvisorMessageUsageIterationType), TypeInfoPropertyName = "AnthropicAdvisorMessageUsageIterationType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicAdvisorMessageUsageIteration))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicUnknownUsageIteration))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicUsageIteration), TypeInfoPropertyName = "AnthropicUsageIteration2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationUsagePromptTokensDetails))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationUsageServerToolUse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicSpeed), TypeInfoPropertyName = "AnthropicSpeed2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationUsage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfImageGenerationUsageCompletionTokensDetailsObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfImageGenerationUsagePromptTokensDetailsObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfImageGenerationUsageServerToolUseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTimeOffset))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputModality), TypeInfoPropertyName = "InputModality2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageOutputModality), TypeInfoPropertyName = "ImageOutputModality2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageModelArchitecture))] + [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.EnumCapabilityType), TypeInfoPropertyName = "EnumCapabilityType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RangeCapabilityType), TypeInfoPropertyName = "RangeCapabilityType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CapabilityDescriptor), TypeInfoPropertyName = "CapabilityDescriptor2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CapabilityDescriptorVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CapabilityDescriptorVariant1Type), TypeInfoPropertyName = "CapabilityDescriptorVariant1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CapabilityDescriptorVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CapabilityDescriptorVariant3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CapabilityDescriptorDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CapabilityDescriptorDiscriminatorType), TypeInfoPropertyName = "CapabilityDescriptorDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.SupportedParameters))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageModelListItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageModelsListResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImagePricingEntryBillable), TypeInfoPropertyName = "ImagePricingEntryBillable2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImagePricingEntryUnit), TypeInfoPropertyName = "ImagePricingEntryUnit2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImagePricingEntry))] + [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.ImageModelEndpointsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProviderOptions))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.SpeechRequestProvider))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.SpeechRequestResponseFormat), TypeInfoPropertyName = "SpeechRequestResponseFormat2")] @@ -6632,7 +6804,6 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateBYOKKeyRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateByokKeyResponseData))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateBYOKKeyResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatDebugOptions))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatAudioOutput))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatContentItemsDiscriminatorMappingFileFile))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatContentItemsDiscriminatorMappingImageUrlImageUrlDetail), TypeInfoPropertyName = "ChatContentItemsDiscriminatorMappingImageUrlImageUrlDetail2")] @@ -6768,70 +6939,11 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatChoice))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatResultObject), TypeInfoPropertyName = "ChatResultObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatUsageCompletionTokensDetails))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CostDetails))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatUsagePromptTokensDetails))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatUsageServerToolUseDetails))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatUsage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfChatUsageCompletionTokensDetailsObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfChatUsagePromptTokensDetailsObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfChatUsageServerToolUseDetailsObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatResult))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTimeOffset))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreditsGetResponsesContentApplicationJsonSchemaData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreditsGetCreditsResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DatasetsAppRankingsGetParametersCategory), TypeInfoPropertyName = "DatasetsAppRankingsGetParametersCategory2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DatasetsAppRankingsGetParametersSubcategory), TypeInfoPropertyName = "DatasetsAppRankingsGetParametersSubcategory2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DatasetsAppRankingsGetParametersSort), TypeInfoPropertyName = "DatasetsAppRankingsGetParametersSort2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AppRankingsItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RankingsDailyMetaVersion), TypeInfoPropertyName = "RankingsDailyMetaVersion2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RankingsDailyMeta))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AppRankingsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RankingsDailyItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RankingsDailyResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormat), TypeInfoPropertyName = "EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf0Type), TypeInfoPropertyName = "EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf0Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems0))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1ImageUrl))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1Type), TypeInfoPropertyName = "EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MultimodalMedia))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ContentPartInputAudioType), TypeInfoPropertyName = "ContentPartInputAudioType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ContentPartInputAudio))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ContentPartInputVideoType), TypeInfoPropertyName = "ContentPartInputVideoType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ContentPartInputVideo))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ContentPartInputFileType), TypeInfoPropertyName = "ContentPartInputFileType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ContentPartInputFile))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems), TypeInfoPropertyName = "EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4Items))] - [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.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInput), TypeInfoPropertyName = "EmbeddingsPostRequestBodyContentApplicationJsonSchemaInput2")] - [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.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderDataCollection), TypeInfoPropertyName = "EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderDataCollection2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItems), TypeInfoPropertyName = "EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItems2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderMaxPrice))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOnlyItems), TypeInfoPropertyName = "EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOnlyItems2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOrderItems), TypeInfoPropertyName = "EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOrderItems2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSort), TypeInfoPropertyName = "EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSort2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProvider))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfEmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderDataCollectionObject2")] - [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))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsEmbedding), TypeInfoPropertyName = "EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsEmbedding2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsObject), TypeInfoPropertyName = "EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaObject), TypeInfoPropertyName = "EmbeddingsPostResponsesContentApplicationJsonSchemaObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaUsageCostDetails))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaUsagePromptTokensDetails))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaUsage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfEmbeddingsPostResponsesContentApplicationJsonSchemaUsageCostDetailsObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsCreateEmbeddingsResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] internal sealed partial class SourceGenerationContextChunk1 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -7995,47 +8107,115 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.AuthKeysCodePostRequestBodyContentApplicationJsonSchemaUsageLimitTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.SpeechRequestResponseFormatJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageGenerationRequestAspectRatioJsonConverter), - typeof(global::OpenRouter.JsonConverters.SpeechRequestResponseFormatNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageGenerationRequestAspectRatioNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataGranularitiesItemsNameJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageGenerationRequestBackgroundJsonConverter), - typeof(global::OpenRouter.JsonConverters.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataGranularitiesItemsNameNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageGenerationRequestBackgroundNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataMetricsItemsDisplayFormatJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageGenerationRequestOutputFormatJsonConverter), - typeof(global::OpenRouter.JsonConverters.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataMetricsItemsDisplayFormatNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageGenerationRequestOutputFormatNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataOperatorsItemsNameJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageGenerationRequestQualityJsonConverter), - typeof(global::OpenRouter.JsonConverters.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataOperatorsItemsNameNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageGenerationRequestQualityNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataOperatorsItemsValueTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageGenerationRequestResolutionJsonConverter), - typeof(global::OpenRouter.JsonConverters.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataOperatorsItemsValueTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageGenerationRequestResolutionNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaOrderByDirectionJsonConverter), + typeof(global::OpenRouter.JsonConverters.AnthropicCompactionUsageIterationTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaOrderByDirectionNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AnthropicCompactionUsageIterationTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BenchmarksGetParametersSourceJsonConverter), + typeof(global::OpenRouter.JsonConverters.AnthropicMessageUsageIterationTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.BenchmarksGetParametersSourceNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AnthropicMessageUsageIterationTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BenchmarksGetParametersTaskTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.AnthropicAdvisorMessageUsageIterationTypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.BenchmarksGetParametersTaskTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AnthropicAdvisorMessageUsageIterationTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.BenchmarksGetParametersArenaJsonConverter), + typeof(global::OpenRouter.JsonConverters.AnthropicSpeedJsonConverter), - typeof(global::OpenRouter.JsonConverters.BenchmarksGetParametersArenaNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.AnthropicSpeedNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.UnifiedBenchmarksResponseDataItemsVariant1SourceJsonConverter), + typeof(global::OpenRouter.JsonConverters.InputModalityJsonConverter), - typeof(global::OpenRouter.JsonConverters.UnifiedBenchmarksResponseDataItemsVariant1SourceNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.InputModalityNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.UnifiedBenchmarksResponseDataItemsVariant2SourceJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageOutputModalityJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageOutputModalityNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EnumCapabilityTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EnumCapabilityTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.RangeCapabilityTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.RangeCapabilityTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CapabilityDescriptorVariant1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CapabilityDescriptorVariant1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CapabilityDescriptorDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CapabilityDescriptorDiscriminatorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImagePricingEntryBillableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImagePricingEntryBillableNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImagePricingEntryUnitJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImagePricingEntryUnitNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.SpeechRequestResponseFormatJsonConverter), + + typeof(global::OpenRouter.JsonConverters.SpeechRequestResponseFormatNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataGranularitiesItemsNameJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataGranularitiesItemsNameNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataMetricsItemsDisplayFormatJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataMetricsItemsDisplayFormatNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataOperatorsItemsNameJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataOperatorsItemsNameNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataOperatorsItemsValueTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataOperatorsItemsValueTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaOrderByDirectionJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaOrderByDirectionNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BenchmarksGetParametersSourceJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BenchmarksGetParametersSourceNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BenchmarksGetParametersTaskTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BenchmarksGetParametersTaskTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BenchmarksGetParametersArenaJsonConverter), + + typeof(global::OpenRouter.JsonConverters.BenchmarksGetParametersArenaNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UnifiedBenchmarksResponseDataItemsVariant1SourceJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UnifiedBenchmarksResponseDataItemsVariant1SourceNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UnifiedBenchmarksResponseDataItemsVariant2SourceJsonConverter), typeof(global::OpenRouter.JsonConverters.UnifiedBenchmarksResponseDataItemsVariant2SourceNullableJsonConverter), @@ -8295,10 +8475,6 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.EmbeddingsPostResponsesContentApplicationJsonSchemaObjectNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.InputModalityJsonConverter), - - typeof(global::OpenRouter.JsonConverters.InputModalityNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ModelArchitectureInstructTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.ModelArchitectureInstructTypeNullableJsonConverter), @@ -8603,10 +8779,6 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsDiscriminatorIdNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.AnthropicSpeedJsonConverter), - - typeof(global::OpenRouter.JsonConverters.AnthropicSpeedNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.AnthropicThinkingDisplayJsonConverter), typeof(global::OpenRouter.JsonConverters.AnthropicThinkingDisplayNullableJsonConverter), @@ -8955,18 +9127,6 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.AnthropicServiceTierNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.AnthropicCompactionUsageIterationTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.AnthropicCompactionUsageIterationTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.AnthropicMessageUsageIterationTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.AnthropicMessageUsageIterationTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.AnthropicAdvisorMessageUsageIterationTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.AnthropicAdvisorMessageUsageIterationTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.MessagesErrorResponseTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.MessagesErrorResponseTypeNullableJsonConverter), @@ -9543,6 +9703,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.OpenResponsesResultToolsItemsJsonConverter), + typeof(global::OpenRouter.JsonConverters.AnthropicUsageIterationJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CapabilityDescriptorJsonConverter), + typeof(global::OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaFiltersItemsValueOneOf2ItemsJsonConverter), typeof(global::OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaFiltersItemsValueJsonConverter), @@ -9651,8 +9815,6 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ORAnthropicContentBlockJsonConverter), - typeof(global::OpenRouter.JsonConverters.AnthropicUsageIterationJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueJsonConverter), typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationJsonConverter), @@ -9693,6 +9855,12 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), @@ -9747,12 +9915,67 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.UnixTimestampJsonConverter), })] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputModality), TypeInfoPropertyName = "InputModality2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfChatUsageServerToolUseDetailsObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatResult))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreditsGetResponsesContentApplicationJsonSchemaData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreditsGetCreditsResponse200))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DatasetsAppRankingsGetParametersCategory), TypeInfoPropertyName = "DatasetsAppRankingsGetParametersCategory2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DatasetsAppRankingsGetParametersSubcategory), TypeInfoPropertyName = "DatasetsAppRankingsGetParametersSubcategory2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DatasetsAppRankingsGetParametersSort), TypeInfoPropertyName = "DatasetsAppRankingsGetParametersSort2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AppRankingsItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RankingsDailyMetaVersion), TypeInfoPropertyName = "RankingsDailyMetaVersion2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RankingsDailyMeta))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AppRankingsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RankingsDailyItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RankingsDailyResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormat), TypeInfoPropertyName = "EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf0Type), TypeInfoPropertyName = "EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf0Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems0))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1ImageUrl))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1Type), TypeInfoPropertyName = "EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MultimodalMedia))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ContentPartInputAudioType), TypeInfoPropertyName = "ContentPartInputAudioType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ContentPartInputAudio))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ContentPartInputVideoType), TypeInfoPropertyName = "ContentPartInputVideoType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ContentPartInputVideo))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ContentPartInputFileType), TypeInfoPropertyName = "ContentPartInputFileType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ContentPartInputFile))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems), TypeInfoPropertyName = "EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4Items))] + [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.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInput), TypeInfoPropertyName = "EmbeddingsPostRequestBodyContentApplicationJsonSchemaInput2")] + [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.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderDataCollection), TypeInfoPropertyName = "EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderDataCollection2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItems), TypeInfoPropertyName = "EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderMaxPrice))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOnlyItems), TypeInfoPropertyName = "EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOnlyItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOrderItems), TypeInfoPropertyName = "EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOrderItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSort), TypeInfoPropertyName = "EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSort2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProvider))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfEmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderDataCollectionObject2")] + [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))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsEmbedding), TypeInfoPropertyName = "EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsEmbedding2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsObject), TypeInfoPropertyName = "EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItems))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaObject), TypeInfoPropertyName = "EmbeddingsPostResponsesContentApplicationJsonSchemaObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaUsageCostDetails))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaUsagePromptTokensDetails))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaUsage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfEmbeddingsPostResponsesContentApplicationJsonSchemaUsageCostDetailsObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsCreateEmbeddingsResponse200))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelArchitectureInstructType), TypeInfoPropertyName = "ModelArchitectureInstructType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OutputModality), TypeInfoPropertyName = "OutputModality2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelGroup), TypeInfoPropertyName = "ModelGroup2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelArchitecture))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfModelArchitectureInstructTypeObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AABenchmarkEntry))] @@ -10001,7 +10224,6 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestPluginsItemsVariant9))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestPluginsItemsDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestPluginsItemsDiscriminatorId), TypeInfoPropertyName = "MessagesRequestPluginsItemsDiscriminatorId2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicSpeed), TypeInfoPropertyName = "AnthropicSpeed2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestSystem), TypeInfoPropertyName = "MessagesRequestSystem2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicThinkingDisplay), TypeInfoPropertyName = "AnthropicThinkingDisplay2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesRequestThinkingOneOf0Type), TypeInfoPropertyName = "MessagesRequestThinkingOneOf0Type2")] @@ -10193,60 +10415,6 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicOutputTokensDetails))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicServerToolUsage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicServiceTier), TypeInfoPropertyName = "AnthropicServiceTier2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicIterationCacheCreation))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCompactionUsageIterationType), TypeInfoPropertyName = "AnthropicCompactionUsageIterationType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCompactionUsageIteration))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicMessageUsageIterationType), TypeInfoPropertyName = "AnthropicMessageUsageIterationType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicMessageUsageIteration))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicAdvisorMessageUsageIterationType), TypeInfoPropertyName = "AnthropicAdvisorMessageUsageIterationType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicAdvisorMessageUsageIteration))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicUnknownUsageIteration))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicUsageIteration), TypeInfoPropertyName = "AnthropicUsageIteration2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesResultUsage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesResultContextManagementAppliedEditsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesResultContextManagement))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesResult))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfMessagesResultContextManagementObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesErrorDetail))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesErrorResponseType), TypeInfoPropertyName = "MessagesErrorResponseType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesErrorResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelsGetParametersCategory), TypeInfoPropertyName = "ModelsGetParametersCategory2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelsGetParametersSort), TypeInfoPropertyName = "ModelsGetParametersSort2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelsGetParametersDistillable), TypeInfoPropertyName = "ModelsGetParametersDistillable2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelsGetParametersZdr), TypeInfoPropertyName = "ModelsGetParametersZdr2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelsGetParametersRegion), TypeInfoPropertyName = "ModelsGetParametersRegion2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelsCountResponseData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelsCountResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsLogic), TypeInfoPropertyName = "ObservabilityFilterRulesConfigGroupsItemsLogic2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsField), TypeInfoPropertyName = "ObservabilityFilterRulesConfigGroupsItemsRulesItemsField2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator), TypeInfoPropertyName = "ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue), TypeInfoPropertyName = "ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityFilterRulesConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegion), TypeInfoPropertyName = "UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegion2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3Config))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfig))] internal sealed partial class SourceGenerationContextChunk2 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -11410,6 +11578,74 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::OpenRouter.JsonConverters.AuthKeysCodePostRequestBodyContentApplicationJsonSchemaUsageLimitTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageGenerationRequestAspectRatioJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationRequestAspectRatioNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationRequestBackgroundJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationRequestBackgroundNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationRequestOutputFormatJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationRequestOutputFormatNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationRequestQualityJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationRequestQualityNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationRequestResolutionJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationRequestResolutionNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicCompactionUsageIterationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicCompactionUsageIterationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicMessageUsageIterationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicMessageUsageIterationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicAdvisorMessageUsageIterationTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicAdvisorMessageUsageIterationTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicSpeedJsonConverter), + + typeof(global::OpenRouter.JsonConverters.AnthropicSpeedNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.InputModalityJsonConverter), + + typeof(global::OpenRouter.JsonConverters.InputModalityNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageOutputModalityJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageOutputModalityNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EnumCapabilityTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.EnumCapabilityTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.RangeCapabilityTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.RangeCapabilityTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CapabilityDescriptorVariant1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CapabilityDescriptorVariant1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CapabilityDescriptorDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CapabilityDescriptorDiscriminatorTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImagePricingEntryBillableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImagePricingEntryBillableNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImagePricingEntryUnitJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImagePricingEntryUnitNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.SpeechRequestResponseFormatJsonConverter), typeof(global::OpenRouter.JsonConverters.SpeechRequestResponseFormatNullableJsonConverter), @@ -11710,10 +11946,6 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::OpenRouter.JsonConverters.EmbeddingsPostResponsesContentApplicationJsonSchemaObjectNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.InputModalityJsonConverter), - - typeof(global::OpenRouter.JsonConverters.InputModalityNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ModelArchitectureInstructTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.ModelArchitectureInstructTypeNullableJsonConverter), @@ -12018,10 +12250,6 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsDiscriminatorIdNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.AnthropicSpeedJsonConverter), - - typeof(global::OpenRouter.JsonConverters.AnthropicSpeedNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.AnthropicThinkingDisplayJsonConverter), typeof(global::OpenRouter.JsonConverters.AnthropicThinkingDisplayNullableJsonConverter), @@ -12370,18 +12598,6 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::OpenRouter.JsonConverters.AnthropicServiceTierNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.AnthropicCompactionUsageIterationTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.AnthropicCompactionUsageIterationTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.AnthropicMessageUsageIterationTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.AnthropicMessageUsageIterationTypeNullableJsonConverter), - - typeof(global::OpenRouter.JsonConverters.AnthropicAdvisorMessageUsageIterationTypeJsonConverter), - - typeof(global::OpenRouter.JsonConverters.AnthropicAdvisorMessageUsageIterationTypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.MessagesErrorResponseTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.MessagesErrorResponseTypeNullableJsonConverter), @@ -12958,6 +13174,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::OpenRouter.JsonConverters.OpenResponsesResultToolsItemsJsonConverter), + typeof(global::OpenRouter.JsonConverters.AnthropicUsageIterationJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CapabilityDescriptorJsonConverter), + typeof(global::OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaFiltersItemsValueOneOf2ItemsJsonConverter), typeof(global::OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaFiltersItemsValueJsonConverter), @@ -13066,8 +13286,6 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ORAnthropicContentBlockJsonConverter), - typeof(global::OpenRouter.JsonConverters.AnthropicUsageIterationJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueJsonConverter), typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationJsonConverter), @@ -13108,6 +13326,12 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), @@ -13162,6 +13386,50 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::OpenRouter.JsonConverters.UnixTimestampJsonConverter), })] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesResultUsage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesResultContextManagementAppliedEditsItems))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesResultContextManagement))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesResult))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfMessagesResultContextManagementObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesErrorDetail))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesErrorResponseType), TypeInfoPropertyName = "MessagesErrorResponseType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MessagesErrorResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelsGetParametersCategory), TypeInfoPropertyName = "ModelsGetParametersCategory2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelsGetParametersSort), TypeInfoPropertyName = "ModelsGetParametersSort2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelsGetParametersDistillable), TypeInfoPropertyName = "ModelsGetParametersDistillable2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelsGetParametersZdr), TypeInfoPropertyName = "ModelsGetParametersZdr2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelsGetParametersRegion), TypeInfoPropertyName = "ModelsGetParametersRegion2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelsCountResponseData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelsCountResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsLogic), TypeInfoPropertyName = "ObservabilityFilterRulesConfigGroupsItemsLogic2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsField), TypeInfoPropertyName = "ObservabilityFilterRulesConfigGroupsItemsRulesItemsField2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator), TypeInfoPropertyName = "ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue), TypeInfoPropertyName = "ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItems))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItems))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityFilterRulesConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegion), TypeInfoPropertyName = "UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegion2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3Config))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethod), TypeInfoPropertyName = "UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethod2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestination), TypeInfoPropertyName = "ObservabilityDestination2")] @@ -13376,7 +13644,6 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FrameImageFrameType), TypeInfoPropertyName = "FrameImageFrameType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FrameImage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputReferenceDiscriminatorMappingAudioUrlAudioUrl))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputReferenceDiscriminatorMappingImageUrlImageUrl))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputReferenceDiscriminatorMappingVideoUrlVideoUrl))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputReference), TypeInfoPropertyName = "InputReference2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.InputReferenceVariant1))] @@ -13507,6 +13774,14 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -13538,7 +13813,6 @@ internal sealed partial class SourceGenerationContextChunk2 : 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))] @@ -13571,7 +13845,6 @@ internal sealed partial class SourceGenerationContextChunk2 : 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))] @@ -14223,6 +14496,40 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.AuthKeysCodePostRequestBodyContentApplicationJsonSchemaCodeChallengeMethodNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AuthKeysCodePostRequestBodyContentApplicationJsonSchemaUsageLimitTypeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AuthKeysCodePostRequestBodyContentApplicationJsonSchemaUsageLimitTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ImageGenerationRequestAspectRatioJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ImageGenerationRequestAspectRatioNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ImageGenerationRequestBackgroundJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ImageGenerationRequestBackgroundNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ImageGenerationRequestOutputFormatJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ImageGenerationRequestOutputFormatNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ImageGenerationRequestQualityJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ImageGenerationRequestQualityNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ImageGenerationRequestResolutionJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ImageGenerationRequestResolutionNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AnthropicCompactionUsageIterationTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AnthropicCompactionUsageIterationTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AnthropicMessageUsageIterationTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AnthropicMessageUsageIterationTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AnthropicAdvisorMessageUsageIterationTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AnthropicAdvisorMessageUsageIterationTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AnthropicSpeedJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AnthropicSpeedNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.InputModalityJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.InputModalityNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ImageOutputModalityJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ImageOutputModalityNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.EnumCapabilityTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.EnumCapabilityTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.RangeCapabilityTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.RangeCapabilityTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.CapabilityDescriptorVariant1TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.CapabilityDescriptorVariant1TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.CapabilityDescriptorDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.CapabilityDescriptorDiscriminatorTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ImagePricingEntryBillableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ImagePricingEntryBillableNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ImagePricingEntryUnitJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ImagePricingEntryUnitNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.SpeechRequestResponseFormatJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.SpeechRequestResponseFormatNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataGranularitiesItemsNameJsonConverter()); @@ -14373,8 +14680,6 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsObjectNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.EmbeddingsPostResponsesContentApplicationJsonSchemaObjectJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.EmbeddingsPostResponsesContentApplicationJsonSchemaObjectNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.InputModalityJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.InputModalityNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ModelArchitectureInstructTypeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ModelArchitectureInstructTypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OutputModalityJsonConverter()); @@ -14527,8 +14832,6 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsVariant7IdNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsDiscriminatorIdJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.MessagesRequestPluginsItemsDiscriminatorIdNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.AnthropicSpeedJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.AnthropicSpeedNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AnthropicThinkingDisplayJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AnthropicThinkingDisplayNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.MessagesRequestThinkingOneOf0TypeJsonConverter()); @@ -14703,12 +15006,6 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.MessagesResultTypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AnthropicServiceTierJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AnthropicServiceTierNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.AnthropicCompactionUsageIterationTypeJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.AnthropicCompactionUsageIterationTypeNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.AnthropicMessageUsageIterationTypeJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.AnthropicMessageUsageIterationTypeNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.AnthropicAdvisorMessageUsageIterationTypeJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.AnthropicAdvisorMessageUsageIterationTypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.MessagesErrorResponseTypeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.MessagesErrorResponseTypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ModelsGetParametersCategoryJsonConverter()); @@ -14997,6 +15294,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.OutputShellCallOutputItemOutputItemsOutcomeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OutputItemsJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OpenResponsesResultToolsItemsJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.AnthropicUsageIterationJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.CapabilityDescriptorJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaFiltersItemsValueOneOf2ItemsJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaFiltersItemsValueJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.UnifiedBenchmarksResponseDataItemsJsonConverter()); @@ -15051,7 +15350,6 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.AnthropicWebFetchContentJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OrAnthropicContentBlockDiscriminatorMappingWebSearchToolResultContentJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ORAnthropicContentBlockJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.AnthropicUsageIterationJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityDestinationJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataJsonConverter()); @@ -15072,6 +15370,9 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs index c7690a0d..637f5b79 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs @@ -44,7147 +44,7319 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::OpenRouter.ImageConfig? Type4 { get; set; } + public global::OpenRouter.ChatDebugOptions? Type4 { get; set; } /// /// /// - public string? Type5 { get; set; } + public bool? Type5 { get; set; } /// /// /// - public double? Type6 { get; set; } + public global::OpenRouter.ImageConfig? Type6 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type7 { get; set; } + public string? Type7 { get; set; } /// /// /// - public object? Type8 { get; set; } + public double? Type8 { get; set; } /// /// /// - public global::OpenRouter.ResponseIncludesEnum? Type9 { get; set; } + public global::System.Collections.Generic.IList? Type9 { get; set; } /// /// /// - public global::OpenRouter.ReasoningTextContentType? Type10 { get; set; } + public object? Type10 { get; set; } /// /// /// - public global::OpenRouter.ReasoningTextContent? Type11 { get; set; } + public global::OpenRouter.ResponseIncludesEnum? Type11 { get; set; } /// /// /// - public global::OpenRouter.ReasoningItemStatus0? Type12 { get; set; } + public global::OpenRouter.ReasoningTextContentType? Type12 { get; set; } /// /// /// - public global::OpenRouter.ReasoningItemStatus1? Type13 { get; set; } + public global::OpenRouter.ReasoningTextContent? Type13 { get; set; } /// /// /// - public global::OpenRouter.ReasoningItemStatus2? Type14 { get; set; } + public global::OpenRouter.ReasoningItemStatus0? Type14 { get; set; } /// /// /// - public global::OpenRouter.ReasoningItemStatus? Type15 { get; set; } + public global::OpenRouter.ReasoningItemStatus1? Type15 { get; set; } /// /// /// - public global::OpenRouter.ReasoningSummaryTextType? Type16 { get; set; } + public global::OpenRouter.ReasoningItemStatus2? Type16 { get; set; } /// /// /// - public global::OpenRouter.ReasoningSummaryText? Type17 { get; set; } + public global::OpenRouter.ReasoningItemStatus? Type17 { get; set; } /// /// /// - public global::OpenRouter.ReasoningItemType? Type18 { get; set; } + public global::OpenRouter.ReasoningSummaryTextType? Type18 { get; set; } /// /// /// - public global::OpenRouter.ReasoningFormat? Type19 { get; set; } + public global::OpenRouter.ReasoningSummaryText? Type19 { get; set; } /// /// /// - public global::OpenRouter.ReasoningItem? Type20 { get; set; } + public global::OpenRouter.ReasoningItemType? Type20 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type21 { get; set; } + public global::OpenRouter.ReasoningFormat? Type21 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type22 { get; set; } + public global::OpenRouter.ReasoningItem? Type22 { get; set; } /// /// /// - public global::OpenRouter.InputText? Type23 { get; set; } + public global::System.Collections.Generic.IList? Type23 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessageContentOneOf0ItemsOneOf1Detail? Type24 { get; set; } + public global::System.Collections.Generic.IList? Type24 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessageContentOneOf0ItemsOneOf1Type? Type25 { get; set; } + public global::OpenRouter.InputText? Type25 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessageContentOneOf0Items1? Type26 { get; set; } + public global::OpenRouter.EasyInputMessageContentOneOf0ItemsOneOf1Detail? Type26 { get; set; } /// /// /// - public global::OpenRouter.InputFile? Type27 { get; set; } + public global::OpenRouter.EasyInputMessageContentOneOf0ItemsOneOf1Type? Type27 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsDiscriminatorMappingInputAudioInputAudioFormat? Type28 { get; set; } + public global::OpenRouter.EasyInputMessageContentOneOf0Items1? Type28 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsDiscriminatorMappingInputAudioInputAudio? Type29 { get; set; } + public global::OpenRouter.InputFile? Type29 { get; set; } /// /// /// - public global::OpenRouter.InputAudio? Type30 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsDiscriminatorMappingInputAudioInputAudioFormat? Type30 { get; set; } /// /// /// - public global::OpenRouter.InputVideoType? Type31 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsDiscriminatorMappingInputAudioInputAudio? Type31 { get; set; } /// /// /// - public global::OpenRouter.InputVideo? Type32 { get; set; } + public global::OpenRouter.InputAudio? Type32 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessageContentOneOf0Items? Type33 { get; set; } + public global::OpenRouter.InputVideoType? Type33 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type34 { get; set; } + public global::OpenRouter.InputVideo? Type34 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessageContent? Type35 { get; set; } + public global::OpenRouter.EasyInputMessageContentOneOf0Items? Type35 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessagePhase0? Type36 { get; set; } + public global::System.Collections.Generic.IList? Type36 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessagePhase1? Type37 { get; set; } + public global::OpenRouter.EasyInputMessageContent? Type37 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessagePhase? Type38 { get; set; } + public global::OpenRouter.EasyInputMessagePhase0? Type38 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessageRole0? Type39 { get; set; } + public global::OpenRouter.EasyInputMessagePhase1? Type39 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessageRole1? Type40 { get; set; } + public global::OpenRouter.EasyInputMessagePhase? Type40 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessageRole2? Type41 { get; set; } + public global::OpenRouter.EasyInputMessageRole0? Type41 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessageRole3? Type42 { get; set; } + public global::OpenRouter.EasyInputMessageRole1? Type42 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessageRole? Type43 { get; set; } + public global::OpenRouter.EasyInputMessageRole2? Type43 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessageType? Type44 { get; set; } + public global::OpenRouter.EasyInputMessageRole3? Type44 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessage? Type45 { get; set; } + public global::OpenRouter.EasyInputMessageRole? Type45 { get; set; } /// /// /// - public global::OpenRouter.InputMessageItemContentItemsOneOf1Detail? Type46 { get; set; } + public global::OpenRouter.EasyInputMessageType? Type46 { get; set; } /// /// /// - public global::OpenRouter.InputMessageItemContentItemsOneOf1Type? Type47 { get; set; } + public global::OpenRouter.EasyInputMessage? Type47 { get; set; } /// /// /// - public global::OpenRouter.InputMessageItemContentItems1? Type48 { get; set; } + public global::OpenRouter.InputMessageItemContentItemsOneOf1Detail? Type48 { get; set; } /// /// /// - public global::OpenRouter.InputMessageItemContentItems? Type49 { get; set; } + public global::OpenRouter.InputMessageItemContentItemsOneOf1Type? Type49 { get; set; } /// /// /// - public global::OpenRouter.InputMessageItemRole0? Type50 { get; set; } + public global::OpenRouter.InputMessageItemContentItems1? Type50 { get; set; } /// /// /// - public global::OpenRouter.InputMessageItemRole1? Type51 { get; set; } + public global::OpenRouter.InputMessageItemContentItems? Type51 { get; set; } /// /// /// - public global::OpenRouter.InputMessageItemRole2? Type52 { get; set; } + public global::OpenRouter.InputMessageItemRole0? Type52 { get; set; } /// /// /// - public global::OpenRouter.InputMessageItemRole? Type53 { get; set; } + public global::OpenRouter.InputMessageItemRole1? Type53 { get; set; } /// /// /// - public global::OpenRouter.InputMessageItemType? Type54 { get; set; } + public global::OpenRouter.InputMessageItemRole2? Type54 { get; set; } /// /// /// - public global::OpenRouter.InputMessageItem? Type55 { get; set; } + public global::OpenRouter.InputMessageItemRole? Type55 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type56 { get; set; } + public global::OpenRouter.InputMessageItemType? Type56 { get; set; } /// /// /// - public global::OpenRouter.ToolCallStatus? Type57 { get; set; } + public global::OpenRouter.InputMessageItem? Type57 { get; set; } /// /// /// - public global::OpenRouter.FunctionCallItemType? Type58 { get; set; } + public global::System.Collections.Generic.IList? Type58 { get; set; } /// /// /// - public global::OpenRouter.FunctionCallItem? Type59 { get; set; } + public global::OpenRouter.ToolCallStatus? Type59 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsDiscriminatorMappingInputImageDetail? Type60 { get; set; } + public global::OpenRouter.FunctionCallItemType? Type60 { get; set; } /// /// /// - public global::OpenRouter.FunctionCallOutputItemOutputOneOf1Items? Type61 { get; set; } + public global::OpenRouter.FunctionCallItem? Type61 { get; set; } /// /// /// - public global::OpenRouter.FunctionCallOutputItemOutputOneOf1ItemsVariant1? Type62 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsDiscriminatorMappingInputImageDetail? Type62 { get; set; } /// /// /// - public global::OpenRouter.FunctionCallOutputItemOutputOneOf1ItemsVariant1Type? Type63 { get; set; } + public global::OpenRouter.FunctionCallOutputItemOutputOneOf1Items? Type63 { get; set; } /// /// /// - public global::OpenRouter.FunctionCallOutputItemOutputOneOf1ItemsVariant2? Type64 { get; set; } + public global::OpenRouter.FunctionCallOutputItemOutputOneOf1ItemsVariant1? Type64 { get; set; } /// /// /// - public global::OpenRouter.FunctionCallOutputItemOutputOneOf1ItemsVariant2Type? Type65 { get; set; } + public global::OpenRouter.FunctionCallOutputItemOutputOneOf1ItemsVariant1Type? Type65 { get; set; } /// /// /// - public global::OpenRouter.FunctionCallOutputItemOutputOneOf1ItemsVariant3? Type66 { get; set; } + public global::OpenRouter.FunctionCallOutputItemOutputOneOf1ItemsVariant2? Type66 { get; set; } /// /// /// - public global::OpenRouter.FunctionCallOutputItemOutputOneOf1ItemsVariant3Type? Type67 { get; set; } + public global::OpenRouter.FunctionCallOutputItemOutputOneOf1ItemsVariant2Type? Type67 { get; set; } /// /// /// - public global::OpenRouter.FunctionCallOutputItemOutputOneOf1ItemsDiscriminator? Type68 { get; set; } + public global::OpenRouter.FunctionCallOutputItemOutputOneOf1ItemsVariant3? Type68 { get; set; } /// /// /// - public global::OpenRouter.FunctionCallOutputItemOutputOneOf1ItemsDiscriminatorType? Type69 { get; set; } + public global::OpenRouter.FunctionCallOutputItemOutputOneOf1ItemsVariant3Type? Type69 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type70 { get; set; } + public global::OpenRouter.FunctionCallOutputItemOutputOneOf1ItemsDiscriminator? Type70 { get; set; } /// /// /// - public global::OpenRouter.FunctionCallOutputItemOutput? Type71 { get; set; } + public global::OpenRouter.FunctionCallOutputItemOutputOneOf1ItemsDiscriminatorType? Type71 { get; set; } /// /// /// - public global::OpenRouter.FunctionCallOutputItemType? Type72 { get; set; } + public global::System.Collections.Generic.IList? Type72 { get; set; } /// /// /// - public global::OpenRouter.FunctionCallOutputItem? Type73 { get; set; } + public global::OpenRouter.FunctionCallOutputItemOutput? Type73 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchCallOperation? Type74 { get; set; } + public global::OpenRouter.FunctionCallOutputItemType? Type74 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchCallOperationVariant1? Type75 { get; set; } + public global::OpenRouter.FunctionCallOutputItem? Type75 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchCallOperationVariant1Type? Type76 { get; set; } + public global::OpenRouter.ApplyPatchCallOperation? Type76 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchCallOperationVariant2? Type77 { get; set; } + public global::OpenRouter.ApplyPatchCallOperationVariant1? Type77 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchCallOperationVariant2Type? Type78 { get; set; } + public global::OpenRouter.ApplyPatchCallOperationVariant1Type? Type78 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchCallOperationVariant3? Type79 { get; set; } + public global::OpenRouter.ApplyPatchCallOperationVariant2? Type79 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchCallOperationVariant3Type? Type80 { get; set; } + public global::OpenRouter.ApplyPatchCallOperationVariant2Type? Type80 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchCallOperationDiscriminator? Type81 { get; set; } + public global::OpenRouter.ApplyPatchCallOperationVariant3? Type81 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchCallOperationDiscriminatorType? Type82 { get; set; } + public global::OpenRouter.ApplyPatchCallOperationVariant3Type? Type82 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchCallStatus? Type83 { get; set; } + public global::OpenRouter.ApplyPatchCallOperationDiscriminator? Type83 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchCallItemType? Type84 { get; set; } + public global::OpenRouter.ApplyPatchCallOperationDiscriminatorType? Type84 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchCallItem? Type85 { get; set; } + public global::OpenRouter.ApplyPatchCallStatus? Type85 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchCallOutputItemStatus? Type86 { get; set; } + public global::OpenRouter.ApplyPatchCallItemType? Type86 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchCallOutputItemType? Type87 { get; set; } + public global::OpenRouter.ApplyPatchCallItem? Type87 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchCallOutputItem? Type88 { get; set; } + public global::OpenRouter.ApplyPatchCallOutputItemStatus? Type88 { get; set; } /// /// /// - public global::OpenRouter.FileCitationType? Type89 { get; set; } + public global::OpenRouter.ApplyPatchCallOutputItemType? Type89 { get; set; } /// /// /// - public global::OpenRouter.FileCitation? Type90 { get; set; } + public global::OpenRouter.ApplyPatchCallOutputItem? Type90 { get; set; } /// /// /// - public int? Type91 { get; set; } + public global::OpenRouter.FileCitationType? Type91 { get; set; } /// /// /// - public global::OpenRouter.UrlCitationType? Type92 { get; set; } + public global::OpenRouter.FileCitation? Type92 { get; set; } /// /// /// - public global::OpenRouter.URLCitation? Type93 { get; set; } + public int? Type93 { get; set; } /// /// /// - public global::OpenRouter.FilePathType? Type94 { get; set; } + public global::OpenRouter.UrlCitationType? Type94 { get; set; } /// /// /// - public global::OpenRouter.FilePath? Type95 { get; set; } + public global::OpenRouter.URLCitation? Type95 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesAnnotation? Type96 { get; set; } + public global::OpenRouter.FilePathType? Type96 { get; set; } /// /// /// - public global::OpenRouter.ResponseOutputTextLogprobsItemsTopLogprobsItems? Type97 { get; set; } + public global::OpenRouter.FilePath? Type97 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type98 { get; set; } + public global::OpenRouter.OpenAIResponsesAnnotation? Type98 { get; set; } /// /// /// - public long? Type99 { get; set; } + public global::OpenRouter.ResponseOutputTextLogprobsItemsTopLogprobsItems? Type99 { get; set; } /// /// /// - public global::OpenRouter.ResponseOutputTextLogprobsItems? Type100 { get; set; } + public global::System.Collections.Generic.IList? Type100 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type101 { get; set; } + public long? Type101 { get; set; } /// /// /// - public global::OpenRouter.ResponseOutputTextType? Type102 { get; set; } + public global::OpenRouter.ResponseOutputTextLogprobsItems? Type102 { get; set; } /// /// /// - public global::OpenRouter.ResponseOutputText? Type103 { get; set; } + public global::System.Collections.Generic.IList? Type103 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type104 { get; set; } + public global::OpenRouter.ResponseOutputTextType? Type104 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type105 { get; set; } + public global::OpenRouter.ResponseOutputText? Type105 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesRefusalContentType? Type106 { get; set; } + public global::System.Collections.Generic.IList? Type106 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesRefusalContent? Type107 { get; set; } + public global::System.Collections.Generic.IList? Type107 { get; set; } /// /// /// - public global::OpenRouter.InputsOneOf1ItemsOneOf7ContentOneOf0Items? Type108 { get; set; } + public global::OpenRouter.OpenAiResponsesRefusalContentType? Type108 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type109 { get; set; } + public global::OpenRouter.OpenAIResponsesRefusalContent? Type109 { get; set; } /// /// /// - public global::OpenRouter.InputsOneOf1ItemsOneOf7Content? Type110 { get; set; } + public global::OpenRouter.InputsOneOf1ItemsOneOf7ContentOneOf0Items? Type110 { get; set; } /// /// /// - public global::OpenRouter.InputsOneOf1Items7? Type111 { get; set; } + public global::System.Collections.Generic.IList? Type111 { get; set; } /// /// /// - public global::OpenRouter.InputsOneOf1Items8? Type112 { get; set; } + public global::OpenRouter.InputsOneOf1ItemsOneOf7Content? Type112 { get; set; } /// /// /// - public global::OpenRouter.OutputFunctionCallItemStatus0? Type113 { get; set; } + public global::OpenRouter.InputsOneOf1Items7? Type113 { get; set; } /// /// /// - public global::OpenRouter.OutputFunctionCallItemStatus1? Type114 { get; set; } + public global::OpenRouter.InputsOneOf1Items8? Type114 { get; set; } /// /// /// - public global::OpenRouter.OutputFunctionCallItemStatus2? Type115 { get; set; } + public global::OpenRouter.OutputFunctionCallItemStatus0? Type115 { get; set; } /// /// /// - public global::OpenRouter.OutputFunctionCallItemStatus? Type116 { get; set; } + public global::OpenRouter.OutputFunctionCallItemStatus1? Type116 { get; set; } /// /// /// - public global::OpenRouter.OutputFunctionCallItemType? Type117 { get; set; } + public global::OpenRouter.OutputFunctionCallItemStatus2? Type117 { get; set; } /// /// /// - public global::OpenRouter.OutputFunctionCallItem? Type118 { get; set; } + public global::OpenRouter.OutputFunctionCallItemStatus? Type118 { get; set; } /// /// /// - public global::OpenRouter.OutputCustomToolCallItem? Type119 { get; set; } + public global::OpenRouter.OutputFunctionCallItemType? Type119 { get; set; } /// /// /// - public global::OpenRouter.WebSearchSourceType? Type120 { get; set; } + public global::OpenRouter.OutputFunctionCallItem? Type120 { get; set; } /// /// /// - public global::OpenRouter.WebSearchSource? Type121 { get; set; } + public global::OpenRouter.OutputCustomToolCallItem? Type121 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchCallItemActionOneOf0Type? Type122 { get; set; } + public global::OpenRouter.WebSearchSourceType? Type122 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchCallItemAction0? Type123 { get; set; } + public global::OpenRouter.WebSearchSource? Type123 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type124 { get; set; } + public global::OpenRouter.OutputWebSearchCallItemActionOneOf0Type? Type124 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type125 { get; set; } + public global::OpenRouter.OutputWebSearchCallItemAction0? Type125 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchCallItemActionOneOf1Type? Type126 { get; set; } + public global::System.Collections.Generic.IList? Type126 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchCallItemAction1? Type127 { get; set; } + public global::System.Collections.Generic.IList? Type127 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchCallItemActionOneOf2Type? Type128 { get; set; } + public global::OpenRouter.OutputWebSearchCallItemActionOneOf1Type? Type128 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchCallItemAction2? Type129 { get; set; } + public global::OpenRouter.OutputWebSearchCallItemAction1? Type129 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchCallItemAction? Type130 { get; set; } + public global::OpenRouter.OutputWebSearchCallItemActionOneOf2Type? Type130 { get; set; } /// /// /// - public global::OpenRouter.WebSearchStatus? Type131 { get; set; } + public global::OpenRouter.OutputWebSearchCallItemAction2? Type131 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchCallItemType? Type132 { get; set; } + public global::OpenRouter.OutputWebSearchCallItemAction? Type132 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchCallItem? Type133 { get; set; } + public global::OpenRouter.WebSearchStatus? Type133 { get; set; } /// /// /// - public global::OpenRouter.OutputFileSearchCallItemType? Type134 { get; set; } + public global::OpenRouter.OutputWebSearchCallItemType? Type134 { get; set; } /// /// /// - public global::OpenRouter.OutputFileSearchCallItem? Type135 { get; set; } + public global::OpenRouter.OutputWebSearchCallItem? Type135 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationStatus? Type136 { get; set; } + public global::OpenRouter.OutputFileSearchCallItemType? Type136 { get; set; } /// /// /// - public global::OpenRouter.OutputImageGenerationCallItemType? Type137 { get; set; } + public global::OpenRouter.OutputFileSearchCallItem? Type137 { get; set; } /// /// /// - public global::OpenRouter.OutputImageGenerationCallItem? Type138 { get; set; } + public global::OpenRouter.ImageGenerationStatus? Type138 { get; set; } /// /// /// - public global::OpenRouter.OutputCodeInterpreterCallItemOutputsItemsOneOf0Type? Type139 { get; set; } + public global::OpenRouter.OutputImageGenerationCallItemType? Type139 { get; set; } /// /// /// - public global::OpenRouter.OutputCodeInterpreterCallItemOutputsItems0? Type140 { get; set; } + public global::OpenRouter.OutputImageGenerationCallItem? Type140 { get; set; } /// /// /// - public global::OpenRouter.OutputCodeInterpreterCallItemOutputsItemsOneOf1Type? Type141 { get; set; } + public global::OpenRouter.OutputCodeInterpreterCallItemOutputsItemsOneOf0Type? Type141 { get; set; } /// /// /// - public global::OpenRouter.OutputCodeInterpreterCallItemOutputsItems1? Type142 { get; set; } + public global::OpenRouter.OutputCodeInterpreterCallItemOutputsItems0? Type142 { get; set; } /// /// /// - public global::OpenRouter.OutputCodeInterpreterCallItemOutputsItems? Type143 { get; set; } + public global::OpenRouter.OutputCodeInterpreterCallItemOutputsItemsOneOf1Type? Type143 { get; set; } /// /// /// - public global::OpenRouter.OutputCodeInterpreterCallItemType? Type144 { get; set; } + public global::OpenRouter.OutputCodeInterpreterCallItemOutputsItems1? Type144 { get; set; } /// /// /// - public global::OpenRouter.OutputCodeInterpreterCallItem? Type145 { get; set; } + public global::OpenRouter.OutputCodeInterpreterCallItemOutputsItems? Type145 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type146 { get; set; } + public global::OpenRouter.OutputCodeInterpreterCallItemType? Type146 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsDiscriminatorMappingComputerCallPendingSafetyChecksItems? Type147 { get; set; } + public global::OpenRouter.OutputCodeInterpreterCallItem? Type147 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsDiscriminatorMappingComputerCallStatus? Type148 { get; set; } + public global::System.Collections.Generic.IList? Type148 { get; set; } /// /// /// - public global::OpenRouter.OutputComputerCallItem? Type149 { get; set; } + public global::OpenRouter.OutputItemsDiscriminatorMappingComputerCallPendingSafetyChecksItems? Type149 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type150 { get; set; } + public global::OpenRouter.OutputItemsDiscriminatorMappingComputerCallStatus? Type150 { get; set; } /// /// /// - public global::OpenRouter.OutputDatetimeItem? Type151 { get; set; } + public global::OpenRouter.OutputComputerCallItem? Type151 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchServerToolItemActionSourcesItemsType? Type152 { get; set; } + public global::System.Collections.Generic.IList? Type152 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchServerToolItemActionSourcesItems? Type153 { get; set; } + public global::OpenRouter.OutputDatetimeItem? Type153 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchServerToolItemActionType? Type154 { get; set; } + public global::OpenRouter.OutputWebSearchServerToolItemActionSourcesItemsType? Type154 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchServerToolItemAction? Type155 { get; set; } + public global::OpenRouter.OutputWebSearchServerToolItemActionSourcesItems? Type155 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type156 { get; set; } + public global::OpenRouter.OutputWebSearchServerToolItemActionType? Type156 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchServerToolItemType? Type157 { get; set; } + public global::OpenRouter.OutputWebSearchServerToolItemAction? Type157 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchServerToolItem? Type158 { get; set; } + public global::System.Collections.Generic.IList? Type158 { get; set; } /// /// /// - public global::OpenRouter.OutputCodeInterpreterServerToolItem? Type159 { get; set; } + public global::OpenRouter.OutputWebSearchServerToolItemType? Type159 { get; set; } /// /// /// - public global::OpenRouter.OutputFileSearchServerToolItem? Type160 { get; set; } + public global::OpenRouter.OutputWebSearchServerToolItem? Type160 { get; set; } /// /// /// - public global::OpenRouter.OutputImageGenerationServerToolItem? Type161 { get; set; } + public global::OpenRouter.OutputCodeInterpreterServerToolItem? Type161 { get; set; } /// /// /// - public global::OpenRouter.OutputBrowserUseServerToolItem? Type162 { get; set; } + public global::OpenRouter.OutputFileSearchServerToolItem? Type162 { get; set; } /// /// /// - public global::OpenRouter.OutputBashServerToolItem? Type163 { get; set; } + public global::OpenRouter.OutputImageGenerationServerToolItem? Type163 { get; set; } /// /// /// - public global::OpenRouter.OutputTextEditorServerToolItemCommand? Type164 { get; set; } + public global::OpenRouter.OutputBrowserUseServerToolItem? Type164 { get; set; } /// /// /// - public global::OpenRouter.OutputTextEditorServerToolItemType? Type165 { get; set; } + public global::OpenRouter.OutputBashServerToolItem? Type165 { get; set; } /// /// /// - public global::OpenRouter.OutputTextEditorServerToolItem? Type166 { get; set; } + public global::OpenRouter.OutputTextEditorServerToolItemCommand? Type166 { get; set; } /// /// /// - public global::OpenRouter.OutputApplyPatchServerToolItem? Type167 { get; set; } + public global::OpenRouter.OutputTextEditorServerToolItemType? Type167 { get; set; } /// /// /// - public global::OpenRouter.OutputWebFetchServerToolItemType? Type168 { get; set; } + public global::OpenRouter.OutputTextEditorServerToolItem? Type168 { get; set; } /// /// /// - public global::OpenRouter.OutputWebFetchServerToolItem? Type169 { get; set; } + public global::OpenRouter.OutputApplyPatchServerToolItem? Type169 { get; set; } /// /// /// - public global::OpenRouter.OutputToolSearchServerToolItemType? Type170 { get; set; } + public global::OpenRouter.OutputWebFetchServerToolItemType? Type170 { get; set; } /// /// /// - public global::OpenRouter.OutputToolSearchServerToolItem? Type171 { get; set; } + public global::OpenRouter.OutputWebFetchServerToolItem? Type171 { get; set; } /// /// /// - public global::OpenRouter.OutputMemoryServerToolItemAction? Type172 { get; set; } + public global::OpenRouter.OutputToolSearchServerToolItemType? Type172 { get; set; } /// /// /// - public global::OpenRouter.OutputMemoryServerToolItemType? Type173 { get; set; } + public global::OpenRouter.OutputToolSearchServerToolItem? Type173 { get; set; } /// /// /// - public global::OpenRouter.OutputMemoryServerToolItem? Type174 { get; set; } + public global::OpenRouter.OutputMemoryServerToolItemAction? Type174 { get; set; } /// /// /// - public global::OpenRouter.OutputMcpServerToolItemType? Type175 { get; set; } + public global::OpenRouter.OutputMemoryServerToolItemType? Type175 { get; set; } /// /// /// - public global::OpenRouter.OutputMcpServerToolItem? Type176 { get; set; } + public global::OpenRouter.OutputMemoryServerToolItem? Type176 { get; set; } /// /// /// - public global::OpenRouter.OutputSearchModelsServerToolItemType? Type177 { get; set; } + public global::OpenRouter.OutputMcpServerToolItemType? Type177 { get; set; } /// /// /// - public global::OpenRouter.OutputSearchModelsServerToolItem? Type178 { get; set; } + public global::OpenRouter.OutputMcpServerToolItem? Type178 { get; set; } /// /// /// - public global::OpenRouter.FusionAnalysisResultContradictionsItemsStancesItems? Type179 { get; set; } + public global::OpenRouter.OutputSearchModelsServerToolItemType? Type179 { get; set; } /// /// /// - public global::OpenRouter.FusionAnalysisResultContradictionsItems? Type180 { get; set; } + public global::OpenRouter.OutputSearchModelsServerToolItem? Type180 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type181 { get; set; } + public global::OpenRouter.FusionAnalysisResultContradictionsItemsStancesItems? Type181 { get; set; } /// /// /// - public global::OpenRouter.FusionAnalysisResultPartialCoverageItems? Type182 { get; set; } + public global::OpenRouter.FusionAnalysisResultContradictionsItems? Type182 { get; set; } /// /// /// - public global::OpenRouter.FusionAnalysisResultUniqueInsightsItems? Type183 { get; set; } + public global::System.Collections.Generic.IList? Type183 { get; set; } /// /// /// - public global::OpenRouter.FusionAnalysisResult? Type184 { get; set; } + public global::OpenRouter.FusionAnalysisResultPartialCoverageItems? Type184 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type185 { get; set; } + public global::OpenRouter.FusionAnalysisResultUniqueInsightsItems? Type185 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type186 { get; set; } + public global::OpenRouter.FusionAnalysisResult? Type186 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type187 { get; set; } + public global::System.Collections.Generic.IList? Type187 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsDiscriminatorMappingOpenrouterFusionFailedModelsItems? Type188 { get; set; } + public global::System.Collections.Generic.IList? Type188 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsDiscriminatorMappingOpenrouterFusionResponsesItems? Type189 { get; set; } + public global::System.Collections.Generic.IList? Type189 { get; set; } /// /// /// - public global::OpenRouter.OutputFusionServerToolItem? Type190 { get; set; } + public global::OpenRouter.OutputItemsDiscriminatorMappingOpenrouterFusionFailedModelsItems? Type190 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type191 { get; set; } + public global::OpenRouter.OutputItemsDiscriminatorMappingOpenrouterFusionResponsesItems? Type191 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type192 { get; set; } + public global::OpenRouter.OutputFusionServerToolItem? Type192 { get; set; } /// /// /// - public global::OpenRouter.OutputAdvisorServerToolItem? Type193 { get; set; } + public global::System.Collections.Generic.IList? Type193 { get; set; } /// /// /// - public global::OpenRouter.OutputSubagentServerToolItemType? Type194 { get; set; } + public global::System.Collections.Generic.IList? Type194 { get; set; } /// /// /// - public global::OpenRouter.OutputSubagentServerToolItem? Type195 { get; set; } + public global::OpenRouter.OutputAdvisorServerToolItem? Type195 { get; set; } /// /// /// - public global::OpenRouter.LocalShellCallItemActionType? Type196 { get; set; } + public global::OpenRouter.OutputSubagentServerToolItemType? Type196 { get; set; } /// /// /// - public global::OpenRouter.LocalShellCallItemAction? Type197 { get; set; } + public global::OpenRouter.OutputSubagentServerToolItem? Type197 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type198 { get; set; } + public global::OpenRouter.LocalShellCallItemActionType? Type198 { get; set; } /// /// /// - public global::OpenRouter.LocalShellCallItemType? Type199 { get; set; } + public global::OpenRouter.LocalShellCallItemAction? Type199 { get; set; } /// /// /// - public global::OpenRouter.LocalShellCallItem? Type200 { get; set; } + public global::System.Collections.Generic.Dictionary? Type200 { get; set; } /// /// /// - public global::OpenRouter.LocalShellCallOutputItemType? Type201 { get; set; } + public global::OpenRouter.LocalShellCallItemType? Type201 { get; set; } /// /// /// - public global::OpenRouter.LocalShellCallOutputItem? Type202 { get; set; } + public global::OpenRouter.LocalShellCallItem? Type202 { get; set; } /// /// /// - public global::OpenRouter.ShellCallItemAction? Type203 { get; set; } + public global::OpenRouter.LocalShellCallOutputItemType? Type203 { get; set; } /// /// /// - public global::OpenRouter.ShellCallItemType? Type204 { get; set; } + public global::OpenRouter.LocalShellCallOutputItem? Type204 { get; set; } /// /// /// - public global::OpenRouter.ShellCallItem? Type205 { get; set; } + public global::OpenRouter.ShellCallItemAction? Type205 { get; set; } /// /// /// - public global::OpenRouter.ShellCallOutputItemOutputItems? Type206 { get; set; } + public global::OpenRouter.ShellCallItemType? Type206 { get; set; } /// /// /// - public global::OpenRouter.ShellCallOutputItemType? Type207 { get; set; } + public global::OpenRouter.ShellCallItem? Type207 { get; set; } /// /// /// - public global::OpenRouter.ShellCallOutputItem? Type208 { get; set; } + public global::OpenRouter.ShellCallOutputItemOutputItems? Type208 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type209 { get; set; } + public global::OpenRouter.ShellCallOutputItemType? Type209 { get; set; } /// /// /// - public global::OpenRouter.McpListToolsItemToolsItems? Type210 { get; set; } + public global::OpenRouter.ShellCallOutputItem? Type210 { get; set; } /// /// /// - public global::OpenRouter.McpListToolsItemType? Type211 { get; set; } + public global::System.Collections.Generic.IList? Type211 { get; set; } /// /// /// - public global::OpenRouter.McpListToolsItem? Type212 { get; set; } + public global::OpenRouter.McpListToolsItemToolsItems? Type212 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type213 { get; set; } + public global::OpenRouter.McpListToolsItemType? Type213 { get; set; } /// /// /// - public global::OpenRouter.McpApprovalRequestItemType? Type214 { get; set; } + public global::OpenRouter.McpListToolsItem? Type214 { get; set; } /// /// /// - public global::OpenRouter.McpApprovalRequestItem? Type215 { get; set; } + public global::System.Collections.Generic.IList? Type215 { get; set; } /// /// /// - public global::OpenRouter.McpApprovalResponseItemType? Type216 { get; set; } + public global::OpenRouter.McpApprovalRequestItemType? Type216 { get; set; } /// /// /// - public global::OpenRouter.McpApprovalResponseItem? Type217 { get; set; } + public global::OpenRouter.McpApprovalRequestItem? Type217 { get; set; } /// /// /// - public bool? Type218 { get; set; } + public global::OpenRouter.McpApprovalResponseItemType? Type218 { get; set; } /// /// /// - public global::OpenRouter.McpCallItemType? Type219 { get; set; } + public global::OpenRouter.McpApprovalResponseItem? Type219 { get; set; } /// /// /// - public global::OpenRouter.McpCallItem? Type220 { get; set; } + public global::OpenRouter.McpCallItemType? Type220 { get; set; } /// /// /// - public global::OpenRouter.CustomToolCallItemType? Type221 { get; set; } + public global::OpenRouter.McpCallItem? Type221 { get; set; } /// /// /// - public global::OpenRouter.CustomToolCallItem? Type222 { get; set; } + public global::OpenRouter.CustomToolCallItemType? Type222 { get; set; } /// /// /// - public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1Items? Type223 { get; set; } + public global::OpenRouter.CustomToolCallItem? Type223 { get; set; } /// /// /// - public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsVariant1? Type224 { get; set; } + public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1Items? Type224 { get; set; } /// /// /// - public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsVariant1Type? Type225 { get; set; } + public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsVariant1? Type225 { get; set; } /// /// /// - public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsVariant2? Type226 { get; set; } + public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsVariant1Type? Type226 { get; set; } /// /// /// - public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsVariant2Type? Type227 { get; set; } + public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsVariant2? Type227 { get; set; } /// /// /// - public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsVariant3? Type228 { get; set; } + public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsVariant2Type? Type228 { get; set; } /// /// /// - public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsVariant3Type? Type229 { get; set; } + public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsVariant3? Type229 { get; set; } /// /// /// - public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsDiscriminator? Type230 { get; set; } + public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsVariant3Type? Type230 { get; set; } /// /// /// - public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsDiscriminatorType? Type231 { get; set; } + public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsDiscriminator? Type231 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type232 { get; set; } + public global::OpenRouter.CustomToolCallOutputItemOutputOneOf1ItemsDiscriminatorType? Type232 { get; set; } /// /// /// - public global::OpenRouter.CustomToolCallOutputItemOutput? Type233 { get; set; } + public global::System.Collections.Generic.IList? Type233 { get; set; } /// /// /// - public global::OpenRouter.CustomToolCallOutputItemType? Type234 { get; set; } + public global::OpenRouter.CustomToolCallOutputItemOutput? Type234 { get; set; } /// /// /// - public global::OpenRouter.CustomToolCallOutputItem? Type235 { get; set; } + public global::OpenRouter.CustomToolCallOutputItemType? Type235 { get; set; } /// /// /// - public global::OpenRouter.CompactionItemType? Type236 { get; set; } + public global::OpenRouter.CustomToolCallOutputItem? Type236 { get; set; } /// /// /// - public global::OpenRouter.CompactionItem? Type237 { get; set; } + public global::OpenRouter.CompactionItemType? Type237 { get; set; } /// /// /// - public global::OpenRouter.ItemReferenceItemType? Type238 { get; set; } + public global::OpenRouter.CompactionItem? Type238 { get; set; } /// /// /// - public global::OpenRouter.ItemReferenceItem? Type239 { get; set; } + public global::OpenRouter.ItemReferenceItemType? Type239 { get; set; } /// /// /// - public global::OpenRouter.InputsOneOf1Items? Type240 { get; set; } + public global::OpenRouter.ItemReferenceItem? Type240 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type241 { get; set; } + public global::OpenRouter.InputsOneOf1Items? Type241 { get; set; } /// /// /// - public global::OpenRouter.Inputs? Type242 { get; set; } + public global::System.Collections.Generic.IList? Type242 { get; set; } /// /// /// - public global::OpenRouter.OutputModalityEnum? Type243 { get; set; } + public global::OpenRouter.Inputs? Type243 { get; set; } /// /// /// - public global::OpenRouter.ContextCompressionEngine? Type244 { get; set; } + public global::OpenRouter.OutputModalityEnum? Type244 { get; set; } /// /// /// - public global::OpenRouter.PdfParserEngine0? Type245 { get; set; } + public global::OpenRouter.ContextCompressionEngine? Type245 { get; set; } /// /// /// - public global::OpenRouter.PdfParserEngine1? Type246 { get; set; } + public global::OpenRouter.PdfParserEngine0? Type246 { get; set; } /// /// /// - public global::OpenRouter.PDFParserEngine? Type247 { get; set; } + public global::OpenRouter.PdfParserEngine1? Type247 { get; set; } /// /// /// - public global::OpenRouter.PDFParserOptions? Type248 { get; set; } + public global::OpenRouter.PDFParserEngine? Type248 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPreset? Type249 { get; set; } + public global::OpenRouter.PDFParserOptions? Type249 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items? Type250 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionPreset? Type250 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type251 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf4Items? Type251 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5? Type252 { get; set; } + public global::System.Collections.Generic.IList? Type252 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5? Type253 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParametersOneOf5? Type253 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters? Type254 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters5? Type254 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItems? Type255 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItemsParameters? Type255 { get; set; } /// /// /// - public global::OpenRouter.WebSearchEngine? Type256 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorMappingFusionToolsItems? Type256 { get; set; } /// /// /// - public global::OpenRouter.WebSearchPluginId? Type257 { get; set; } + public global::OpenRouter.WebSearchEngine? Type257 { get; set; } /// /// /// - public global::OpenRouter.WebSearchPluginUserLocationType? Type258 { get; set; } + public global::OpenRouter.WebSearchPluginId? Type258 { get; set; } /// /// /// - public global::OpenRouter.WebSearchPluginUserLocation? Type259 { get; set; } + public global::OpenRouter.WebSearchPluginUserLocationType? Type259 { get; set; } /// /// /// - public global::OpenRouter.WebFetchPluginId? Type260 { get; set; } + public global::OpenRouter.WebSearchPluginUserLocation? Type260 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItems? Type261 { get; set; } + public global::OpenRouter.WebFetchPluginId? Type261 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant1? Type262 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItems? Type262 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant1Id? Type263 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant1? Type263 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant2? Type264 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant1Id? Type264 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant2Id? Type265 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant2? Type265 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant3? Type266 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant2Id? Type266 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant3Id? Type267 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant3? Type267 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant4? Type268 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant3Id? Type268 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant4Id? Type269 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant4? Type269 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type270 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant4Id? Type270 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant5? Type271 { get; set; } + public global::System.Collections.Generic.IList? Type271 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant5Id? Type272 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant5? Type272 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant6? Type273 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant5Id? Type273 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant6Id? Type274 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant6? Type274 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant7? Type275 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant6Id? Type275 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant7Id? Type276 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant7? Type276 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant8? Type277 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant7Id? Type277 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsVariant9? Type278 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant8? Type278 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminator? Type279 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsVariant9? Type279 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorId? Type280 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminator? Type280 { get; set; } /// /// /// - public global::OpenRouter.InputImage? Type281 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItemsDiscriminatorId? Type281 { get; set; } /// /// /// - public global::OpenRouter.StoredPromptTemplateVariables? Type282 { get; set; } + public global::OpenRouter.InputImage? Type282 { get; set; } /// /// /// - public global::OpenRouter.StoredPromptTemplate? Type283 { get; set; } + public global::OpenRouter.StoredPromptTemplateVariables? Type283 { get; set; } /// /// /// - public global::OpenRouter.ProviderPreferencesDataCollection? Type284 { get; set; } + public global::OpenRouter.StoredPromptTemplate? Type284 { get; set; } /// /// /// - public global::OpenRouter.ProviderName? Type285 { get; set; } + public global::OpenRouter.ProviderPreferencesDataCollection? Type285 { get; set; } /// /// /// - public global::OpenRouter.ProviderPreferencesIgnoreItems? Type286 { get; set; } + public global::OpenRouter.ProviderName? Type286 { get; set; } /// /// /// - public global::OpenRouter.ProviderPreferencesMaxPrice? Type287 { get; set; } + public global::OpenRouter.ProviderPreferencesIgnoreItems? Type287 { get; set; } /// /// /// - public global::OpenRouter.ProviderPreferencesOnlyItems? Type288 { get; set; } + public global::OpenRouter.ProviderPreferencesMaxPrice? Type288 { get; set; } /// /// /// - public global::OpenRouter.ProviderPreferencesOrderItems? Type289 { get; set; } + public global::OpenRouter.ProviderPreferencesOnlyItems? Type289 { get; set; } /// /// /// - public global::OpenRouter.PercentileLatencyCutoffs? Type290 { get; set; } + public global::OpenRouter.ProviderPreferencesOrderItems? Type290 { get; set; } /// /// /// - public global::OpenRouter.PreferredMaxLatency? Type291 { get; set; } + public global::OpenRouter.PercentileLatencyCutoffs? Type291 { get; set; } /// /// /// - public global::OpenRouter.PercentileThroughputCutoffs? Type292 { get; set; } + public global::OpenRouter.PreferredMaxLatency? Type292 { get; set; } /// /// /// - public global::OpenRouter.PreferredMinThroughput? Type293 { get; set; } + public global::OpenRouter.PercentileThroughputCutoffs? Type293 { get; set; } /// /// /// - public global::OpenRouter.Quantization? Type294 { get; set; } + public global::OpenRouter.PreferredMinThroughput? Type294 { get; set; } /// /// /// - public global::OpenRouter.ProviderSort? Type295 { get; set; } + public global::OpenRouter.Quantization? Type295 { get; set; } /// /// /// - public global::OpenRouter.ProviderSortConfigBy? Type296 { get; set; } + public global::OpenRouter.ProviderSort? Type296 { get; set; } /// /// /// - public global::OpenRouter.ProviderSortConfigPartition? Type297 { get; set; } + public global::OpenRouter.ProviderSortConfigBy? Type297 { get; set; } /// /// /// - public global::OpenRouter.ProviderSortConfig? Type298 { get; set; } + public global::OpenRouter.ProviderSortConfigPartition? Type298 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type299 { get; set; } + public global::OpenRouter.ProviderSortConfig? Type299 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type300 { get; set; } + public global::OpenRouter.OneOf? Type300 { get; set; } /// /// /// - public global::OpenRouter.ProviderPreferencesSort? Type301 { get; set; } + public global::OpenRouter.OneOf? Type301 { get; set; } /// /// /// - public global::OpenRouter.ProviderPreferences? Type302 { get; set; } + public global::OpenRouter.ProviderPreferencesSort? Type302 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type303 { get; set; } + public global::OpenRouter.ProviderPreferences? Type303 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type304 { get; set; } + public global::OpenRouter.OneOf? Type304 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type305 { get; set; } + public global::System.Collections.Generic.IList? Type305 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type306 { get; set; } + public global::System.Collections.Generic.IList? Type306 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type307 { get; set; } + public global::System.Collections.Generic.IList? Type307 { get; set; } /// /// /// - public global::OpenRouter.ReasoningEffort? Type308 { get; set; } + public global::System.Collections.Generic.IList? Type308 { get; set; } /// /// /// - public global::OpenRouter.ReasoningSummaryVerbosity? Type309 { get; set; } + public global::OpenRouter.ReasoningEffort? Type309 { get; set; } /// /// /// - public global::OpenRouter.ReasoningConfig? Type310 { get; set; } + public global::OpenRouter.ReasoningSummaryVerbosity? Type310 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestServiceTier? Type311 { get; set; } + public global::OpenRouter.ReasoningConfig? Type311 { get; set; } /// /// /// - public global::OpenRouter.StopServerToolsWhenFinishReasonIsType? Type312 { get; set; } + public global::OpenRouter.ResponsesRequestServiceTier? Type312 { get; set; } /// /// /// - public global::OpenRouter.StopServerToolsWhenHasToolCallType? Type313 { get; set; } + public global::OpenRouter.StopServerToolsWhenFinishReasonIsType? Type313 { get; set; } /// /// /// - public global::OpenRouter.StopServerToolsWhenMaxCostType? Type314 { get; set; } + public global::OpenRouter.StopServerToolsWhenHasToolCallType? Type314 { get; set; } /// /// /// - public global::OpenRouter.StopServerToolsWhenMaxTokensUsedType? Type315 { get; set; } + public global::OpenRouter.StopServerToolsWhenMaxCostType? Type315 { get; set; } /// /// /// - public global::OpenRouter.StopServerToolsWhenStepCountIsType? Type316 { get; set; } + public global::OpenRouter.StopServerToolsWhenMaxTokensUsedType? Type316 { get; set; } /// /// /// - public global::OpenRouter.StopServerToolsWhenCondition? Type317 { get; set; } + public global::OpenRouter.StopServerToolsWhenStepCountIsType? Type317 { get; set; } /// /// /// - public global::OpenRouter.StopServerToolsWhenConditionVariant1? Type318 { get; set; } + public global::OpenRouter.StopServerToolsWhenCondition? Type318 { get; set; } /// /// /// - public global::OpenRouter.StopServerToolsWhenConditionVariant2? Type319 { get; set; } + public global::OpenRouter.StopServerToolsWhenConditionVariant1? Type319 { get; set; } /// /// /// - public global::OpenRouter.StopServerToolsWhenConditionVariant3? Type320 { get; set; } + public global::OpenRouter.StopServerToolsWhenConditionVariant2? Type320 { get; set; } /// /// /// - public global::OpenRouter.StopServerToolsWhenConditionVariant4? Type321 { get; set; } + public global::OpenRouter.StopServerToolsWhenConditionVariant3? Type321 { get; set; } /// /// /// - public global::OpenRouter.StopServerToolsWhenConditionVariant5? Type322 { get; set; } + public global::OpenRouter.StopServerToolsWhenConditionVariant4? Type322 { get; set; } /// /// /// - public global::OpenRouter.StopServerToolsWhenConditionDiscriminator? Type323 { get; set; } + public global::OpenRouter.StopServerToolsWhenConditionVariant5? Type323 { get; set; } /// /// /// - public global::OpenRouter.StopServerToolsWhenConditionDiscriminatorType? Type324 { get; set; } + public global::OpenRouter.StopServerToolsWhenConditionDiscriminator? Type324 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type325 { get; set; } + public global::OpenRouter.StopServerToolsWhenConditionDiscriminatorType? Type325 { get; set; } /// /// /// - public global::OpenRouter.FormatTextConfigType? Type326 { get; set; } + public global::System.Collections.Generic.IList? Type326 { get; set; } /// /// /// - public global::OpenRouter.FormatTextConfig? Type327 { get; set; } + public global::OpenRouter.FormatTextConfigType? Type327 { get; set; } /// /// /// - public global::OpenRouter.FormatJsonObjectConfigType? Type328 { get; set; } + public global::OpenRouter.FormatTextConfig? Type328 { get; set; } /// /// /// - public global::OpenRouter.FormatJsonObjectConfig? Type329 { get; set; } + public global::OpenRouter.FormatJsonObjectConfigType? Type329 { get; set; } /// /// /// - public global::OpenRouter.FormatJsonSchemaConfigType? Type330 { get; set; } + public global::OpenRouter.FormatJsonObjectConfig? Type330 { get; set; } /// /// /// - public global::OpenRouter.FormatJsonSchemaConfig? Type331 { get; set; } + public global::OpenRouter.FormatJsonSchemaConfigType? Type331 { get; set; } /// /// /// - public global::OpenRouter.Formats? Type332 { get; set; } + public global::OpenRouter.FormatJsonSchemaConfig? Type332 { get; set; } /// /// /// - public global::OpenRouter.TextExtendedConfigVerbosity? Type333 { get; set; } + public global::OpenRouter.Formats? Type333 { get; set; } /// /// /// - public global::OpenRouter.TextExtendedConfig? Type334 { get; set; } + public global::OpenRouter.TextExtendedConfigVerbosity? Type334 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type335 { get; set; } + public global::OpenRouter.TextExtendedConfig? Type335 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesToolChoice0? Type336 { get; set; } + public global::OpenRouter.OneOf? Type336 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesToolChoice1? Type337 { get; set; } + public global::OpenRouter.OpenAiResponsesToolChoice0? Type337 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesToolChoice2? Type338 { get; set; } + public global::OpenRouter.OpenAiResponsesToolChoice1? Type338 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesToolChoiceOneOf3Type? Type339 { get; set; } + public global::OpenRouter.OpenAiResponsesToolChoice2? Type339 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesToolChoice3? Type340 { get; set; } + public global::OpenRouter.OpenAiResponsesToolChoiceOneOf3Type? Type340 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesToolChoiceOneOf4Type0? Type341 { get; set; } + public global::OpenRouter.OpenAiResponsesToolChoice3? Type341 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesToolChoiceOneOf4Type1? Type342 { get; set; } + public global::OpenRouter.OpenAiResponsesToolChoiceOneOf4Type0? Type342 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesToolChoiceOneOf4Type? Type343 { get; set; } + public global::OpenRouter.OpenAiResponsesToolChoiceOneOf4Type1? Type343 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesToolChoice4? Type344 { get; set; } + public global::OpenRouter.OpenAiResponsesToolChoiceOneOf4Type? Type344 { get; set; } /// /// /// - public global::OpenRouter.ToolChoiceAllowedMode0? Type345 { get; set; } + public global::OpenRouter.OpenAiResponsesToolChoice4? Type345 { get; set; } /// /// /// - public global::OpenRouter.ToolChoiceAllowedMode1? Type346 { get; set; } + public global::OpenRouter.ToolChoiceAllowedMode0? Type346 { get; set; } /// /// /// - public global::OpenRouter.ToolChoiceAllowedMode? Type347 { get; set; } + public global::OpenRouter.ToolChoiceAllowedMode1? Type347 { get; set; } /// /// /// - public global::OpenRouter.ToolChoiceAllowedType? Type348 { get; set; } + public global::OpenRouter.ToolChoiceAllowedMode? Type348 { get; set; } /// /// /// - public global::OpenRouter.ToolChoiceAllowed? Type349 { get; set; } + public global::OpenRouter.ToolChoiceAllowedType? Type349 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesToolChoiceOneOf6Type? Type350 { get; set; } + public global::OpenRouter.ToolChoiceAllowed? Type350 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesToolChoice6? Type351 { get; set; } + public global::OpenRouter.OpenAiResponsesToolChoiceOneOf6Type? Type351 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesToolChoiceOneOf7Type? Type352 { get; set; } + public global::OpenRouter.OpenAiResponsesToolChoice6? Type352 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesToolChoice7? Type353 { get; set; } + public global::OpenRouter.OpenAiResponsesToolChoiceOneOf7Type? Type353 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesToolChoice? Type354 { get; set; } + public global::OpenRouter.OpenAiResponsesToolChoice7? Type354 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestToolsItemsOneOf0Type? Type355 { get; set; } + public global::OpenRouter.OpenAIResponsesToolChoice? Type355 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestToolsItems0? Type356 { get; set; } + public global::OpenRouter.ResponsesRequestToolsItemsOneOf0Type? Type356 { get; set; } /// /// /// - public global::OpenRouter.WebSearchEngineEnum? Type357 { get; set; } + public global::OpenRouter.ResponsesRequestToolsItems0? Type357 { get; set; } /// /// /// - public global::OpenRouter.WebSearchDomainFilter? Type358 { get; set; } + public global::OpenRouter.WebSearchEngineEnum? Type358 { get; set; } /// /// /// - public global::OpenRouter.SearchContextSizeEnum? Type359 { get; set; } + public global::OpenRouter.WebSearchDomainFilter? Type359 { get; set; } /// /// /// - public global::OpenRouter.PreviewWebSearchServerToolType? Type360 { get; set; } + public global::OpenRouter.SearchContextSizeEnum? Type360 { get; set; } /// /// /// - public global::OpenRouter.PreviewWebSearchUserLocationType? Type361 { get; set; } + public global::OpenRouter.PreviewWebSearchServerToolType? Type361 { get; set; } /// /// /// - public global::OpenRouter.PreviewWebSearchUserLocation? Type362 { get; set; } + public global::OpenRouter.PreviewWebSearchUserLocationType? Type362 { get; set; } /// /// /// - public global::OpenRouter.PreviewWebSearchServerTool? Type363 { get; set; } + public global::OpenRouter.PreviewWebSearchUserLocation? Type363 { get; set; } /// /// /// - public global::OpenRouter.Preview20250311WebSearchServerToolType? Type364 { get; set; } + public global::OpenRouter.PreviewWebSearchServerTool? Type364 { get; set; } /// /// /// - public global::OpenRouter.Preview20250311WebSearchServerTool? Type365 { get; set; } + public global::OpenRouter.Preview20250311WebSearchServerToolType? Type365 { get; set; } /// /// /// - public global::OpenRouter.LegacyWebSearchServerToolType? Type366 { get; set; } + public global::OpenRouter.Preview20250311WebSearchServerTool? Type366 { get; set; } /// /// /// - public global::OpenRouter.WebSearchUserLocationType? Type367 { get; set; } + public global::OpenRouter.LegacyWebSearchServerToolType? Type367 { get; set; } /// /// /// - public global::OpenRouter.WebSearchUserLocation? Type368 { get; set; } + public global::OpenRouter.WebSearchUserLocationType? Type368 { get; set; } /// /// /// - public global::OpenRouter.LegacyWebSearchServerTool? Type369 { get; set; } + public global::OpenRouter.WebSearchUserLocation? Type369 { get; set; } /// /// /// - public global::OpenRouter.WebSearchServerToolType? Type370 { get; set; } + public global::OpenRouter.LegacyWebSearchServerTool? Type370 { get; set; } /// /// /// - public global::OpenRouter.WebSearchServerTool? Type371 { get; set; } + public global::OpenRouter.WebSearchServerToolType? Type371 { get; set; } /// /// /// - public global::OpenRouter.FileSearchServerToolFiltersOneOf0Type? Type372 { get; set; } + public global::OpenRouter.WebSearchServerTool? Type372 { get; set; } /// /// /// - public global::OpenRouter.FileSearchServerToolFiltersOneOf0ValueOneOf3Items? Type373 { get; set; } + public global::OpenRouter.FileSearchServerToolFiltersOneOf0Type? Type373 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type374 { get; set; } + public global::OpenRouter.FileSearchServerToolFiltersOneOf0ValueOneOf3Items? Type374 { get; set; } /// /// /// - public global::OpenRouter.FileSearchServerToolFiltersOneOf0Value? Type375 { get; set; } + public global::System.Collections.Generic.IList? Type375 { get; set; } /// /// /// - public global::OpenRouter.FileSearchServerToolFilters0? Type376 { get; set; } + public global::OpenRouter.FileSearchServerToolFiltersOneOf0Value? Type376 { get; set; } /// /// /// - public global::OpenRouter.CompoundFilterType? Type377 { get; set; } + public global::OpenRouter.FileSearchServerToolFilters0? Type377 { get; set; } /// /// /// - public global::OpenRouter.CompoundFilter? Type378 { get; set; } + public global::OpenRouter.CompoundFilterType? Type378 { get; set; } /// /// /// - public global::OpenRouter.FileSearchServerToolFilters? Type379 { get; set; } + public global::OpenRouter.CompoundFilter? Type379 { get; set; } /// /// /// - public global::OpenRouter.FileSearchServerToolRankingOptionsRanker? Type380 { get; set; } + public global::OpenRouter.FileSearchServerToolFilters? Type380 { get; set; } /// /// /// - public global::OpenRouter.FileSearchServerToolRankingOptions? Type381 { get; set; } + public global::OpenRouter.FileSearchServerToolRankingOptionsRanker? Type381 { get; set; } /// /// /// - public global::OpenRouter.FileSearchServerToolType? Type382 { get; set; } + public global::OpenRouter.FileSearchServerToolRankingOptions? Type382 { get; set; } /// /// /// - public global::OpenRouter.FileSearchServerTool? Type383 { get; set; } + public global::OpenRouter.FileSearchServerToolType? Type383 { get; set; } /// /// /// - public global::OpenRouter.ComputerUseServerToolEnvironment? Type384 { get; set; } + public global::OpenRouter.FileSearchServerTool? Type384 { get; set; } /// /// /// - public global::OpenRouter.ComputerUseServerToolType? Type385 { get; set; } + public global::OpenRouter.ComputerUseServerToolEnvironment? Type385 { get; set; } /// /// /// - public global::OpenRouter.ComputerUseServerTool? Type386 { get; set; } + public global::OpenRouter.ComputerUseServerToolType? Type386 { get; set; } /// /// /// - public global::OpenRouter.CodeInterpreterServerToolContainerOneOf1MemoryLimit? Type387 { get; set; } + public global::OpenRouter.ComputerUseServerTool? Type387 { get; set; } /// /// /// - public global::OpenRouter.CodeInterpreterServerToolContainerOneOf1Type? Type388 { get; set; } + public global::OpenRouter.CodeInterpreterServerToolContainerOneOf1MemoryLimit? Type388 { get; set; } /// /// /// - public global::OpenRouter.CodeInterpreterServerToolContainer1? Type389 { get; set; } + public global::OpenRouter.CodeInterpreterServerToolContainerOneOf1Type? Type389 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type390 { get; set; } + public global::OpenRouter.CodeInterpreterServerToolContainer1? Type390 { get; set; } /// /// /// - public global::OpenRouter.CodeInterpreterServerToolContainer? Type391 { get; set; } + public global::OpenRouter.OneOf? Type391 { get; set; } /// /// /// - public global::OpenRouter.CodeInterpreterServerToolType? Type392 { get; set; } + public global::OpenRouter.CodeInterpreterServerToolContainer? Type392 { get; set; } /// /// /// - public global::OpenRouter.CodeInterpreterServerTool? Type393 { get; set; } + public global::OpenRouter.CodeInterpreterServerToolType? Type393 { get; set; } /// /// /// - public global::OpenRouter.McpServerToolAllowedTools1? Type394 { get; set; } + public global::OpenRouter.CodeInterpreterServerTool? Type394 { get; set; } /// /// /// - public global::OpenRouter.McpServerToolAllowedTools? Type395 { get; set; } + public global::OpenRouter.McpServerToolAllowedTools1? Type395 { get; set; } /// /// /// - public global::OpenRouter.McpServerToolConnectorId? Type396 { get; set; } + public global::OpenRouter.McpServerToolAllowedTools? Type396 { get; set; } /// /// /// - public global::OpenRouter.McpServerToolRequireApprovalOneOf0Always? Type397 { get; set; } + public global::OpenRouter.McpServerToolConnectorId? Type397 { get; set; } /// /// /// - public global::OpenRouter.McpServerToolRequireApprovalOneOf0Never? Type398 { get; set; } + public global::OpenRouter.McpServerToolRequireApprovalOneOf0Always? Type398 { get; set; } /// /// /// - public global::OpenRouter.McpServerToolRequireApproval0? Type399 { get; set; } + public global::OpenRouter.McpServerToolRequireApprovalOneOf0Never? Type399 { get; set; } /// /// /// - public global::OpenRouter.McpServerToolRequireApproval1? Type400 { get; set; } + public global::OpenRouter.McpServerToolRequireApproval0? Type400 { get; set; } /// /// /// - public global::OpenRouter.McpServerToolRequireApproval2? Type401 { get; set; } + public global::OpenRouter.McpServerToolRequireApproval1? Type401 { get; set; } /// /// /// - public global::OpenRouter.McpServerToolRequireApproval? Type402 { get; set; } + public global::OpenRouter.McpServerToolRequireApproval2? Type402 { get; set; } /// /// /// - public global::OpenRouter.McpServerToolType? Type403 { get; set; } + public global::OpenRouter.McpServerToolRequireApproval? Type403 { get; set; } /// /// /// - public global::OpenRouter.McpServerTool? Type404 { get; set; } + public global::OpenRouter.McpServerToolType? Type404 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationServerToolBackground? Type405 { get; set; } + public global::OpenRouter.McpServerTool? Type405 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationServerToolInputFidelity? Type406 { get; set; } + public global::OpenRouter.ImageGenerationServerToolBackground? Type406 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationServerToolInputImageMask? Type407 { get; set; } + public global::OpenRouter.ImageGenerationServerToolInputFidelity? Type407 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationServerToolModel? Type408 { get; set; } + public global::OpenRouter.ImageGenerationServerToolInputImageMask? Type408 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationServerToolModeration? Type409 { get; set; } + public global::OpenRouter.ImageGenerationServerToolModel? Type409 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationServerToolOutputFormat? Type410 { get; set; } + public global::OpenRouter.ImageGenerationServerToolModeration? Type410 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationServerToolQuality? Type411 { get; set; } + public global::OpenRouter.ImageGenerationServerToolOutputFormat? Type411 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationServerToolSize? Type412 { get; set; } + public global::OpenRouter.ImageGenerationServerToolQuality? Type412 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationServerToolType? Type413 { get; set; } + public global::OpenRouter.ImageGenerationServerToolSize? Type413 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationServerTool? Type414 { get; set; } + public global::OpenRouter.ImageGenerationServerToolType? Type414 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type415 { get; set; } + public global::OpenRouter.ImageGenerationServerTool? Type415 { get; set; } /// /// /// - public global::OpenRouter.CodexLocalShellToolType? Type416 { get; set; } + public global::OpenRouter.OneOf? Type416 { get; set; } /// /// /// - public global::OpenRouter.CodexLocalShellTool? Type417 { get; set; } + public global::OpenRouter.CodexLocalShellToolType? Type417 { get; set; } /// /// /// - public global::OpenRouter.ShellServerToolType? Type418 { get; set; } + public global::OpenRouter.CodexLocalShellTool? Type418 { get; set; } /// /// /// - public global::OpenRouter.ShellServerTool? Type419 { get; set; } + public global::OpenRouter.ShellServerToolType? Type419 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchServerToolType? Type420 { get; set; } + public global::OpenRouter.ShellServerTool? Type420 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchServerTool? Type421 { get; set; } + public global::OpenRouter.ApplyPatchServerToolType? Type421 { get; set; } /// /// /// - public global::OpenRouter.CustomToolFormatOneOf0Type? Type422 { get; set; } + public global::OpenRouter.ApplyPatchServerTool? Type422 { get; set; } /// /// /// - public global::OpenRouter.CustomToolFormat0? Type423 { get; set; } + public global::OpenRouter.CustomToolFormatOneOf0Type? Type423 { get; set; } /// /// /// - public global::OpenRouter.CustomToolFormatOneOf1Syntax? Type424 { get; set; } + public global::OpenRouter.CustomToolFormat0? Type424 { get; set; } /// /// /// - public global::OpenRouter.CustomToolFormatOneOf1Type? Type425 { get; set; } + public global::OpenRouter.CustomToolFormatOneOf1Syntax? Type425 { get; set; } /// /// /// - public global::OpenRouter.CustomToolFormat1? Type426 { get; set; } + public global::OpenRouter.CustomToolFormatOneOf1Type? Type426 { get; set; } /// /// /// - public global::OpenRouter.CustomToolFormat? Type427 { get; set; } + public global::OpenRouter.CustomToolFormat1? Type427 { get; set; } /// /// /// - public global::OpenRouter.CustomToolType? Type428 { get; set; } + public global::OpenRouter.CustomToolFormat? Type428 { get; set; } /// /// /// - public global::OpenRouter.CustomTool? Type429 { get; set; } + public global::OpenRouter.CustomToolType? Type429 { get; set; } /// /// /// - public global::OpenRouter.AdvisorReasoningEffort? Type430 { get; set; } + public global::OpenRouter.CustomTool? Type430 { get; set; } /// /// /// - public global::OpenRouter.AdvisorReasoning? Type431 { get; set; } + public global::OpenRouter.AdvisorReasoningEffort? Type431 { get; set; } /// /// /// - public global::OpenRouter.AdvisorNestedTool? Type432 { get; set; } + public global::OpenRouter.AdvisorReasoning? Type432 { get; set; } /// /// /// - public global::OpenRouter.AdvisorServerToolConfig? Type433 { get; set; } + public global::OpenRouter.AdvisorNestedTool? Type433 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type434 { get; set; } + public global::OpenRouter.AdvisorServerToolConfig? Type434 { get; set; } /// /// /// - public global::OpenRouter.AdvisorServerToolOpenRouterType? Type435 { get; set; } + public global::System.Collections.Generic.IList? Type435 { get; set; } /// /// /// - public global::OpenRouter.AdvisorServerToolOpenRouter? Type436 { get; set; } + public global::OpenRouter.AdvisorServerToolOpenRouterType? Type436 { get; set; } /// /// /// - public global::OpenRouter.SubagentReasoningEffort? Type437 { get; set; } + public global::OpenRouter.AdvisorServerToolOpenRouter? Type437 { get; set; } /// /// /// - public global::OpenRouter.SubagentReasoning? Type438 { get; set; } + public global::OpenRouter.SubagentReasoningEffort? Type438 { get; set; } /// /// /// - public global::OpenRouter.SubagentNestedTool? Type439 { get; set; } + public global::OpenRouter.SubagentReasoning? Type439 { get; set; } /// /// /// - public global::OpenRouter.SubagentServerToolConfig? Type440 { get; set; } + public global::OpenRouter.SubagentNestedTool? Type440 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type441 { get; set; } + public global::OpenRouter.SubagentServerToolConfig? Type441 { get; set; } /// /// /// - public global::OpenRouter.SubagentServerToolOpenRouterType? Type442 { get; set; } + public global::System.Collections.Generic.IList? Type442 { get; set; } /// /// /// - public global::OpenRouter.SubagentServerToolOpenRouter? Type443 { get; set; } + public global::OpenRouter.SubagentServerToolOpenRouterType? Type443 { get; set; } /// /// /// - public global::OpenRouter.DatetimeServerToolConfig? Type444 { get; set; } + public global::OpenRouter.SubagentServerToolOpenRouter? Type444 { get; set; } /// /// /// - public global::OpenRouter.DatetimeServerToolType? Type445 { get; set; } + public global::OpenRouter.DatetimeServerToolConfig? Type445 { get; set; } /// /// /// - public global::OpenRouter.DatetimeServerTool? Type446 { get; set; } + public global::OpenRouter.DatetimeServerToolType? Type446 { get; set; } /// /// /// - public global::OpenRouter.FusionServerToolConfigReasoningEffort? Type447 { get; set; } + public global::OpenRouter.DatetimeServerTool? Type447 { get; set; } /// /// /// - public global::OpenRouter.FusionServerToolConfigReasoning? Type448 { get; set; } + public global::OpenRouter.FusionServerToolConfigReasoningEffort? Type448 { get; set; } /// /// /// - public global::OpenRouter.FusionServerToolConfigToolsItems? Type449 { get; set; } + public global::OpenRouter.FusionServerToolConfigReasoning? Type449 { get; set; } /// /// /// - public global::OpenRouter.FusionServerToolConfig? Type450 { get; set; } + public global::OpenRouter.FusionServerToolConfigToolsItems? Type450 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type451 { get; set; } + public global::OpenRouter.FusionServerToolConfig? Type451 { get; set; } /// /// /// - public global::OpenRouter.FusionServerToolOpenRouterType? Type452 { get; set; } + public global::System.Collections.Generic.IList? Type452 { get; set; } /// /// /// - public global::OpenRouter.FusionServerToolOpenRouter? Type453 { get; set; } + public global::OpenRouter.FusionServerToolOpenRouterType? Type453 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationServerToolConfig? Type454 { get; set; } + public global::OpenRouter.FusionServerToolOpenRouter? Type454 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationServerToolOpenRouterType? Type455 { get; set; } + public global::OpenRouter.ImageGenerationServerToolConfig? Type455 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationServerToolOpenRouter? Type456 { get; set; } + public global::OpenRouter.ImageGenerationServerToolOpenRouterType? Type456 { get; set; } /// /// /// - public global::OpenRouter.SearchModelsServerToolConfig? Type457 { get; set; } + public global::OpenRouter.ImageGenerationServerToolOpenRouter? Type457 { get; set; } /// /// /// - public global::OpenRouter.ChatSearchModelsServerToolType? Type458 { get; set; } + public global::OpenRouter.SearchModelsServerToolConfig? Type458 { get; set; } /// /// /// - public global::OpenRouter.ChatSearchModelsServerTool? Type459 { get; set; } + public global::OpenRouter.ChatSearchModelsServerToolType? Type459 { get; set; } /// /// /// - public global::OpenRouter.WebFetchEngineEnum? Type460 { get; set; } + public global::OpenRouter.ChatSearchModelsServerTool? Type460 { get; set; } /// /// /// - public global::OpenRouter.WebFetchServerToolConfig? Type461 { get; set; } + public global::OpenRouter.WebFetchEngineEnum? Type461 { get; set; } /// /// /// - public global::OpenRouter.WebFetchServerToolType? Type462 { get; set; } + public global::OpenRouter.WebFetchServerToolConfig? Type462 { get; set; } /// /// /// - public global::OpenRouter.WebFetchServerTool? Type463 { get; set; } + public global::OpenRouter.WebFetchServerToolType? Type463 { get; set; } /// /// /// - public global::OpenRouter.SearchQualityLevel? Type464 { get; set; } + public global::OpenRouter.WebFetchServerTool? Type464 { get; set; } /// /// /// - public global::OpenRouter.WebSearchUserLocationServerToolType? Type465 { get; set; } + public global::OpenRouter.SearchQualityLevel? Type465 { get; set; } /// /// /// - public global::OpenRouter.WebSearchUserLocationServerTool? Type466 { get; set; } + public global::OpenRouter.WebSearchUserLocationServerToolType? Type466 { get; set; } /// /// /// - public global::OpenRouter.WebSearchServerToolConfig? Type467 { get; set; } + public global::OpenRouter.WebSearchUserLocationServerTool? Type467 { get; set; } /// /// /// - public global::OpenRouter.WebSearchServerToolOpenRouterType? Type468 { get; set; } + public global::OpenRouter.WebSearchServerToolConfig? Type468 { get; set; } /// /// /// - public global::OpenRouter.WebSearchServerToolOpenRouter? Type469 { get; set; } + public global::OpenRouter.WebSearchServerToolOpenRouterType? Type469 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchEngineEnum? Type470 { get; set; } + public global::OpenRouter.WebSearchServerToolOpenRouter? Type470 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchServerToolConfig? Type471 { get; set; } + public global::OpenRouter.ApplyPatchEngineEnum? Type471 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchServerToolOpenRouterType? Type472 { get; set; } + public global::OpenRouter.ApplyPatchServerToolConfig? Type472 { get; set; } /// /// /// - public global::OpenRouter.ApplyPatchServerToolOpenRouter? Type473 { get; set; } + public global::OpenRouter.ApplyPatchServerToolOpenRouterType? Type473 { get; set; } /// /// /// - public global::OpenRouter.BashServerToolEngine? Type474 { get; set; } + public global::OpenRouter.ApplyPatchServerToolOpenRouter? Type474 { get; set; } /// /// /// - public global::OpenRouter.BashServerToolEnvironment? Type475 { get; set; } + public global::OpenRouter.BashServerToolEngine? Type475 { get; set; } /// /// /// - public global::OpenRouter.BashServerToolEnvironmentVariant1? Type476 { get; set; } + public global::OpenRouter.BashServerToolEnvironment? Type476 { get; set; } /// /// /// - public global::OpenRouter.BashServerToolEnvironmentVariant1Type? Type477 { get; set; } + public global::OpenRouter.BashServerToolEnvironmentVariant1? Type477 { get; set; } /// /// /// - public global::OpenRouter.BashServerToolEnvironmentVariant2? Type478 { get; set; } + public global::OpenRouter.BashServerToolEnvironmentVariant1Type? Type478 { get; set; } /// /// /// - public global::OpenRouter.BashServerToolEnvironmentVariant2Type? Type479 { get; set; } + public global::OpenRouter.BashServerToolEnvironmentVariant2? Type479 { get; set; } /// /// /// - public global::OpenRouter.BashServerToolEnvironmentDiscriminator? Type480 { get; set; } + public global::OpenRouter.BashServerToolEnvironmentVariant2Type? Type480 { get; set; } /// /// /// - public global::OpenRouter.BashServerToolEnvironmentDiscriminatorType? Type481 { get; set; } + public global::OpenRouter.BashServerToolEnvironmentDiscriminator? Type481 { get; set; } /// /// /// - public global::OpenRouter.BashServerToolConfig? Type482 { get; set; } + public global::OpenRouter.BashServerToolEnvironmentDiscriminatorType? Type482 { get; set; } /// /// /// - public global::OpenRouter.BashServerToolType? Type483 { get; set; } + public global::OpenRouter.BashServerToolConfig? Type483 { get; set; } /// /// /// - public global::OpenRouter.BashServerTool? Type484 { get; set; } + public global::OpenRouter.BashServerToolType? Type484 { get; set; } /// /// /// - public global::OpenRouter.ShellServerToolEngine? Type485 { get; set; } + public global::OpenRouter.BashServerTool? Type485 { get; set; } /// /// /// - public global::OpenRouter.ShellServerToolEnvironment? Type486 { get; set; } + public global::OpenRouter.ShellServerToolEngine? Type486 { get; set; } /// /// /// - public global::OpenRouter.ShellServerToolEnvironmentVariant1? Type487 { get; set; } + public global::OpenRouter.ShellServerToolEnvironment? Type487 { get; set; } /// /// /// - public global::OpenRouter.ShellServerToolEnvironmentVariant1Type? Type488 { get; set; } + public global::OpenRouter.ShellServerToolEnvironmentVariant1? Type488 { get; set; } /// /// /// - public global::OpenRouter.ShellServerToolEnvironmentVariant2? Type489 { get; set; } + public global::OpenRouter.ShellServerToolEnvironmentVariant1Type? Type489 { get; set; } /// /// /// - public global::OpenRouter.ShellServerToolEnvironmentVariant2Type? Type490 { get; set; } + public global::OpenRouter.ShellServerToolEnvironmentVariant2? Type490 { get; set; } /// /// /// - public global::OpenRouter.ShellServerToolEnvironmentDiscriminator? Type491 { get; set; } + public global::OpenRouter.ShellServerToolEnvironmentVariant2Type? Type491 { get; set; } /// /// /// - public global::OpenRouter.ShellServerToolEnvironmentDiscriminatorType? Type492 { get; set; } + public global::OpenRouter.ShellServerToolEnvironmentDiscriminator? Type492 { get; set; } /// /// /// - public global::OpenRouter.ShellServerToolConfig? Type493 { get; set; } + public global::OpenRouter.ShellServerToolEnvironmentDiscriminatorType? Type493 { get; set; } /// /// /// - public global::OpenRouter.ShellServerToolOpenRouterType? Type494 { get; set; } + public global::OpenRouter.ShellServerToolConfig? Type494 { get; set; } /// /// /// - public global::OpenRouter.ShellServerToolOpenRouter? Type495 { get; set; } + public global::OpenRouter.ShellServerToolOpenRouterType? Type495 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestToolsItems? Type496 { get; set; } + public global::OpenRouter.ShellServerToolOpenRouter? Type496 { get; set; } /// /// /// - public global::OpenRouter.TraceConfig? Type497 { get; set; } + public global::OpenRouter.ResponsesRequestToolsItems? Type497 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesTruncation? Type498 { get; set; } + public global::OpenRouter.TraceConfig? Type498 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequest? Type499 { get; set; } + public global::OpenRouter.OpenAIResponsesTruncation? Type499 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type500 { get; set; } + public global::OpenRouter.ResponsesRequest? Type500 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type501 { get; set; } + public global::System.Collections.Generic.IList? Type501 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type502 { get; set; } + public global::System.Collections.Generic.IList? Type502 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type503 { get; set; } + public global::System.Collections.Generic.IList? Type503 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type504 { get; set; } + public global::OpenRouter.OneOf? Type504 { get; set; } /// /// /// - public global::OpenRouter.ResponsesErrorFieldCode? Type505 { get; set; } + public global::System.Collections.Generic.IList? Type505 { get; set; } /// /// /// - public global::OpenRouter.ResponsesErrorField? Type506 { get; set; } + public global::OpenRouter.ResponsesErrorFieldCode? Type506 { get; set; } /// /// /// - public global::OpenRouter.IncompleteDetailsReason? Type507 { get; set; } + public global::OpenRouter.ResponsesErrorField? Type507 { get; set; } /// /// /// - public global::OpenRouter.IncompleteDetails? Type508 { get; set; } + public global::OpenRouter.IncompleteDetailsReason? Type508 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0Items? Type509 { get; set; } + public global::OpenRouter.IncompleteDetails? Type509 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant1? Type510 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0Items? Type510 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant1Type? Type511 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant1? Type511 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant2? Type512 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant1Type? Type512 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant2Type? Type513 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant2? Type513 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant3? Type514 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant2Type? Type514 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant3Type? Type515 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant3? Type515 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant4? Type516 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant3Type? Type516 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant4Type? Type517 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant4? Type517 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsDiscriminator? Type518 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsVariant4Type? Type518 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsDiscriminatorType? Type519 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsDiscriminator? Type519 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type520 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsDiscriminatorType? Type520 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Content? Type521 { get; set; } + public global::System.Collections.Generic.IList? Type521 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Phase0? Type522 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Content? Type522 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Phase1? Type523 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Phase0? Type523 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Phase? Type524 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Phase1? Type524 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Role0? Type525 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Phase? Type525 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Role1? Type526 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Role0? Type526 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Role2? Type527 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Role1? Type527 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Role3? Type528 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Role2? Type528 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Role? Type529 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Role3? Type529 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Type? Type530 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Role? Type530 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1Items0? Type531 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Type? Type531 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemContentItems? Type532 { get; set; } + public global::OpenRouter.BaseInputsOneOf1Items0? Type532 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant1? Type533 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemContentItems? Type533 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant1Type? Type534 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant1? Type534 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant2? Type535 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant1Type? Type535 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant2Type? Type536 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant2? Type536 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant3? Type537 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant2Type? Type537 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant3Type? Type538 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant3? Type538 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant4? Type539 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant3Type? Type539 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant4Type? Type540 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant4? Type540 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsDiscriminator? Type541 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsVariant4Type? Type541 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsDiscriminatorType? Type542 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsDiscriminator? Type542 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemRole0? Type543 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemContentItemsDiscriminatorType? Type543 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemRole1? Type544 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemRole0? Type544 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemRole2? Type545 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemRole1? Type545 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemRole? Type546 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemRole2? Type546 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemType? Type547 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemRole? Type547 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponseInputMessageItem? Type548 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemType? Type548 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type549 { get; set; } + public global::OpenRouter.OpenAIResponseInputMessageItem? Type549 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1Items? Type550 { get; set; } + public global::System.Collections.Generic.IList? Type550 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant1? Type551 { get; set; } + public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1Items? Type551 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant1Type? Type552 { get; set; } + public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant1? Type552 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant2? Type553 { get; set; } + public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant1Type? Type553 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant2Type? Type554 { get; set; } + public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant2? Type554 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant3? Type555 { get; set; } + public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant2Type? Type555 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant3Type? Type556 { get; set; } + public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant3? Type556 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsDiscriminator? Type557 { get; set; } + public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsVariant3Type? Type557 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsDiscriminatorType? Type558 { get; set; } + public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsDiscriminator? Type558 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type559 { get; set; } + public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsDiscriminatorType? Type559 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutput? Type560 { get; set; } + public global::System.Collections.Generic.IList? Type560 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseFunctionToolCallOutputType? Type561 { get; set; } + public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutput? Type561 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponseFunctionToolCallOutput? Type562 { get; set; } + public global::OpenRouter.OpenAiResponseFunctionToolCallOutputType? Type562 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseFunctionToolCallType? Type563 { get; set; } + public global::OpenRouter.OpenAIResponseFunctionToolCallOutput? Type563 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponseFunctionToolCall? Type564 { get; set; } + public global::OpenRouter.OpenAiResponseFunctionToolCallType? Type564 { get; set; } /// /// /// - public global::OpenRouter.OutputItemImageGenerationCallType? Type565 { get; set; } + public global::OpenRouter.OpenAIResponseFunctionToolCall? Type565 { get; set; } /// /// /// - public global::OpenRouter.OutputItemImageGenerationCall? Type566 { get; set; } + public global::OpenRouter.OutputItemImageGenerationCallType? Type566 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageContentItems? Type567 { get; set; } + public global::OpenRouter.OutputItemImageGenerationCall? Type567 { get; set; } /// /// /// - public global::OpenRouter.OutputMessagePhase0? Type568 { get; set; } + public global::OpenRouter.OutputMessageContentItems? Type568 { get; set; } /// /// /// - public global::OpenRouter.OutputMessagePhase1? Type569 { get; set; } + public global::OpenRouter.OutputMessagePhase0? Type569 { get; set; } /// /// /// - public global::OpenRouter.OutputMessagePhase? Type570 { get; set; } + public global::OpenRouter.OutputMessagePhase1? Type570 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageRole? Type571 { get; set; } + public global::OpenRouter.OutputMessagePhase? Type571 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageStatus0? Type572 { get; set; } + public global::OpenRouter.OutputMessageRole? Type572 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageStatus1? Type573 { get; set; } + public global::OpenRouter.OutputMessageStatus0? Type573 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageStatus2? Type574 { get; set; } + public global::OpenRouter.OutputMessageStatus1? Type574 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageStatus? Type575 { get; set; } + public global::OpenRouter.OutputMessageStatus2? Type575 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageType? Type576 { get; set; } + public global::OpenRouter.OutputMessageStatus? Type576 { get; set; } /// /// /// - public global::OpenRouter.OutputMessage? Type577 { get; set; } + public global::OpenRouter.OutputMessageType? Type577 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type578 { get; set; } + public global::OpenRouter.OutputMessage? Type578 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseCustomToolCallType? Type579 { get; set; } + public global::System.Collections.Generic.IList? Type579 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponseCustomToolCall? Type580 { get; set; } + public global::OpenRouter.OpenAiResponseCustomToolCallType? Type580 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1Items? Type581 { get; set; } + public global::OpenRouter.OpenAIResponseCustomToolCall? Type581 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant1? Type582 { get; set; } + public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1Items? Type582 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant1Type? Type583 { get; set; } + public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant1? Type583 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant2? Type584 { get; set; } + public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant1Type? Type584 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant2Type? Type585 { get; set; } + public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant2? Type585 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant3? Type586 { get; set; } + public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant2Type? Type586 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant3Type? Type587 { get; set; } + public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant3? Type587 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsDiscriminator? Type588 { get; set; } + public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsVariant3Type? Type588 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsDiscriminatorType? Type589 { get; set; } + public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsDiscriminator? Type589 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type590 { get; set; } + public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutputOneOf1ItemsDiscriminatorType? Type590 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutput? Type591 { get; set; } + public global::System.Collections.Generic.IList? Type591 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseCustomToolCallOutputType? Type592 { get; set; } + public global::OpenRouter.OpenAiResponseCustomToolCallOutputOutput? Type592 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponseCustomToolCallOutput? Type593 { get; set; } + public global::OpenRouter.OpenAiResponseCustomToolCallOutputType? Type593 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1Items? Type594 { get; set; } + public global::OpenRouter.OpenAIResponseCustomToolCallOutput? Type594 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type595 { get; set; } + public global::OpenRouter.BaseInputsOneOf1Items? Type595 { get; set; } /// /// /// - public global::OpenRouter.BaseInputs? Type596 { get; set; } + public global::System.Collections.Generic.IList? Type596 { get; set; } /// /// /// - public global::OpenRouter.OpenResponsesResultObject? Type597 { get; set; } + public global::OpenRouter.BaseInputs? Type597 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageItemContentItems? Type598 { get; set; } + public global::OpenRouter.OpenResponsesResultObject? Type598 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageItemPhase0? Type599 { get; set; } + public global::OpenRouter.OutputMessageItemContentItems? Type599 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageItemPhase1? Type600 { get; set; } + public global::OpenRouter.OutputMessageItemPhase0? Type600 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageItemPhase? Type601 { get; set; } + public global::OpenRouter.OutputMessageItemPhase1? Type601 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageItemRole? Type602 { get; set; } + public global::OpenRouter.OutputMessageItemPhase? Type602 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageItemStatus0? Type603 { get; set; } + public global::OpenRouter.OutputMessageItemRole? Type603 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageItemStatus1? Type604 { get; set; } + public global::OpenRouter.OutputMessageItemStatus0? Type604 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageItemStatus2? Type605 { get; set; } + public global::OpenRouter.OutputMessageItemStatus1? Type605 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageItemStatus? Type606 { get; set; } + public global::OpenRouter.OutputMessageItemStatus2? Type606 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageItemType? Type607 { get; set; } + public global::OpenRouter.OutputMessageItemStatus? Type607 { get; set; } /// /// /// - public global::OpenRouter.OutputReasoningItemStatus0? Type608 { get; set; } + public global::OpenRouter.OutputMessageItemType? Type608 { get; set; } /// /// /// - public global::OpenRouter.OutputReasoningItemStatus1? Type609 { get; set; } + public global::OpenRouter.OutputReasoningItemStatus0? Type609 { get; set; } /// /// /// - public global::OpenRouter.OutputReasoningItemStatus2? Type610 { get; set; } + public global::OpenRouter.OutputReasoningItemStatus1? Type610 { get; set; } /// /// /// - public global::OpenRouter.OutputReasoningItemStatus? Type611 { get; set; } + public global::OpenRouter.OutputReasoningItemStatus2? Type611 { get; set; } /// /// /// - public global::OpenRouter.OutputReasoningItemType? Type612 { get; set; } + public global::OpenRouter.OutputReasoningItemStatus? Type612 { get; set; } /// /// /// - public global::OpenRouter.OutputShellCallItemAction? Type613 { get; set; } + public global::OpenRouter.OutputReasoningItemType? Type613 { get; set; } /// /// /// - public global::OpenRouter.ShellCallStatus? Type614 { get; set; } + public global::OpenRouter.OutputShellCallItemAction? Type614 { get; set; } /// /// /// - public global::OpenRouter.OutputShellCallItemType? Type615 { get; set; } + public global::OpenRouter.ShellCallStatus? Type615 { get; set; } /// /// /// - public global::OpenRouter.OutputShellCallOutputItemOutputItemsOutcomeOneOf0Type? Type616 { get; set; } + public global::OpenRouter.OutputShellCallItemType? Type616 { get; set; } /// /// /// - public global::OpenRouter.OutputShellCallOutputItemOutputItemsOutcome0? Type617 { get; set; } + public global::OpenRouter.OutputShellCallOutputItemOutputItemsOutcomeOneOf0Type? Type617 { get; set; } /// /// /// - public global::OpenRouter.OutputShellCallOutputItemOutputItemsOutcomeOneOf1Type? Type618 { get; set; } + public global::OpenRouter.OutputShellCallOutputItemOutputItemsOutcome0? Type618 { get; set; } /// /// /// - public global::OpenRouter.OutputShellCallOutputItemOutputItemsOutcome1? Type619 { get; set; } + public global::OpenRouter.OutputShellCallOutputItemOutputItemsOutcomeOneOf1Type? Type619 { get; set; } /// /// /// - public global::OpenRouter.OutputShellCallOutputItemOutputItemsOutcome? Type620 { get; set; } + public global::OpenRouter.OutputShellCallOutputItemOutputItemsOutcome1? Type620 { get; set; } /// /// /// - public global::OpenRouter.OutputShellCallOutputItemOutputItems? Type621 { get; set; } + public global::OpenRouter.OutputShellCallOutputItemOutputItemsOutcome? Type621 { get; set; } /// /// /// - public global::OpenRouter.OutputShellCallOutputItemType? Type622 { get; set; } + public global::OpenRouter.OutputShellCallOutputItemOutputItems? Type622 { get; set; } /// /// /// - public global::OpenRouter.OutputItems? Type623 { get; set; } + public global::OpenRouter.OutputShellCallOutputItemType? Type623 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant1? Type624 { get; set; } + public global::OpenRouter.OutputItems? Type624 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant1Type? Type625 { get; set; } + public global::OpenRouter.OutputItemsVariant1? Type625 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant2? Type626 { get; set; } + public global::OpenRouter.OutputItemsVariant1Type? Type626 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant3? Type627 { get; set; } + public global::OpenRouter.OutputItemsVariant2? Type627 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant3Type? Type628 { get; set; } + public global::OpenRouter.OutputItemsVariant3? Type628 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant4? Type629 { get; set; } + public global::OpenRouter.OutputItemsVariant3Type? Type629 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant4Type? Type630 { get; set; } + public global::OpenRouter.OutputItemsVariant4? Type630 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant5? Type631 { get; set; } + public global::OpenRouter.OutputItemsVariant4Type? Type631 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant6? Type632 { get; set; } + public global::OpenRouter.OutputItemsVariant5? Type632 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant7? Type633 { get; set; } + public global::OpenRouter.OutputItemsVariant6? Type633 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant8? Type634 { get; set; } + public global::OpenRouter.OutputItemsVariant7? Type634 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type635 { get; set; } + public global::OpenRouter.OutputItemsVariant8? Type635 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant9? Type636 { get; set; } + public global::System.Collections.Generic.IList? Type636 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant9Type? Type637 { get; set; } + public global::OpenRouter.OutputItemsVariant9? Type637 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant10? Type638 { get; set; } + public global::OpenRouter.OutputItemsVariant9Type? Type638 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant10Type? Type639 { get; set; } + public global::OpenRouter.OutputItemsVariant10? Type639 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant11? Type640 { get; set; } + public global::OpenRouter.OutputItemsVariant10Type? Type640 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant11Type? Type641 { get; set; } + public global::OpenRouter.OutputItemsVariant11? Type641 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant12? Type642 { get; set; } + public global::OpenRouter.OutputItemsVariant11Type? Type642 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant12Type? Type643 { get; set; } + public global::OpenRouter.OutputItemsVariant12? Type643 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant13? Type644 { get; set; } + public global::OpenRouter.OutputItemsVariant12Type? Type644 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant13Type? Type645 { get; set; } + public global::OpenRouter.OutputItemsVariant13? Type645 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant14? Type646 { get; set; } + public global::OpenRouter.OutputItemsVariant13Type? Type646 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant14Type? Type647 { get; set; } + public global::OpenRouter.OutputItemsVariant14? Type647 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant15? Type648 { get; set; } + public global::OpenRouter.OutputItemsVariant14Type? Type648 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant16? Type649 { get; set; } + public global::OpenRouter.OutputItemsVariant15? Type649 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant16Type? Type650 { get; set; } + public global::OpenRouter.OutputItemsVariant16? Type650 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant17? Type651 { get; set; } + public global::OpenRouter.OutputItemsVariant16Type? Type651 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant17Type? Type652 { get; set; } + public global::OpenRouter.OutputItemsVariant17? Type652 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant18? Type653 { get; set; } + public global::OpenRouter.OutputItemsVariant17Type? Type653 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant18Type? Type654 { get; set; } + public global::OpenRouter.OutputItemsVariant18? Type654 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant19? Type655 { get; set; } + public global::OpenRouter.OutputItemsVariant18Type? Type655 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant20? Type656 { get; set; } + public global::OpenRouter.OutputItemsVariant19? Type656 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant21? Type657 { get; set; } + public global::OpenRouter.OutputItemsVariant20? Type657 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant22? Type658 { get; set; } + public global::OpenRouter.OutputItemsVariant21? Type658 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant23? Type659 { get; set; } + public global::OpenRouter.OutputItemsVariant22? Type659 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant24? Type660 { get; set; } + public global::OpenRouter.OutputItemsVariant23? Type660 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant25? Type661 { get; set; } + public global::OpenRouter.OutputItemsVariant24? Type661 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant26? Type662 { get; set; } + public global::OpenRouter.OutputItemsVariant25? Type662 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant27? Type663 { get; set; } + public global::OpenRouter.OutputItemsVariant26? Type663 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant28? Type664 { get; set; } + public global::OpenRouter.OutputItemsVariant27? Type664 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type665 { get; set; } + public global::OpenRouter.OutputItemsVariant28? Type665 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant29? Type666 { get; set; } + public global::System.Collections.Generic.IList? Type666 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsDiscriminator? Type667 { get; set; } + public global::OpenRouter.OutputItemsVariant29? Type667 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsDiscriminatorType? Type668 { get; set; } + public global::OpenRouter.OutputItemsDiscriminator? Type668 { get; set; } /// /// /// - public global::OpenRouter.BaseReasoningConfig? Type669 { get; set; } + public global::OpenRouter.OutputItemsDiscriminatorType? Type669 { get; set; } /// /// /// - public global::OpenRouter.ServiceTier2? Type670 { get; set; } + public global::OpenRouter.BaseReasoningConfig? Type670 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesResponseStatus? Type671 { get; set; } + public global::OpenRouter.ServiceTier2? Type671 { get; set; } /// /// /// - public global::OpenRouter.OpenResponsesResultToolsItemsOneOf0Type? Type672 { get; set; } + public global::OpenRouter.OpenAIResponsesResponseStatus? Type672 { get; set; } /// /// /// - public global::OpenRouter.OpenResponsesResultToolsItems0? Type673 { get; set; } + public global::OpenRouter.OpenResponsesResultToolsItemsOneOf0Type? Type673 { get; set; } /// /// /// - public global::OpenRouter.OpenResponsesResultToolsItems? Type674 { get; set; } + public global::OpenRouter.OpenResponsesResultToolsItems0? Type674 { get; set; } /// /// /// - public global::OpenRouter.Truncation? Type675 { get; set; } + public global::OpenRouter.OpenResponsesResultToolsItems? Type675 { get; set; } /// /// /// - public global::OpenRouter.UsageInputTokensDetails? Type676 { get; set; } + public global::OpenRouter.Truncation? Type676 { get; set; } /// /// /// - public global::OpenRouter.UsageOutputTokensDetails? Type677 { get; set; } + public global::OpenRouter.UsageInputTokensDetails? Type677 { get; set; } /// /// /// - public global::OpenRouter.UsageCostDetails? Type678 { get; set; } + public global::OpenRouter.UsageOutputTokensDetails? Type678 { get; set; } /// /// /// - public global::OpenRouter.Usage? Type679 { get; set; } + public global::OpenRouter.UsageCostDetails? Type679 { get; set; } /// /// /// - public global::OpenRouter.RouterAttempt? Type680 { get; set; } + public global::OpenRouter.Usage? Type680 { get; set; } /// /// /// - public global::OpenRouter.EndpointInfo? Type681 { get; set; } + public global::OpenRouter.RouterAttempt? Type681 { get; set; } /// /// /// - public global::OpenRouter.EndpointsMetadata? Type682 { get; set; } + public global::OpenRouter.EndpointInfo? Type682 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type683 { get; set; } + public global::OpenRouter.EndpointsMetadata? Type683 { get; set; } /// /// /// - public global::OpenRouter.RouterParams? Type684 { get; set; } + public global::System.Collections.Generic.IList? Type684 { get; set; } /// /// /// - public global::OpenRouter.PipelineStageType? Type685 { get; set; } + public global::OpenRouter.RouterParams? Type685 { get; set; } /// /// /// - public global::OpenRouter.PipelineStage? Type686 { get; set; } + public global::OpenRouter.PipelineStageType? Type686 { get; set; } /// /// /// - public global::OpenRouter.RoutingStrategy? Type687 { get; set; } + public global::OpenRouter.PipelineStage? Type687 { get; set; } /// /// /// - public global::OpenRouter.OpenRouterMetadata? Type688 { get; set; } + public global::OpenRouter.RoutingStrategy? Type688 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type689 { get; set; } + public global::OpenRouter.OpenRouterMetadata? Type689 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type690 { get; set; } + public global::System.Collections.Generic.IList? Type690 { get; set; } /// /// /// - public global::OpenRouter.OpenResponsesResult? Type691 { get; set; } + public global::System.Collections.Generic.IList? Type691 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type692 { get; set; } + public global::OpenRouter.OpenResponsesResult? Type692 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type693 { get; set; } + public global::System.Collections.Generic.IList? Type693 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type694 { get; set; } + public global::OpenRouter.OneOf? Type694 { get; set; } /// /// /// - public global::OpenRouter.BadRequestResponseErrorData? Type695 { get; set; } + public global::System.Collections.Generic.IList? Type695 { get; set; } /// /// /// - public global::OpenRouter.BadRequestResponse? Type696 { get; set; } + public global::OpenRouter.BadRequestResponseErrorData? Type696 { get; set; } /// /// /// - public global::OpenRouter.UnauthorizedResponseErrorData? Type697 { get; set; } + public global::OpenRouter.BadRequestResponse? Type697 { get; set; } /// /// /// - public global::OpenRouter.UnauthorizedResponse? Type698 { get; set; } + public global::OpenRouter.UnauthorizedResponseErrorData? Type698 { get; set; } /// /// /// - public global::OpenRouter.PaymentRequiredResponseErrorData? Type699 { get; set; } + public global::OpenRouter.UnauthorizedResponse? Type699 { get; set; } /// /// /// - public global::OpenRouter.PaymentRequiredResponse? Type700 { get; set; } + public global::OpenRouter.PaymentRequiredResponseErrorData? Type700 { get; set; } /// /// /// - public global::OpenRouter.ForbiddenResponseErrorData? Type701 { get; set; } + public global::OpenRouter.PaymentRequiredResponse? Type701 { get; set; } /// /// /// - public global::OpenRouter.ForbiddenResponse? Type702 { get; set; } + public global::OpenRouter.ForbiddenResponseErrorData? Type702 { get; set; } /// /// /// - public global::OpenRouter.NotFoundResponseErrorData? Type703 { get; set; } + public global::OpenRouter.ForbiddenResponse? Type703 { get; set; } /// /// /// - public global::OpenRouter.NotFoundResponse? Type704 { get; set; } + public global::OpenRouter.NotFoundResponseErrorData? Type704 { get; set; } /// /// /// - public global::OpenRouter.RequestTimeoutResponseErrorData? Type705 { get; set; } + public global::OpenRouter.NotFoundResponse? Type705 { get; set; } /// /// /// - public global::OpenRouter.RequestTimeoutResponse? Type706 { get; set; } + public global::OpenRouter.RequestTimeoutResponseErrorData? Type706 { get; set; } /// /// /// - public global::OpenRouter.PayloadTooLargeResponseErrorData? Type707 { get; set; } + public global::OpenRouter.RequestTimeoutResponse? Type707 { get; set; } /// /// /// - public global::OpenRouter.PayloadTooLargeResponse? Type708 { get; set; } + public global::OpenRouter.PayloadTooLargeResponseErrorData? Type708 { get; set; } /// /// /// - public global::OpenRouter.UnprocessableEntityResponseErrorData? Type709 { get; set; } + public global::OpenRouter.PayloadTooLargeResponse? Type709 { get; set; } /// /// /// - public global::OpenRouter.UnprocessableEntityResponse? Type710 { get; set; } + public global::OpenRouter.UnprocessableEntityResponseErrorData? Type710 { get; set; } /// /// /// - public global::OpenRouter.TooManyRequestsResponseErrorData? Type711 { get; set; } + public global::OpenRouter.UnprocessableEntityResponse? Type711 { get; set; } /// /// /// - public global::OpenRouter.TooManyRequestsResponse? Type712 { get; set; } + public global::OpenRouter.TooManyRequestsResponseErrorData? Type712 { get; set; } /// /// /// - public global::OpenRouter.InternalServerResponseErrorData? Type713 { get; set; } + public global::OpenRouter.TooManyRequestsResponse? Type713 { get; set; } /// /// /// - public global::OpenRouter.InternalServerResponse? Type714 { get; set; } + public global::OpenRouter.InternalServerResponseErrorData? Type714 { get; set; } /// /// /// - public global::OpenRouter.BadGatewayResponseErrorData? Type715 { get; set; } + public global::OpenRouter.InternalServerResponse? Type715 { get; set; } /// /// /// - public global::OpenRouter.BadGatewayResponse? Type716 { get; set; } + public global::OpenRouter.BadGatewayResponseErrorData? Type716 { get; set; } /// /// /// - public global::OpenRouter.ServiceUnavailableResponseErrorData? Type717 { get; set; } + public global::OpenRouter.BadGatewayResponse? Type717 { get; set; } /// /// /// - public global::OpenRouter.ServiceUnavailableResponse? Type718 { get; set; } + public global::OpenRouter.ServiceUnavailableResponseErrorData? Type718 { get; set; } /// /// /// - public global::OpenRouter.AuthKeysPostRequestBodyContentApplicationJsonSchemaCodeChallengeMethod? Type719 { get; set; } + public global::OpenRouter.ServiceUnavailableResponse? Type719 { get; set; } /// /// /// - public global::OpenRouter.OAuthExchangeAuthCodeForAPIKeyResponse200? Type720 { get; set; } + public global::OpenRouter.AuthKeysPostRequestBodyContentApplicationJsonSchemaCodeChallengeMethod? Type720 { get; set; } /// /// /// - public global::OpenRouter.AuthKeysCodePostRequestBodyContentApplicationJsonSchemaCodeChallengeMethod? Type721 { get; set; } + public global::OpenRouter.OAuthExchangeAuthCodeForAPIKeyResponse200? Type721 { get; set; } /// /// /// - public global::OpenRouter.AuthKeysCodePostRequestBodyContentApplicationJsonSchemaUsageLimitType? Type722 { get; set; } + public global::OpenRouter.AuthKeysCodePostRequestBodyContentApplicationJsonSchemaCodeChallengeMethod? Type722 { get; set; } /// /// /// - public global::OpenRouter.AuthKeysCodePostResponsesContentApplicationJsonSchemaData? Type723 { get; set; } + public global::OpenRouter.AuthKeysCodePostRequestBodyContentApplicationJsonSchemaUsageLimitType? Type723 { get; set; } /// /// /// - public global::OpenRouter.OAuthCreateAuthKeysCodeResponse200? Type724 { get; set; } + public global::OpenRouter.AuthKeysCodePostResponsesContentApplicationJsonSchemaData? Type724 { get; set; } /// /// /// - public global::OpenRouter.ConflictResponseErrorData? Type725 { get; set; } + public global::OpenRouter.OAuthCreateAuthKeysCodeResponse200? Type725 { get; set; } /// /// /// - public global::OpenRouter.ConflictResponse? Type726 { get; set; } + public global::OpenRouter.ConflictResponseErrorData? Type726 { get; set; } /// /// /// - public global::OpenRouter.ProviderOptions? Type727 { get; set; } + public global::OpenRouter.ConflictResponse? Type727 { get; set; } /// /// /// - public global::OpenRouter.SpeechRequestProvider? Type728 { get; set; } + public global::OpenRouter.ImageGenerationRequestAspectRatio? Type728 { get; set; } /// /// /// - public global::OpenRouter.SpeechRequestResponseFormat? Type729 { get; set; } + public global::OpenRouter.ImageGenerationRequestBackground? Type729 { get; set; } /// /// /// - public global::OpenRouter.SpeechRequest? Type730 { get; set; } + public global::OpenRouter.InputReferenceDiscriminatorMappingImageUrlImageUrl? Type730 { get; set; } /// /// /// - public global::OpenRouter.STTInputAudio? Type731 { get; set; } + public global::OpenRouter.ContentPartImage? Type731 { get; set; } /// /// /// - public global::OpenRouter.SttRequestProvider? Type732 { get; set; } + public global::OpenRouter.ImageGenerationRequestOutputFormat? Type732 { get; set; } /// /// /// - public global::OpenRouter.STTRequest? Type733 { get; set; } + public global::OpenRouter.ImageGenerationRequestProviderOptions? Type733 { get; set; } /// /// /// - public global::OpenRouter.STTUsage? Type734 { get; set; } + public global::OpenRouter.ImageGenerationRequestProvider? Type734 { get; set; } /// /// /// - public global::OpenRouter.STTResponse? Type735 { get; set; } + public global::OpenRouter.ImageGenerationRequestQuality? Type735 { get; set; } /// /// /// - public global::OpenRouter.ActivityItem? Type736 { get; set; } + public global::OpenRouter.ImageGenerationRequestResolution? Type736 { get; set; } /// /// /// - public global::OpenRouter.ActivityResponse? Type737 { get; set; } + public global::OpenRouter.ImageGenerationRequest? Type737 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type738 { get; set; } + public global::System.Collections.Generic.IList? Type738 { get; set; } /// /// /// - public global::OpenRouter.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataDimensionsItems? Type739 { get; set; } + public global::OpenRouter.ImageGenerationResponseDataItems? Type739 { get; set; } /// /// /// - public global::OpenRouter.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataGranularitiesItemsName? Type740 { get; set; } + public global::OpenRouter.ImageGenerationUsageCompletionTokensDetails? Type740 { get; set; } /// /// /// - public global::OpenRouter.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataGranularitiesItems? Type741 { get; set; } + public global::OpenRouter.CostDetails? Type741 { get; set; } /// /// /// - public global::OpenRouter.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataMetricsItemsDisplayFormat? Type742 { get; set; } + public global::OpenRouter.AnthropicIterationCacheCreation? Type742 { get; set; } /// /// /// - public global::OpenRouter.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataMetricsItems? Type743 { get; set; } + public global::OpenRouter.AnthropicCompactionUsageIterationType? Type743 { get; set; } /// /// /// - public global::OpenRouter.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataOperatorsItemsName? Type744 { get; set; } + public global::OpenRouter.AnthropicCompactionUsageIteration? Type744 { get; set; } /// /// /// - public global::OpenRouter.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataOperatorsItemsValueType? Type745 { get; set; } + public global::OpenRouter.AnthropicMessageUsageIterationType? Type745 { get; set; } /// /// /// - public global::OpenRouter.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataOperatorsItems? Type746 { get; set; } + public global::OpenRouter.AnthropicMessageUsageIteration? Type746 { get; set; } /// /// /// - public global::OpenRouter.AnalyticsMetaGetResponsesContentApplicationJsonSchemaData? Type747 { get; set; } + public global::OpenRouter.AnthropicAdvisorMessageUsageIterationType? Type747 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type748 { get; set; } + public global::OpenRouter.AnthropicAdvisorMessageUsageIteration? Type748 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type749 { get; set; } + public global::OpenRouter.AnthropicUnknownUsageIteration? Type749 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type750 { get; set; } + public global::OpenRouter.AnthropicUsageIteration? Type750 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type751 { get; set; } + public global::OpenRouter.ImageGenerationUsagePromptTokensDetails? Type751 { get; set; } /// /// /// - public global::OpenRouter.BetaAnalyticsGetAnalyticsMetaResponse200? Type752 { get; set; } + public global::OpenRouter.ImageGenerationUsageServerToolUse? Type752 { get; set; } /// /// /// - public global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaFiltersItemsValueOneOf2Items? Type753 { get; set; } + public global::OpenRouter.AnthropicSpeed? Type753 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type754 { get; set; } + public global::OpenRouter.ImageGenerationUsage? Type754 { get; set; } /// /// /// - public global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaFiltersItemsValue? Type755 { get; set; } + public global::OpenRouter.OneOf? Type755 { get; set; } /// /// /// - public global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaFiltersItems? Type756 { get; set; } + public global::System.Collections.Generic.IList? Type756 { get; set; } /// /// /// - public global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaOrderByDirection? Type757 { get; set; } + public global::OpenRouter.OneOf? Type757 { get; set; } /// /// /// - public global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaOrderBy? Type758 { get; set; } + public global::OpenRouter.OneOf? Type758 { get; set; } /// /// /// - public global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaTimeRange? Type759 { get; set; } + public global::OpenRouter.ImageGenerationResponse? Type759 { get; set; } /// /// /// - public global::System.DateTime? Type760 { get; set; } + public global::System.DateTimeOffset? Type760 { get; set; } /// /// /// - public global::OpenRouter.AnalyticsQueryPostResponsesContentApplicationJsonSchemaDataDataItems? Type761 { get; set; } + public global::System.Collections.Generic.IList? Type761 { get; set; } /// /// /// - public global::OpenRouter.AnalyticsQueryPostResponsesContentApplicationJsonSchemaDataMetadata? Type762 { get; set; } + public global::OpenRouter.InputModality? Type762 { get; set; } /// /// /// - public global::OpenRouter.AnalyticsQueryPostResponsesContentApplicationJsonSchemaData? Type763 { get; set; } + public global::OpenRouter.ImageOutputModality? Type763 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type764 { get; set; } + public global::OpenRouter.ImageModelArchitecture? Type764 { get; set; } /// /// /// - public global::OpenRouter.BetaAnalyticsQueryAnalyticsResponse200? Type765 { get; set; } + public global::System.Collections.Generic.IList? Type765 { get; set; } /// /// /// - public global::OpenRouter.BenchmarksGetParametersSource? Type766 { get; set; } + public global::System.Collections.Generic.IList? Type766 { get; set; } /// /// /// - public global::OpenRouter.BenchmarksGetParametersTaskType? Type767 { get; set; } + public global::OpenRouter.EnumCapabilityType? Type767 { get; set; } /// /// /// - public global::OpenRouter.BenchmarksGetParametersArena? Type768 { get; set; } + public global::OpenRouter.RangeCapabilityType? Type768 { get; set; } /// /// /// - public global::OpenRouter.UnifiedBenchmarkPricing? Type769 { get; set; } + public global::OpenRouter.CapabilityDescriptor? Type769 { get; set; } /// /// /// - public global::OpenRouter.UnifiedBenchmarksResponseDataItemsDiscriminatorMappingDesignArenaTournamentStats? Type770 { get; set; } + public global::OpenRouter.CapabilityDescriptorVariant1? Type770 { get; set; } /// /// /// - public global::OpenRouter.UnifiedBenchmarksResponseDataItems? Type771 { get; set; } + public global::OpenRouter.CapabilityDescriptorVariant1Type? Type771 { get; set; } /// /// /// - public global::OpenRouter.UnifiedBenchmarksResponseDataItemsVariant1? Type772 { get; set; } + public global::OpenRouter.CapabilityDescriptorVariant2? Type772 { get; set; } /// /// /// - public global::OpenRouter.UnifiedBenchmarksResponseDataItemsVariant1Source? Type773 { get; set; } + public global::OpenRouter.CapabilityDescriptorVariant3? Type773 { get; set; } /// /// /// - public global::OpenRouter.UnifiedBenchmarksResponseDataItemsVariant2? Type774 { get; set; } + public global::OpenRouter.CapabilityDescriptorDiscriminator? Type774 { get; set; } /// /// /// - public global::OpenRouter.UnifiedBenchmarksResponseDataItemsVariant2Source? Type775 { get; set; } + public global::OpenRouter.CapabilityDescriptorDiscriminatorType? Type775 { get; set; } /// /// /// - public global::OpenRouter.UnifiedBenchmarksResponseDataItemsDiscriminator? Type776 { get; set; } + public global::OpenRouter.SupportedParameters? Type776 { get; set; } /// /// /// - public global::OpenRouter.UnifiedBenchmarksResponseDataItemsDiscriminatorSource? Type777 { get; set; } + public global::OpenRouter.ImageModelListItem? Type777 { get; set; } /// /// /// - public global::OpenRouter.UnifiedBenchmarksMetaSource? Type778 { get; set; } + public global::OpenRouter.ImageModelsListResponse? Type778 { get; set; } /// /// /// - public global::OpenRouter.UnifiedBenchmarksMetaVersion? Type779 { get; set; } + public global::System.Collections.Generic.IList? Type779 { get; set; } /// /// /// - public global::OpenRouter.UnifiedBenchmarksMeta? Type780 { get; set; } + public global::OpenRouter.ImagePricingEntryBillable? Type780 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type781 { get; set; } + public global::OpenRouter.ImagePricingEntryUnit? Type781 { get; set; } /// /// /// - public global::OpenRouter.UnifiedBenchmarksResponse? Type782 { get; set; } + public global::OpenRouter.ImagePricingEntry? Type782 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type783 { get; set; } + public global::OpenRouter.ImageEndpoint? Type783 { get; set; } /// /// /// - public global::OpenRouter.ByokGetParametersProvider? Type784 { get; set; } + public global::System.Collections.Generic.IList? Type784 { get; set; } /// /// /// - public global::OpenRouter.BYOKProviderSlug? Type785 { get; set; } + public global::OpenRouter.ImageModelEndpointsResponse? Type785 { get; set; } /// /// /// - public global::OpenRouter.BYOKKey? Type786 { get; set; } + public global::System.Collections.Generic.IList? Type786 { get; set; } /// /// /// - public global::System.Guid? Type787 { get; set; } + public global::OpenRouter.ProviderOptions? Type787 { get; set; } /// /// /// - public global::OpenRouter.ListBYOKKeysResponse? Type788 { get; set; } + public global::OpenRouter.SpeechRequestProvider? Type788 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type789 { get; set; } + public global::OpenRouter.SpeechRequestResponseFormat? Type789 { get; set; } /// /// /// - public global::OpenRouter.CreateBYOKKeyRequest? Type790 { get; set; } + public global::OpenRouter.SpeechRequest? Type790 { get; set; } /// /// /// - public global::OpenRouter.CreateByokKeyResponseData? Type791 { get; set; } + public global::OpenRouter.STTInputAudio? Type791 { get; set; } /// /// /// - public global::OpenRouter.CreateBYOKKeyResponse? Type792 { get; set; } + public global::OpenRouter.SttRequestProvider? Type792 { get; set; } /// /// /// - public global::OpenRouter.GetByokKeyResponseData? Type793 { get; set; } + public global::OpenRouter.STTRequest? Type793 { get; set; } /// /// /// - public global::OpenRouter.GetBYOKKeyResponse? Type794 { get; set; } + public global::OpenRouter.STTUsage? Type794 { get; set; } /// /// /// - public global::OpenRouter.DeleteBYOKKeyResponse? Type795 { get; set; } + public global::OpenRouter.STTResponse? Type795 { get; set; } /// /// /// - public global::OpenRouter.UpdateBYOKKeyRequest? Type796 { get; set; } + public global::OpenRouter.ActivityItem? Type796 { get; set; } /// /// /// - public global::OpenRouter.UpdateByokKeyResponseData? Type797 { get; set; } + public global::OpenRouter.ActivityResponse? Type797 { get; set; } /// /// /// - public global::OpenRouter.UpdateBYOKKeyResponse? Type798 { get; set; } + public global::System.Collections.Generic.IList? Type798 { get; set; } /// /// /// - public global::OpenRouter.ChatDebugOptions? Type799 { get; set; } + public global::OpenRouter.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataDimensionsItems? Type799 { get; set; } /// /// /// - public global::OpenRouter.ChatAudioOutput? Type800 { get; set; } + public global::OpenRouter.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataGranularitiesItemsName? Type800 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsDiscriminatorMappingFileFile? Type801 { get; set; } + public global::OpenRouter.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataGranularitiesItems? Type801 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsDiscriminatorMappingImageUrlImageUrlDetail? Type802 { get; set; } + public global::OpenRouter.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataMetricsItemsDisplayFormat? Type802 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsDiscriminatorMappingImageUrlImageUrl? Type803 { get; set; } + public global::OpenRouter.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataMetricsItems? Type803 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsDiscriminatorMappingInputAudioInputAudio? Type804 { get; set; } + public global::OpenRouter.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataOperatorsItemsName? Type804 { get; set; } /// /// /// - public global::OpenRouter.LegacyChatContentVideoType? Type805 { get; set; } + public global::OpenRouter.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataOperatorsItemsValueType? Type805 { get; set; } /// /// /// - public global::OpenRouter.ChatContentVideoInput? Type806 { get; set; } + public global::OpenRouter.AnalyticsMetaGetResponsesContentApplicationJsonSchemaDataOperatorsItems? Type806 { get; set; } /// /// /// - public global::OpenRouter.ChatContentCacheControlType? Type807 { get; set; } + public global::OpenRouter.AnalyticsMetaGetResponsesContentApplicationJsonSchemaData? Type807 { get; set; } /// /// /// - public global::OpenRouter.ChatContentCacheControl? Type808 { get; set; } + public global::System.Collections.Generic.IList? Type808 { get; set; } /// /// /// - public global::OpenRouter.ChatContentTextType? Type809 { get; set; } + public global::System.Collections.Generic.IList? Type809 { get; set; } /// /// /// - public global::OpenRouter.ChatContentVideoType? Type810 { get; set; } + public global::System.Collections.Generic.IList? Type810 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItems? Type811 { get; set; } + public global::System.Collections.Generic.IList? Type811 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsVariant1? Type812 { get; set; } + public global::OpenRouter.BetaAnalyticsGetAnalyticsMetaResponse200? Type812 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsVariant1Type? Type813 { get; set; } + public global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaFiltersItemsValueOneOf2Items? Type813 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsVariant2? Type814 { get; set; } + public global::System.Collections.Generic.IList? Type814 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsVariant2Type? Type815 { get; set; } + public global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaFiltersItemsValue? Type815 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsVariant3? Type816 { get; set; } + public global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaFiltersItems? Type816 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsVariant3Type? Type817 { get; set; } + public global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaOrderByDirection? Type817 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsVariant4? Type818 { get; set; } + public global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaOrderBy? Type818 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsVariant5? Type819 { get; set; } + public global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaTimeRange? Type819 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsVariant6? Type820 { get; set; } + public global::System.DateTime? Type820 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsDiscriminator? Type821 { get; set; } + public global::OpenRouter.AnalyticsQueryPostResponsesContentApplicationJsonSchemaDataDataItems? Type821 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsDiscriminatorType? Type822 { get; set; } + public global::OpenRouter.AnalyticsQueryPostResponsesContentApplicationJsonSchemaDataMetadata? Type822 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type823 { get; set; } + public global::OpenRouter.AnalyticsQueryPostResponsesContentApplicationJsonSchemaData? Type823 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesDiscriminatorMappingAssistantContent? Type824 { get; set; } + public global::System.Collections.Generic.IList? Type824 { get; set; } /// /// /// - public global::OpenRouter.ChatAssistantImagesItemsImageUrl? Type825 { get; set; } + public global::OpenRouter.BetaAnalyticsQueryAnalyticsResponse200? Type825 { get; set; } /// /// /// - public global::OpenRouter.ChatAssistantImagesItems? Type826 { get; set; } + public global::OpenRouter.BenchmarksGetParametersSource? Type826 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type827 { get; set; } + public global::OpenRouter.BenchmarksGetParametersTaskType? Type827 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnion? Type828 { get; set; } + public global::OpenRouter.BenchmarksGetParametersArena? Type828 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnionVariant1? Type829 { get; set; } + public global::OpenRouter.UnifiedBenchmarkPricing? Type829 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnionVariant1Type? Type830 { get; set; } + public global::OpenRouter.UnifiedBenchmarksResponseDataItemsDiscriminatorMappingDesignArenaTournamentStats? Type830 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnionVariant2? Type831 { get; set; } + public global::OpenRouter.UnifiedBenchmarksResponseDataItems? Type831 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnionVariant2Type? Type832 { get; set; } + public global::OpenRouter.UnifiedBenchmarksResponseDataItemsVariant1? Type832 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnionVariant3? Type833 { get; set; } + public global::OpenRouter.UnifiedBenchmarksResponseDataItemsVariant1Source? Type833 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnionVariant3Type? Type834 { get; set; } + public global::OpenRouter.UnifiedBenchmarksResponseDataItemsVariant2? Type834 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnionDiscriminator? Type835 { get; set; } + public global::OpenRouter.UnifiedBenchmarksResponseDataItemsVariant2Source? Type835 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnionDiscriminatorType? Type836 { get; set; } + public global::OpenRouter.UnifiedBenchmarksResponseDataItemsDiscriminator? Type836 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type837 { get; set; } + public global::OpenRouter.UnifiedBenchmarksResponseDataItemsDiscriminatorSource? Type837 { get; set; } /// /// /// - public global::OpenRouter.ChatToolCallFunction? Type838 { get; set; } + public global::OpenRouter.UnifiedBenchmarksMetaSource? Type838 { get; set; } /// /// /// - public global::OpenRouter.ChatToolCallType? Type839 { get; set; } + public global::OpenRouter.UnifiedBenchmarksMetaVersion? Type839 { get; set; } /// /// /// - public global::OpenRouter.ChatToolCall? Type840 { get; set; } + public global::OpenRouter.UnifiedBenchmarksMeta? Type840 { get; set; } /// /// /// - public global::OpenRouter.ChatContentText? Type841 { get; set; } + public global::OpenRouter.OneOf? Type841 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type842 { get; set; } + public global::OpenRouter.UnifiedBenchmarksResponse? Type842 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesDiscriminatorMappingDeveloperContent? Type843 { get; set; } + public global::System.Collections.Generic.IList? Type843 { get; set; } /// /// /// - public global::OpenRouter.ChatSystemMessageContent? Type844 { get; set; } + public global::OpenRouter.ByokGetParametersProvider? Type844 { get; set; } /// /// /// - public global::OpenRouter.ChatSystemMessageRole? Type845 { get; set; } + public global::OpenRouter.BYOKProviderSlug? Type845 { get; set; } /// /// /// - public global::OpenRouter.ChatToolMessageContent? Type846 { get; set; } + public global::OpenRouter.BYOKKey? Type846 { get; set; } /// /// /// - public global::OpenRouter.ChatToolMessageRole? Type847 { get; set; } + public global::System.Guid? Type847 { get; set; } /// /// /// - public global::OpenRouter.ChatUserMessageContent? Type848 { get; set; } + public global::OpenRouter.ListBYOKKeysResponse? Type848 { get; set; } /// /// /// - public global::OpenRouter.ChatUserMessageRole? Type849 { get; set; } + public global::System.Collections.Generic.IList? Type849 { get; set; } /// /// /// - public global::OpenRouter.ChatMessages? Type850 { get; set; } + public global::OpenRouter.CreateBYOKKeyRequest? Type850 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesVariant1? Type851 { get; set; } + public global::OpenRouter.CreateByokKeyResponseData? Type851 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesVariant1Role? Type852 { get; set; } + public global::OpenRouter.CreateBYOKKeyResponse? Type852 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type853 { get; set; } + public global::OpenRouter.GetByokKeyResponseData? Type853 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesVariant2? Type854 { get; set; } + public global::OpenRouter.GetBYOKKeyResponse? Type854 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesVariant2Role? Type855 { get; set; } + public global::OpenRouter.DeleteBYOKKeyResponse? Type855 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesVariant3? Type856 { get; set; } + public global::OpenRouter.UpdateBYOKKeyRequest? Type856 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesVariant4? Type857 { get; set; } + public global::OpenRouter.UpdateByokKeyResponseData? Type857 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesVariant5? Type858 { get; set; } + public global::OpenRouter.UpdateBYOKKeyResponse? Type858 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesDiscriminator? Type859 { get; set; } + public global::OpenRouter.ChatAudioOutput? Type859 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesDiscriminatorRole? Type860 { get; set; } + public global::OpenRouter.ChatContentItemsDiscriminatorMappingFileFile? Type860 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestModalitiesItems? Type861 { get; set; } + public global::OpenRouter.ChatContentItemsDiscriminatorMappingImageUrlImageUrlDetail? Type861 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItems? Type862 { get; set; } + public global::OpenRouter.ChatContentItemsDiscriminatorMappingImageUrlImageUrl? Type862 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant1? Type863 { get; set; } + public global::OpenRouter.ChatContentItemsDiscriminatorMappingInputAudioInputAudio? Type863 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant1Id? Type864 { get; set; } + public global::OpenRouter.LegacyChatContentVideoType? Type864 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant2? Type865 { get; set; } + public global::OpenRouter.ChatContentVideoInput? Type865 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant2Id? Type866 { get; set; } + public global::OpenRouter.ChatContentCacheControlType? Type866 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant3? Type867 { get; set; } + public global::OpenRouter.ChatContentCacheControl? Type867 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant3Id? Type868 { get; set; } + public global::OpenRouter.ChatContentTextType? Type868 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant4? Type869 { get; set; } + public global::OpenRouter.ChatContentVideoType? Type869 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant4Id? Type870 { get; set; } + public global::OpenRouter.ChatContentItems? Type870 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant5? Type871 { get; set; } + public global::OpenRouter.ChatContentItemsVariant1? Type871 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant5Id? Type872 { get; set; } + public global::OpenRouter.ChatContentItemsVariant1Type? Type872 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant6? Type873 { get; set; } + public global::OpenRouter.ChatContentItemsVariant2? Type873 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant6Id? Type874 { get; set; } + public global::OpenRouter.ChatContentItemsVariant2Type? Type874 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant7? Type875 { get; set; } + public global::OpenRouter.ChatContentItemsVariant3? Type875 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant7Id? Type876 { get; set; } + public global::OpenRouter.ChatContentItemsVariant3Type? Type876 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant8? Type877 { get; set; } + public global::OpenRouter.ChatContentItemsVariant4? Type877 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant9? Type878 { get; set; } + public global::OpenRouter.ChatContentItemsVariant5? Type878 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsDiscriminator? Type879 { get; set; } + public global::OpenRouter.ChatContentItemsVariant6? Type879 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsDiscriminatorId? Type880 { get; set; } + public global::OpenRouter.ChatContentItemsDiscriminator? Type880 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestReasoningEffort? Type881 { get; set; } + public global::OpenRouter.ChatContentItemsDiscriminatorType? Type881 { get; set; } /// /// /// - public global::OpenRouter.ChatReasoningSummaryVerbosityEnum? Type882 { get; set; } + public global::System.Collections.Generic.IList? Type882 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestReasoning? Type883 { get; set; } + public global::OpenRouter.ChatMessagesDiscriminatorMappingAssistantContent? Type883 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type884 { get; set; } + public global::OpenRouter.ChatAssistantImagesItemsImageUrl? Type884 { get; set; } /// /// /// - public global::OpenRouter.ChatJsonSchemaConfig? Type885 { get; set; } + public global::OpenRouter.ChatAssistantImagesItems? Type885 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormat? Type886 { get; set; } + public global::System.Collections.Generic.IList? Type886 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatVariant1? Type887 { get; set; } + public global::OpenRouter.ReasoningDetailUnion? Type887 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatVariant1Type? Type888 { get; set; } + public global::OpenRouter.ReasoningDetailUnionVariant1? Type888 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatVariant2? Type889 { get; set; } + public global::OpenRouter.ReasoningDetailUnionVariant1Type? Type889 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatVariant3? Type890 { get; set; } + public global::OpenRouter.ReasoningDetailUnionVariant2? Type890 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatVariant3Type? Type891 { get; set; } + public global::OpenRouter.ReasoningDetailUnionVariant2Type? Type891 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatVariant4? Type892 { get; set; } + public global::OpenRouter.ReasoningDetailUnionVariant3? Type892 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatVariant4Type? Type893 { get; set; } + public global::OpenRouter.ReasoningDetailUnionVariant3Type? Type893 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatVariant5? Type894 { get; set; } + public global::OpenRouter.ReasoningDetailUnionDiscriminator? Type894 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatVariant5Type? Type895 { get; set; } + public global::OpenRouter.ReasoningDetailUnionDiscriminatorType? Type895 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatDiscriminator? Type896 { get; set; } + public global::System.Collections.Generic.IList? Type896 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatDiscriminatorType? Type897 { get; set; } + public global::OpenRouter.ChatToolCallFunction? Type897 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestServiceTier? Type898 { get; set; } + public global::OpenRouter.ChatToolCallType? Type898 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestStop? Type899 { get; set; } + public global::OpenRouter.ChatToolCall? Type899 { get; set; } /// /// /// - public global::OpenRouter.ChatStreamOptions? Type900 { get; set; } + public global::OpenRouter.ChatContentText? Type900 { get; set; } /// /// /// - public global::OpenRouter.ChatToolChoice0? Type901 { get; set; } + public global::System.Collections.Generic.IList? Type901 { get; set; } /// /// /// - public global::OpenRouter.ChatToolChoice1? Type902 { get; set; } + public global::OpenRouter.ChatMessagesDiscriminatorMappingDeveloperContent? Type902 { get; set; } /// /// /// - public global::OpenRouter.ChatToolChoice2? Type903 { get; set; } + public global::OpenRouter.ChatSystemMessageContent? Type903 { get; set; } /// /// /// - public global::OpenRouter.ChatNamedToolChoiceFunction? Type904 { get; set; } + public global::OpenRouter.ChatSystemMessageRole? Type904 { get; set; } /// /// /// - public global::OpenRouter.ChatNamedToolChoiceType? Type905 { get; set; } + public global::OpenRouter.ChatToolMessageContent? Type905 { get; set; } /// /// /// - public global::OpenRouter.ChatNamedToolChoice? Type906 { get; set; } + public global::OpenRouter.ChatToolMessageRole? Type906 { get; set; } /// /// /// - public global::OpenRouter.ChatServerToolChoice? Type907 { get; set; } + public global::OpenRouter.ChatUserMessageContent? Type907 { get; set; } /// /// /// - public global::OpenRouter.ChatToolChoice? Type908 { get; set; } + public global::OpenRouter.ChatUserMessageRole? Type908 { get; set; } /// /// /// - public global::OpenRouter.ChatFunctionToolOneOf0Function? Type909 { get; set; } + public global::OpenRouter.ChatMessages? Type909 { get; set; } /// /// /// - public global::OpenRouter.ChatFunctionToolOneOf0Type? Type910 { get; set; } + public global::OpenRouter.ChatMessagesVariant1? Type910 { get; set; } /// /// /// - public global::OpenRouter.ChatFunctionTool0? Type911 { get; set; } + public global::OpenRouter.ChatMessagesVariant1Role? Type911 { get; set; } /// /// /// - public global::OpenRouter.WebSearchConfig? Type912 { get; set; } + public global::System.Collections.Generic.IList? Type912 { get; set; } /// /// /// - public global::OpenRouter.OpenRouterWebSearchServerToolType? Type913 { get; set; } + public global::OpenRouter.ChatMessagesVariant2? Type913 { get; set; } /// /// /// - public global::OpenRouter.OpenRouterWebSearchServerTool? Type914 { get; set; } + public global::OpenRouter.ChatMessagesVariant2Role? Type914 { get; set; } /// /// /// - public global::OpenRouter.ChatWebSearchShorthandType? Type915 { get; set; } + public global::OpenRouter.ChatMessagesVariant3? Type915 { get; set; } /// /// /// - public global::OpenRouter.ChatWebSearchShorthand? Type916 { get; set; } + public global::OpenRouter.ChatMessagesVariant4? Type916 { get; set; } /// /// /// - public global::OpenRouter.ChatFunctionTool? Type917 { get; set; } + public global::OpenRouter.ChatMessagesVariant5? Type917 { get; set; } /// /// /// - public global::OpenRouter.ChatRequest? Type918 { get; set; } + public global::OpenRouter.ChatMessagesDiscriminator? Type918 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type919 { get; set; } + public global::OpenRouter.ChatMessagesDiscriminatorRole? Type919 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type920 { get; set; } + public global::OpenRouter.ChatRequestModalitiesItems? Type920 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type921 { get; set; } + public global::OpenRouter.ChatRequestPluginsItems? Type921 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type922 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant1? Type922 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type923 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant1Id? Type923 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type924 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant2? Type924 { get; set; } /// /// /// - public global::OpenRouter.ChatFinishReasonEnum? Type925 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant2Id? Type925 { get; set; } /// /// /// - public global::OpenRouter.ChatTokenLogprobTopLogprobsItems? Type926 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant3? Type926 { get; set; } /// /// /// - public global::OpenRouter.ChatTokenLogprob? Type927 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant3Id? Type927 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type928 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant4? Type928 { get; set; } /// /// /// - public global::OpenRouter.ChatTokenLogprobs? Type929 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant4Id? Type929 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type930 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant5? Type930 { get; set; } /// /// /// - public global::OpenRouter.ChatAssistantMessage? Type931 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant5Id? Type931 { get; set; } /// /// /// - public global::OpenRouter.ChatChoice? Type932 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant6? Type932 { get; set; } /// /// /// - public global::OpenRouter.ChatResultObject? Type933 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant6Id? Type933 { get; set; } /// /// /// - public global::OpenRouter.ChatUsageCompletionTokensDetails? Type934 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant7? Type934 { get; set; } /// /// /// - public global::OpenRouter.CostDetails? Type935 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant7Id? Type935 { get; set; } /// /// /// - public global::OpenRouter.ChatUsagePromptTokensDetails? Type936 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant8? Type936 { get; set; } /// /// /// - public global::OpenRouter.ChatUsageServerToolUseDetails? Type937 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant9? Type937 { get; set; } /// /// /// - public global::OpenRouter.ChatUsage? Type938 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsDiscriminator? Type938 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type939 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsDiscriminatorId? Type939 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type940 { get; set; } + public global::OpenRouter.ChatRequestReasoningEffort? Type940 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type941 { get; set; } + public global::OpenRouter.ChatReasoningSummaryVerbosityEnum? Type941 { get; set; } /// /// /// - public global::OpenRouter.ChatResult? Type942 { get; set; } + public global::OpenRouter.ChatRequestReasoning? Type942 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type943 { get; set; } + public global::OpenRouter.OneOf? Type943 { get; set; } /// /// /// - public global::System.DateTimeOffset? Type944 { get; set; } + public global::OpenRouter.ChatJsonSchemaConfig? Type944 { get; set; } /// /// /// - public global::OpenRouter.CreditsGetResponsesContentApplicationJsonSchemaData? Type945 { get; set; } + public global::OpenRouter.ChatRequestResponseFormat? Type945 { get; set; } /// /// /// - public global::OpenRouter.CreditsGetCreditsResponse200? Type946 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatVariant1? Type946 { get; set; } /// /// /// - public global::OpenRouter.DatasetsAppRankingsGetParametersCategory? Type947 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatVariant1Type? Type947 { get; set; } /// /// /// - public global::OpenRouter.DatasetsAppRankingsGetParametersSubcategory? Type948 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatVariant2? Type948 { get; set; } /// /// /// - public global::OpenRouter.DatasetsAppRankingsGetParametersSort? Type949 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatVariant3? Type949 { get; set; } /// /// /// - public global::OpenRouter.AppRankingsItem? Type950 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatVariant3Type? Type950 { get; set; } /// /// /// - public global::OpenRouter.RankingsDailyMetaVersion? Type951 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatVariant4? Type951 { get; set; } /// /// /// - public global::OpenRouter.RankingsDailyMeta? Type952 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatVariant4Type? Type952 { get; set; } /// /// /// - public global::OpenRouter.AppRankingsResponse? Type953 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatVariant5? Type953 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type954 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatVariant5Type? Type954 { get; set; } /// /// /// - public global::OpenRouter.RankingsDailyItem? Type955 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatDiscriminator? Type955 { get; set; } /// /// /// - public global::OpenRouter.RankingsDailyResponse? Type956 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatDiscriminatorType? Type956 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type957 { get; set; } + public global::OpenRouter.ChatRequestServiceTier? Type957 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormat? Type958 { get; set; } + public global::OpenRouter.ChatRequestStop? Type958 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf0Type? Type959 { get; set; } + public global::OpenRouter.ChatStreamOptions? Type959 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems0? Type960 { get; set; } + public global::OpenRouter.ChatToolChoice0? Type960 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1ImageUrl? Type961 { get; set; } + public global::OpenRouter.ChatToolChoice1? Type961 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1Type? Type962 { get; set; } + public global::OpenRouter.ChatToolChoice2? Type962 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems1? Type963 { get; set; } + public global::OpenRouter.ChatNamedToolChoiceFunction? Type963 { get; set; } /// /// /// - public global::OpenRouter.MultimodalMedia? Type964 { get; set; } + public global::OpenRouter.ChatNamedToolChoiceType? Type964 { get; set; } /// /// /// - public global::OpenRouter.ContentPartInputAudioType? Type965 { get; set; } + public global::OpenRouter.ChatNamedToolChoice? Type965 { get; set; } /// /// /// - public global::OpenRouter.ContentPartInputAudio? Type966 { get; set; } + public global::OpenRouter.ChatServerToolChoice? Type966 { get; set; } /// /// /// - public global::OpenRouter.ContentPartInputVideoType? Type967 { get; set; } + public global::OpenRouter.ChatToolChoice? Type967 { get; set; } /// /// /// - public global::OpenRouter.ContentPartInputVideo? Type968 { get; set; } + public global::OpenRouter.ChatFunctionToolOneOf0Function? Type968 { get; set; } /// /// /// - public global::OpenRouter.ContentPartInputFileType? Type969 { get; set; } + public global::OpenRouter.ChatFunctionToolOneOf0Type? Type969 { get; set; } /// /// /// - public global::OpenRouter.ContentPartInputFile? Type970 { get; set; } + public global::OpenRouter.ChatFunctionTool0? Type970 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems? Type971 { get; set; } + public global::OpenRouter.WebSearchConfig? Type971 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4Items? Type972 { get; set; } + public global::OpenRouter.OpenRouterWebSearchServerToolType? Type972 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type973 { get; set; } + public global::OpenRouter.OpenRouterWebSearchServerTool? Type973 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type974 { get; set; } + public global::OpenRouter.ChatWebSearchShorthandType? Type974 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInput? Type975 { get; set; } + public global::OpenRouter.ChatWebSearchShorthand? Type975 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type976 { get; set; } + public global::OpenRouter.ChatFunctionTool? Type976 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type977 { get; set; } + public global::OpenRouter.ChatRequest? Type977 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderDataCollection? Type978 { get; set; } + public global::System.Collections.Generic.Dictionary? Type978 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItems? Type979 { get; set; } + public global::System.Collections.Generic.IList? Type979 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderMaxPrice? Type980 { get; set; } + public global::System.Collections.Generic.IList? Type980 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOnlyItems? Type981 { get; set; } + public global::System.Collections.Generic.IList? Type981 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOrderItems? Type982 { get; set; } + public global::OpenRouter.OneOf? Type982 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSort? Type983 { get; set; } + public global::System.Collections.Generic.IList? Type983 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProvider? Type984 { get; set; } + public global::OpenRouter.ChatFinishReasonEnum? Type984 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type985 { get; set; } + public global::OpenRouter.ChatTokenLogprobTopLogprobsItems? Type985 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type986 { get; set; } + public global::OpenRouter.ChatTokenLogprob? Type986 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type987 { get; set; } + public global::System.Collections.Generic.IList? Type987 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type988 { get; set; } + public global::OpenRouter.ChatTokenLogprobs? Type988 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsEmbedding? Type989 { get; set; } + public global::System.Collections.Generic.IList? Type989 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsObject? Type990 { get; set; } + public global::OpenRouter.ChatAssistantMessage? Type990 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItems? Type991 { get; set; } + public global::OpenRouter.ChatChoice? Type991 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaObject? Type992 { get; set; } + public global::OpenRouter.ChatResultObject? Type992 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaUsageCostDetails? Type993 { get; set; } + public global::OpenRouter.ChatUsageCompletionTokensDetails? Type993 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaUsagePromptTokensDetails? Type994 { get; set; } + public global::OpenRouter.ChatUsagePromptTokensDetails? Type994 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaUsage? Type995 { get; set; } + public global::OpenRouter.ChatUsageServerToolUseDetails? Type995 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type996 { get; set; } + public global::OpenRouter.ChatUsage? Type996 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsCreateEmbeddingsResponse200? Type997 { get; set; } + public global::OpenRouter.OneOf? Type997 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type998 { get; set; } + public global::OpenRouter.OneOf? Type998 { get; set; } /// /// /// - public global::OpenRouter.InputModality? Type999 { get; set; } + public global::OpenRouter.OneOf? Type999 { get; set; } /// /// /// - public global::OpenRouter.ModelArchitectureInstructType? Type1000 { get; set; } + public global::OpenRouter.ChatResult? Type1000 { get; set; } /// /// /// - public global::OpenRouter.OutputModality? Type1001 { get; set; } + public global::System.Collections.Generic.IList? Type1001 { get; set; } /// /// /// - public global::OpenRouter.ModelGroup? Type1002 { get; set; } + public global::OpenRouter.CreditsGetResponsesContentApplicationJsonSchemaData? Type1002 { get; set; } /// /// /// - public global::OpenRouter.ModelArchitecture? Type1003 { get; set; } + public global::OpenRouter.CreditsGetCreditsResponse200? Type1003 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1004 { get; set; } + public global::OpenRouter.DatasetsAppRankingsGetParametersCategory? Type1004 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1005 { get; set; } + public global::OpenRouter.DatasetsAppRankingsGetParametersSubcategory? Type1005 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1006 { get; set; } + public global::OpenRouter.DatasetsAppRankingsGetParametersSort? Type1006 { get; set; } /// /// /// - public global::OpenRouter.AABenchmarkEntry? Type1007 { get; set; } + public global::OpenRouter.AppRankingsItem? Type1007 { get; set; } /// /// /// - public global::OpenRouter.DABenchmarkEntry? Type1008 { get; set; } + public global::OpenRouter.RankingsDailyMetaVersion? Type1008 { get; set; } /// /// /// - public global::OpenRouter.ModelBenchmarks? Type1009 { get; set; } + public global::OpenRouter.RankingsDailyMeta? Type1009 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1010 { get; set; } + public global::OpenRouter.AppRankingsResponse? Type1010 { get; set; } /// /// /// - public global::OpenRouter.DefaultParameters? Type1011 { get; set; } + public global::System.Collections.Generic.IList? Type1011 { get; set; } /// /// /// - public global::OpenRouter.ModelLinks? Type1012 { get; set; } + public global::OpenRouter.RankingsDailyItem? Type1012 { get; set; } /// /// /// - public global::OpenRouter.PerRequestLimits? Type1013 { get; set; } + public global::OpenRouter.RankingsDailyResponse? Type1013 { get; set; } /// /// /// - public global::OpenRouter.PublicPricing? Type1014 { get; set; } + public global::System.Collections.Generic.IList? Type1014 { get; set; } /// /// /// - public global::OpenRouter.ModelReasoning? Type1015 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormat? Type1015 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1016 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf0Type? Type1016 { get; set; } /// /// /// - public global::OpenRouter.Parameter? Type1017 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems0? Type1017 { get; set; } /// /// /// - public global::OpenRouter.TopProviderInfo? Type1018 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1ImageUrl? Type1018 { get; set; } /// /// /// - public global::OpenRouter.Model? Type1019 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1Type? Type1019 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1020 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems1? Type1020 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1021 { get; set; } + public global::OpenRouter.MultimodalMedia? Type1021 { get; set; } /// /// /// - public global::OpenRouter.ModelsListResponse? Type1022 { get; set; } + public global::OpenRouter.ContentPartInputAudioType? Type1022 { get; set; } /// /// /// - public global::OpenRouter.PercentileStats? Type1023 { get; set; } + public global::OpenRouter.ContentPartInputAudio? Type1023 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointPricing? Type1024 { get; set; } + public global::OpenRouter.ContentPartInputVideoType? Type1024 { get; set; } /// /// /// - public global::OpenRouter.EndpointStatus? Type1025 { get; set; } + public global::OpenRouter.ContentPartInputVideo? Type1025 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointThroughputLast30M? Type1026 { get; set; } + public global::OpenRouter.ContentPartInputFileType? Type1026 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpoint? Type1027 { get; set; } + public global::OpenRouter.ContentPartInputFile? Type1027 { get; set; } /// /// /// - public global::OpenRouter.EndpointsListEndpointsZdrResponse200? Type1028 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems? Type1028 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1029 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4Items? Type1029 { get; set; } /// /// /// - public global::OpenRouter.InstructType2? Type1030 { get; set; } + public global::System.Collections.Generic.IList? Type1030 { get; set; } /// /// /// - public global::OpenRouter.ListEndpointsResponseArchitecture? Type1031 { get; set; } + public global::System.Collections.Generic.IList? Type1031 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1032 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInput? Type1032 { get; set; } /// /// /// - public global::OpenRouter.ListEndpointsResponse? Type1033 { get; set; } + public global::System.Collections.Generic.IList? Type1033 { get; set; } /// /// /// - public global::OpenRouter.EndpointsListEndpointsResponse200? Type1034 { get; set; } + public global::System.Collections.Generic.IList>? Type1034 { get; set; } /// /// /// - public global::OpenRouter.FileMetadataType? Type1035 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderDataCollection? Type1035 { get; set; } /// /// /// - public global::OpenRouter.FileMetadata? Type1036 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItems? Type1036 { get; set; } /// /// /// - public global::OpenRouter.FileListResponse? Type1037 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderMaxPrice? Type1037 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1038 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOnlyItems? Type1038 { get; set; } /// /// /// - public global::OpenRouter.FileDeleteResponseType? Type1039 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOrderItems? Type1039 { get; set; } /// /// /// - public global::OpenRouter.FileDeleteResponse? Type1040 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSort? Type1040 { get; set; } /// /// /// - public global::OpenRouter.GenerationResponseDataApiType? Type1041 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProvider? Type1041 { get; set; } /// /// /// - public global::OpenRouter.GenerationResponseDataDataRegion? Type1042 { get; set; } + public global::OpenRouter.OneOf? Type1042 { get; set; } /// /// /// - public global::OpenRouter.ProviderResponseProviderName? Type1043 { get; set; } + public global::System.Collections.Generic.IList? Type1043 { get; set; } /// /// /// - public global::OpenRouter.ProviderResponse? Type1044 { get; set; } + public global::System.Collections.Generic.IList? Type1044 { get; set; } /// /// /// - public global::OpenRouter.GenerationResponseData? Type1045 { get; set; } + public global::System.Collections.Generic.IList? Type1045 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1046 { get; set; } + public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsEmbedding? Type1046 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1047 { get; set; } + public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsObject? Type1047 { get; set; } /// /// /// - public global::OpenRouter.GenerationResponse? Type1048 { get; set; } + public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItems? Type1048 { get; set; } /// /// /// - public global::OpenRouter.GenerationContentDataInput0? Type1049 { get; set; } + public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaObject? Type1049 { get; set; } /// /// /// - public global::OpenRouter.GenerationContentDataInput1? Type1050 { get; set; } + public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaUsageCostDetails? Type1050 { get; set; } /// /// /// - public global::OpenRouter.GenerationContentDataInput? Type1051 { get; set; } + public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaUsagePromptTokensDetails? Type1051 { get; set; } /// /// /// - public global::OpenRouter.GenerationContentDataOutput? Type1052 { get; set; } + public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaUsage? Type1052 { get; set; } /// /// /// - public global::OpenRouter.GenerationContentData? Type1053 { get; set; } + public global::OpenRouter.OneOf? Type1053 { get; set; } /// /// /// - public global::OpenRouter.GenerationContentResponse? Type1054 { get; set; } + public global::OpenRouter.EmbeddingsCreateEmbeddingsResponse200? Type1054 { get; set; } /// /// /// - public global::OpenRouter.ContentFilterBuiltinAction? Type1055 { get; set; } + public global::System.Collections.Generic.IList? Type1055 { get; set; } /// /// /// - public global::OpenRouter.PromptInjectionScanScope? Type1056 { get; set; } + public global::OpenRouter.ModelArchitectureInstructType? Type1056 { get; set; } /// /// /// - public global::OpenRouter.ContentFilterBuiltinSlug? Type1057 { get; set; } + public global::OpenRouter.OutputModality? Type1057 { get; set; } /// /// /// - public global::OpenRouter.ContentFilterBuiltinEntry? Type1058 { get; set; } + public global::OpenRouter.ModelGroup? Type1058 { get; set; } /// /// /// - public global::OpenRouter.ContentFilterAction? Type1059 { get; set; } + public global::OpenRouter.ModelArchitecture? Type1059 { get; set; } /// /// /// - public global::OpenRouter.ContentFilterEntry? Type1060 { get; set; } + public global::OpenRouter.OneOf? Type1060 { get; set; } /// /// /// - public global::OpenRouter.GuardrailInterval? Type1061 { get; set; } + public global::System.Collections.Generic.IList? Type1061 { get; set; } /// /// /// - public global::OpenRouter.Guardrail? Type1062 { get; set; } + public global::OpenRouter.AABenchmarkEntry? Type1062 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1063 { get; set; } + public global::OpenRouter.DABenchmarkEntry? Type1063 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1064 { get; set; } + public global::OpenRouter.ModelBenchmarks? Type1064 { get; set; } /// /// /// - public global::OpenRouter.ListGuardrailsResponse? Type1065 { get; set; } + public global::System.Collections.Generic.IList? Type1065 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1066 { get; set; } + public global::OpenRouter.DefaultParameters? Type1066 { get; set; } /// /// /// - public global::OpenRouter.ContentFilterBuiltinEntryInput? Type1067 { get; set; } + public global::OpenRouter.ModelLinks? Type1067 { get; set; } /// /// /// - public global::OpenRouter.CreateGuardrailRequest? Type1068 { get; set; } + public global::OpenRouter.PerRequestLimits? Type1068 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1069 { get; set; } + public global::OpenRouter.PublicPricing? Type1069 { get; set; } /// /// /// - public global::OpenRouter.CreateGuardrailResponseData? Type1070 { get; set; } + public global::OpenRouter.ModelReasoning? Type1070 { get; set; } /// /// /// - public global::OpenRouter.CreateGuardrailResponse? Type1071 { get; set; } + public global::System.Collections.Generic.IList? Type1071 { get; set; } /// /// /// - public global::OpenRouter.GetGuardrailResponseData? Type1072 { get; set; } + public global::OpenRouter.Parameter? Type1072 { get; set; } /// /// /// - public global::OpenRouter.GetGuardrailResponse? Type1073 { get; set; } + public global::OpenRouter.TopProviderInfo? Type1073 { get; set; } /// /// /// - public global::OpenRouter.DeleteGuardrailResponse? Type1074 { get; set; } + public global::OpenRouter.Model? Type1074 { get; set; } /// /// /// - public global::OpenRouter.UpdateGuardrailRequest? Type1075 { get; set; } + public global::System.Collections.Generic.IList? Type1075 { get; set; } /// /// /// - public global::OpenRouter.UpdateGuardrailResponseData? Type1076 { get; set; } + public global::System.Collections.Generic.IList? Type1076 { get; set; } /// /// /// - public global::OpenRouter.UpdateGuardrailResponse? Type1077 { get; set; } + public global::OpenRouter.ModelsListResponse? Type1077 { get; set; } /// /// /// - public global::OpenRouter.KeyAssignment? Type1078 { get; set; } + public global::OpenRouter.PercentileStats? Type1078 { get; set; } /// /// /// - public global::OpenRouter.ListKeyAssignmentsResponse? Type1079 { get; set; } + public global::OpenRouter.PublicEndpointPricing? Type1079 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1080 { get; set; } + public global::OpenRouter.EndpointStatus? Type1080 { get; set; } /// /// /// - public global::OpenRouter.BulkAssignKeysRequest? Type1081 { get; set; } + public global::OpenRouter.PublicEndpointThroughputLast30M? Type1081 { get; set; } /// /// /// - public global::OpenRouter.BulkAssignKeysResponse? Type1082 { get; set; } + public global::OpenRouter.PublicEndpoint? Type1082 { get; set; } /// /// /// - public global::OpenRouter.BulkUnassignKeysRequest? Type1083 { get; set; } + public global::OpenRouter.EndpointsListEndpointsZdrResponse200? Type1083 { get; set; } /// /// /// - public global::OpenRouter.BulkUnassignKeysResponse? Type1084 { get; set; } + public global::System.Collections.Generic.IList? Type1084 { get; set; } /// /// /// - public global::OpenRouter.MemberAssignment? Type1085 { get; set; } + public global::OpenRouter.InstructType2? Type1085 { get; set; } /// /// /// - public global::OpenRouter.ListMemberAssignmentsResponse? Type1086 { get; set; } + public global::OpenRouter.ListEndpointsResponseArchitecture? Type1086 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1087 { get; set; } + public global::OpenRouter.OneOf? Type1087 { get; set; } /// /// /// - public global::OpenRouter.BulkAssignMembersRequest? Type1088 { get; set; } + public global::OpenRouter.ListEndpointsResponse? Type1088 { get; set; } /// /// /// - public global::OpenRouter.BulkAssignMembersResponse? Type1089 { get; set; } + public global::OpenRouter.EndpointsListEndpointsResponse200? Type1089 { get; set; } /// /// /// - public global::OpenRouter.BulkUnassignMembersRequest? Type1090 { get; set; } + public global::OpenRouter.FileMetadataType? Type1090 { get; set; } /// /// /// - public global::OpenRouter.BulkUnassignMembersResponse? Type1091 { get; set; } + public global::OpenRouter.FileMetadata? Type1091 { get; set; } /// /// /// - public global::OpenRouter.KeyGetResponsesContentApplicationJsonSchemaDataRateLimit? Type1092 { get; set; } + public global::OpenRouter.FileListResponse? Type1092 { get; set; } /// /// /// - public global::OpenRouter.KeyGetResponsesContentApplicationJsonSchemaData? Type1093 { get; set; } + public global::System.Collections.Generic.IList? Type1093 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysGetCurrentKeyResponse200? Type1094 { get; set; } + public global::OpenRouter.FileDeleteResponseType? Type1094 { get; set; } /// /// /// - public global::OpenRouter.KeysGetResponsesContentApplicationJsonSchemaDataItems? Type1095 { get; set; } + public global::OpenRouter.FileDeleteResponse? Type1095 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysListResponse200? Type1096 { get; set; } + public global::OpenRouter.GenerationResponseDataApiType? Type1096 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1097 { get; set; } + public global::OpenRouter.GenerationResponseDataDataRegion? Type1097 { get; set; } /// /// /// - public global::OpenRouter.KeysPostRequestBodyContentApplicationJsonSchemaLimitReset? Type1098 { get; set; } + public global::OpenRouter.ProviderResponseProviderName? Type1098 { get; set; } /// /// /// - public global::OpenRouter.KeysPostResponsesContentApplicationJsonSchemaData? Type1099 { get; set; } + public global::OpenRouter.ProviderResponse? Type1099 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysCreateKeysResponse201? Type1100 { get; set; } + public global::OpenRouter.GenerationResponseData? Type1100 { get; set; } /// /// /// - public global::OpenRouter.KeysHashGetResponsesContentApplicationJsonSchemaData? Type1101 { get; set; } + public global::OpenRouter.OneOf? Type1101 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysGetKeyResponse200? Type1102 { get; set; } + public global::System.Collections.Generic.IList? Type1102 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysDeleteKeysResponse200? Type1103 { get; set; } + public global::OpenRouter.GenerationResponse? Type1103 { get; set; } /// /// /// - public global::OpenRouter.KeysHashPatchRequestBodyContentApplicationJsonSchemaLimitReset? Type1104 { get; set; } + public global::OpenRouter.GenerationContentDataInput0? Type1104 { get; set; } /// /// /// - public global::OpenRouter.KeysHashPatchResponsesContentApplicationJsonSchemaData? Type1105 { get; set; } + public global::OpenRouter.GenerationContentDataInput1? Type1105 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysUpdateKeysResponse200? Type1106 { get; set; } + public global::OpenRouter.GenerationContentDataInput? Type1106 { get; set; } /// /// /// - public global::OpenRouter.AnthropicInputTokensClearAtLeastType? Type1107 { get; set; } + public global::OpenRouter.GenerationContentDataOutput? Type1107 { get; set; } /// /// /// - public global::OpenRouter.AnthropicInputTokensClearAtLeast? Type1108 { get; set; } + public global::OpenRouter.GenerationContentData? Type1108 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputs? Type1109 { get; set; } + public global::OpenRouter.GenerationContentResponse? Type1109 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolUsesKeepType? Type1110 { get; set; } + public global::OpenRouter.ContentFilterBuiltinAction? Type1110 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolUsesKeep? Type1111 { get; set; } + public global::OpenRouter.PromptInjectionScanScope? Type1111 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0Trigger? Type1112 { get; set; } + public global::OpenRouter.ContentFilterBuiltinSlug? Type1112 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant1? Type1113 { get; set; } + public global::OpenRouter.ContentFilterBuiltinEntry? Type1113 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant1Type? Type1114 { get; set; } + public global::OpenRouter.ContentFilterAction? Type1114 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant2? Type1115 { get; set; } + public global::OpenRouter.ContentFilterEntry? Type1115 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant2Type? Type1116 { get; set; } + public global::OpenRouter.GuardrailInterval? Type1116 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerDiscriminator? Type1117 { get; set; } + public global::OpenRouter.Guardrail? Type1117 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerDiscriminatorType? Type1118 { get; set; } + public global::System.Collections.Generic.IList? Type1118 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0Type? Type1119 { get; set; } + public global::System.Collections.Generic.IList? Type1119 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItems0? Type1120 { get; set; } + public global::OpenRouter.ListGuardrailsResponse? Type1120 { get; set; } /// /// /// - public global::OpenRouter.AnthropicThinkingTurnsType? Type1121 { get; set; } + public global::System.Collections.Generic.IList? Type1121 { get; set; } /// /// /// - public global::OpenRouter.AnthropicThinkingTurns? Type1122 { get; set; } + public global::OpenRouter.ContentFilterBuiltinEntryInput? Type1122 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1KeepOneOf1Type? Type1123 { get; set; } + public global::OpenRouter.CreateGuardrailRequest? Type1123 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep1? Type1124 { get; set; } + public global::System.Collections.Generic.IList? Type1124 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep2? Type1125 { get; set; } + public global::OpenRouter.CreateGuardrailResponseData? Type1125 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep? Type1126 { get; set; } + public global::OpenRouter.CreateGuardrailResponse? Type1126 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Type? Type1127 { get; set; } + public global::OpenRouter.GetGuardrailResponseData? Type1127 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItems1? Type1128 { get; set; } + public global::OpenRouter.GetGuardrailResponse? Type1128 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2TriggerType? Type1129 { get; set; } + public global::OpenRouter.DeleteGuardrailResponse? Type1129 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2Trigger? Type1130 { get; set; } + public global::OpenRouter.UpdateGuardrailRequest? Type1130 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2Type? Type1131 { get; set; } + public global::OpenRouter.UpdateGuardrailResponseData? Type1131 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItems2? Type1132 { get; set; } + public global::OpenRouter.UpdateGuardrailResponse? Type1132 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItems? Type1133 { get; set; } + public global::OpenRouter.KeyAssignment? Type1133 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagement? Type1134 { get; set; } + public global::OpenRouter.ListKeyAssignmentsResponse? Type1134 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1135 { get; set; } + public global::System.Collections.Generic.IList? Type1135 { get; set; } /// /// /// - public global::OpenRouter.MessagesFallbackParam? Type1136 { get; set; } + public global::OpenRouter.BulkAssignKeysRequest? Type1136 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItems? Type1137 { get; set; } + public global::OpenRouter.BulkAssignKeysResponse? Type1137 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant1? Type1138 { get; set; } + public global::OpenRouter.BulkUnassignKeysRequest? Type1138 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant1Type? Type1139 { get; set; } + public global::OpenRouter.BulkUnassignKeysResponse? Type1139 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant2? Type1140 { get; set; } + public global::OpenRouter.MemberAssignment? Type1140 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant2Type? Type1141 { get; set; } + public global::OpenRouter.ListMemberAssignmentsResponse? Type1141 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant3? Type1142 { get; set; } + public global::System.Collections.Generic.IList? Type1142 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant3Type? Type1143 { get; set; } + public global::OpenRouter.BulkAssignMembersRequest? Type1143 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant4? Type1144 { get; set; } + public global::OpenRouter.BulkAssignMembersResponse? Type1144 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant4Type? Type1145 { get; set; } + public global::OpenRouter.BulkUnassignMembersRequest? Type1145 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant5? Type1146 { get; set; } + public global::OpenRouter.BulkUnassignMembersResponse? Type1146 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant5Type? Type1147 { get; set; } + public global::OpenRouter.KeyGetResponsesContentApplicationJsonSchemaDataRateLimit? Type1147 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsDiscriminator? Type1148 { get; set; } + public global::OpenRouter.KeyGetResponsesContentApplicationJsonSchemaData? Type1148 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsDiscriminatorType? Type1149 { get; set; } + public global::OpenRouter.ApiKeysGetCurrentKeyResponse200? Type1149 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamType? Type1150 { get; set; } + public global::OpenRouter.KeysGetResponsesContentApplicationJsonSchemaDataItems? Type1150 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParam? Type1151 { get; set; } + public global::OpenRouter.ApiKeysListResponse200? Type1151 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1152 { get; set; } + public global::System.Collections.Generic.IList? Type1152 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageMimeType? Type1153 { get; set; } + public global::OpenRouter.KeysPostRequestBodyContentApplicationJsonSchemaLimitReset? Type1153 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUrlImageSourceType? Type1154 { get; set; } + public global::OpenRouter.KeysPostResponsesContentApplicationJsonSchemaData? Type1154 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParamSource? Type1155 { get; set; } + public global::OpenRouter.ApiKeysCreateKeysResponse201? Type1155 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParamSourceVariant1? Type1156 { get; set; } + public global::OpenRouter.KeysHashGetResponsesContentApplicationJsonSchemaData? Type1156 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParamSourceVariant1Type? Type1157 { get; set; } + public global::OpenRouter.ApiKeysGetKeyResponse200? Type1157 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParamSourceVariant2? Type1158 { get; set; } + public global::OpenRouter.ApiKeysDeleteKeysResponse200? Type1158 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParamSourceDiscriminator? Type1159 { get; set; } + public global::OpenRouter.KeysHashPatchRequestBodyContentApplicationJsonSchemaLimitReset? Type1159 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParamSourceDiscriminatorType? Type1160 { get; set; } + public global::OpenRouter.KeysHashPatchResponsesContentApplicationJsonSchemaData? Type1160 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParamType? Type1161 { get; set; } + public global::OpenRouter.ApiKeysUpdateKeysResponse200? Type1161 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParam? Type1162 { get; set; } + public global::OpenRouter.AnthropicInputTokensClearAtLeastType? Type1162 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamCitations? Type1163 { get; set; } + public global::OpenRouter.AnthropicInputTokensClearAtLeast? Type1163 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBase64PdfSourceMediaType? Type1164 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputs? Type1164 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBase64PdfSourceType? Type1165 { get; set; } + public global::OpenRouter.AnthropicToolUsesKeepType? Type1165 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBase64PdfSource? Type1166 { get; set; } + public global::OpenRouter.AnthropicToolUsesKeep? Type1166 { get; set; } /// /// /// - public global::OpenRouter.AnthropicPlainTextSourceMediaType? Type1167 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0Trigger? Type1167 { get; set; } /// /// /// - public global::OpenRouter.AnthropicPlainTextSourceType? Type1168 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant1? Type1168 { get; set; } /// /// /// - public global::OpenRouter.AnthropicPlainTextSource? Type1169 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant1Type? Type1169 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1Items? Type1170 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant2? Type1170 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsVariant1? Type1171 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant2Type? Type1171 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsVariant2? Type1172 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerDiscriminator? Type1172 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsDiscriminator? Type1173 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerDiscriminatorType? Type1173 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsDiscriminatorType? Type1174 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0Type? Type1174 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1175 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItems0? Type1175 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2Content? Type1176 { get; set; } + public global::OpenRouter.AnthropicThinkingTurnsType? Type1176 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2Type? Type1177 { get; set; } + public global::OpenRouter.AnthropicThinkingTurns? Type1177 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSource2? Type1178 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1KeepOneOf1Type? Type1178 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUrlPdfSourceType? Type1179 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep1? Type1179 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUrlPdfSource? Type1180 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep2? Type1180 { get; set; } /// /// /// - public global::OpenRouter.AnthropicFileDocumentSourceType? Type1181 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep? Type1181 { get; set; } /// /// /// - public global::OpenRouter.AnthropicFileDocumentSource? Type1182 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Type? Type1182 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSource? Type1183 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItems1? Type1183 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamType? Type1184 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2TriggerType? Type1184 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParam? Type1185 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2Trigger? Type1185 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1186 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2Type? Type1186 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf3Type? Type1187 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItems2? Type1187 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items3? Type1188 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItems? Type1188 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1ItemsOneOf2Type? Type1189 { get; set; } + public global::OpenRouter.MessagesRequestContextManagement? Type1189 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items2? Type1190 { get; set; } + public global::System.Collections.Generic.IList? Type1190 { get; set; } /// /// /// - public global::OpenRouter.AnthropicSearchResultBlockParamCitations? Type1191 { get; set; } + public global::OpenRouter.MessagesFallbackParam? Type1191 { get; set; } /// /// /// - public global::OpenRouter.AnthropicSearchResultBlockParamType? Type1192 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItems? Type1192 { get; set; } /// /// /// - public global::OpenRouter.AnthropicSearchResultBlockParam? Type1193 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant1? Type1193 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1194 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant1Type? Type1194 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items? Type1195 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant2? Type1195 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1196 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant2Type? Type1196 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4Content? Type1197 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant3? Type1197 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4Type? Type1198 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant3Type? Type1198 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items4? Type1199 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant4? Type1199 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf5Type? Type1200 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant4Type? Type1200 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items5? Type1201 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant5? Type1201 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf6Type? Type1202 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant5Type? Type1202 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items6? Type1203 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsDiscriminator? Type1203 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf7Type? Type1204 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsDiscriminatorType? Type1204 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items7? Type1205 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamType? Type1205 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchResultBlockParamType? Type1206 { get; set; } + public global::OpenRouter.AnthropicTextBlockParam? Type1206 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchResultBlockParam? Type1207 { get; set; } + public global::System.Collections.Generic.IList? Type1207 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1208 { get; set; } + public global::OpenRouter.AnthropicImageMimeType? Type1208 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1ErrorCode? Type1209 { get; set; } + public global::OpenRouter.AnthropicUrlImageSourceType? Type1209 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1Type? Type1210 { get; set; } + public global::OpenRouter.AnthropicImageBlockParamSource? Type1210 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Content1? Type1211 { get; set; } + public global::OpenRouter.AnthropicImageBlockParamSourceVariant1? Type1211 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Content? Type1212 { get; set; } + public global::OpenRouter.AnthropicImageBlockParamSourceVariant1Type? Type1212 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Type? Type1213 { get; set; } + public global::OpenRouter.AnthropicImageBlockParamSourceVariant2? Type1213 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items8? Type1214 { get; set; } + public global::OpenRouter.AnthropicImageBlockParamSourceDiscriminator? Type1214 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf10Type? Type1215 { get; set; } + public global::OpenRouter.AnthropicImageBlockParamSourceDiscriminatorType? Type1215 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items10? Type1216 { get; set; } + public global::OpenRouter.AnthropicImageBlockParamType? Type1216 { get; set; } /// /// /// - public global::OpenRouter.MessagesAdvisorToolResultBlockType? Type1217 { get; set; } + public global::OpenRouter.AnthropicImageBlockParam? Type1217 { get; set; } /// /// /// - public global::OpenRouter.MessagesAdvisorToolResultBlock? Type1218 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamCitations? Type1218 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items? Type1219 { get; set; } + public global::OpenRouter.AnthropicBase64PdfSourceMediaType? Type1219 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1220 { get; set; } + public global::OpenRouter.AnthropicBase64PdfSourceType? Type1220 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContent? Type1221 { get; set; } + public global::OpenRouter.AnthropicBase64PdfSource? Type1221 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamRole? Type1222 { get; set; } + public global::OpenRouter.AnthropicPlainTextSourceMediaType? Type1222 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParam? Type1223 { get; set; } + public global::OpenRouter.AnthropicPlainTextSourceType? Type1223 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestMetadata? Type1224 { get; set; } + public global::OpenRouter.AnthropicPlainTextSource? Type1224 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfigEffort? Type1225 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1Items? Type1225 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfigFormatType? Type1226 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsVariant1? Type1226 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfigFormat? Type1227 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsVariant2? Type1227 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfigTaskBudgetType? Type1228 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsDiscriminator? Type1228 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfigTaskBudget? Type1229 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsDiscriminatorType? Type1229 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfig? Type1230 { get; set; } + public global::System.Collections.Generic.IList? Type1230 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1231 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2Content? Type1231 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1232 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2Type? Type1232 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1233 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSource2? Type1233 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItems? Type1234 { get; set; } + public global::OpenRouter.AnthropicUrlPdfSourceType? Type1234 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant1? Type1235 { get; set; } + public global::OpenRouter.AnthropicUrlPdfSource? Type1235 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant1Id? Type1236 { get; set; } + public global::OpenRouter.AnthropicFileDocumentSourceType? Type1236 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant2? Type1237 { get; set; } + public global::OpenRouter.AnthropicFileDocumentSource? Type1237 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant2Id? Type1238 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSource? Type1238 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant3? Type1239 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamType? Type1239 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant3Id? Type1240 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParam? Type1240 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant4? Type1241 { get; set; } + public global::OpenRouter.OneOf? Type1241 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant4Id? Type1242 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf3Type? Type1242 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant5? Type1243 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items3? Type1243 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant5Id? Type1244 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1ItemsOneOf2Type? Type1244 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant6? Type1245 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items2? Type1245 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant6Id? Type1246 { get; set; } + public global::OpenRouter.AnthropicSearchResultBlockParamCitations? Type1246 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant7? Type1247 { get; set; } + public global::OpenRouter.AnthropicSearchResultBlockParamType? Type1247 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant7Id? Type1248 { get; set; } + public global::OpenRouter.AnthropicSearchResultBlockParam? Type1248 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant8? Type1249 { get; set; } + public global::System.Collections.Generic.IList? Type1249 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant9? Type1250 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items? Type1250 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsDiscriminator? Type1251 { get; set; } + public global::System.Collections.Generic.IList? Type1251 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsDiscriminatorId? Type1252 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4Content? Type1252 { get; set; } /// /// /// - public global::OpenRouter.AnthropicSpeed? Type1253 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4Type? Type1253 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestSystem? Type1254 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items4? Type1254 { get; set; } /// /// /// - public global::OpenRouter.AnthropicThinkingDisplay? Type1255 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf5Type? Type1255 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinkingOneOf0Type? Type1256 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items5? Type1256 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinking0? Type1257 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf6Type? Type1257 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinkingOneOf1Type? Type1258 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items6? Type1258 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinking1? Type1259 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf7Type? Type1259 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinkingOneOf2Type? Type1260 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items7? Type1260 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinking2? Type1261 { get; set; } + public global::OpenRouter.AnthropicWebSearchResultBlockParamType? Type1261 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinking? Type1262 { get; set; } + public global::OpenRouter.AnthropicWebSearchResultBlockParam? Type1262 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoiceOneOf0Type? Type1263 { get; set; } + public global::System.Collections.Generic.IList? Type1263 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice0? Type1264 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1ErrorCode? Type1264 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoiceOneOf1Type? Type1265 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1Type? Type1265 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice1? Type1266 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Content1? Type1266 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoiceOneOf2Type? Type1267 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Content? Type1267 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice2? Type1268 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Type? Type1268 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoiceOneOf3Type? Type1269 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items8? Type1269 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice3? Type1270 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf10Type? Type1270 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice? Type1271 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items10? Type1271 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf0InputSchema? Type1272 { get; set; } + public global::OpenRouter.MessagesAdvisorToolResultBlockType? Type1272 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf0Type? Type1273 { get; set; } + public global::OpenRouter.MessagesAdvisorToolResultBlock? Type1273 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems0? Type1274 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items? Type1274 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf1Name? Type1275 { get; set; } + public global::System.Collections.Generic.IList? Type1275 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf1Type? Type1276 { get; set; } + public global::OpenRouter.MessagesMessageParamContent? Type1276 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems1? Type1277 { get; set; } + public global::OpenRouter.MessagesMessageParamRole? Type1277 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf2Name? Type1278 { get; set; } + public global::OpenRouter.MessagesMessageParam? Type1278 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf2Type? Type1279 { get; set; } + public global::OpenRouter.MessagesRequestMetadata? Type1279 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems2? Type1280 { get; set; } + public global::OpenRouter.MessagesOutputConfigEffort? Type1280 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf3Name? Type1281 { get; set; } + public global::OpenRouter.MessagesOutputConfigFormatType? Type1281 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf3Type? Type1282 { get; set; } + public global::OpenRouter.MessagesOutputConfigFormat? Type1282 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolUserLocationType? Type1283 { get; set; } + public global::OpenRouter.MessagesOutputConfigTaskBudgetType? Type1283 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolUserLocation? Type1284 { get; set; } + public global::OpenRouter.MessagesOutputConfigTaskBudget? Type1284 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems3? Type1285 { get; set; } + public global::OpenRouter.MessagesOutputConfig? Type1285 { get; set; } /// /// /// - public global::OpenRouter.AnthropicAllowedCallersItems? Type1286 { get; set; } + public global::OpenRouter.OneOf? Type1286 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1287 { get; set; } + public global::OpenRouter.OneOf? Type1287 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf4Name? Type1288 { get; set; } + public global::OpenRouter.OneOf? Type1288 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf4Type? Type1289 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItems? Type1289 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems4? Type1290 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant1? Type1290 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf5CachingType? Type1291 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant1Id? Type1291 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf5Caching? Type1292 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant2? Type1292 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf5Name? Type1293 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant2Id? Type1293 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf5Type? Type1294 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant3? Type1294 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems5? Type1295 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant3Id? Type1295 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems12? Type1296 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant4? Type1296 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems? Type1297 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant4Id? Type1297 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequest? Type1298 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant5? Type1298 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1299 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant5Id? Type1299 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1300 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant6? Type1300 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1301 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant6Id? Type1301 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1302 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant7? Type1302 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1303 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant7Id? Type1303 { get; set; } /// /// /// - public global::OpenRouter.AnthropicContainer? Type1304 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant8? Type1304 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionOutputType? Type1305 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant9? Type1305 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionOutput? Type1306 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsDiscriminator? Type1306 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionResultType? Type1307 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsDiscriminatorId? Type1307 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionToolResultErrorErrorCode? Type1308 { get; set; } + public global::OpenRouter.MessagesRequestSystem? Type1308 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionToolResultErrorType? Type1309 { get; set; } + public global::OpenRouter.AnthropicThinkingDisplay? Type1309 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionContent? Type1310 { get; set; } + public global::OpenRouter.MessagesRequestThinkingOneOf0Type? Type1310 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionContentVariant1? Type1311 { get; set; } + public global::OpenRouter.MessagesRequestThinking0? Type1311 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1312 { get; set; } + public global::OpenRouter.MessagesRequestThinkingOneOf1Type? Type1312 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionContentVariant2? Type1313 { get; set; } + public global::OpenRouter.MessagesRequestThinking1? Type1313 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionContentDiscriminator? Type1314 { get; set; } + public global::OpenRouter.MessagesRequestThinkingOneOf2Type? Type1314 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionContentDiscriminatorType? Type1315 { get; set; } + public global::OpenRouter.MessagesRequestThinking2? Type1315 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionOutputType? Type1316 { get; set; } + public global::OpenRouter.MessagesRequestThinking? Type1316 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionOutput? Type1317 { get; set; } + public global::OpenRouter.MessagesRequestToolChoiceOneOf0Type? Type1317 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionResultType? Type1318 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice0? Type1318 { get; set; } /// /// /// - public global::OpenRouter.AnthropicServerToolErrorCode? Type1319 { get; set; } + public global::OpenRouter.MessagesRequestToolChoiceOneOf1Type? Type1319 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionToolResultErrorType? Type1320 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice1? Type1320 { get; set; } /// /// /// - public global::OpenRouter.AnthropicEncryptedCodeExecutionResultType? Type1321 { get; set; } + public global::OpenRouter.MessagesRequestToolChoiceOneOf2Type? Type1321 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionContent? Type1322 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice2? Type1322 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionContentVariant1? Type1323 { get; set; } + public global::OpenRouter.MessagesRequestToolChoiceOneOf3Type? Type1323 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1324 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice3? Type1324 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionContentVariant2? Type1325 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice? Type1325 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionContentVariant3? Type1326 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf0InputSchema? Type1326 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionContentDiscriminator? Type1327 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf0Type? Type1327 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionContentDiscriminatorType? Type1328 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems0? Type1328 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCaller? Type1329 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf1Name? Type1329 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerVariant1? Type1330 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf1Type? Type1330 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerVariant1Type? Type1331 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems1? Type1331 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerVariant2? Type1332 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf2Name? Type1332 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerVariant2Type? Type1333 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf2Type? Type1333 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerVariant3? Type1334 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems2? Type1334 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerVariant3Type? Type1335 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf3Name? Type1335 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerDiscriminator? Type1336 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf3Type? Type1336 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerDiscriminatorType? Type1337 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolUserLocationType? Type1337 { get; set; } /// /// /// - public global::OpenRouter.OrAnthropicServerToolUseBlockType? Type1338 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolUserLocation? Type1338 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitation? Type1339 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems3? Type1339 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant1? Type1340 { get; set; } + public global::OpenRouter.AnthropicAllowedCallersItems? Type1340 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant1Type? Type1341 { get; set; } + public global::System.Collections.Generic.IList? Type1341 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant2? Type1342 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf4Name? Type1342 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant2Type? Type1343 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf4Type? Type1343 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant3? Type1344 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems4? Type1344 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant3Type? Type1345 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf5CachingType? Type1345 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant4? Type1346 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf5Caching? Type1346 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant4Type? Type1347 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf5Name? Type1347 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant5? Type1348 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf5Type? Type1348 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant5Type? Type1349 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems5? Type1349 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationDiscriminator? Type1350 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems12? Type1350 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationDiscriminatorType? Type1351 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems? Type1351 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionCreateResultType? Type1352 { get; set; } + public global::OpenRouter.MessagesRequest? Type1352 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionStrReplaceResultType? Type1353 { get; set; } + public global::OpenRouter.OneOf? Type1353 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultErrorErrorCode? Type1354 { get; set; } + public global::System.Collections.Generic.IList? Type1354 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultErrorType? Type1355 { get; set; } + public global::System.Collections.Generic.IList? Type1355 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionViewResultFileType? Type1356 { get; set; } + public global::System.Collections.Generic.IList? Type1356 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionViewResultType? Type1357 { get; set; } + public global::System.Collections.Generic.IList? Type1357 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionContent? Type1358 { get; set; } + public global::OpenRouter.AnthropicContainer? Type1358 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant1? Type1359 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionOutputType? Type1359 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant2? Type1360 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionOutput? Type1360 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant3? Type1361 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionResultType? Type1361 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant4? Type1362 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionToolResultErrorErrorCode? Type1362 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionContentDiscriminator? Type1363 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionToolResultErrorType? Type1363 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionContentDiscriminatorType? Type1364 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionContent? Type1364 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchResultErrorType? Type1365 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionContentVariant1? Type1365 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolReferenceType? Type1366 { get; set; } + public global::System.Collections.Generic.IList? Type1366 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolReference? Type1367 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionContentVariant2? Type1367 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchResultType? Type1368 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionContentDiscriminator? Type1368 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchContent? Type1369 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionContentDiscriminatorType? Type1369 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchContentVariant1? Type1370 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionOutputType? Type1370 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchContentVariant2? Type1371 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionOutput? Type1371 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1372 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionResultType? Type1372 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchContentDiscriminator? Type1373 { get; set; } + public global::OpenRouter.AnthropicServerToolErrorCode? Type1373 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchContentDiscriminatorType? Type1374 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionToolResultErrorType? Type1374 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCaller? Type1375 { get; set; } + public global::OpenRouter.AnthropicEncryptedCodeExecutionResultType? Type1375 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCallerVariant1? Type1376 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionContent? Type1376 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCallerVariant1Type? Type1377 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionContentVariant1? Type1377 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCallerVariant2? Type1378 { get; set; } + public global::System.Collections.Generic.IList? Type1378 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCallerVariant2Type? Type1379 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionContentVariant2? Type1379 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCallerVariant3? Type1380 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionContentVariant3? Type1380 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCallerVariant3Type? Type1381 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionContentDiscriminator? Type1381 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCallerDiscriminator? Type1382 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionContentDiscriminatorType? Type1382 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCallerDiscriminatorType? Type1383 { get; set; } + public global::OpenRouter.ORAnthropicNullableCaller? Type1383 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationsConfig? Type1384 { get; set; } + public global::OpenRouter.ORAnthropicNullableCallerVariant1? Type1384 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockSource? Type1385 { get; set; } + public global::OpenRouter.ORAnthropicNullableCallerVariant1Type? Type1385 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockType? Type1386 { get; set; } + public global::OpenRouter.ORAnthropicNullableCallerVariant2? Type1386 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlock? Type1387 { get; set; } + public global::OpenRouter.ORAnthropicNullableCallerVariant2Type? Type1387 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchToolResultErrorErrorCode? Type1388 { get; set; } + public global::OpenRouter.ORAnthropicNullableCallerVariant3? Type1388 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchToolResultErrorType? Type1389 { get; set; } + public global::OpenRouter.ORAnthropicNullableCallerVariant3Type? Type1389 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchContent? Type1390 { get; set; } + public global::OpenRouter.ORAnthropicNullableCallerDiscriminator? Type1390 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchContentVariant1? Type1391 { get; set; } + public global::OpenRouter.ORAnthropicNullableCallerDiscriminatorType? Type1391 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchContentVariant1Type? Type1392 { get; set; } + public global::OpenRouter.OrAnthropicServerToolUseBlockType? Type1392 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchContentVariant2? Type1393 { get; set; } + public global::OpenRouter.AnthropicTextCitation? Type1393 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchContentDiscriminator? Type1394 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant1? Type1394 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchContentDiscriminatorType? Type1395 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant1Type? Type1395 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchResultType? Type1396 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant2? Type1396 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchResult? Type1397 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant2Type? Type1397 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1398 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant3? Type1398 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolResultErrorErrorCode? Type1399 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant3Type? Type1399 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolResultErrorType? Type1400 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant4? Type1400 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolResultError? Type1401 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant4Type? Type1401 { get; set; } /// /// /// - public global::OpenRouter.OrAnthropicContentBlockDiscriminatorMappingWebSearchToolResultContent? Type1402 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant5? Type1402 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlock? Type1403 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant5Type? Type1403 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant1? Type1404 { get; set; } + public global::OpenRouter.AnthropicTextCitationDiscriminator? Type1404 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant1Type? Type1405 { get; set; } + public global::OpenRouter.AnthropicTextCitationDiscriminatorType? Type1405 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant2? Type1406 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionCreateResultType? Type1406 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant2Type? Type1407 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionStrReplaceResultType? Type1407 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant3? Type1408 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultErrorErrorCode? Type1408 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant3Type? Type1409 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultErrorType? Type1409 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant4? Type1410 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionViewResultFileType? Type1410 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant4Type? Type1411 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionViewResultType? Type1411 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant5? Type1412 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionContent? Type1412 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant5Type? Type1413 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant1? Type1413 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant6? Type1414 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant2? Type1414 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant6Type? Type1415 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant3? Type1415 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant7? Type1416 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant4? Type1416 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant8? Type1417 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionContentDiscriminator? Type1417 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant8Type? Type1418 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionContentDiscriminatorType? Type1418 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1419 { get; set; } + public global::OpenRouter.AnthropicToolSearchResultErrorType? Type1419 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant9? Type1420 { get; set; } + public global::OpenRouter.AnthropicToolReferenceType? Type1420 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant9Type? Type1421 { get; set; } + public global::OpenRouter.AnthropicToolReference? Type1421 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant10? Type1422 { get; set; } + public global::OpenRouter.AnthropicToolSearchResultType? Type1422 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant10Type? Type1423 { get; set; } + public global::OpenRouter.AnthropicToolSearchContent? Type1423 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant11? Type1424 { get; set; } + public global::OpenRouter.AnthropicToolSearchContentVariant1? Type1424 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant11Type? Type1425 { get; set; } + public global::OpenRouter.AnthropicToolSearchContentVariant2? Type1425 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant12? Type1426 { get; set; } + public global::System.Collections.Generic.IList? Type1426 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant12Type? Type1427 { get; set; } + public global::OpenRouter.AnthropicToolSearchContentDiscriminator? Type1427 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant13? Type1428 { get; set; } + public global::OpenRouter.AnthropicToolSearchContentDiscriminatorType? Type1428 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant13Type? Type1429 { get; set; } + public global::OpenRouter.AnthropicCaller? Type1429 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant14? Type1430 { get; set; } + public global::OpenRouter.AnthropicCallerVariant1? Type1430 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant14Type? Type1431 { get; set; } + public global::OpenRouter.AnthropicCallerVariant1Type? Type1431 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockDiscriminator? Type1432 { get; set; } + public global::OpenRouter.AnthropicCallerVariant2? Type1432 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockDiscriminatorType? Type1433 { get; set; } + public global::OpenRouter.AnthropicCallerVariant2Type? Type1433 { get; set; } /// /// /// - public global::OpenRouter.MessagesResultRole? Type1434 { get; set; } + public global::OpenRouter.AnthropicCallerVariant3? Type1434 { get; set; } /// /// /// - public global::OpenRouter.AnthropicRefusalStopDetailsCategory? Type1435 { get; set; } + public global::OpenRouter.AnthropicCallerVariant3Type? Type1435 { get; set; } /// /// /// - public global::OpenRouter.AnthropicRefusalStopDetailsType? Type1436 { get; set; } + public global::OpenRouter.AnthropicCallerDiscriminator? Type1436 { get; set; } /// /// /// - public global::OpenRouter.AnthropicRefusalStopDetails? Type1437 { get; set; } + public global::OpenRouter.AnthropicCallerDiscriminatorType? Type1437 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1438 { get; set; } + public global::OpenRouter.AnthropicCitationsConfig? Type1438 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicStopReason? Type1439 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockSource? Type1439 { get; set; } /// /// /// - public global::OpenRouter.MessagesResultType? Type1440 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockType? Type1440 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCacheCreation? Type1441 { get; set; } + public global::OpenRouter.AnthropicDocumentBlock? Type1441 { get; set; } /// /// /// - public global::OpenRouter.AnthropicOutputTokensDetails? Type1442 { get; set; } + public global::OpenRouter.AnthropicWebFetchToolResultErrorErrorCode? Type1442 { get; set; } /// /// /// - public global::OpenRouter.AnthropicServerToolUsage? Type1443 { get; set; } + public global::OpenRouter.AnthropicWebFetchToolResultErrorType? Type1443 { get; set; } /// /// /// - public global::OpenRouter.AnthropicServiceTier? Type1444 { get; set; } + public global::OpenRouter.AnthropicWebFetchContent? Type1444 { get; set; } /// /// /// - public global::OpenRouter.AnthropicIterationCacheCreation? Type1445 { get; set; } + public global::OpenRouter.AnthropicWebFetchContentVariant1? Type1445 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCompactionUsageIterationType? Type1446 { get; set; } + public global::OpenRouter.AnthropicWebFetchContentVariant1Type? Type1446 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCompactionUsageIteration? Type1447 { get; set; } + public global::OpenRouter.AnthropicWebFetchContentVariant2? Type1447 { get; set; } /// /// /// - public global::OpenRouter.AnthropicMessageUsageIterationType? Type1448 { get; set; } + public global::OpenRouter.AnthropicWebFetchContentDiscriminator? Type1448 { get; set; } /// /// /// - public global::OpenRouter.AnthropicMessageUsageIteration? Type1449 { get; set; } + public global::OpenRouter.AnthropicWebFetchContentDiscriminatorType? Type1449 { get; set; } /// /// /// - public global::OpenRouter.AnthropicAdvisorMessageUsageIterationType? Type1450 { get; set; } + public global::OpenRouter.AnthropicWebSearchResultType? Type1450 { get; set; } /// /// /// - public global::OpenRouter.AnthropicAdvisorMessageUsageIteration? Type1451 { get; set; } + public global::OpenRouter.AnthropicWebSearchResult? Type1451 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUnknownUsageIteration? Type1452 { get; set; } + public global::System.Collections.Generic.IList? Type1452 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUsageIteration? Type1453 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolResultErrorErrorCode? Type1453 { get; set; } /// /// /// - public global::OpenRouter.MessagesResultUsage? Type1454 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolResultErrorType? Type1454 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1455 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolResultError? Type1455 { get; set; } /// /// /// - public global::OpenRouter.MessagesResultContextManagementAppliedEditsItems? Type1456 { get; set; } + public global::OpenRouter.OrAnthropicContentBlockDiscriminatorMappingWebSearchToolResultContent? Type1456 { get; set; } /// /// /// - public global::OpenRouter.MessagesResultContextManagement? Type1457 { get; set; } + public global::OpenRouter.ORAnthropicContentBlock? Type1457 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1458 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant1? Type1458 { get; set; } /// /// /// - public global::OpenRouter.MessagesResult? Type1459 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant1Type? Type1459 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1460 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant2? Type1460 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1461 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant2Type? Type1461 { get; set; } /// /// /// - public global::OpenRouter.MessagesErrorDetail? Type1462 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant3? Type1462 { get; set; } /// /// /// - public global::OpenRouter.MessagesErrorResponseType? Type1463 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant3Type? Type1463 { get; set; } /// /// /// - public global::OpenRouter.MessagesErrorResponse? Type1464 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant4? Type1464 { get; set; } /// /// /// - public global::OpenRouter.ModelResponse? Type1465 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant4Type? Type1465 { get; set; } /// /// /// - public global::OpenRouter.ModelsGetParametersCategory? Type1466 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant5? Type1466 { get; set; } /// /// /// - public global::OpenRouter.ModelsGetParametersSort? Type1467 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant5Type? Type1467 { get; set; } /// /// /// - public global::OpenRouter.ModelsGetParametersDistillable? Type1468 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant6? Type1468 { get; set; } /// /// /// - public global::OpenRouter.ModelsGetParametersZdr? Type1469 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant6Type? Type1469 { get; set; } /// /// /// - public global::OpenRouter.ModelsGetParametersRegion? Type1470 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant7? Type1470 { get; set; } /// /// /// - public global::OpenRouter.ModelsCountResponseData? Type1471 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant8? Type1471 { get; set; } /// /// /// - public global::OpenRouter.ModelsCountResponse? Type1472 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant8Type? Type1472 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfig? Type1473 { get; set; } + public global::System.Collections.Generic.IList? Type1473 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsLogic? Type1474 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant9? Type1474 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsField? Type1475 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant9Type? Type1475 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator? Type1476 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant10? Type1476 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue? Type1477 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant10Type? Type1477 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItems? Type1478 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant11? Type1478 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItems? Type1479 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant11Type? Type1479 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1480 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant12? Type1480 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityFilterRulesConfig? Type1481 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant12Type? Type1481 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1482 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant13? Type1482 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfig? Type1483 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant13Type? Type1483 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfig? Type1484 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant14? Type1484 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfig? Type1485 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant14Type? Type1485 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfig? Type1486 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockDiscriminator? Type1486 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfig? Type1487 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockDiscriminatorType? Type1487 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfig? Type1488 { get; set; } + public global::OpenRouter.MessagesResultRole? Type1488 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegion? Type1489 { get; set; } + public global::OpenRouter.AnthropicRefusalStopDetailsCategory? Type1489 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfig? Type1490 { get; set; } + public global::OpenRouter.AnthropicRefusalStopDetailsType? Type1490 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfig? Type1491 { get; set; } + public global::OpenRouter.AnthropicRefusalStopDetails? Type1491 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfig? Type1492 { get; set; } + public global::OpenRouter.OneOf? Type1492 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfig? Type1493 { get; set; } + public global::OpenRouter.ORAnthropicStopReason? Type1493 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfig? Type1494 { get; set; } + public global::OpenRouter.MessagesResultType? Type1494 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3Config? Type1495 { get; set; } + public global::OpenRouter.AnthropicCacheCreation? Type1495 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfig? Type1496 { get; set; } + public global::OpenRouter.AnthropicOutputTokensDetails? Type1496 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfig? Type1497 { get; set; } + public global::OpenRouter.AnthropicServerToolUsage? Type1497 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfig? Type1498 { get; set; } + public global::OpenRouter.AnthropicServiceTier? Type1498 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethod? Type1499 { get; set; } + public global::OpenRouter.MessagesResultUsage? Type1499 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfig? Type1500 { get; set; } + public global::OpenRouter.MessagesResultContextManagementAppliedEditsItems? Type1500 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestination? Type1501 { get; set; } + public global::OpenRouter.MessagesResultContextManagement? Type1501 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant1? Type1502 { get; set; } + public global::System.Collections.Generic.IList? Type1502 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant1Type? Type1503 { get; set; } + public global::OpenRouter.MessagesResult? Type1503 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant2? Type1504 { get; set; } + public global::System.Collections.Generic.IList? Type1504 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant2Type? Type1505 { get; set; } + public global::OpenRouter.OneOf? Type1505 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant3? Type1506 { get; set; } + public global::OpenRouter.MessagesErrorDetail? Type1506 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant3Type? Type1507 { get; set; } + public global::OpenRouter.MessagesErrorResponseType? Type1507 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant4? Type1508 { get; set; } + public global::OpenRouter.MessagesErrorResponse? Type1508 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant4Type? Type1509 { get; set; } + public global::OpenRouter.ModelResponse? Type1509 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant5? Type1510 { get; set; } + public global::OpenRouter.ModelsGetParametersCategory? Type1510 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant5Type? Type1511 { get; set; } + public global::OpenRouter.ModelsGetParametersSort? Type1511 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant6? Type1512 { get; set; } + public global::OpenRouter.ModelsGetParametersDistillable? Type1512 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant6Type? Type1513 { get; set; } + public global::OpenRouter.ModelsGetParametersZdr? Type1513 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant7? Type1514 { get; set; } + public global::OpenRouter.ModelsGetParametersRegion? Type1514 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant7Type? Type1515 { get; set; } + public global::OpenRouter.ModelsCountResponseData? Type1515 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant8? Type1516 { get; set; } + public global::OpenRouter.ModelsCountResponse? Type1516 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant8Type? Type1517 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfig? Type1517 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant9? Type1518 { get; set; } + public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsLogic? Type1518 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant9Type? Type1519 { get; set; } + public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsField? Type1519 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant10? Type1520 { get; set; } + public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator? Type1520 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant10Type? Type1521 { get; set; } + public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue? Type1521 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant11? Type1522 { get; set; } + public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItems? Type1522 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant11Type? Type1523 { get; set; } + public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItems? Type1523 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant12? Type1524 { get; set; } + public global::System.Collections.Generic.IList? Type1524 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant12Type? Type1525 { get; set; } + public global::OpenRouter.ObservabilityFilterRulesConfig? Type1525 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant13? Type1526 { get; set; } + public global::System.Collections.Generic.IList? Type1526 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant13Type? Type1527 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfig? Type1527 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant14? Type1528 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfig? Type1528 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant14Type? Type1529 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfig? Type1529 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant15? Type1530 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfig? Type1530 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant15Type? Type1531 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfig? Type1531 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant16? Type1532 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfig? Type1532 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant16Type? Type1533 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegion? Type1533 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant17? Type1534 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfig? Type1534 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant17Type? Type1535 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfig? Type1535 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationDiscriminator? Type1536 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfig? Type1536 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationDiscriminatorType? Type1537 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfig? Type1537 { get; set; } /// /// /// - public global::OpenRouter.ListObservabilityDestinationsResponse? Type1538 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfig? Type1538 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1539 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3Config? Type1539 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationRequestType? Type1540 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfig? Type1540 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationRequest? Type1541 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfig? Type1541 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseData? Type1542 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfig? Type1542 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1? Type1543 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethod? Type1543 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1Type? Type1544 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfig? Type1544 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2? Type1545 { get; set; } + public global::OpenRouter.ObservabilityDestination? Type1545 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2Type? Type1546 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant1? Type1546 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3? Type1547 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant1Type? Type1547 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3Type? Type1548 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant2? Type1548 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4? Type1549 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant2Type? Type1549 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4Type? Type1550 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant3? Type1550 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5? Type1551 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant3Type? Type1551 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5Type? Type1552 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant4? Type1552 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6? Type1553 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant4Type? Type1553 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6Type? Type1554 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant5? Type1554 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7? Type1555 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant5Type? Type1555 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7Type? Type1556 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant6? Type1556 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8? Type1557 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant6Type? Type1557 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8Type? Type1558 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant7? Type1558 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9? Type1559 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant7Type? Type1559 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9Type? Type1560 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant8? Type1560 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10? Type1561 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant8Type? Type1561 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10Type? Type1562 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant9? Type1562 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11? Type1563 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant9Type? Type1563 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11Type? Type1564 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant10? Type1564 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12? Type1565 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant10Type? Type1565 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12Type? Type1566 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant11? Type1566 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13? Type1567 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant11Type? Type1567 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13Type? Type1568 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant12? Type1568 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14? Type1569 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant12Type? Type1569 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14Type? Type1570 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant13? Type1570 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15? Type1571 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant13Type? Type1571 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15Type? Type1572 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant14? Type1572 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16? Type1573 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant14Type? Type1573 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16Type? Type1574 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant15? Type1574 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17? Type1575 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant15Type? Type1575 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17Type? Type1576 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant16? Type1576 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminator? Type1577 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant16Type? Type1577 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminatorType? Type1578 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant17? Type1578 { get; set; } /// /// /// - public global::OpenRouter.CreateObservabilityDestinationResponse? Type1579 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant17Type? Type1579 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseData? Type1580 { get; set; } + public global::OpenRouter.ObservabilityDestinationDiscriminator? Type1580 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant1? Type1581 { get; set; } + public global::OpenRouter.ObservabilityDestinationDiscriminatorType? Type1581 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant1Type? Type1582 { get; set; } + public global::OpenRouter.ListObservabilityDestinationsResponse? Type1582 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant2? Type1583 { get; set; } + public global::System.Collections.Generic.IList? Type1583 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant2Type? Type1584 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationRequestType? Type1584 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant3? Type1585 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationRequest? Type1585 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant3Type? Type1586 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseData? Type1586 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant4? Type1587 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1? Type1587 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant4Type? Type1588 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1Type? Type1588 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant5? Type1589 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2? Type1589 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant5Type? Type1590 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2Type? Type1590 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant6? Type1591 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3? Type1591 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant6Type? Type1592 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3Type? Type1592 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant7? Type1593 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4? Type1593 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant7Type? Type1594 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4Type? Type1594 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant8? Type1595 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5? Type1595 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant8Type? Type1596 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5Type? Type1596 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant9? Type1597 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6? Type1597 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant9Type? Type1598 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6Type? Type1598 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant10? Type1599 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7? Type1599 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant10Type? Type1600 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7Type? Type1600 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant11? Type1601 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8? Type1601 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant11Type? Type1602 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8Type? Type1602 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant12? Type1603 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9? Type1603 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant12Type? Type1604 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9Type? Type1604 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant13? Type1605 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10? Type1605 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant13Type? Type1606 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10Type? Type1606 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant14? Type1607 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11? Type1607 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant14Type? Type1608 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11Type? Type1608 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant15? Type1609 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12? Type1609 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant15Type? Type1610 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12Type? Type1610 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant16? Type1611 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13? Type1611 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant16Type? Type1612 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13Type? Type1612 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant17? Type1613 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14? Type1613 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant17Type? Type1614 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14Type? Type1614 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminator? Type1615 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15? Type1615 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminatorType? Type1616 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15Type? Type1616 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponse? Type1617 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16? Type1617 { get; set; } /// /// /// - public global::OpenRouter.DeleteObservabilityDestinationResponse? Type1618 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16Type? Type1618 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic? Type1619 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17? Type1619 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField? Type1620 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17Type? Type1620 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator? Type1621 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminator? Type1621 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue? Type1622 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminatorType? Type1622 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems? Type1623 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponse? Type1623 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItems? Type1624 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseData? Type1624 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1625 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant1? Type1625 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationRequestFilterRules? Type1626 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant1Type? Type1626 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1627 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant2? Type1627 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationRequest? Type1628 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant2Type? Type1628 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseData? Type1629 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant3? Type1629 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1? Type1630 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant3Type? Type1630 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1Type? Type1631 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant4? Type1631 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2? Type1632 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant4Type? Type1632 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2Type? Type1633 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant5? Type1633 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3? Type1634 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant5Type? Type1634 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3Type? Type1635 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant6? Type1635 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4? Type1636 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant6Type? Type1636 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4Type? Type1637 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant7? Type1637 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5? Type1638 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant7Type? Type1638 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5Type? Type1639 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant8? Type1639 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6? Type1640 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant8Type? Type1640 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6Type? Type1641 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant9? Type1641 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7? Type1642 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant9Type? Type1642 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7Type? Type1643 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant10? Type1643 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8? Type1644 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant10Type? Type1644 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8Type? Type1645 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant11? Type1645 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9? Type1646 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant11Type? Type1646 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9Type? Type1647 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant12? Type1647 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10? Type1648 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant12Type? Type1648 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10Type? Type1649 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant13? Type1649 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11? Type1650 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant13Type? Type1650 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11Type? Type1651 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant14? Type1651 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12? Type1652 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant14Type? Type1652 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12Type? Type1653 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant15? Type1653 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13? Type1654 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant15Type? Type1654 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13Type? Type1655 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant16? Type1655 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14? Type1656 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant16Type? Type1656 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14Type? Type1657 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant17? Type1657 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15? Type1658 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant17Type? Type1658 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15Type? Type1659 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminator? Type1659 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16? Type1660 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminatorType? Type1660 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16Type? Type1661 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponse? Type1661 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17? Type1662 { get; set; } + public global::OpenRouter.DeleteObservabilityDestinationResponse? Type1662 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17Type? Type1663 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic? Type1663 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminator? Type1664 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField? Type1664 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorType? Type1665 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator? Type1665 { get; set; } /// /// /// - public global::OpenRouter.UpdateObservabilityDestinationResponse? Type1666 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue? Type1666 { get; set; } /// /// /// - public global::OpenRouter.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRole? Type1667 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems? Type1667 { get; set; } /// /// /// - public global::OpenRouter.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItems? Type1668 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItems? Type1668 { get; set; } /// /// /// - public global::OpenRouter.OrganizationListOrganizationMembersResponse200? Type1669 { get; set; } + public global::System.Collections.Generic.IList? Type1669 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1670 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationRequestFilterRules? Type1670 { get; set; } /// /// /// - public global::OpenRouter.PresetStatus? Type1671 { get; set; } + public global::System.Collections.Generic.IList? Type1671 { get; set; } /// /// /// - public global::OpenRouter.Preset? Type1672 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationRequest? Type1672 { get; set; } /// /// /// - public global::OpenRouter.ListPresetsResponse? Type1673 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseData? Type1673 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1674 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1? Type1674 { get; set; } /// /// /// - public global::OpenRouter.PresetDesignatedVersion? Type1675 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1Type? Type1675 { get; set; } /// /// /// - public global::OpenRouter.PresetWithDesignatedVersion? Type1676 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2? Type1676 { get; set; } /// /// /// - public global::OpenRouter.GetPresetResponse? Type1677 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2Type? Type1677 { get; set; } /// /// /// - public global::OpenRouter.CreatePresetFromInferenceResponse? Type1678 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3? Type1678 { get; set; } /// /// /// - public global::OpenRouter.ListPresetVersionsResponse? Type1679 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3Type? Type1679 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1680 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4? Type1680 { get; set; } /// /// /// - public global::OpenRouter.GetPresetVersionResponse? Type1681 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4Type? Type1681 { get; set; } /// /// /// - public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsDatacentersItems? Type1682 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5? Type1682 { get; set; } /// /// /// - public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsHeadquarters? Type1683 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5Type? Type1683 { get; set; } /// /// /// - public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItems? Type1684 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6? Type1684 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1685 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6Type? Type1685 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1686 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7? Type1686 { get; set; } /// /// /// - public global::OpenRouter.ProvidersListProvidersResponse200? Type1687 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7Type? Type1687 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1688 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8? Type1688 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaDocumentsItems1? Type1689 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8Type? Type1689 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaDocumentsItems? Type1690 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9? Type1690 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderDataCollection? Type1691 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9Type? Type1691 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItems? Type1692 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10? Type1692 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderMaxPrice? Type1693 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10Type? Type1693 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderOnlyItems? Type1694 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11? Type1694 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderOrderItems? Type1695 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11Type? Type1695 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderSort? Type1696 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12? Type1696 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProvider? Type1697 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12Type? Type1697 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1698 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13? Type1698 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1699 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13Type? Type1699 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1700 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14? Type1700 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1701 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14Type? Type1701 { get; set; } /// /// /// - public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaResultsItemsDocument? Type1702 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15? Type1702 { get; set; } /// /// /// - public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaResultsItems? Type1703 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15Type? Type1703 { get; set; } /// /// /// - public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaUsage? Type1704 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16? Type1704 { get; set; } /// /// /// - public global::OpenRouter.RerankCreateRerankResponse200? Type1705 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16Type? Type1705 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1706 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17? Type1706 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequestAspectRatio? Type1707 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17Type? Type1707 { get; set; } /// /// /// - public global::OpenRouter.FrameImageImageUrl? Type1708 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminator? Type1708 { get; set; } /// /// /// - public global::OpenRouter.FrameImageType? Type1709 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorType? Type1709 { get; set; } /// /// /// - public global::OpenRouter.FrameImageFrameType? Type1710 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponse? Type1710 { get; set; } /// /// /// - public global::OpenRouter.FrameImage? Type1711 { get; set; } + public global::OpenRouter.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRole? Type1711 { get; set; } /// /// /// - public global::OpenRouter.InputReferenceDiscriminatorMappingAudioUrlAudioUrl? Type1712 { get; set; } + public global::OpenRouter.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItems? Type1712 { get; set; } /// /// /// - public global::OpenRouter.InputReferenceDiscriminatorMappingImageUrlImageUrl? Type1713 { get; set; } + public global::OpenRouter.OrganizationListOrganizationMembersResponse200? Type1713 { get; set; } /// /// /// - public global::OpenRouter.InputReferenceDiscriminatorMappingVideoUrlVideoUrl? Type1714 { get; set; } + public global::System.Collections.Generic.IList? Type1714 { get; set; } /// /// /// - public global::OpenRouter.InputReference? Type1715 { get; set; } + public global::OpenRouter.PresetStatus? Type1715 { get; set; } /// /// /// - public global::OpenRouter.InputReferenceVariant1? Type1716 { get; set; } + public global::OpenRouter.Preset? Type1716 { get; set; } /// /// /// - public global::OpenRouter.InputReferenceVariant1Type? Type1717 { get; set; } + public global::OpenRouter.ListPresetsResponse? Type1717 { get; set; } /// /// /// - public global::OpenRouter.InputReferenceVariant2? Type1718 { get; set; } + public global::System.Collections.Generic.IList? Type1718 { get; set; } /// /// /// - public global::OpenRouter.InputReferenceVariant2Type? Type1719 { get; set; } + public global::OpenRouter.PresetDesignatedVersion? Type1719 { get; set; } /// /// /// - public global::OpenRouter.InputReferenceVariant3? Type1720 { get; set; } + public global::OpenRouter.PresetWithDesignatedVersion? Type1720 { get; set; } /// /// /// - public global::OpenRouter.InputReferenceVariant3Type? Type1721 { get; set; } + public global::OpenRouter.GetPresetResponse? Type1721 { get; set; } /// /// /// - public global::OpenRouter.InputReferenceDiscriminator? Type1722 { get; set; } + public global::OpenRouter.CreatePresetFromInferenceResponse? Type1722 { get; set; } /// /// /// - public global::OpenRouter.InputReferenceDiscriminatorType? Type1723 { get; set; } + public global::OpenRouter.ListPresetVersionsResponse? Type1723 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequestProviderOptions? Type1724 { get; set; } + public global::System.Collections.Generic.IList? Type1724 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequestProvider? Type1725 { get; set; } + public global::OpenRouter.GetPresetVersionResponse? Type1725 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequestResolution? Type1726 { get; set; } + public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsDatacentersItems? Type1726 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequest? Type1727 { get; set; } + public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsHeadquarters? Type1727 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1728 { get; set; } + public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItems? Type1728 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1729 { get; set; } + public global::System.Collections.Generic.IList? Type1729 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationResponseStatus? Type1730 { get; set; } + public global::OpenRouter.OneOf? Type1730 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationUsage? Type1731 { get; set; } + public global::OpenRouter.ProvidersListProvidersResponse200? Type1731 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationResponse? Type1732 { get; set; } + public global::System.Collections.Generic.IList? Type1732 { get; set; } /// /// /// - public global::OpenRouter.VideoModelSupportedAspectRatiosItems? Type1733 { get; set; } + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaDocumentsItems1? Type1733 { get; set; } /// /// /// - public global::OpenRouter.VideoModelSupportedFrameImagesItems? Type1734 { get; set; } + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaDocumentsItems? Type1734 { get; set; } /// /// /// - public global::OpenRouter.VideoModelSupportedResolutionsItems? Type1735 { get; set; } + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderDataCollection? Type1735 { get; set; } /// /// /// - public global::OpenRouter.VideoModelSupportedSizesItems? Type1736 { get; set; } + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItems? Type1736 { get; set; } /// /// /// - public global::OpenRouter.VideoModel? Type1737 { get; set; } + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderMaxPrice? Type1737 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1738 { get; set; } + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderOnlyItems? Type1738 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1739 { get; set; } + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderOrderItems? Type1739 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1740 { get; set; } + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderSort? Type1740 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1741 { get; set; } + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProvider? Type1741 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1742 { get; set; } + public global::OpenRouter.OneOf? Type1742 { get; set; } /// /// /// - public global::OpenRouter.VideoModelsListResponse? Type1743 { get; set; } + public global::System.Collections.Generic.IList? Type1743 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1744 { get; set; } + public global::System.Collections.Generic.IList? Type1744 { get; set; } /// /// /// - public global::OpenRouter.Workspace? Type1745 { get; set; } + public global::System.Collections.Generic.IList? Type1745 { get; set; } /// /// /// - public global::OpenRouter.ListWorkspacesResponse? Type1746 { get; set; } + public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaResultsItemsDocument? Type1746 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1747 { get; set; } + public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaResultsItems? Type1747 { get; set; } /// /// /// - public global::OpenRouter.CreateWorkspaceRequest? Type1748 { get; set; } + public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaUsage? Type1748 { get; set; } /// /// /// - public global::OpenRouter.CreateWorkspaceResponseData? Type1749 { get; set; } + public global::OpenRouter.RerankCreateRerankResponse200? Type1749 { get; set; } /// /// /// - public global::OpenRouter.CreateWorkspaceResponse? Type1750 { get; set; } + public global::System.Collections.Generic.IList? Type1750 { get; set; } /// /// /// - public global::OpenRouter.GetWorkspaceResponseData? Type1751 { get; set; } + public global::OpenRouter.VideoGenerationRequestAspectRatio? Type1751 { get; set; } /// /// /// - public global::OpenRouter.GetWorkspaceResponse? Type1752 { get; set; } + public global::OpenRouter.FrameImageImageUrl? Type1752 { get; set; } /// /// /// - public global::OpenRouter.DeleteWorkspaceResponse? Type1753 { get; set; } + public global::OpenRouter.FrameImageType? Type1753 { get; set; } /// /// /// - public global::OpenRouter.UpdateWorkspaceRequest? Type1754 { get; set; } + public global::OpenRouter.FrameImageFrameType? Type1754 { get; set; } /// /// /// - public global::OpenRouter.UpdateWorkspaceResponseData? Type1755 { get; set; } + public global::OpenRouter.FrameImage? Type1755 { get; set; } /// /// /// - public global::OpenRouter.UpdateWorkspaceResponse? Type1756 { get; set; } + public global::OpenRouter.InputReferenceDiscriminatorMappingAudioUrlAudioUrl? Type1756 { get; set; } /// /// /// - public global::OpenRouter.WorkspaceBudgetResetInterval? Type1757 { get; set; } + public global::OpenRouter.InputReferenceDiscriminatorMappingVideoUrlVideoUrl? Type1757 { get; set; } /// /// /// - public global::OpenRouter.WorkspaceBudget? Type1758 { get; set; } + public global::OpenRouter.InputReference? Type1758 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1759 { get; set; } + public global::OpenRouter.InputReferenceVariant1? Type1759 { get; set; } /// /// /// - public global::OpenRouter.ListWorkspaceBudgetsResponse? Type1760 { get; set; } + public global::OpenRouter.InputReferenceVariant1Type? Type1760 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1761 { get; set; } + public global::OpenRouter.InputReferenceVariant2? Type1761 { get; set; } /// /// /// - public global::OpenRouter.WorkspaceBudgetInterval? Type1762 { get; set; } + public global::OpenRouter.InputReferenceVariant2Type? Type1762 { get; set; } /// /// /// - public global::OpenRouter.UpsertWorkspaceBudgetRequest? Type1763 { get; set; } + public global::OpenRouter.InputReferenceVariant3? Type1763 { get; set; } /// /// /// - public global::OpenRouter.UpsertWorkspaceBudgetResponseDataResetInterval? Type1764 { get; set; } + public global::OpenRouter.InputReferenceVariant3Type? Type1764 { get; set; } /// /// /// - public global::OpenRouter.UpsertWorkspaceBudgetResponseData? Type1765 { get; set; } + public global::OpenRouter.InputReferenceDiscriminator? Type1765 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1766 { get; set; } + public global::OpenRouter.InputReferenceDiscriminatorType? Type1766 { get; set; } /// /// /// - public global::OpenRouter.UpsertWorkspaceBudgetResponse? Type1767 { get; set; } + public global::OpenRouter.VideoGenerationRequestProviderOptions? Type1767 { get; set; } /// /// /// - public global::OpenRouter.DeleteWorkspaceBudgetResponse? Type1768 { get; set; } + public global::OpenRouter.VideoGenerationRequestProvider? Type1768 { get; set; } /// /// /// - public global::OpenRouter.BulkAddWorkspaceMembersRequest? Type1769 { get; set; } + public global::OpenRouter.VideoGenerationRequestResolution? Type1769 { get; set; } /// /// /// - public global::OpenRouter.WorkspaceMemberRole? Type1770 { get; set; } + public global::OpenRouter.VideoGenerationRequest? Type1770 { get; set; } /// /// /// - public global::OpenRouter.WorkspaceMember? Type1771 { get; set; } + public global::System.Collections.Generic.IList? Type1771 { get; set; } /// /// /// - public global::OpenRouter.BulkAddWorkspaceMembersResponse? Type1772 { get; set; } + public global::System.Collections.Generic.IList? Type1772 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1773 { get; set; } + public global::OpenRouter.VideoGenerationResponseStatus? Type1773 { get; set; } /// /// /// - public global::OpenRouter.BulkRemoveWorkspaceMembersRequest? Type1774 { get; set; } + public global::OpenRouter.VideoGenerationUsage? Type1774 { get; set; } /// /// /// - public global::OpenRouter.BulkRemoveWorkspaceMembersResponse? Type1775 { get; set; } + public global::OpenRouter.VideoGenerationResponse? Type1775 { get; set; } /// /// /// - public global::OpenRouter.ExchangeAuthCodeForApiKeyRequest? Type1776 { get; set; } + public global::OpenRouter.VideoModelSupportedAspectRatiosItems? Type1776 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1777 { get; set; } + public global::OpenRouter.VideoModelSupportedFrameImagesItems? Type1777 { get; set; } /// /// /// - public global::OpenRouter.CreateAuthKeysCodeRequest? Type1778 { get; set; } + public global::OpenRouter.VideoModelSupportedResolutionsItems? Type1778 { get; set; } /// /// /// - public global::OpenRouter.QueryAnalyticsRequest? Type1779 { get; set; } + public global::OpenRouter.VideoModelSupportedSizesItems? Type1779 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1780 { get; set; } + public global::OpenRouter.VideoModel? Type1780 { get; set; } /// /// /// - public global::OpenRouter.CreateEmbeddingsRequest? Type1781 { get; set; } + public global::System.Collections.Generic.IList? Type1781 { get; set; } /// /// /// - public global::OpenRouter.UploadFileRequest? Type1782 { get; set; } + public global::System.Collections.Generic.IList? Type1782 { get; set; } /// /// /// - public byte[]? Type1783 { get; set; } + public global::System.Collections.Generic.IList? Type1783 { get; set; } /// /// /// - public global::OpenRouter.CreateKeysRequest? Type1784 { get; set; } + public global::System.Collections.Generic.IList? Type1784 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1785 { get; set; } + public global::System.Collections.Generic.IList? Type1785 { get; set; } /// /// /// - public global::OpenRouter.UpdateKeysRequest? Type1786 { get; set; } + public global::OpenRouter.VideoModelsListResponse? Type1786 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1787 { get; set; } + public global::System.Collections.Generic.IList? Type1787 { get; set; } /// /// /// - public global::OpenRouter.CreateRerankRequest? Type1788 { get; set; } + public global::OpenRouter.Workspace? Type1788 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1789 { get; set; } + public global::OpenRouter.ListWorkspacesResponse? Type1789 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1790 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateWorkspaceRequest? Type1791 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateWorkspaceResponseData? Type1792 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateWorkspaceResponse? Type1793 { get; set; } + /// + /// + /// + public global::OpenRouter.GetWorkspaceResponseData? Type1794 { get; set; } + /// + /// + /// + public global::OpenRouter.GetWorkspaceResponse? Type1795 { get; set; } + /// + /// + /// + public global::OpenRouter.DeleteWorkspaceResponse? Type1796 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdateWorkspaceRequest? Type1797 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdateWorkspaceResponseData? Type1798 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdateWorkspaceResponse? Type1799 { get; set; } + /// + /// + /// + public global::OpenRouter.WorkspaceBudgetResetInterval? Type1800 { get; set; } + /// + /// + /// + public global::OpenRouter.WorkspaceBudget? Type1801 { get; set; } + /// + /// + /// + public global::OpenRouter.OneOf? Type1802 { get; set; } + /// + /// + /// + public global::OpenRouter.ListWorkspaceBudgetsResponse? Type1803 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1804 { get; set; } + /// + /// + /// + public global::OpenRouter.WorkspaceBudgetInterval? Type1805 { get; set; } + /// + /// + /// + public global::OpenRouter.UpsertWorkspaceBudgetRequest? Type1806 { get; set; } + /// + /// + /// + public global::OpenRouter.UpsertWorkspaceBudgetResponseDataResetInterval? Type1807 { get; set; } + /// + /// + /// + public global::OpenRouter.UpsertWorkspaceBudgetResponseData? Type1808 { get; set; } + /// + /// + /// + public global::OpenRouter.OneOf? Type1809 { get; set; } + /// + /// + /// + public global::OpenRouter.UpsertWorkspaceBudgetResponse? Type1810 { get; set; } + /// + /// + /// + public global::OpenRouter.DeleteWorkspaceBudgetResponse? Type1811 { get; set; } + /// + /// + /// + public global::OpenRouter.BulkAddWorkspaceMembersRequest? Type1812 { get; set; } + /// + /// + /// + public global::OpenRouter.WorkspaceMemberRole? Type1813 { get; set; } + /// + /// + /// + public global::OpenRouter.WorkspaceMember? Type1814 { get; set; } + /// + /// + /// + public global::OpenRouter.BulkAddWorkspaceMembersResponse? Type1815 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1816 { get; set; } + /// + /// + /// + public global::OpenRouter.BulkRemoveWorkspaceMembersRequest? Type1817 { get; set; } + /// + /// + /// + public global::OpenRouter.BulkRemoveWorkspaceMembersResponse? Type1818 { get; set; } + /// + /// + /// + public global::OpenRouter.ExchangeAuthCodeForApiKeyRequest? Type1819 { get; set; } + /// + /// + /// + public global::OpenRouter.OneOf? Type1820 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateAuthKeysCodeRequest? Type1821 { get; set; } + /// + /// + /// + public global::OpenRouter.QueryAnalyticsRequest? Type1822 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1823 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateEmbeddingsRequest? Type1824 { get; set; } + /// + /// + /// + public global::OpenRouter.UploadFileRequest? Type1825 { get; set; } + /// + /// + /// + public byte[]? Type1826 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateKeysRequest? Type1827 { get; set; } + /// + /// + /// + public global::OpenRouter.OneOf? Type1828 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdateKeysRequest? Type1829 { get; set; } + /// + /// + /// + public global::OpenRouter.OneOf? Type1830 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateRerankRequest? Type1831 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1832 { get; set; } /// /// @@ -7405,378 +7577,402 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType54 { get; set; } + public global::System.Collections.Generic.List? ListType54 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType55 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType56 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType57 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType58 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType59 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType60 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType55 { get; set; } + public global::System.Collections.Generic.List? ListType61 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType56 { get; set; } + public global::System.Collections.Generic.List? ListType62 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType57 { get; set; } + public global::System.Collections.Generic.List? ListType63 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType58 { get; set; } + public global::System.Collections.Generic.List? ListType64 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType59 { get; set; } + public global::System.Collections.Generic.List? ListType65 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType60 { get; set; } + public global::System.Collections.Generic.List? ListType66 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType61 { get; set; } + public global::System.Collections.Generic.List? ListType67 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType62 { get; set; } + public global::System.Collections.Generic.List? ListType68 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType63 { get; set; } + public global::System.Collections.Generic.List? ListType69 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType64 { get; set; } + public global::System.Collections.Generic.List? ListType70 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType65 { get; set; } + public global::System.Collections.Generic.List? ListType71 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType66 { get; set; } + public global::System.Collections.Generic.List? ListType72 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType67 { get; set; } + public global::System.Collections.Generic.List? ListType73 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType68 { get; set; } + public global::System.Collections.Generic.List? ListType74 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType69 { get; set; } + public global::System.Collections.Generic.List? ListType75 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType70 { get; set; } + public global::System.Collections.Generic.List? ListType76 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType71 { get; set; } + public global::System.Collections.Generic.List? ListType77 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType72 { get; set; } + public global::System.Collections.Generic.List? ListType78 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType73 { get; set; } + public global::System.Collections.Generic.List? ListType79 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType74 { get; set; } + public global::System.Collections.Generic.List? ListType80 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType75 { get; set; } + public global::System.Collections.Generic.List? ListType81 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType76 { get; set; } + public global::System.Collections.Generic.List? ListType82 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType77 { get; set; } + public global::System.Collections.Generic.List? ListType83 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType78 { get; set; } + public global::System.Collections.Generic.List? ListType84 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType79 { get; set; } + public global::System.Collections.Generic.List? ListType85 { get; set; } /// /// /// - public global::System.Collections.Generic.List>? ListType80 { get; set; } + public global::System.Collections.Generic.List? ListType86 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType81 { get; set; } + public global::System.Collections.Generic.List? ListType87 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType82 { get; set; } + public global::System.Collections.Generic.List>? ListType88 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType83 { get; set; } + public global::System.Collections.Generic.List? ListType89 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType84 { get; set; } + public global::System.Collections.Generic.List? ListType90 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType85 { get; set; } + public global::System.Collections.Generic.List? ListType91 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType86 { get; set; } + public global::System.Collections.Generic.List? ListType92 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType87 { get; set; } + public global::System.Collections.Generic.List? ListType93 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType88 { get; set; } + public global::System.Collections.Generic.List? ListType94 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType89 { get; set; } + public global::System.Collections.Generic.List? ListType95 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType90 { get; set; } + public global::System.Collections.Generic.List? ListType96 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType91 { get; set; } + public global::System.Collections.Generic.List? ListType97 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType92 { get; set; } + public global::System.Collections.Generic.List? ListType98 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType93 { get; set; } + public global::System.Collections.Generic.List? ListType99 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType94 { get; set; } + public global::System.Collections.Generic.List? ListType100 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType95 { get; set; } + public global::System.Collections.Generic.List? ListType101 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType96 { get; set; } + public global::System.Collections.Generic.List? ListType102 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType97 { get; set; } + public global::System.Collections.Generic.List? ListType103 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType98 { get; set; } + public global::System.Collections.Generic.List? ListType104 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType99 { get; set; } + public global::System.Collections.Generic.List? ListType105 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType100 { get; set; } + public global::System.Collections.Generic.List? ListType106 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType101 { get; set; } + public global::System.Collections.Generic.List? ListType107 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType102 { get; set; } + public global::System.Collections.Generic.List? ListType108 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType103 { get; set; } + public global::System.Collections.Generic.List? ListType109 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType104 { get; set; } + public global::System.Collections.Generic.List? ListType110 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType105 { get; set; } + public global::System.Collections.Generic.List? ListType111 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType106 { get; set; } + public global::System.Collections.Generic.List? ListType112 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType107 { get; set; } + public global::System.Collections.Generic.List? ListType113 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType108 { get; set; } + public global::System.Collections.Generic.List? ListType114 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType109 { get; set; } + public global::System.Collections.Generic.List? ListType115 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType110 { get; set; } + public global::System.Collections.Generic.List? ListType116 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType111 { get; set; } + public global::System.Collections.Generic.List? ListType117 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType112 { get; set; } + public global::System.Collections.Generic.List? ListType118 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType113 { get; set; } + public global::System.Collections.Generic.List? ListType119 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType114 { get; set; } + public global::System.Collections.Generic.List? ListType120 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType115 { get; set; } + public global::System.Collections.Generic.List? ListType121 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType116 { get; set; } + public global::System.Collections.Generic.List? ListType122 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType117 { get; set; } + public global::System.Collections.Generic.List? ListType123 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType118 { get; set; } + public global::System.Collections.Generic.List? ListType124 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType119 { get; set; } + public global::System.Collections.Generic.List? ListType125 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType120 { get; set; } + public global::System.Collections.Generic.List? ListType126 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType121 { get; set; } + public global::System.Collections.Generic.List? ListType127 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType122 { get; set; } + public global::System.Collections.Generic.List? ListType128 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType123 { get; set; } + public global::System.Collections.Generic.List? ListType129 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType124 { get; set; } + public global::System.Collections.Generic.List? ListType130 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType125 { get; set; } + public global::System.Collections.Generic.List? ListType131 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType126 { get; set; } + public global::System.Collections.Generic.List? ListType132 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType127 { get; set; } + public global::System.Collections.Generic.List? ListType133 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType128 { get; set; } + public global::System.Collections.Generic.List? ListType134 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType129 { get; set; } + public global::System.Collections.Generic.List? ListType135 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType130 { get; set; } + public global::System.Collections.Generic.List? ListType136 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType131 { get; set; } + public global::System.Collections.Generic.List? ListType137 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType132 { get; set; } + public global::System.Collections.Generic.List? ListType138 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType133 { get; set; } + public global::System.Collections.Generic.List? ListType139 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType134 { get; set; } + public global::System.Collections.Generic.List? ListType140 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType135 { get; set; } + public global::System.Collections.Generic.List? ListType141 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType136 { get; set; } + public global::System.Collections.Generic.List? ListType142 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType137 { get; set; } + public global::System.Collections.Generic.List? ListType143 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType138 { get; set; } + public global::System.Collections.Generic.List? ListType144 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType139 { get; set; } + public global::System.Collections.Generic.List? ListType145 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType140 { get; set; } + public global::System.Collections.Generic.List? ListType146 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType141 { get; set; } + public global::System.Collections.Generic.List? ListType147 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType142 { get; set; } + public global::System.Collections.Generic.List? ListType148 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType143 { get; set; } + public global::System.Collections.Generic.List? ListType149 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType144 { get; set; } + public global::System.Collections.Generic.List? ListType150 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType145 { get; set; } + public global::System.Collections.Generic.List? ListType151 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType146 { get; set; } + public global::System.Collections.Generic.List? ListType152 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType147 { get; set; } + public global::System.Collections.Generic.List? ListType153 { get; set; } } } \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CapabilityDescriptor.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CapabilityDescriptor.Json.g.cs new file mode 100644 index 00000000..a431428a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CapabilityDescriptor.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public readonly partial struct CapabilityDescriptor + { + /// + /// 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.CapabilityDescriptor? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.CapabilityDescriptor), + jsonSerializerContext) as global::OpenRouter.CapabilityDescriptor?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.CapabilityDescriptor? 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.CapabilityDescriptor? 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.CapabilityDescriptor), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.CapabilityDescriptor?; + } + + /// + /// 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.CapabilityDescriptor.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CapabilityDescriptor.g.cs new file mode 100644 index 00000000..5a8969c7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CapabilityDescriptor.g.cs @@ -0,0 +1,386 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace OpenRouter +{ + /// + /// A typed descriptor for one supported request parameter. + /// + public readonly partial struct CapabilityDescriptor : global::System.IEquatable + { + /// + /// + /// + public global::OpenRouter.CapabilityDescriptorDiscriminatorType? Type { get; } + + /// + /// A supported-or-not flag. Present means the parameter is accepted. + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.CapabilityDescriptorVariant1? Boolean { get; init; } +#else + public global::OpenRouter.CapabilityDescriptorVariant1? Boolean { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Boolean))] +#endif + public bool IsBoolean => Boolean != null; + + /// + /// + /// + public bool TryPickBoolean( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.CapabilityDescriptorVariant1? value) + { + value = Boolean; + return IsBoolean; + } + + /// + /// + /// + public global::OpenRouter.CapabilityDescriptorVariant1 PickBoolean() => IsBoolean + ? Boolean! + : throw new global::System.InvalidOperationException($"Expected union variant 'Boolean' but the value was {ToString()}."); + + /// + /// A parameter that accepts one of a discrete set of string values. + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.CapabilityDescriptorVariant2? Enum { get; init; } +#else + public global::OpenRouter.CapabilityDescriptorVariant2? Enum { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Enum))] +#endif + public bool IsEnum => Enum != null; + + /// + /// + /// + public bool TryPickEnum( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.CapabilityDescriptorVariant2? value) + { + value = Enum; + return IsEnum; + } + + /// + /// + /// + public global::OpenRouter.CapabilityDescriptorVariant2 PickEnum() => IsEnum + ? Enum! + : throw new global::System.InvalidOperationException($"Expected union variant 'Enum' but the value was {ToString()}."); + + /// + /// A parameter that accepts any value within an inclusive numeric range. + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.CapabilityDescriptorVariant3? Range { get; init; } +#else + public global::OpenRouter.CapabilityDescriptorVariant3? Range { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Range))] +#endif + public bool IsRange => Range != null; + + /// + /// + /// + public bool TryPickRange( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.CapabilityDescriptorVariant3? value) + { + value = Range; + return IsRange; + } + + /// + /// + /// + public global::OpenRouter.CapabilityDescriptorVariant3 PickRange() => IsRange + ? Range! + : throw new global::System.InvalidOperationException($"Expected union variant 'Range' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator CapabilityDescriptor(global::OpenRouter.CapabilityDescriptorVariant1 value) => new CapabilityDescriptor((global::OpenRouter.CapabilityDescriptorVariant1?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.CapabilityDescriptorVariant1?(CapabilityDescriptor @this) => @this.Boolean; + + /// + /// + /// + public CapabilityDescriptor(global::OpenRouter.CapabilityDescriptorVariant1? value) + { + Boolean = value; + } + + /// + /// + /// + public static CapabilityDescriptor FromBoolean(global::OpenRouter.CapabilityDescriptorVariant1? value) => new CapabilityDescriptor(value); + + /// + /// + /// + public static implicit operator CapabilityDescriptor(global::OpenRouter.CapabilityDescriptorVariant2 value) => new CapabilityDescriptor((global::OpenRouter.CapabilityDescriptorVariant2?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.CapabilityDescriptorVariant2?(CapabilityDescriptor @this) => @this.Enum; + + /// + /// + /// + public CapabilityDescriptor(global::OpenRouter.CapabilityDescriptorVariant2? value) + { + Enum = value; + } + + /// + /// + /// + public static CapabilityDescriptor FromEnum(global::OpenRouter.CapabilityDescriptorVariant2? value) => new CapabilityDescriptor(value); + + /// + /// + /// + public static implicit operator CapabilityDescriptor(global::OpenRouter.CapabilityDescriptorVariant3 value) => new CapabilityDescriptor((global::OpenRouter.CapabilityDescriptorVariant3?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.CapabilityDescriptorVariant3?(CapabilityDescriptor @this) => @this.Range; + + /// + /// + /// + public CapabilityDescriptor(global::OpenRouter.CapabilityDescriptorVariant3? value) + { + Range = value; + } + + /// + /// + /// + public static CapabilityDescriptor FromRange(global::OpenRouter.CapabilityDescriptorVariant3? value) => new CapabilityDescriptor(value); + + /// + /// + /// + public CapabilityDescriptor( + global::OpenRouter.CapabilityDescriptorDiscriminatorType? type, + global::OpenRouter.CapabilityDescriptorVariant1? boolean, + global::OpenRouter.CapabilityDescriptorVariant2? @enum, + global::OpenRouter.CapabilityDescriptorVariant3? range + ) + { + Type = type; + + Boolean = boolean; + Enum = @enum; + Range = range; + } + + /// + /// + /// + public object? Object => + Range as object ?? + Enum as object ?? + Boolean as object + ; + + /// + /// + /// + public override string? ToString() => + Boolean?.ToString() ?? + Enum?.ToString() ?? + Range?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsBoolean && !IsEnum && !IsRange || !IsBoolean && IsEnum && !IsRange || !IsBoolean && !IsEnum && IsRange; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? boolean = null, + global::System.Func? @enum = null, + global::System.Func? range = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsBoolean && boolean != null) + { + return boolean(Boolean!); + } + else if (IsEnum && @enum != null) + { + return @enum(Enum!); + } + else if (IsRange && range != null) + { + return range(Range!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? boolean = null, + + global::System.Action? @enum = null, + + global::System.Action? range = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsBoolean) + { + boolean?.Invoke(Boolean!); + } + else if (IsEnum) + { + @enum?.Invoke(Enum!); + } + else if (IsRange) + { + range?.Invoke(Range!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? boolean = null, + global::System.Action? @enum = null, + global::System.Action? range = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsBoolean) + { + boolean?.Invoke(Boolean!); + } + else if (IsEnum) + { + @enum?.Invoke(Enum!); + } + else if (IsRange) + { + range?.Invoke(Range!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Boolean, + typeof(global::OpenRouter.CapabilityDescriptorVariant1), + Enum, + typeof(global::OpenRouter.CapabilityDescriptorVariant2), + Range, + typeof(global::OpenRouter.CapabilityDescriptorVariant3), + }; + 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(CapabilityDescriptor other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Boolean, other.Boolean) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Enum, other.Enum) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Range, other.Range) + ; + } + + /// + /// + /// + public static bool operator ==(CapabilityDescriptor obj1, CapabilityDescriptor obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(CapabilityDescriptor obj1, CapabilityDescriptor obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is CapabilityDescriptor o && Equals(o); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CapabilityDescriptorDiscriminator.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CapabilityDescriptorDiscriminator.Json.g.cs new file mode 100644 index 00000000..62e5b9aa --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CapabilityDescriptorDiscriminator.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class CapabilityDescriptorDiscriminator + { + /// + /// 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.CapabilityDescriptorDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.CapabilityDescriptorDiscriminator), + jsonSerializerContext) as global::OpenRouter.CapabilityDescriptorDiscriminator; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.CapabilityDescriptorDiscriminator? 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.CapabilityDescriptorDiscriminator? 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.CapabilityDescriptorDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.CapabilityDescriptorDiscriminator; + } + + /// + /// 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.CapabilityDescriptorDiscriminator.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CapabilityDescriptorDiscriminator.g.cs new file mode 100644 index 00000000..7fc730de --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CapabilityDescriptorDiscriminator.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class CapabilityDescriptorDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.CapabilityDescriptorDiscriminatorTypeJsonConverter))] + public global::OpenRouter.CapabilityDescriptorDiscriminatorType? 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 CapabilityDescriptorDiscriminator( + global::OpenRouter.CapabilityDescriptorDiscriminatorType? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public CapabilityDescriptorDiscriminator() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CapabilityDescriptorDiscriminatorType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CapabilityDescriptorDiscriminatorType.g.cs new file mode 100644 index 00000000..165d3de5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CapabilityDescriptorDiscriminatorType.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum CapabilityDescriptorDiscriminatorType + { + /// + /// + /// + Boolean, + /// + /// + /// + Enum, + /// + /// + /// + Range, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CapabilityDescriptorDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CapabilityDescriptorDiscriminatorType value) + { + return value switch + { + CapabilityDescriptorDiscriminatorType.Boolean => "boolean", + CapabilityDescriptorDiscriminatorType.Enum => "enum", + CapabilityDescriptorDiscriminatorType.Range => "range", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CapabilityDescriptorDiscriminatorType? ToEnum(string value) + { + return value switch + { + "boolean" => CapabilityDescriptorDiscriminatorType.Boolean, + "enum" => CapabilityDescriptorDiscriminatorType.Enum, + "range" => CapabilityDescriptorDiscriminatorType.Range, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CapabilityDescriptorVariant1.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CapabilityDescriptorVariant1.Json.g.cs new file mode 100644 index 00000000..ee664768 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CapabilityDescriptorVariant1.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class CapabilityDescriptorVariant1 + { + /// + /// 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.CapabilityDescriptorVariant1? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.CapabilityDescriptorVariant1), + jsonSerializerContext) as global::OpenRouter.CapabilityDescriptorVariant1; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.CapabilityDescriptorVariant1? 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.CapabilityDescriptorVariant1? 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.CapabilityDescriptorVariant1), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.CapabilityDescriptorVariant1; + } + + /// + /// 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.CapabilityDescriptorVariant1.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CapabilityDescriptorVariant1.g.cs new file mode 100644 index 00000000..db55cde3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CapabilityDescriptorVariant1.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// A supported-or-not flag. Present means the parameter is accepted. + /// + public sealed partial class CapabilityDescriptorVariant1 + { + /// + /// Discriminator value: boolean + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.CapabilityDescriptorVariant1TypeJsonConverter))] + public global::OpenRouter.CapabilityDescriptorVariant1Type 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. + /// + /// + /// Discriminator value: boolean + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CapabilityDescriptorVariant1( + global::OpenRouter.CapabilityDescriptorVariant1Type type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public CapabilityDescriptorVariant1() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CapabilityDescriptorVariant1Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CapabilityDescriptorVariant1Type.g.cs new file mode 100644 index 00000000..e1ee728b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CapabilityDescriptorVariant1Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: boolean + /// + public enum CapabilityDescriptorVariant1Type + { + /// + /// boolean + /// + Boolean, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CapabilityDescriptorVariant1TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CapabilityDescriptorVariant1Type value) + { + return value switch + { + CapabilityDescriptorVariant1Type.Boolean => "boolean", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CapabilityDescriptorVariant1Type? ToEnum(string value) + { + return value switch + { + "boolean" => CapabilityDescriptorVariant1Type.Boolean, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CapabilityDescriptorVariant2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CapabilityDescriptorVariant2.Json.g.cs new file mode 100644 index 00000000..dfe9a976 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CapabilityDescriptorVariant2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class CapabilityDescriptorVariant2 + { + /// + /// 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.CapabilityDescriptorVariant2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.CapabilityDescriptorVariant2), + jsonSerializerContext) as global::OpenRouter.CapabilityDescriptorVariant2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.CapabilityDescriptorVariant2? 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.CapabilityDescriptorVariant2? 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.CapabilityDescriptorVariant2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.CapabilityDescriptorVariant2; + } + + /// + /// 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.CapabilityDescriptorVariant2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CapabilityDescriptorVariant2.g.cs new file mode 100644 index 00000000..d7710de0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CapabilityDescriptorVariant2.g.cs @@ -0,0 +1,55 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// A parameter that accepts one of a discrete set of string values. + /// + public sealed partial class CapabilityDescriptorVariant2 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.EnumCapabilityTypeJsonConverter))] + public global::OpenRouter.EnumCapabilityType Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("values")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Values { 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 CapabilityDescriptorVariant2( + global::System.Collections.Generic.IList values, + global::OpenRouter.EnumCapabilityType type) + { + this.Type = type; + this.Values = values ?? throw new global::System.ArgumentNullException(nameof(values)); + } + + /// + /// Initializes a new instance of the class. + /// + public CapabilityDescriptorVariant2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CapabilityDescriptorVariant3.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CapabilityDescriptorVariant3.Json.g.cs new file mode 100644 index 00000000..e36acdf2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CapabilityDescriptorVariant3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class CapabilityDescriptorVariant3 + { + /// + /// 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.CapabilityDescriptorVariant3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.CapabilityDescriptorVariant3), + jsonSerializerContext) as global::OpenRouter.CapabilityDescriptorVariant3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.CapabilityDescriptorVariant3? 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.CapabilityDescriptorVariant3? 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.CapabilityDescriptorVariant3), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.CapabilityDescriptorVariant3; + } + + /// + /// 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.CapabilityDescriptorVariant3.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CapabilityDescriptorVariant3.g.cs new file mode 100644 index 00000000..71eb1124 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CapabilityDescriptorVariant3.g.cs @@ -0,0 +1,65 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// A parameter that accepts any value within an inclusive numeric range. + /// + public sealed partial class CapabilityDescriptorVariant3 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.RangeCapabilityTypeJsonConverter))] + public global::OpenRouter.RangeCapabilityType Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("max")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double Max { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("min")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double Min { 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 CapabilityDescriptorVariant3( + double max, + double min, + global::OpenRouter.RangeCapabilityType type) + { + this.Type = type; + this.Max = max; + this.Min = min; + } + + /// + /// Initializes a new instance of the class. + /// + public CapabilityDescriptorVariant3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ContentPartImage.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ContentPartImage.Json.g.cs new file mode 100644 index 00000000..517d9f09 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ContentPartImage.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ContentPartImage + { + /// + /// 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.ContentPartImage? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ContentPartImage), + jsonSerializerContext) as global::OpenRouter.ContentPartImage; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ContentPartImage? 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.ContentPartImage? 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.ContentPartImage), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ContentPartImage; + } + + /// + /// 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.ContentPartImage.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ContentPartImage.g.cs new file mode 100644 index 00000000..97b29ca7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ContentPartImage.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ContentPartImage + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("image_url")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.InputReferenceDiscriminatorMappingImageUrlImageUrl ImageUrl { 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 ContentPartImage( + global::OpenRouter.InputReferenceDiscriminatorMappingImageUrlImageUrl imageUrl) + { + this.ImageUrl = imageUrl ?? throw new global::System.ArgumentNullException(nameof(imageUrl)); + } + + /// + /// Initializes a new instance of the class. + /// + public ContentPartImage() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.EnumCapabilityType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.EnumCapabilityType.g.cs new file mode 100644 index 00000000..b4d8954d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.EnumCapabilityType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum EnumCapabilityType + { + /// + /// + /// + Enum, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class EnumCapabilityTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this EnumCapabilityType value) + { + return value switch + { + EnumCapabilityType.Enum => "enum", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static EnumCapabilityType? ToEnum(string value) + { + return value switch + { + "enum" => EnumCapabilityType.Enum, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.FusionServerToolConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.FusionServerToolConfig.g.cs index 93a00548..c01893b1 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.FusionServerToolConfig.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.FusionServerToolConfig.g.cs @@ -14,6 +14,12 @@ public sealed partial class FusionServerToolConfig [global::System.Text.Json.Serialization.JsonPropertyName("analysis_models")] public global::System.Collections.Generic.IList? AnalysisModels { get; set; } + /// + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cache_control")] + public global::OpenRouter.AnthropicCacheControlDirective? CacheControl { get; set; } + /// /// Maximum number of output tokens (including reasoning tokens) each panelist and the judge model may produce per inner call. Controls the total output budget so reasoning-heavy models like GPT-5.5 do not exhaust their token allowance before producing visible text. When omitted, the provider's default applies. /// @@ -62,6 +68,9 @@ public sealed partial class FusionServerToolConfig /// /// Slugs of models to run in parallel as the analysis panel. Each model receives the user prompt with openrouter:web_search and openrouter:web_fetch enabled, then a judge model summarizes the collective output into structured analysis JSON. Capped at 8 models to bound cost amplification. Defaults to the Quality preset from /labs/fusion. /// + /// + /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. + /// /// /// Maximum number of output tokens (including reasoning tokens) each panelist and the judge model may produce per inner call. Controls the total output budget so reasoning-heavy models like GPT-5.5 do not exhaust their token allowance before producing visible text. When omitted, the provider's default applies. /// @@ -85,6 +94,7 @@ public sealed partial class FusionServerToolConfig #endif public FusionServerToolConfig( global::System.Collections.Generic.IList? analysisModels, + global::OpenRouter.AnthropicCacheControlDirective? cacheControl, int? maxCompletionTokens, int? maxToolCalls, string? model, @@ -93,6 +103,7 @@ public FusionServerToolConfig( global::System.Collections.Generic.IList? tools) { this.AnalysisModels = analysisModels; + this.CacheControl = cacheControl; this.MaxCompletionTokens = maxCompletionTokens; this.MaxToolCalls = maxToolCalls; this.Model = model; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageEndpoint.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageEndpoint.Json.g.cs new file mode 100644 index 00000000..3565ea41 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageEndpoint.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageEndpoint + { + /// + /// 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.ImageEndpoint? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageEndpoint), + jsonSerializerContext) as global::OpenRouter.ImageEndpoint; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageEndpoint? 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.ImageEndpoint? 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.ImageEndpoint), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageEndpoint; + } + + /// + /// 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.ImageEndpoint.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageEndpoint.g.cs new file mode 100644 index 00000000..d0ae31bc --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageEndpoint.g.cs @@ -0,0 +1,116 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// An endpoint that serves a given image model. + /// + public sealed partial class ImageEndpoint + { + /// + /// Provider-specific options accepted under provider.options[provider_slug]. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("allowed_passthrough_parameters")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList AllowedPassthroughParameters { get; set; } + + /// + /// Billable pricing lines for this endpoint. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("pricing")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Pricing { get; set; } + + /// + /// Provider display name + /// + [global::System.Text.Json.Serialization.JsonPropertyName("provider_name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ProviderName { get; set; } + + /// + /// Provider slug + /// + [global::System.Text.Json.Serialization.JsonPropertyName("provider_slug")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ProviderSlug { get; set; } + + /// + /// Provider tag for request-side selection + /// + [global::System.Text.Json.Serialization.JsonPropertyName("provider_tag")] + public string? ProviderTag { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("supported_parameters")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object SupportedParameters { get; set; } + + /// + /// Whether this endpoint supports native SSE streaming (`stream: true` in the request). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("supports_streaming")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool SupportsStreaming { 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. + /// + /// + /// Provider-specific options accepted under provider.options[provider_slug]. + /// + /// + /// Billable pricing lines for this endpoint. + /// + /// + /// Provider display name + /// + /// + /// Provider slug + /// + /// + /// + /// Whether this endpoint supports native SSE streaming (`stream: true` in the request). + /// + /// + /// Provider tag for request-side selection + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ImageEndpoint( + global::System.Collections.Generic.IList allowedPassthroughParameters, + global::System.Collections.Generic.IList pricing, + string providerName, + string providerSlug, + object supportedParameters, + bool supportsStreaming, + string? providerTag) + { + this.AllowedPassthroughParameters = allowedPassthroughParameters ?? throw new global::System.ArgumentNullException(nameof(allowedPassthroughParameters)); + this.Pricing = pricing ?? throw new global::System.ArgumentNullException(nameof(pricing)); + this.ProviderName = providerName ?? throw new global::System.ArgumentNullException(nameof(providerName)); + this.ProviderSlug = providerSlug ?? throw new global::System.ArgumentNullException(nameof(providerSlug)); + this.ProviderTag = providerTag; + this.SupportedParameters = supportedParameters ?? throw new global::System.ArgumentNullException(nameof(supportedParameters)); + this.SupportsStreaming = supportsStreaming; + } + + /// + /// Initializes a new instance of the class. + /// + public ImageEndpoint() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageEndpointSupportedParameters.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageEndpointSupportedParameters.Json.g.cs new file mode 100644 index 00000000..b951dbc5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageEndpointSupportedParameters.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageEndpointSupportedParameters + { + /// + /// 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.ImageEndpointSupportedParameters? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageEndpointSupportedParameters), + jsonSerializerContext) as global::OpenRouter.ImageEndpointSupportedParameters; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageEndpointSupportedParameters? 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.ImageEndpointSupportedParameters? 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.ImageEndpointSupportedParameters), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageEndpointSupportedParameters; + } + + /// + /// 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.ImageEndpointSupportedParameters.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageEndpointSupportedParameters.g.cs new file mode 100644 index 00000000..56bb25e9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageEndpointSupportedParameters.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageEndpointSupportedParameters + { + + /// + /// 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.ImageGenerationRequest.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequest.Json.g.cs new file mode 100644 index 00000000..0af2856e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequest.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequest + { + /// + /// 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.ImageGenerationRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequest), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequest; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequest? 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.ImageGenerationRequest? 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.ImageGenerationRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequest; + } + + /// + /// 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.ImageGenerationRequest.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequest.g.cs new file mode 100644 index 00000000..5106230d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequest.g.cs @@ -0,0 +1,196 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Image generation request input + /// + public sealed partial class ImageGenerationRequest + { + /// + /// Normalized aspect ratio of the generated image. Providers clamp to their supported subset. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("aspect_ratio")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ImageGenerationRequestAspectRatioJsonConverter))] + public global::OpenRouter.ImageGenerationRequestAspectRatio? AspectRatio { get; set; } + + /// + /// Background treatment. `transparent` requires an output_format that supports alpha (png or webp). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("background")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ImageGenerationRequestBackgroundJsonConverter))] + public global::OpenRouter.ImageGenerationRequestBackground? Background { get; set; } + + /// + /// Reference images to guide image-to-image generation, as base64 data URLs or HTTP(S) URLs. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("input_references")] + public global::System.Collections.Generic.IList? InputReferences { get; set; } + + /// + /// The image generation model to use + /// + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Model { get; set; } + + /// + /// Number of images to generate (1-10). Providers that only support single-image generation reject n > 1. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("n")] + public int? N { get; set; } + + /// + /// Compression level (0-100) for webp/jpeg output. Ignored for png and by providers without a compression knob. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("output_compression")] + public int? OutputCompression { get; set; } + + /// + /// Encoding of the returned image bytes. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("output_format")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ImageGenerationRequestOutputFormatJsonConverter))] + public global::OpenRouter.ImageGenerationRequestOutputFormat? OutputFormat { get; set; } + + /// + /// Text description of the desired image + /// + [global::System.Text.Json.Serialization.JsonPropertyName("prompt")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Prompt { get; set; } + + /// + /// Provider-specific passthrough configuration + /// + [global::System.Text.Json.Serialization.JsonPropertyName("provider")] + public global::OpenRouter.ImageGenerationRequestProvider? Provider { get; set; } + + /// + /// Rendering quality. Providers without a quality knob ignore this. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("quality")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ImageGenerationRequestQualityJsonConverter))] + public global::OpenRouter.ImageGenerationRequestQuality? Quality { get; set; } + + /// + /// Normalized resolution tier of the generated image. Concrete pixel dimensions are derived per-provider. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("resolution")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ImageGenerationRequestResolutionJsonConverter))] + public global::OpenRouter.ImageGenerationRequestResolution? Resolution { get; set; } + + /// + /// If specified, the generation will sample deterministically, such that repeated requests with the same seed and parameters should return the same result. Determinism is not guaranteed for all providers. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("seed")] + public int? Seed { 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. Interchangeable with resolution + aspect_ratio; use those directly for enumerated, per-model discoverable values. Conflicting size + resolution/aspect_ratio is rejected. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("size")] + public string? Size { get; set; } + + /// + /// If true, partial images are streamed as SSE events as they become available. Only supported by providers with native streaming (currently OpenAI). Non-streaming providers ignore this flag and return a buffered response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("stream")] + public bool? Stream { 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 image generation model to use + /// + /// + /// Text description of the desired image + /// + /// + /// Normalized aspect ratio of the generated image. Providers clamp to their supported subset. + /// + /// + /// Background treatment. `transparent` requires an output_format that supports alpha (png or webp). + /// + /// + /// Reference images to guide image-to-image generation, as base64 data URLs or HTTP(S) URLs. + /// + /// + /// Number of images to generate (1-10). Providers that only support single-image generation reject n > 1. + /// + /// + /// Compression level (0-100) for webp/jpeg output. Ignored for png and by providers without a compression knob. + /// + /// + /// Encoding of the returned image bytes. + /// + /// + /// Provider-specific passthrough configuration + /// + /// + /// Rendering quality. Providers without a quality knob ignore this. + /// + /// + /// Normalized resolution tier of the generated image. Concrete pixel dimensions are derived per-provider. + /// + /// + /// If specified, the generation will sample deterministically, such that repeated requests with the same seed and parameters should return the same result. Determinism is not guaranteed for all providers. + /// + /// + /// 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. Interchangeable with resolution + aspect_ratio; use those directly for enumerated, per-model discoverable values. Conflicting size + resolution/aspect_ratio is rejected. + /// + /// + /// If true, partial images are streamed as SSE events as they become available. Only supported by providers with native streaming (currently OpenAI). Non-streaming providers ignore this flag and return a buffered response. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ImageGenerationRequest( + string model, + string prompt, + global::OpenRouter.ImageGenerationRequestAspectRatio? aspectRatio, + global::OpenRouter.ImageGenerationRequestBackground? background, + global::System.Collections.Generic.IList? inputReferences, + int? n, + int? outputCompression, + global::OpenRouter.ImageGenerationRequestOutputFormat? outputFormat, + global::OpenRouter.ImageGenerationRequestProvider? provider, + global::OpenRouter.ImageGenerationRequestQuality? quality, + global::OpenRouter.ImageGenerationRequestResolution? resolution, + int? seed, + string? size, + bool? stream) + { + this.AspectRatio = aspectRatio; + this.Background = background; + this.InputReferences = inputReferences; + this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model)); + this.N = n; + this.OutputCompression = outputCompression; + this.OutputFormat = outputFormat; + this.Prompt = prompt ?? throw new global::System.ArgumentNullException(nameof(prompt)); + this.Provider = provider; + this.Quality = quality; + this.Resolution = resolution; + this.Seed = seed; + this.Size = size; + this.Stream = stream; + } + + /// + /// Initializes a new instance of the class. + /// + public ImageGenerationRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestAspectRatio.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestAspectRatio.g.cs new file mode 100644 index 00000000..160603a5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestAspectRatio.g.cs @@ -0,0 +1,171 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Normalized aspect ratio of the generated image. Providers clamp to their supported subset. + /// + public enum ImageGenerationRequestAspectRatio + { + /// + /// + /// + x16_9, + /// + /// + /// + x195_9, + /// + /// + /// + x1_1, + /// + /// + /// + x1_2, + /// + /// + /// + x1_4, + /// + /// + /// + x1_8, + /// + /// + /// + x20_9, + /// + /// + /// + x21_9, + /// + /// + /// + x2_1, + /// + /// + /// + x2_3, + /// + /// + /// + x3_2, + /// + /// + /// + x3_4, + /// + /// + /// + x4_1, + /// + /// + /// + x4_3, + /// + /// + /// + x4_5, + /// + /// + /// + x5_4, + /// + /// + /// + x8_1, + /// + /// + /// + x9_16, + /// + /// + /// + x9_195, + /// + /// + /// + x9_20, + /// + /// + /// + x9_21, + /// + /// + /// + Auto, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ImageGenerationRequestAspectRatioExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ImageGenerationRequestAspectRatio value) + { + return value switch + { + ImageGenerationRequestAspectRatio.x16_9 => "16:9", + ImageGenerationRequestAspectRatio.x195_9 => "19.5:9", + ImageGenerationRequestAspectRatio.x1_1 => "1:1", + ImageGenerationRequestAspectRatio.x1_2 => "1:2", + ImageGenerationRequestAspectRatio.x1_4 => "1:4", + ImageGenerationRequestAspectRatio.x1_8 => "1:8", + ImageGenerationRequestAspectRatio.x20_9 => "20:9", + ImageGenerationRequestAspectRatio.x21_9 => "21:9", + ImageGenerationRequestAspectRatio.x2_1 => "2:1", + ImageGenerationRequestAspectRatio.x2_3 => "2:3", + ImageGenerationRequestAspectRatio.x3_2 => "3:2", + ImageGenerationRequestAspectRatio.x3_4 => "3:4", + ImageGenerationRequestAspectRatio.x4_1 => "4:1", + ImageGenerationRequestAspectRatio.x4_3 => "4:3", + ImageGenerationRequestAspectRatio.x4_5 => "4:5", + ImageGenerationRequestAspectRatio.x5_4 => "5:4", + ImageGenerationRequestAspectRatio.x8_1 => "8:1", + ImageGenerationRequestAspectRatio.x9_16 => "9:16", + ImageGenerationRequestAspectRatio.x9_195 => "9:19.5", + ImageGenerationRequestAspectRatio.x9_20 => "9:20", + ImageGenerationRequestAspectRatio.x9_21 => "9:21", + ImageGenerationRequestAspectRatio.Auto => "auto", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ImageGenerationRequestAspectRatio? ToEnum(string value) + { + return value switch + { + "16:9" => ImageGenerationRequestAspectRatio.x16_9, + "19.5:9" => ImageGenerationRequestAspectRatio.x195_9, + "1:1" => ImageGenerationRequestAspectRatio.x1_1, + "1:2" => ImageGenerationRequestAspectRatio.x1_2, + "1:4" => ImageGenerationRequestAspectRatio.x1_4, + "1:8" => ImageGenerationRequestAspectRatio.x1_8, + "20:9" => ImageGenerationRequestAspectRatio.x20_9, + "21:9" => ImageGenerationRequestAspectRatio.x21_9, + "2:1" => ImageGenerationRequestAspectRatio.x2_1, + "2:3" => ImageGenerationRequestAspectRatio.x2_3, + "3:2" => ImageGenerationRequestAspectRatio.x3_2, + "3:4" => ImageGenerationRequestAspectRatio.x3_4, + "4:1" => ImageGenerationRequestAspectRatio.x4_1, + "4:3" => ImageGenerationRequestAspectRatio.x4_3, + "4:5" => ImageGenerationRequestAspectRatio.x4_5, + "5:4" => ImageGenerationRequestAspectRatio.x5_4, + "8:1" => ImageGenerationRequestAspectRatio.x8_1, + "9:16" => ImageGenerationRequestAspectRatio.x9_16, + "9:19.5" => ImageGenerationRequestAspectRatio.x9_195, + "9:20" => ImageGenerationRequestAspectRatio.x9_20, + "9:21" => ImageGenerationRequestAspectRatio.x9_21, + "auto" => ImageGenerationRequestAspectRatio.Auto, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestBackground.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestBackground.g.cs new file mode 100644 index 00000000..95315402 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestBackground.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Background treatment. `transparent` requires an output_format that supports alpha (png or webp). + /// + public enum ImageGenerationRequestBackground + { + /// + /// + /// + Auto, + /// + /// + /// + Opaque, + /// + /// + /// + Transparent, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ImageGenerationRequestBackgroundExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ImageGenerationRequestBackground value) + { + return value switch + { + ImageGenerationRequestBackground.Auto => "auto", + ImageGenerationRequestBackground.Opaque => "opaque", + ImageGenerationRequestBackground.Transparent => "transparent", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ImageGenerationRequestBackground? ToEnum(string value) + { + return value switch + { + "auto" => ImageGenerationRequestBackground.Auto, + "opaque" => ImageGenerationRequestBackground.Opaque, + "transparent" => ImageGenerationRequestBackground.Transparent, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestOutputFormat.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestOutputFormat.g.cs new file mode 100644 index 00000000..117faa23 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestOutputFormat.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Encoding of the returned image bytes. + /// + public enum ImageGenerationRequestOutputFormat + { + /// + /// + /// + Jpeg, + /// + /// + /// + Png, + /// + /// + /// + Webp, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ImageGenerationRequestOutputFormatExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ImageGenerationRequestOutputFormat value) + { + return value switch + { + ImageGenerationRequestOutputFormat.Jpeg => "jpeg", + ImageGenerationRequestOutputFormat.Png => "png", + ImageGenerationRequestOutputFormat.Webp => "webp", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ImageGenerationRequestOutputFormat? ToEnum(string value) + { + return value switch + { + "jpeg" => ImageGenerationRequestOutputFormat.Jpeg, + "png" => ImageGenerationRequestOutputFormat.Png, + "webp" => ImageGenerationRequestOutputFormat.Webp, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProvider.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProvider.Json.g.cs new file mode 100644 index 00000000..597c2ef7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProvider.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProvider + { + /// + /// 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.ImageGenerationRequestProvider? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProvider), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProvider; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProvider? 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.ImageGenerationRequestProvider? 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.ImageGenerationRequestProvider), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProvider; + } + + /// + /// 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.ImageGenerationRequestProvider.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProvider.g.cs new file mode 100644 index 00000000..b2140bda --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProvider.g.cs @@ -0,0 +1,46 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Provider-specific passthrough configuration + /// + public sealed partial class ImageGenerationRequestProvider + { + /// + /// Provider-specific options keyed by provider slug. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("options")] + public global::OpenRouter.ImageGenerationRequestProviderOptions? Options { 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. + /// + /// + /// Provider-specific options keyed by provider slug. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ImageGenerationRequestProvider( + global::OpenRouter.ImageGenerationRequestProviderOptions? options) + { + this.Options = options; + } + + /// + /// Initializes a new instance of the class. + /// + public ImageGenerationRequestProvider() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptions.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptions.Json.g.cs new file mode 100644 index 00000000..822bc9de --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptions.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptions + { + /// + /// 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.ImageGenerationRequestProviderOptions? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptions), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptions; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptions? 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.ImageGenerationRequestProviderOptions? 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.ImageGenerationRequestProviderOptions), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptions; + } + + /// + /// 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.ImageGenerationRequestProviderOptions.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptions.g.cs new file mode 100644 index 00000000..89cf4930 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptions.g.cs @@ -0,0 +1,1070 @@ + +#nullable enable + +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. + /// + public sealed partial class ImageGenerationRequestProviderOptions + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("01ai")] + public object? x01ai { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("ai21")] + public object? Ai21 { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("aion-labs")] + public object? AionLabs { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("akashml")] + public object? Akashml { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("alibaba")] + public object? Alibaba { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("amazon-bedrock")] + public object? AmazonBedrock { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("amazon-nova")] + public object? AmazonNova { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("ambient")] + public object? Ambient { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("anthropic")] + public object? Anthropic { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("anyscale")] + public object? Anyscale { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("arcee-ai")] + public object? ArceeAi { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("atlas-cloud")] + public object? AtlasCloud { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("atoma")] + public object? Atoma { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("avian")] + public object? Avian { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("azure")] + public object? Azure { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("baidu")] + public object? Baidu { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("baseten")] + public object? Baseten { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("black-forest-labs")] + public object? BlackForestLabs { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("byteplus")] + public object? Byteplus { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("centml")] + public object? Centml { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cerebras")] + public object? Cerebras { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("chutes")] + public object? Chutes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cirrascale")] + public object? Cirrascale { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("clarifai")] + public object? Clarifai { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cloudflare")] + public object? Cloudflare { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cohere")] + public object? Cohere { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("crofai")] + public object? Crofai { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("crucible")] + public object? Crucible { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("crusoe")] + public object? Crusoe { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("darkbloom")] + public object? Darkbloom { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("decart")] + public object? Decart { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("deepinfra")] + public object? Deepinfra { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("deepseek")] + public object? Deepseek { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("dekallm")] + public object? Dekallm { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("digitalocean")] + public object? Digitalocean { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enfer")] + public object? Enfer { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("fake-provider")] + public object? FakeProvider { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("featherless")] + public object? Featherless { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("fireworks")] + public object? Fireworks { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("friendli")] + public object? Friendli { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("gmicloud")] + public object? Gmicloud { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("google-ai-studio")] + public object? GoogleAiStudio { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("google-vertex")] + public object? GoogleVertex { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("gopomelo")] + public object? Gopomelo { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("groq")] + public object? Groq { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("huggingface")] + public object? Huggingface { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("hyperbolic")] + public object? Hyperbolic { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("hyperbolic-quantized")] + public object? HyperbolicQuantized { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("inception")] + public object? Inception { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("inceptron")] + public object? Inceptron { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("inference-net")] + public object? InferenceNet { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("infermatic")] + public object? Infermatic { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("inflection")] + public object? Inflection { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("inocloud")] + public object? Inocloud { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("io-net")] + public object? IoNet { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("ionstream")] + public object? Ionstream { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("klusterai")] + public object? Klusterai { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("lambda")] + public object? Lambda { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("lepton")] + public object? Lepton { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("liquid")] + public object? Liquid { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("lynn")] + public object? Lynn { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("lynn-private")] + public object? LynnPrivate { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("mancer")] + public object? Mancer { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("mancer-old")] + public object? MancerOld { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("mara")] + public object? Mara { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("meta")] + public object? Meta { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("minimax")] + public object? Minimax { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("mistral")] + public object? Mistral { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("modal")] + public object? Modal { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("modelrun")] + public object? Modelrun { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("modular")] + public object? Modular { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("moonshotai")] + public object? Moonshotai { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("morph")] + public object? Morph { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("ncompass")] + public object? Ncompass { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("nebius")] + public object? Nebius { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("nex-agi")] + public object? NexAgi { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("nextbit")] + public object? Nextbit { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("nineteen")] + public object? Nineteen { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("novita")] + public object? Novita { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("nvidia")] + public object? Nvidia { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("octoai")] + public object? Octoai { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("open-inference")] + public object? OpenInference { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("openai")] + public object? Openai { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("parasail")] + public object? Parasail { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("perceptron")] + public object? Perceptron { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("perplexity")] + public object? Perplexity { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("phala")] + public object? Phala { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("poolside")] + public object? Poolside { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("recraft")] + public object? Recraft { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("recursal")] + public object? Recursal { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("reflection")] + public object? Reflection { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("reka")] + public object? Reka { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("relace")] + public object? Relace { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("replicate")] + public object? Replicate { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sambanova")] + public object? Sambanova { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sambanova-cloaked")] + public object? SambanovaCloaked { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("seed")] + public object? Seed { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sf-compute")] + public object? SfCompute { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("siliconflow")] + public object? Siliconflow { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sourceful")] + public object? Sourceful { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("stealth")] + public object? Stealth { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("stepfun")] + public object? Stepfun { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("streamlake")] + public object? Streamlake { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("switchpoint")] + public object? Switchpoint { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("targon")] + public object? Targon { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("together")] + public object? Together { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("together-lite")] + public object? TogetherLite { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("ubicloud")] + public object? Ubicloud { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("upstage")] + public object? Upstage { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("venice")] + public object? Venice { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("wafer")] + public object? Wafer { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("wandb")] + public object? Wandb { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("xai")] + public object? Xai { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("xiaomi")] + public object? Xiaomi { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("z-ai")] + public object? ZAi { 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 ImageGenerationRequestProviderOptions( + object? x01ai, + object? ai21, + object? aionLabs, + object? akashml, + object? alibaba, + object? amazonBedrock, + object? amazonNova, + object? ambient, + object? anthropic, + object? anyscale, + object? arceeAi, + object? atlasCloud, + object? atoma, + object? avian, + object? azure, + object? baidu, + object? baseten, + object? blackForestLabs, + object? byteplus, + object? centml, + object? cerebras, + object? chutes, + object? cirrascale, + object? clarifai, + object? cloudflare, + object? cohere, + object? crofai, + object? crucible, + object? crusoe, + object? darkbloom, + object? decart, + object? deepinfra, + object? deepseek, + object? dekallm, + object? digitalocean, + object? enfer, + object? fakeProvider, + object? featherless, + object? fireworks, + object? friendli, + object? gmicloud, + object? googleAiStudio, + object? googleVertex, + object? gopomelo, + object? groq, + object? huggingface, + object? hyperbolic, + object? hyperbolicQuantized, + object? inception, + object? inceptron, + object? inferenceNet, + object? infermatic, + object? inflection, + object? inocloud, + object? ioNet, + object? ionstream, + object? klusterai, + object? lambda, + object? lepton, + object? liquid, + object? lynn, + object? lynnPrivate, + object? mancer, + object? mancerOld, + object? mara, + object? meta, + object? minimax, + object? mistral, + object? modal, + object? modelrun, + object? modular, + object? moonshotai, + object? morph, + object? ncompass, + object? nebius, + object? nexAgi, + object? nextbit, + object? nineteen, + object? novita, + object? nvidia, + object? octoai, + object? openInference, + object? openai, + object? parasail, + object? perceptron, + object? perplexity, + object? phala, + object? poolside, + object? recraft, + object? recursal, + object? reflection, + object? reka, + object? relace, + object? replicate, + object? sambanova, + object? sambanovaCloaked, + object? seed, + object? sfCompute, + object? siliconflow, + object? sourceful, + object? stealth, + object? stepfun, + object? streamlake, + object? switchpoint, + object? targon, + object? together, + object? togetherLite, + object? ubicloud, + object? upstage, + object? venice, + object? wafer, + object? wandb, + object? xai, + object? xiaomi, + object? zAi) + { + this.x01ai = x01ai; + this.Ai21 = ai21; + this.AionLabs = aionLabs; + this.Akashml = akashml; + this.Alibaba = alibaba; + this.AmazonBedrock = amazonBedrock; + this.AmazonNova = amazonNova; + this.Ambient = ambient; + this.Anthropic = anthropic; + this.Anyscale = anyscale; + this.ArceeAi = arceeAi; + this.AtlasCloud = atlasCloud; + this.Atoma = atoma; + this.Avian = avian; + this.Azure = azure; + this.Baidu = baidu; + this.Baseten = baseten; + this.BlackForestLabs = blackForestLabs; + this.Byteplus = byteplus; + this.Centml = centml; + this.Cerebras = cerebras; + this.Chutes = chutes; + this.Cirrascale = cirrascale; + this.Clarifai = clarifai; + this.Cloudflare = cloudflare; + this.Cohere = cohere; + this.Crofai = crofai; + this.Crucible = crucible; + this.Crusoe = crusoe; + this.Darkbloom = darkbloom; + this.Decart = decart; + this.Deepinfra = deepinfra; + this.Deepseek = deepseek; + this.Dekallm = dekallm; + this.Digitalocean = digitalocean; + this.Enfer = enfer; + this.FakeProvider = fakeProvider; + this.Featherless = featherless; + this.Fireworks = fireworks; + this.Friendli = friendli; + this.Gmicloud = gmicloud; + this.GoogleAiStudio = googleAiStudio; + this.GoogleVertex = googleVertex; + this.Gopomelo = gopomelo; + this.Groq = groq; + this.Huggingface = huggingface; + this.Hyperbolic = hyperbolic; + this.HyperbolicQuantized = hyperbolicQuantized; + this.Inception = inception; + this.Inceptron = inceptron; + this.InferenceNet = inferenceNet; + this.Infermatic = infermatic; + this.Inflection = inflection; + this.Inocloud = inocloud; + this.IoNet = ioNet; + this.Ionstream = ionstream; + this.Klusterai = klusterai; + this.Lambda = lambda; + this.Lepton = lepton; + this.Liquid = liquid; + this.Lynn = lynn; + this.LynnPrivate = lynnPrivate; + this.Mancer = mancer; + this.MancerOld = mancerOld; + this.Mara = mara; + this.Meta = meta; + this.Minimax = minimax; + this.Mistral = mistral; + this.Modal = modal; + this.Modelrun = modelrun; + this.Modular = modular; + this.Moonshotai = moonshotai; + this.Morph = morph; + this.Ncompass = ncompass; + this.Nebius = nebius; + this.NexAgi = nexAgi; + this.Nextbit = nextbit; + this.Nineteen = nineteen; + this.Novita = novita; + this.Nvidia = nvidia; + this.Octoai = octoai; + this.OpenInference = openInference; + this.Openai = openai; + this.Parasail = parasail; + this.Perceptron = perceptron; + this.Perplexity = perplexity; + this.Phala = phala; + this.Poolside = poolside; + this.Recraft = recraft; + this.Recursal = recursal; + this.Reflection = reflection; + this.Reka = reka; + this.Relace = relace; + this.Replicate = replicate; + this.Sambanova = sambanova; + this.SambanovaCloaked = sambanovaCloaked; + this.Seed = seed; + this.SfCompute = sfCompute; + this.Siliconflow = siliconflow; + this.Sourceful = sourceful; + this.Stealth = stealth; + this.Stepfun = stepfun; + this.Streamlake = streamlake; + this.Switchpoint = switchpoint; + this.Targon = targon; + this.Together = together; + this.TogetherLite = togetherLite; + this.Ubicloud = ubicloud; + this.Upstage = upstage; + this.Venice = venice; + this.Wafer = wafer; + this.Wandb = wandb; + this.Xai = xai; + this.Xiaomi = xiaomi; + this.ZAi = zAi; + } + + /// + /// Initializes a new instance of the class. + /// + public ImageGenerationRequestProviderOptions() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAi21.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAi21.Json.g.cs new file mode 100644 index 00000000..e95953d1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAi21.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsAi21 + { + /// + /// 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.ImageGenerationRequestProviderOptionsAi21? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAi21), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAi21; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsAi21? 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.ImageGenerationRequestProviderOptionsAi21? 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.ImageGenerationRequestProviderOptionsAi21), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAi21; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsAi21.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAi21.g.cs new file mode 100644 index 00000000..af890e19 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAi21.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsAi21 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsAi212.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAi212.Json.g.cs new file mode 100644 index 00000000..a625c056 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAi212.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsAi212 + { + /// + /// 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.ImageGenerationRequestProviderOptionsAi212? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAi212), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAi212; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsAi212? 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.ImageGenerationRequestProviderOptionsAi212? 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.ImageGenerationRequestProviderOptionsAi212), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAi212; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsAi212.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAi212.g.cs new file mode 100644 index 00000000..ec65645e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAi212.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsAi212 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsAionLabs.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAionLabs.Json.g.cs new file mode 100644 index 00000000..ddc4fa6b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAionLabs.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsAionLabs + { + /// + /// 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.ImageGenerationRequestProviderOptionsAionLabs? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAionLabs), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAionLabs; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsAionLabs? 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.ImageGenerationRequestProviderOptionsAionLabs? 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.ImageGenerationRequestProviderOptionsAionLabs), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAionLabs; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsAionLabs.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAionLabs.g.cs new file mode 100644 index 00000000..4860905f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAionLabs.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsAionLabs + { + + /// + /// 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.ImageGenerationRequestProviderOptionsAionLabs2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAionLabs2.Json.g.cs new file mode 100644 index 00000000..e873ec94 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAionLabs2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsAionLabs2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsAionLabs2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAionLabs2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAionLabs2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsAionLabs2? 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.ImageGenerationRequestProviderOptionsAionLabs2? 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.ImageGenerationRequestProviderOptionsAionLabs2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAionLabs2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsAionLabs2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAionLabs2.g.cs new file mode 100644 index 00000000..e2cc3391 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAionLabs2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsAionLabs2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsAkashml.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAkashml.Json.g.cs new file mode 100644 index 00000000..bd98fb6e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAkashml.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsAkashml + { + /// + /// 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.ImageGenerationRequestProviderOptionsAkashml? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAkashml), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAkashml; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsAkashml? 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.ImageGenerationRequestProviderOptionsAkashml? 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.ImageGenerationRequestProviderOptionsAkashml), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAkashml; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsAkashml.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAkashml.g.cs new file mode 100644 index 00000000..854af3db --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAkashml.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsAkashml + { + + /// + /// 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.ImageGenerationRequestProviderOptionsAkashml2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAkashml2.Json.g.cs new file mode 100644 index 00000000..570c811a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAkashml2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsAkashml2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsAkashml2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAkashml2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAkashml2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsAkashml2? 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.ImageGenerationRequestProviderOptionsAkashml2? 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.ImageGenerationRequestProviderOptionsAkashml2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAkashml2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsAkashml2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAkashml2.g.cs new file mode 100644 index 00000000..92e7cec7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAkashml2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsAkashml2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsAlibaba.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAlibaba.Json.g.cs new file mode 100644 index 00000000..50cf180f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAlibaba.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsAlibaba + { + /// + /// 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.ImageGenerationRequestProviderOptionsAlibaba? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAlibaba), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAlibaba; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsAlibaba? 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.ImageGenerationRequestProviderOptionsAlibaba? 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.ImageGenerationRequestProviderOptionsAlibaba), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAlibaba; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsAlibaba.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAlibaba.g.cs new file mode 100644 index 00000000..108acf3c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAlibaba.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsAlibaba + { + + /// + /// 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.ImageGenerationRequestProviderOptionsAlibaba2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAlibaba2.Json.g.cs new file mode 100644 index 00000000..af6874bb --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAlibaba2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsAlibaba2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsAlibaba2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAlibaba2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAlibaba2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsAlibaba2? 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.ImageGenerationRequestProviderOptionsAlibaba2? 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.ImageGenerationRequestProviderOptionsAlibaba2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAlibaba2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsAlibaba2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAlibaba2.g.cs new file mode 100644 index 00000000..3751e441 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAlibaba2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsAlibaba2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsAmazonBedrock.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmazonBedrock.Json.g.cs new file mode 100644 index 00000000..7d72fb13 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmazonBedrock.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsAmazonBedrock + { + /// + /// 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.ImageGenerationRequestProviderOptionsAmazonBedrock? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAmazonBedrock), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAmazonBedrock; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsAmazonBedrock? 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.ImageGenerationRequestProviderOptionsAmazonBedrock? 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.ImageGenerationRequestProviderOptionsAmazonBedrock), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAmazonBedrock; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsAmazonBedrock.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmazonBedrock.g.cs new file mode 100644 index 00000000..8e10af9a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmazonBedrock.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsAmazonBedrock + { + + /// + /// 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.ImageGenerationRequestProviderOptionsAmazonBedrock2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmazonBedrock2.Json.g.cs new file mode 100644 index 00000000..72b870f2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmazonBedrock2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsAmazonBedrock2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsAmazonBedrock2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAmazonBedrock2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAmazonBedrock2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsAmazonBedrock2? 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.ImageGenerationRequestProviderOptionsAmazonBedrock2? 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.ImageGenerationRequestProviderOptionsAmazonBedrock2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAmazonBedrock2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsAmazonBedrock2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmazonBedrock2.g.cs new file mode 100644 index 00000000..d69c144b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmazonBedrock2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsAmazonBedrock2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsAmazonNova.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmazonNova.Json.g.cs new file mode 100644 index 00000000..b10eca72 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmazonNova.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsAmazonNova + { + /// + /// 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.ImageGenerationRequestProviderOptionsAmazonNova? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAmazonNova), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAmazonNova; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsAmazonNova? 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.ImageGenerationRequestProviderOptionsAmazonNova? 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.ImageGenerationRequestProviderOptionsAmazonNova), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAmazonNova; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsAmazonNova.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmazonNova.g.cs new file mode 100644 index 00000000..8c0428a0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmazonNova.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsAmazonNova + { + + /// + /// 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.ImageGenerationRequestProviderOptionsAmazonNova2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmazonNova2.Json.g.cs new file mode 100644 index 00000000..ff0deb97 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmazonNova2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsAmazonNova2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsAmazonNova2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAmazonNova2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAmazonNova2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsAmazonNova2? 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.ImageGenerationRequestProviderOptionsAmazonNova2? 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.ImageGenerationRequestProviderOptionsAmazonNova2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAmazonNova2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsAmazonNova2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmazonNova2.g.cs new file mode 100644 index 00000000..ed862e1f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmazonNova2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsAmazonNova2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsAmbient.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmbient.Json.g.cs new file mode 100644 index 00000000..c43bb42f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmbient.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsAmbient + { + /// + /// 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.ImageGenerationRequestProviderOptionsAmbient? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAmbient), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAmbient; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsAmbient? 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.ImageGenerationRequestProviderOptionsAmbient? 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.ImageGenerationRequestProviderOptionsAmbient), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAmbient; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsAmbient.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmbient.g.cs new file mode 100644 index 00000000..3e21c2d6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmbient.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsAmbient + { + + /// + /// 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.ImageGenerationRequestProviderOptionsAmbient2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmbient2.Json.g.cs new file mode 100644 index 00000000..2b75f395 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmbient2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsAmbient2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsAmbient2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAmbient2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAmbient2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsAmbient2? 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.ImageGenerationRequestProviderOptionsAmbient2? 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.ImageGenerationRequestProviderOptionsAmbient2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAmbient2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsAmbient2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmbient2.g.cs new file mode 100644 index 00000000..1635d487 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAmbient2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsAmbient2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsAnthropic.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAnthropic.Json.g.cs new file mode 100644 index 00000000..014c3b76 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAnthropic.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsAnthropic + { + /// + /// 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.ImageGenerationRequestProviderOptionsAnthropic? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAnthropic), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAnthropic; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsAnthropic? 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.ImageGenerationRequestProviderOptionsAnthropic? 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.ImageGenerationRequestProviderOptionsAnthropic), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAnthropic; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsAnthropic.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAnthropic.g.cs new file mode 100644 index 00000000..f4dd19dc --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAnthropic.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsAnthropic + { + + /// + /// 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.ImageGenerationRequestProviderOptionsAnthropic2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAnthropic2.Json.g.cs new file mode 100644 index 00000000..9832902a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAnthropic2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsAnthropic2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsAnthropic2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAnthropic2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAnthropic2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsAnthropic2? 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.ImageGenerationRequestProviderOptionsAnthropic2? 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.ImageGenerationRequestProviderOptionsAnthropic2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAnthropic2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsAnthropic2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAnthropic2.g.cs new file mode 100644 index 00000000..a9b4153f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAnthropic2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsAnthropic2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsAnyscale.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAnyscale.Json.g.cs new file mode 100644 index 00000000..f34ab727 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAnyscale.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsAnyscale + { + /// + /// 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.ImageGenerationRequestProviderOptionsAnyscale? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAnyscale), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAnyscale; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsAnyscale? 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.ImageGenerationRequestProviderOptionsAnyscale? 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.ImageGenerationRequestProviderOptionsAnyscale), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAnyscale; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsAnyscale.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAnyscale.g.cs new file mode 100644 index 00000000..8a882b20 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAnyscale.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsAnyscale + { + + /// + /// 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.ImageGenerationRequestProviderOptionsAnyscale2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAnyscale2.Json.g.cs new file mode 100644 index 00000000..ac37e77a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAnyscale2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsAnyscale2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsAnyscale2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAnyscale2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAnyscale2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsAnyscale2? 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.ImageGenerationRequestProviderOptionsAnyscale2? 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.ImageGenerationRequestProviderOptionsAnyscale2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAnyscale2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsAnyscale2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAnyscale2.g.cs new file mode 100644 index 00000000..26262492 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAnyscale2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsAnyscale2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsArceeAi.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsArceeAi.Json.g.cs new file mode 100644 index 00000000..b5a94a1a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsArceeAi.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsArceeAi + { + /// + /// 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.ImageGenerationRequestProviderOptionsArceeAi? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsArceeAi), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsArceeAi; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsArceeAi? 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.ImageGenerationRequestProviderOptionsArceeAi? 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.ImageGenerationRequestProviderOptionsArceeAi), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsArceeAi; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsArceeAi.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsArceeAi.g.cs new file mode 100644 index 00000000..a7de87da --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsArceeAi.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsArceeAi + { + + /// + /// 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.ImageGenerationRequestProviderOptionsArceeAi2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsArceeAi2.Json.g.cs new file mode 100644 index 00000000..b4a7f6ef --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsArceeAi2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsArceeAi2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsArceeAi2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsArceeAi2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsArceeAi2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsArceeAi2? 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.ImageGenerationRequestProviderOptionsArceeAi2? 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.ImageGenerationRequestProviderOptionsArceeAi2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsArceeAi2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsArceeAi2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsArceeAi2.g.cs new file mode 100644 index 00000000..656dd737 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsArceeAi2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsArceeAi2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsAtlasCloud.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAtlasCloud.Json.g.cs new file mode 100644 index 00000000..76ea62c6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAtlasCloud.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsAtlasCloud + { + /// + /// 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.ImageGenerationRequestProviderOptionsAtlasCloud? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAtlasCloud), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAtlasCloud; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsAtlasCloud? 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.ImageGenerationRequestProviderOptionsAtlasCloud? 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.ImageGenerationRequestProviderOptionsAtlasCloud), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAtlasCloud; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsAtlasCloud.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAtlasCloud.g.cs new file mode 100644 index 00000000..ad0b83e6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAtlasCloud.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsAtlasCloud + { + + /// + /// 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.ImageGenerationRequestProviderOptionsAtlasCloud2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAtlasCloud2.Json.g.cs new file mode 100644 index 00000000..e1b3a197 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAtlasCloud2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsAtlasCloud2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsAtlasCloud2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAtlasCloud2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAtlasCloud2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsAtlasCloud2? 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.ImageGenerationRequestProviderOptionsAtlasCloud2? 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.ImageGenerationRequestProviderOptionsAtlasCloud2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAtlasCloud2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsAtlasCloud2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAtlasCloud2.g.cs new file mode 100644 index 00000000..694c1442 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAtlasCloud2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsAtlasCloud2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsAtoma.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAtoma.Json.g.cs new file mode 100644 index 00000000..07e7ac29 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAtoma.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsAtoma + { + /// + /// 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.ImageGenerationRequestProviderOptionsAtoma? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAtoma), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAtoma; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsAtoma? 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.ImageGenerationRequestProviderOptionsAtoma? 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.ImageGenerationRequestProviderOptionsAtoma), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAtoma; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsAtoma.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAtoma.g.cs new file mode 100644 index 00000000..7a05d623 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAtoma.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsAtoma + { + + /// + /// 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.ImageGenerationRequestProviderOptionsAtoma2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAtoma2.Json.g.cs new file mode 100644 index 00000000..4116af7f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAtoma2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsAtoma2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsAtoma2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAtoma2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAtoma2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsAtoma2? 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.ImageGenerationRequestProviderOptionsAtoma2? 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.ImageGenerationRequestProviderOptionsAtoma2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAtoma2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsAtoma2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAtoma2.g.cs new file mode 100644 index 00000000..eab3e695 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAtoma2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsAtoma2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsAvian.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAvian.Json.g.cs new file mode 100644 index 00000000..e2b5f42c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAvian.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsAvian + { + /// + /// 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.ImageGenerationRequestProviderOptionsAvian? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAvian), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAvian; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsAvian? 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.ImageGenerationRequestProviderOptionsAvian? 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.ImageGenerationRequestProviderOptionsAvian), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAvian; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsAvian.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAvian.g.cs new file mode 100644 index 00000000..e9092969 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAvian.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsAvian + { + + /// + /// 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.ImageGenerationRequestProviderOptionsAvian2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAvian2.Json.g.cs new file mode 100644 index 00000000..768d7534 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAvian2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsAvian2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsAvian2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAvian2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAvian2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsAvian2? 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.ImageGenerationRequestProviderOptionsAvian2? 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.ImageGenerationRequestProviderOptionsAvian2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAvian2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsAvian2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAvian2.g.cs new file mode 100644 index 00000000..7baabfe7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAvian2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsAvian2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsAzure.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAzure.Json.g.cs new file mode 100644 index 00000000..beadd73c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAzure.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsAzure + { + /// + /// 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.ImageGenerationRequestProviderOptionsAzure? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAzure), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAzure; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsAzure? 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.ImageGenerationRequestProviderOptionsAzure? 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.ImageGenerationRequestProviderOptionsAzure), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAzure; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsAzure.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAzure.g.cs new file mode 100644 index 00000000..704b173f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAzure.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsAzure + { + + /// + /// 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.ImageGenerationRequestProviderOptionsAzure2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAzure2.Json.g.cs new file mode 100644 index 00000000..c97d47a2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAzure2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsAzure2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsAzure2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsAzure2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsAzure2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsAzure2? 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.ImageGenerationRequestProviderOptionsAzure2? 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.ImageGenerationRequestProviderOptionsAzure2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsAzure2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsAzure2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAzure2.g.cs new file mode 100644 index 00000000..1b155ab8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsAzure2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsAzure2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsBaidu.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBaidu.Json.g.cs new file mode 100644 index 00000000..d669c6b2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBaidu.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsBaidu + { + /// + /// 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.ImageGenerationRequestProviderOptionsBaidu? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsBaidu), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsBaidu; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsBaidu? 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.ImageGenerationRequestProviderOptionsBaidu? 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.ImageGenerationRequestProviderOptionsBaidu), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsBaidu; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsBaidu.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBaidu.g.cs new file mode 100644 index 00000000..2361c8b0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBaidu.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsBaidu + { + + /// + /// 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.ImageGenerationRequestProviderOptionsBaidu2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBaidu2.Json.g.cs new file mode 100644 index 00000000..d4a61522 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBaidu2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsBaidu2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsBaidu2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsBaidu2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsBaidu2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsBaidu2? 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.ImageGenerationRequestProviderOptionsBaidu2? 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.ImageGenerationRequestProviderOptionsBaidu2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsBaidu2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsBaidu2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBaidu2.g.cs new file mode 100644 index 00000000..91fe6dd2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBaidu2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsBaidu2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsBaseten.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBaseten.Json.g.cs new file mode 100644 index 00000000..e87ed76e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBaseten.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsBaseten + { + /// + /// 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.ImageGenerationRequestProviderOptionsBaseten? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsBaseten), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsBaseten; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsBaseten? 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.ImageGenerationRequestProviderOptionsBaseten? 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.ImageGenerationRequestProviderOptionsBaseten), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsBaseten; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsBaseten.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBaseten.g.cs new file mode 100644 index 00000000..fe7f7e78 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBaseten.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsBaseten + { + + /// + /// 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.ImageGenerationRequestProviderOptionsBaseten2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBaseten2.Json.g.cs new file mode 100644 index 00000000..c41dc08a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBaseten2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsBaseten2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsBaseten2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsBaseten2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsBaseten2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsBaseten2? 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.ImageGenerationRequestProviderOptionsBaseten2? 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.ImageGenerationRequestProviderOptionsBaseten2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsBaseten2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsBaseten2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBaseten2.g.cs new file mode 100644 index 00000000..5fffefa6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBaseten2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsBaseten2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsBlackForestLabs.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBlackForestLabs.Json.g.cs new file mode 100644 index 00000000..b8efa9f4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBlackForestLabs.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsBlackForestLabs + { + /// + /// 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.ImageGenerationRequestProviderOptionsBlackForestLabs? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsBlackForestLabs), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsBlackForestLabs; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsBlackForestLabs? 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.ImageGenerationRequestProviderOptionsBlackForestLabs? 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.ImageGenerationRequestProviderOptionsBlackForestLabs), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsBlackForestLabs; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsBlackForestLabs.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBlackForestLabs.g.cs new file mode 100644 index 00000000..62515c87 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBlackForestLabs.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsBlackForestLabs + { + + /// + /// 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.ImageGenerationRequestProviderOptionsBlackForestLabs2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBlackForestLabs2.Json.g.cs new file mode 100644 index 00000000..6057b725 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBlackForestLabs2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsBlackForestLabs2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsBlackForestLabs2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsBlackForestLabs2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsBlackForestLabs2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsBlackForestLabs2? 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.ImageGenerationRequestProviderOptionsBlackForestLabs2? 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.ImageGenerationRequestProviderOptionsBlackForestLabs2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsBlackForestLabs2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsBlackForestLabs2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBlackForestLabs2.g.cs new file mode 100644 index 00000000..cb682ec6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsBlackForestLabs2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsBlackForestLabs2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsByteplus.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsByteplus.Json.g.cs new file mode 100644 index 00000000..47f8fdb0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsByteplus.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsByteplus + { + /// + /// 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.ImageGenerationRequestProviderOptionsByteplus? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsByteplus), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsByteplus; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsByteplus? 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.ImageGenerationRequestProviderOptionsByteplus? 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.ImageGenerationRequestProviderOptionsByteplus), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsByteplus; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsByteplus.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsByteplus.g.cs new file mode 100644 index 00000000..b0e24fd7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsByteplus.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsByteplus + { + + /// + /// 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.ImageGenerationRequestProviderOptionsByteplus2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsByteplus2.Json.g.cs new file mode 100644 index 00000000..74b2a841 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsByteplus2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsByteplus2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsByteplus2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsByteplus2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsByteplus2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsByteplus2? 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.ImageGenerationRequestProviderOptionsByteplus2? 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.ImageGenerationRequestProviderOptionsByteplus2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsByteplus2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsByteplus2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsByteplus2.g.cs new file mode 100644 index 00000000..c882a6d6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsByteplus2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsByteplus2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsCentml.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCentml.Json.g.cs new file mode 100644 index 00000000..3ce2bbfe --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCentml.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsCentml + { + /// + /// 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.ImageGenerationRequestProviderOptionsCentml? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsCentml), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsCentml; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsCentml? 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.ImageGenerationRequestProviderOptionsCentml? 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.ImageGenerationRequestProviderOptionsCentml), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsCentml; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsCentml.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCentml.g.cs new file mode 100644 index 00000000..2629509b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCentml.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsCentml + { + + /// + /// 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.ImageGenerationRequestProviderOptionsCentml2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCentml2.Json.g.cs new file mode 100644 index 00000000..22e5f11a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCentml2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsCentml2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsCentml2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsCentml2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsCentml2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsCentml2? 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.ImageGenerationRequestProviderOptionsCentml2? 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.ImageGenerationRequestProviderOptionsCentml2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsCentml2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsCentml2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCentml2.g.cs new file mode 100644 index 00000000..f7176f98 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCentml2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsCentml2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsCerebras.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCerebras.Json.g.cs new file mode 100644 index 00000000..4e11a770 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCerebras.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsCerebras + { + /// + /// 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.ImageGenerationRequestProviderOptionsCerebras? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsCerebras), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsCerebras; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsCerebras? 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.ImageGenerationRequestProviderOptionsCerebras? 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.ImageGenerationRequestProviderOptionsCerebras), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsCerebras; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsCerebras.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCerebras.g.cs new file mode 100644 index 00000000..bcae5ec0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCerebras.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsCerebras + { + + /// + /// 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.ImageGenerationRequestProviderOptionsCerebras2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCerebras2.Json.g.cs new file mode 100644 index 00000000..638bc603 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCerebras2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsCerebras2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsCerebras2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsCerebras2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsCerebras2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsCerebras2? 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.ImageGenerationRequestProviderOptionsCerebras2? 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.ImageGenerationRequestProviderOptionsCerebras2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsCerebras2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsCerebras2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCerebras2.g.cs new file mode 100644 index 00000000..1f48eaec --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCerebras2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsCerebras2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsChutes.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsChutes.Json.g.cs new file mode 100644 index 00000000..8df36123 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsChutes.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsChutes + { + /// + /// 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.ImageGenerationRequestProviderOptionsChutes? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsChutes), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsChutes; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsChutes? 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.ImageGenerationRequestProviderOptionsChutes? 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.ImageGenerationRequestProviderOptionsChutes), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsChutes; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsChutes.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsChutes.g.cs new file mode 100644 index 00000000..57a14e14 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsChutes.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsChutes + { + + /// + /// 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.ImageGenerationRequestProviderOptionsChutes2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsChutes2.Json.g.cs new file mode 100644 index 00000000..7542499f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsChutes2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsChutes2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsChutes2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsChutes2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsChutes2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsChutes2? 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.ImageGenerationRequestProviderOptionsChutes2? 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.ImageGenerationRequestProviderOptionsChutes2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsChutes2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsChutes2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsChutes2.g.cs new file mode 100644 index 00000000..7ab9f825 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsChutes2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsChutes2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsCirrascale.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCirrascale.Json.g.cs new file mode 100644 index 00000000..2802c6be --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCirrascale.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsCirrascale + { + /// + /// 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.ImageGenerationRequestProviderOptionsCirrascale? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsCirrascale), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsCirrascale; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsCirrascale? 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.ImageGenerationRequestProviderOptionsCirrascale? 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.ImageGenerationRequestProviderOptionsCirrascale), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsCirrascale; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsCirrascale.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCirrascale.g.cs new file mode 100644 index 00000000..8bf121dd --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCirrascale.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsCirrascale + { + + /// + /// 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.ImageGenerationRequestProviderOptionsCirrascale2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCirrascale2.Json.g.cs new file mode 100644 index 00000000..3dfeeb7e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCirrascale2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsCirrascale2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsCirrascale2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsCirrascale2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsCirrascale2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsCirrascale2? 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.ImageGenerationRequestProviderOptionsCirrascale2? 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.ImageGenerationRequestProviderOptionsCirrascale2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsCirrascale2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsCirrascale2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCirrascale2.g.cs new file mode 100644 index 00000000..778fd09d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCirrascale2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsCirrascale2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsClarifai.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsClarifai.Json.g.cs new file mode 100644 index 00000000..d50e3744 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsClarifai.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsClarifai + { + /// + /// 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.ImageGenerationRequestProviderOptionsClarifai? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsClarifai), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsClarifai; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsClarifai? 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.ImageGenerationRequestProviderOptionsClarifai? 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.ImageGenerationRequestProviderOptionsClarifai), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsClarifai; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsClarifai.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsClarifai.g.cs new file mode 100644 index 00000000..3545cf5d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsClarifai.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsClarifai + { + + /// + /// 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.ImageGenerationRequestProviderOptionsClarifai2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsClarifai2.Json.g.cs new file mode 100644 index 00000000..cb52e7e5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsClarifai2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsClarifai2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsClarifai2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsClarifai2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsClarifai2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsClarifai2? 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.ImageGenerationRequestProviderOptionsClarifai2? 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.ImageGenerationRequestProviderOptionsClarifai2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsClarifai2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsClarifai2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsClarifai2.g.cs new file mode 100644 index 00000000..ea8ae1a3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsClarifai2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsClarifai2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsCloudflare.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCloudflare.Json.g.cs new file mode 100644 index 00000000..1a2d2f18 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCloudflare.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsCloudflare + { + /// + /// 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.ImageGenerationRequestProviderOptionsCloudflare? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsCloudflare), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsCloudflare; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsCloudflare? 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.ImageGenerationRequestProviderOptionsCloudflare? 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.ImageGenerationRequestProviderOptionsCloudflare), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsCloudflare; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsCloudflare.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCloudflare.g.cs new file mode 100644 index 00000000..9be82765 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCloudflare.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsCloudflare + { + + /// + /// 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.ImageGenerationRequestProviderOptionsCloudflare2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCloudflare2.Json.g.cs new file mode 100644 index 00000000..6f7dd72e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCloudflare2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsCloudflare2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsCloudflare2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsCloudflare2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsCloudflare2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsCloudflare2? 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.ImageGenerationRequestProviderOptionsCloudflare2? 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.ImageGenerationRequestProviderOptionsCloudflare2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsCloudflare2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsCloudflare2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCloudflare2.g.cs new file mode 100644 index 00000000..288c7b6b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCloudflare2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsCloudflare2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsCohere.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCohere.Json.g.cs new file mode 100644 index 00000000..9b96d10c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCohere.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsCohere + { + /// + /// 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.ImageGenerationRequestProviderOptionsCohere? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsCohere), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsCohere; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsCohere? 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.ImageGenerationRequestProviderOptionsCohere? 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.ImageGenerationRequestProviderOptionsCohere), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsCohere; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsCohere.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCohere.g.cs new file mode 100644 index 00000000..22b0696f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCohere.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsCohere + { + + /// + /// 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.ImageGenerationRequestProviderOptionsCohere2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCohere2.Json.g.cs new file mode 100644 index 00000000..a9b21419 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCohere2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsCohere2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsCohere2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsCohere2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsCohere2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsCohere2? 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.ImageGenerationRequestProviderOptionsCohere2? 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.ImageGenerationRequestProviderOptionsCohere2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsCohere2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsCohere2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCohere2.g.cs new file mode 100644 index 00000000..25b29842 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCohere2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsCohere2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsCrofai.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrofai.Json.g.cs new file mode 100644 index 00000000..ae864bf1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrofai.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsCrofai + { + /// + /// 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.ImageGenerationRequestProviderOptionsCrofai? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsCrofai), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsCrofai; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsCrofai? 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.ImageGenerationRequestProviderOptionsCrofai? 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.ImageGenerationRequestProviderOptionsCrofai), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsCrofai; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsCrofai.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrofai.g.cs new file mode 100644 index 00000000..0969a49d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrofai.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsCrofai + { + + /// + /// 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.ImageGenerationRequestProviderOptionsCrofai2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrofai2.Json.g.cs new file mode 100644 index 00000000..80d2b37b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrofai2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsCrofai2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsCrofai2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsCrofai2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsCrofai2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsCrofai2? 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.ImageGenerationRequestProviderOptionsCrofai2? 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.ImageGenerationRequestProviderOptionsCrofai2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsCrofai2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsCrofai2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrofai2.g.cs new file mode 100644 index 00000000..98a6a0f0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrofai2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsCrofai2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsCrucible.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrucible.Json.g.cs new file mode 100644 index 00000000..c71121c0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrucible.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsCrucible + { + /// + /// 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.ImageGenerationRequestProviderOptionsCrucible? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsCrucible), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsCrucible; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsCrucible? 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.ImageGenerationRequestProviderOptionsCrucible? 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.ImageGenerationRequestProviderOptionsCrucible), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsCrucible; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsCrucible.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrucible.g.cs new file mode 100644 index 00000000..34319ed9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrucible.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsCrucible + { + + /// + /// 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.ImageGenerationRequestProviderOptionsCrucible2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrucible2.Json.g.cs new file mode 100644 index 00000000..3ae41c00 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrucible2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsCrucible2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsCrucible2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsCrucible2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsCrucible2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsCrucible2? 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.ImageGenerationRequestProviderOptionsCrucible2? 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.ImageGenerationRequestProviderOptionsCrucible2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsCrucible2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsCrucible2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrucible2.g.cs new file mode 100644 index 00000000..7879df73 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrucible2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsCrucible2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsCrusoe.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrusoe.Json.g.cs new file mode 100644 index 00000000..db3a417c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrusoe.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsCrusoe + { + /// + /// 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.ImageGenerationRequestProviderOptionsCrusoe? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsCrusoe), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsCrusoe; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsCrusoe? 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.ImageGenerationRequestProviderOptionsCrusoe? 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.ImageGenerationRequestProviderOptionsCrusoe), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsCrusoe; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsCrusoe.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrusoe.g.cs new file mode 100644 index 00000000..d959d9af --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrusoe.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsCrusoe + { + + /// + /// 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.ImageGenerationRequestProviderOptionsCrusoe2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrusoe2.Json.g.cs new file mode 100644 index 00000000..ffd94b89 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrusoe2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsCrusoe2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsCrusoe2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsCrusoe2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsCrusoe2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsCrusoe2? 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.ImageGenerationRequestProviderOptionsCrusoe2? 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.ImageGenerationRequestProviderOptionsCrusoe2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsCrusoe2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsCrusoe2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrusoe2.g.cs new file mode 100644 index 00000000..df86028d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsCrusoe2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsCrusoe2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsDarkbloom.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDarkbloom.Json.g.cs new file mode 100644 index 00000000..44af8208 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDarkbloom.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsDarkbloom + { + /// + /// 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.ImageGenerationRequestProviderOptionsDarkbloom? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsDarkbloom), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsDarkbloom; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsDarkbloom? 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.ImageGenerationRequestProviderOptionsDarkbloom? 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.ImageGenerationRequestProviderOptionsDarkbloom), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsDarkbloom; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsDarkbloom.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDarkbloom.g.cs new file mode 100644 index 00000000..8b96ca47 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDarkbloom.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsDarkbloom + { + + /// + /// 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.ImageGenerationRequestProviderOptionsDarkbloom2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDarkbloom2.Json.g.cs new file mode 100644 index 00000000..1c64145d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDarkbloom2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsDarkbloom2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsDarkbloom2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsDarkbloom2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsDarkbloom2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsDarkbloom2? 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.ImageGenerationRequestProviderOptionsDarkbloom2? 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.ImageGenerationRequestProviderOptionsDarkbloom2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsDarkbloom2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsDarkbloom2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDarkbloom2.g.cs new file mode 100644 index 00000000..ba92b9b8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDarkbloom2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsDarkbloom2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsDecart.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDecart.Json.g.cs new file mode 100644 index 00000000..41ad64ee --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDecart.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsDecart + { + /// + /// 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.ImageGenerationRequestProviderOptionsDecart? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsDecart), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsDecart; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsDecart? 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.ImageGenerationRequestProviderOptionsDecart? 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.ImageGenerationRequestProviderOptionsDecart), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsDecart; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsDecart.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDecart.g.cs new file mode 100644 index 00000000..07948531 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDecart.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsDecart + { + + /// + /// 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.ImageGenerationRequestProviderOptionsDecart2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDecart2.Json.g.cs new file mode 100644 index 00000000..2d751a0e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDecart2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsDecart2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsDecart2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsDecart2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsDecart2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsDecart2? 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.ImageGenerationRequestProviderOptionsDecart2? 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.ImageGenerationRequestProviderOptionsDecart2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsDecart2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsDecart2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDecart2.g.cs new file mode 100644 index 00000000..e25a5a58 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDecart2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsDecart2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsDeepinfra.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDeepinfra.Json.g.cs new file mode 100644 index 00000000..e1208728 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDeepinfra.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsDeepinfra + { + /// + /// 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.ImageGenerationRequestProviderOptionsDeepinfra? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsDeepinfra), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsDeepinfra; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsDeepinfra? 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.ImageGenerationRequestProviderOptionsDeepinfra? 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.ImageGenerationRequestProviderOptionsDeepinfra), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsDeepinfra; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsDeepinfra.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDeepinfra.g.cs new file mode 100644 index 00000000..b2553965 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDeepinfra.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsDeepinfra + { + + /// + /// 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.ImageGenerationRequestProviderOptionsDeepinfra2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDeepinfra2.Json.g.cs new file mode 100644 index 00000000..5c5bd51e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDeepinfra2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsDeepinfra2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsDeepinfra2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsDeepinfra2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsDeepinfra2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsDeepinfra2? 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.ImageGenerationRequestProviderOptionsDeepinfra2? 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.ImageGenerationRequestProviderOptionsDeepinfra2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsDeepinfra2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsDeepinfra2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDeepinfra2.g.cs new file mode 100644 index 00000000..77ec320f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDeepinfra2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsDeepinfra2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsDeepseek.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDeepseek.Json.g.cs new file mode 100644 index 00000000..df137a58 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDeepseek.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsDeepseek + { + /// + /// 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.ImageGenerationRequestProviderOptionsDeepseek? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsDeepseek), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsDeepseek; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsDeepseek? 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.ImageGenerationRequestProviderOptionsDeepseek? 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.ImageGenerationRequestProviderOptionsDeepseek), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsDeepseek; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsDeepseek.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDeepseek.g.cs new file mode 100644 index 00000000..5aec5503 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDeepseek.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsDeepseek + { + + /// + /// 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.ImageGenerationRequestProviderOptionsDeepseek2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDeepseek2.Json.g.cs new file mode 100644 index 00000000..a7155df2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDeepseek2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsDeepseek2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsDeepseek2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsDeepseek2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsDeepseek2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsDeepseek2? 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.ImageGenerationRequestProviderOptionsDeepseek2? 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.ImageGenerationRequestProviderOptionsDeepseek2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsDeepseek2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsDeepseek2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDeepseek2.g.cs new file mode 100644 index 00000000..0f1b06a1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDeepseek2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsDeepseek2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsDekallm.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDekallm.Json.g.cs new file mode 100644 index 00000000..ab94b8d5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDekallm.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsDekallm + { + /// + /// 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.ImageGenerationRequestProviderOptionsDekallm? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsDekallm), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsDekallm; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsDekallm? 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.ImageGenerationRequestProviderOptionsDekallm? 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.ImageGenerationRequestProviderOptionsDekallm), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsDekallm; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsDekallm.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDekallm.g.cs new file mode 100644 index 00000000..91d437f9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDekallm.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsDekallm + { + + /// + /// 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.ImageGenerationRequestProviderOptionsDekallm2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDekallm2.Json.g.cs new file mode 100644 index 00000000..c47fc8c8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDekallm2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsDekallm2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsDekallm2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsDekallm2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsDekallm2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsDekallm2? 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.ImageGenerationRequestProviderOptionsDekallm2? 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.ImageGenerationRequestProviderOptionsDekallm2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsDekallm2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsDekallm2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDekallm2.g.cs new file mode 100644 index 00000000..a3fef7bd --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDekallm2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsDekallm2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsDigitalocean.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDigitalocean.Json.g.cs new file mode 100644 index 00000000..b9f142dc --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDigitalocean.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsDigitalocean + { + /// + /// 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.ImageGenerationRequestProviderOptionsDigitalocean? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsDigitalocean), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsDigitalocean; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsDigitalocean? 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.ImageGenerationRequestProviderOptionsDigitalocean? 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.ImageGenerationRequestProviderOptionsDigitalocean), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsDigitalocean; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsDigitalocean.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDigitalocean.g.cs new file mode 100644 index 00000000..da49b192 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDigitalocean.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsDigitalocean + { + + /// + /// 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.ImageGenerationRequestProviderOptionsDigitalocean2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDigitalocean2.Json.g.cs new file mode 100644 index 00000000..9e440bdd --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDigitalocean2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsDigitalocean2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsDigitalocean2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsDigitalocean2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsDigitalocean2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsDigitalocean2? 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.ImageGenerationRequestProviderOptionsDigitalocean2? 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.ImageGenerationRequestProviderOptionsDigitalocean2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsDigitalocean2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsDigitalocean2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDigitalocean2.g.cs new file mode 100644 index 00000000..c9c85202 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsDigitalocean2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsDigitalocean2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsEnfer.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsEnfer.Json.g.cs new file mode 100644 index 00000000..9d58ed6d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsEnfer.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsEnfer + { + /// + /// 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.ImageGenerationRequestProviderOptionsEnfer? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsEnfer), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsEnfer; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsEnfer? 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.ImageGenerationRequestProviderOptionsEnfer? 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.ImageGenerationRequestProviderOptionsEnfer), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsEnfer; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsEnfer.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsEnfer.g.cs new file mode 100644 index 00000000..a0f6d655 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsEnfer.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsEnfer + { + + /// + /// 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.ImageGenerationRequestProviderOptionsEnfer2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsEnfer2.Json.g.cs new file mode 100644 index 00000000..62a52088 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsEnfer2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsEnfer2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsEnfer2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsEnfer2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsEnfer2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsEnfer2? 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.ImageGenerationRequestProviderOptionsEnfer2? 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.ImageGenerationRequestProviderOptionsEnfer2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsEnfer2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsEnfer2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsEnfer2.g.cs new file mode 100644 index 00000000..2802246a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsEnfer2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsEnfer2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsFakeProvider.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFakeProvider.Json.g.cs new file mode 100644 index 00000000..01a3f631 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFakeProvider.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsFakeProvider + { + /// + /// 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.ImageGenerationRequestProviderOptionsFakeProvider? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsFakeProvider), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsFakeProvider; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsFakeProvider? 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.ImageGenerationRequestProviderOptionsFakeProvider? 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.ImageGenerationRequestProviderOptionsFakeProvider), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsFakeProvider; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsFakeProvider.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFakeProvider.g.cs new file mode 100644 index 00000000..22f844c7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFakeProvider.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsFakeProvider + { + + /// + /// 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.ImageGenerationRequestProviderOptionsFakeProvider2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFakeProvider2.Json.g.cs new file mode 100644 index 00000000..63ddf270 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFakeProvider2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsFakeProvider2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsFakeProvider2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsFakeProvider2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsFakeProvider2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsFakeProvider2? 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.ImageGenerationRequestProviderOptionsFakeProvider2? 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.ImageGenerationRequestProviderOptionsFakeProvider2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsFakeProvider2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsFakeProvider2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFakeProvider2.g.cs new file mode 100644 index 00000000..f0a8525b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFakeProvider2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsFakeProvider2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsFeatherless.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFeatherless.Json.g.cs new file mode 100644 index 00000000..bff8daf8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFeatherless.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsFeatherless + { + /// + /// 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.ImageGenerationRequestProviderOptionsFeatherless? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsFeatherless), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsFeatherless; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsFeatherless? 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.ImageGenerationRequestProviderOptionsFeatherless? 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.ImageGenerationRequestProviderOptionsFeatherless), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsFeatherless; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsFeatherless.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFeatherless.g.cs new file mode 100644 index 00000000..e933d684 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFeatherless.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsFeatherless + { + + /// + /// 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.ImageGenerationRequestProviderOptionsFeatherless2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFeatherless2.Json.g.cs new file mode 100644 index 00000000..4b0c3150 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFeatherless2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsFeatherless2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsFeatherless2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsFeatherless2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsFeatherless2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsFeatherless2? 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.ImageGenerationRequestProviderOptionsFeatherless2? 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.ImageGenerationRequestProviderOptionsFeatherless2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsFeatherless2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsFeatherless2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFeatherless2.g.cs new file mode 100644 index 00000000..48bab087 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFeatherless2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsFeatherless2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsFireworks.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFireworks.Json.g.cs new file mode 100644 index 00000000..871f270c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFireworks.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsFireworks + { + /// + /// 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.ImageGenerationRequestProviderOptionsFireworks? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsFireworks), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsFireworks; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsFireworks? 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.ImageGenerationRequestProviderOptionsFireworks? 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.ImageGenerationRequestProviderOptionsFireworks), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsFireworks; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsFireworks.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFireworks.g.cs new file mode 100644 index 00000000..1650ad96 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFireworks.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsFireworks + { + + /// + /// 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.ImageGenerationRequestProviderOptionsFireworks2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFireworks2.Json.g.cs new file mode 100644 index 00000000..d1893281 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFireworks2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsFireworks2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsFireworks2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsFireworks2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsFireworks2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsFireworks2? 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.ImageGenerationRequestProviderOptionsFireworks2? 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.ImageGenerationRequestProviderOptionsFireworks2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsFireworks2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsFireworks2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFireworks2.g.cs new file mode 100644 index 00000000..5f733da3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFireworks2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsFireworks2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsFriendli.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFriendli.Json.g.cs new file mode 100644 index 00000000..1b30977f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFriendli.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsFriendli + { + /// + /// 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.ImageGenerationRequestProviderOptionsFriendli? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsFriendli), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsFriendli; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsFriendli? 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.ImageGenerationRequestProviderOptionsFriendli? 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.ImageGenerationRequestProviderOptionsFriendli), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsFriendli; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsFriendli.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFriendli.g.cs new file mode 100644 index 00000000..d518b4af --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFriendli.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsFriendli + { + + /// + /// 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.ImageGenerationRequestProviderOptionsFriendli2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFriendli2.Json.g.cs new file mode 100644 index 00000000..3b8b9c2a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFriendli2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsFriendli2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsFriendli2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsFriendli2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsFriendli2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsFriendli2? 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.ImageGenerationRequestProviderOptionsFriendli2? 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.ImageGenerationRequestProviderOptionsFriendli2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsFriendli2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsFriendli2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFriendli2.g.cs new file mode 100644 index 00000000..ccc623f8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsFriendli2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsFriendli2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsGmicloud.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGmicloud.Json.g.cs new file mode 100644 index 00000000..ad736797 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGmicloud.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsGmicloud + { + /// + /// 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.ImageGenerationRequestProviderOptionsGmicloud? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsGmicloud), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsGmicloud; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsGmicloud? 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.ImageGenerationRequestProviderOptionsGmicloud? 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.ImageGenerationRequestProviderOptionsGmicloud), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsGmicloud; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsGmicloud.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGmicloud.g.cs new file mode 100644 index 00000000..8599bbbd --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGmicloud.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsGmicloud + { + + /// + /// 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.ImageGenerationRequestProviderOptionsGmicloud2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGmicloud2.Json.g.cs new file mode 100644 index 00000000..ae37f1c1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGmicloud2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsGmicloud2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsGmicloud2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsGmicloud2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsGmicloud2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsGmicloud2? 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.ImageGenerationRequestProviderOptionsGmicloud2? 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.ImageGenerationRequestProviderOptionsGmicloud2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsGmicloud2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsGmicloud2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGmicloud2.g.cs new file mode 100644 index 00000000..1fab9deb --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGmicloud2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsGmicloud2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsGoogleAiStudio.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGoogleAiStudio.Json.g.cs new file mode 100644 index 00000000..88b05bd3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGoogleAiStudio.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsGoogleAiStudio + { + /// + /// 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.ImageGenerationRequestProviderOptionsGoogleAiStudio? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsGoogleAiStudio), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsGoogleAiStudio; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsGoogleAiStudio? 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.ImageGenerationRequestProviderOptionsGoogleAiStudio? 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.ImageGenerationRequestProviderOptionsGoogleAiStudio), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsGoogleAiStudio; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsGoogleAiStudio.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGoogleAiStudio.g.cs new file mode 100644 index 00000000..e2e3a069 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGoogleAiStudio.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsGoogleAiStudio + { + + /// + /// 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.ImageGenerationRequestProviderOptionsGoogleAiStudio2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGoogleAiStudio2.Json.g.cs new file mode 100644 index 00000000..233acb23 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGoogleAiStudio2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsGoogleAiStudio2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsGoogleAiStudio2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsGoogleAiStudio2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsGoogleAiStudio2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsGoogleAiStudio2? 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.ImageGenerationRequestProviderOptionsGoogleAiStudio2? 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.ImageGenerationRequestProviderOptionsGoogleAiStudio2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsGoogleAiStudio2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsGoogleAiStudio2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGoogleAiStudio2.g.cs new file mode 100644 index 00000000..7710bed4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGoogleAiStudio2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsGoogleAiStudio2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsGoogleVertex.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGoogleVertex.Json.g.cs new file mode 100644 index 00000000..cd0d14c9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGoogleVertex.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsGoogleVertex + { + /// + /// 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.ImageGenerationRequestProviderOptionsGoogleVertex? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsGoogleVertex), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsGoogleVertex; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsGoogleVertex? 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.ImageGenerationRequestProviderOptionsGoogleVertex? 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.ImageGenerationRequestProviderOptionsGoogleVertex), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsGoogleVertex; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsGoogleVertex.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGoogleVertex.g.cs new file mode 100644 index 00000000..b2079d46 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGoogleVertex.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsGoogleVertex + { + + /// + /// 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.ImageGenerationRequestProviderOptionsGoogleVertex2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGoogleVertex2.Json.g.cs new file mode 100644 index 00000000..f000184e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGoogleVertex2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsGoogleVertex2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsGoogleVertex2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsGoogleVertex2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsGoogleVertex2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsGoogleVertex2? 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.ImageGenerationRequestProviderOptionsGoogleVertex2? 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.ImageGenerationRequestProviderOptionsGoogleVertex2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsGoogleVertex2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsGoogleVertex2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGoogleVertex2.g.cs new file mode 100644 index 00000000..3dcd6949 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGoogleVertex2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsGoogleVertex2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsGopomelo.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGopomelo.Json.g.cs new file mode 100644 index 00000000..7c3007af --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGopomelo.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsGopomelo + { + /// + /// 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.ImageGenerationRequestProviderOptionsGopomelo? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsGopomelo), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsGopomelo; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsGopomelo? 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.ImageGenerationRequestProviderOptionsGopomelo? 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.ImageGenerationRequestProviderOptionsGopomelo), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsGopomelo; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsGopomelo.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGopomelo.g.cs new file mode 100644 index 00000000..75ce77cb --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGopomelo.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsGopomelo + { + + /// + /// 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.ImageGenerationRequestProviderOptionsGopomelo2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGopomelo2.Json.g.cs new file mode 100644 index 00000000..2473839c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGopomelo2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsGopomelo2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsGopomelo2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsGopomelo2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsGopomelo2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsGopomelo2? 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.ImageGenerationRequestProviderOptionsGopomelo2? 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.ImageGenerationRequestProviderOptionsGopomelo2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsGopomelo2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsGopomelo2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGopomelo2.g.cs new file mode 100644 index 00000000..b095f840 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGopomelo2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsGopomelo2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsGroq.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGroq.Json.g.cs new file mode 100644 index 00000000..b9c23d22 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGroq.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsGroq + { + /// + /// 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.ImageGenerationRequestProviderOptionsGroq? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsGroq), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsGroq; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsGroq? 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.ImageGenerationRequestProviderOptionsGroq? 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.ImageGenerationRequestProviderOptionsGroq), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsGroq; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsGroq.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGroq.g.cs new file mode 100644 index 00000000..193bff1f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGroq.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsGroq + { + + /// + /// 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.ImageGenerationRequestProviderOptionsGroq2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGroq2.Json.g.cs new file mode 100644 index 00000000..68c33843 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGroq2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsGroq2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsGroq2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsGroq2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsGroq2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsGroq2? 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.ImageGenerationRequestProviderOptionsGroq2? 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.ImageGenerationRequestProviderOptionsGroq2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsGroq2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsGroq2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGroq2.g.cs new file mode 100644 index 00000000..e305a73c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsGroq2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsGroq2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsHuggingface.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHuggingface.Json.g.cs new file mode 100644 index 00000000..9c13e2b1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHuggingface.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsHuggingface + { + /// + /// 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.ImageGenerationRequestProviderOptionsHuggingface? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsHuggingface), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsHuggingface; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsHuggingface? 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.ImageGenerationRequestProviderOptionsHuggingface? 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.ImageGenerationRequestProviderOptionsHuggingface), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsHuggingface; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsHuggingface.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHuggingface.g.cs new file mode 100644 index 00000000..bf013071 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHuggingface.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsHuggingface + { + + /// + /// 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.ImageGenerationRequestProviderOptionsHuggingface2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHuggingface2.Json.g.cs new file mode 100644 index 00000000..2a6d416c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHuggingface2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsHuggingface2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsHuggingface2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsHuggingface2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsHuggingface2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsHuggingface2? 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.ImageGenerationRequestProviderOptionsHuggingface2? 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.ImageGenerationRequestProviderOptionsHuggingface2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsHuggingface2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsHuggingface2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHuggingface2.g.cs new file mode 100644 index 00000000..5b34a101 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHuggingface2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsHuggingface2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsHyperbolic.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHyperbolic.Json.g.cs new file mode 100644 index 00000000..b0e4bb69 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHyperbolic.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsHyperbolic + { + /// + /// 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.ImageGenerationRequestProviderOptionsHyperbolic? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsHyperbolic), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsHyperbolic; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsHyperbolic? 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.ImageGenerationRequestProviderOptionsHyperbolic? 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.ImageGenerationRequestProviderOptionsHyperbolic), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsHyperbolic; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsHyperbolic.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHyperbolic.g.cs new file mode 100644 index 00000000..bcc00dcb --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHyperbolic.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsHyperbolic + { + + /// + /// 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.ImageGenerationRequestProviderOptionsHyperbolic2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHyperbolic2.Json.g.cs new file mode 100644 index 00000000..2b85a774 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHyperbolic2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsHyperbolic2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsHyperbolic2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsHyperbolic2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsHyperbolic2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsHyperbolic2? 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.ImageGenerationRequestProviderOptionsHyperbolic2? 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.ImageGenerationRequestProviderOptionsHyperbolic2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsHyperbolic2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsHyperbolic2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHyperbolic2.g.cs new file mode 100644 index 00000000..1bef98ca --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHyperbolic2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsHyperbolic2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsHyperbolicQuantized.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHyperbolicQuantized.Json.g.cs new file mode 100644 index 00000000..94c29df8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHyperbolicQuantized.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsHyperbolicQuantized + { + /// + /// 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.ImageGenerationRequestProviderOptionsHyperbolicQuantized? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsHyperbolicQuantized), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsHyperbolicQuantized; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsHyperbolicQuantized? 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.ImageGenerationRequestProviderOptionsHyperbolicQuantized? 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.ImageGenerationRequestProviderOptionsHyperbolicQuantized), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsHyperbolicQuantized; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsHyperbolicQuantized.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHyperbolicQuantized.g.cs new file mode 100644 index 00000000..d2714d4a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHyperbolicQuantized.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsHyperbolicQuantized + { + + /// + /// 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.ImageGenerationRequestProviderOptionsHyperbolicQuantized2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHyperbolicQuantized2.Json.g.cs new file mode 100644 index 00000000..0d70f48a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHyperbolicQuantized2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsHyperbolicQuantized2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsHyperbolicQuantized2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsHyperbolicQuantized2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsHyperbolicQuantized2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsHyperbolicQuantized2? 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.ImageGenerationRequestProviderOptionsHyperbolicQuantized2? 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.ImageGenerationRequestProviderOptionsHyperbolicQuantized2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsHyperbolicQuantized2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsHyperbolicQuantized2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHyperbolicQuantized2.g.cs new file mode 100644 index 00000000..9feb840e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsHyperbolicQuantized2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsHyperbolicQuantized2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsInception.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInception.Json.g.cs new file mode 100644 index 00000000..fc1c18be --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInception.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsInception + { + /// + /// 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.ImageGenerationRequestProviderOptionsInception? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsInception), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsInception; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsInception? 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.ImageGenerationRequestProviderOptionsInception? 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.ImageGenerationRequestProviderOptionsInception), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsInception; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsInception.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInception.g.cs new file mode 100644 index 00000000..183a46ab --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInception.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsInception + { + + /// + /// 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.ImageGenerationRequestProviderOptionsInception2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInception2.Json.g.cs new file mode 100644 index 00000000..d3826534 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInception2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsInception2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsInception2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsInception2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsInception2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsInception2? 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.ImageGenerationRequestProviderOptionsInception2? 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.ImageGenerationRequestProviderOptionsInception2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsInception2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsInception2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInception2.g.cs new file mode 100644 index 00000000..bb433b58 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInception2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsInception2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsInceptron.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInceptron.Json.g.cs new file mode 100644 index 00000000..bc629451 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInceptron.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsInceptron + { + /// + /// 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.ImageGenerationRequestProviderOptionsInceptron? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsInceptron), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsInceptron; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsInceptron? 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.ImageGenerationRequestProviderOptionsInceptron? 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.ImageGenerationRequestProviderOptionsInceptron), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsInceptron; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsInceptron.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInceptron.g.cs new file mode 100644 index 00000000..58b35cf0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInceptron.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsInceptron + { + + /// + /// 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.ImageGenerationRequestProviderOptionsInceptron2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInceptron2.Json.g.cs new file mode 100644 index 00000000..dd8a6fb7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInceptron2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsInceptron2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsInceptron2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsInceptron2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsInceptron2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsInceptron2? 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.ImageGenerationRequestProviderOptionsInceptron2? 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.ImageGenerationRequestProviderOptionsInceptron2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsInceptron2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsInceptron2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInceptron2.g.cs new file mode 100644 index 00000000..a0af884d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInceptron2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsInceptron2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsInferenceNet.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInferenceNet.Json.g.cs new file mode 100644 index 00000000..2abf8444 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInferenceNet.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsInferenceNet + { + /// + /// 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.ImageGenerationRequestProviderOptionsInferenceNet? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsInferenceNet), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsInferenceNet; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsInferenceNet? 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.ImageGenerationRequestProviderOptionsInferenceNet? 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.ImageGenerationRequestProviderOptionsInferenceNet), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsInferenceNet; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsInferenceNet.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInferenceNet.g.cs new file mode 100644 index 00000000..7431cf55 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInferenceNet.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsInferenceNet + { + + /// + /// 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.ImageGenerationRequestProviderOptionsInferenceNet2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInferenceNet2.Json.g.cs new file mode 100644 index 00000000..10636105 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInferenceNet2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsInferenceNet2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsInferenceNet2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsInferenceNet2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsInferenceNet2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsInferenceNet2? 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.ImageGenerationRequestProviderOptionsInferenceNet2? 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.ImageGenerationRequestProviderOptionsInferenceNet2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsInferenceNet2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsInferenceNet2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInferenceNet2.g.cs new file mode 100644 index 00000000..9d881c02 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInferenceNet2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsInferenceNet2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsInfermatic.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInfermatic.Json.g.cs new file mode 100644 index 00000000..339f9c03 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInfermatic.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsInfermatic + { + /// + /// 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.ImageGenerationRequestProviderOptionsInfermatic? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsInfermatic), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsInfermatic; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsInfermatic? 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.ImageGenerationRequestProviderOptionsInfermatic? 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.ImageGenerationRequestProviderOptionsInfermatic), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsInfermatic; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsInfermatic.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInfermatic.g.cs new file mode 100644 index 00000000..4dfb38bf --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInfermatic.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsInfermatic + { + + /// + /// 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.ImageGenerationRequestProviderOptionsInfermatic2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInfermatic2.Json.g.cs new file mode 100644 index 00000000..42ec9a36 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInfermatic2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsInfermatic2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsInfermatic2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsInfermatic2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsInfermatic2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsInfermatic2? 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.ImageGenerationRequestProviderOptionsInfermatic2? 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.ImageGenerationRequestProviderOptionsInfermatic2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsInfermatic2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsInfermatic2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInfermatic2.g.cs new file mode 100644 index 00000000..bd46af07 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInfermatic2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsInfermatic2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsInflection.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInflection.Json.g.cs new file mode 100644 index 00000000..da3a629b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInflection.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsInflection + { + /// + /// 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.ImageGenerationRequestProviderOptionsInflection? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsInflection), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsInflection; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsInflection? 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.ImageGenerationRequestProviderOptionsInflection? 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.ImageGenerationRequestProviderOptionsInflection), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsInflection; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsInflection.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInflection.g.cs new file mode 100644 index 00000000..3147ad9f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInflection.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsInflection + { + + /// + /// 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.ImageGenerationRequestProviderOptionsInflection2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInflection2.Json.g.cs new file mode 100644 index 00000000..e503c2d7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInflection2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsInflection2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsInflection2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsInflection2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsInflection2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsInflection2? 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.ImageGenerationRequestProviderOptionsInflection2? 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.ImageGenerationRequestProviderOptionsInflection2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsInflection2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsInflection2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInflection2.g.cs new file mode 100644 index 00000000..28792f01 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInflection2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsInflection2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsInocloud.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInocloud.Json.g.cs new file mode 100644 index 00000000..dfc8aa9c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInocloud.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsInocloud + { + /// + /// 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.ImageGenerationRequestProviderOptionsInocloud? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsInocloud), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsInocloud; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsInocloud? 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.ImageGenerationRequestProviderOptionsInocloud? 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.ImageGenerationRequestProviderOptionsInocloud), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsInocloud; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsInocloud.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInocloud.g.cs new file mode 100644 index 00000000..d73f0676 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInocloud.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsInocloud + { + + /// + /// 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.ImageGenerationRequestProviderOptionsInocloud2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInocloud2.Json.g.cs new file mode 100644 index 00000000..099a3ab1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInocloud2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsInocloud2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsInocloud2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsInocloud2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsInocloud2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsInocloud2? 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.ImageGenerationRequestProviderOptionsInocloud2? 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.ImageGenerationRequestProviderOptionsInocloud2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsInocloud2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsInocloud2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInocloud2.g.cs new file mode 100644 index 00000000..3fbeb55d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsInocloud2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsInocloud2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsIoNet.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsIoNet.Json.g.cs new file mode 100644 index 00000000..4ce96eb3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsIoNet.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsIoNet + { + /// + /// 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.ImageGenerationRequestProviderOptionsIoNet? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsIoNet), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsIoNet; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsIoNet? 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.ImageGenerationRequestProviderOptionsIoNet? 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.ImageGenerationRequestProviderOptionsIoNet), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsIoNet; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsIoNet.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsIoNet.g.cs new file mode 100644 index 00000000..38dc3c06 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsIoNet.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsIoNet + { + + /// + /// 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.ImageGenerationRequestProviderOptionsIoNet2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsIoNet2.Json.g.cs new file mode 100644 index 00000000..3ea01858 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsIoNet2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsIoNet2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsIoNet2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsIoNet2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsIoNet2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsIoNet2? 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.ImageGenerationRequestProviderOptionsIoNet2? 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.ImageGenerationRequestProviderOptionsIoNet2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsIoNet2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsIoNet2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsIoNet2.g.cs new file mode 100644 index 00000000..bf092636 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsIoNet2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsIoNet2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsIonstream.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsIonstream.Json.g.cs new file mode 100644 index 00000000..4b53ed9a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsIonstream.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsIonstream + { + /// + /// 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.ImageGenerationRequestProviderOptionsIonstream? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsIonstream), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsIonstream; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsIonstream? 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.ImageGenerationRequestProviderOptionsIonstream? 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.ImageGenerationRequestProviderOptionsIonstream), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsIonstream; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsIonstream.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsIonstream.g.cs new file mode 100644 index 00000000..68944119 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsIonstream.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsIonstream + { + + /// + /// 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.ImageGenerationRequestProviderOptionsIonstream2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsIonstream2.Json.g.cs new file mode 100644 index 00000000..2da4fe7b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsIonstream2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsIonstream2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsIonstream2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsIonstream2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsIonstream2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsIonstream2? 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.ImageGenerationRequestProviderOptionsIonstream2? 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.ImageGenerationRequestProviderOptionsIonstream2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsIonstream2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsIonstream2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsIonstream2.g.cs new file mode 100644 index 00000000..7a25ef5b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsIonstream2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsIonstream2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsKlusterai.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsKlusterai.Json.g.cs new file mode 100644 index 00000000..312855c4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsKlusterai.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsKlusterai + { + /// + /// 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.ImageGenerationRequestProviderOptionsKlusterai? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsKlusterai), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsKlusterai; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsKlusterai? 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.ImageGenerationRequestProviderOptionsKlusterai? 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.ImageGenerationRequestProviderOptionsKlusterai), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsKlusterai; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsKlusterai.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsKlusterai.g.cs new file mode 100644 index 00000000..67ec890b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsKlusterai.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsKlusterai + { + + /// + /// 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.ImageGenerationRequestProviderOptionsKlusterai2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsKlusterai2.Json.g.cs new file mode 100644 index 00000000..0b415c2f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsKlusterai2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsKlusterai2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsKlusterai2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsKlusterai2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsKlusterai2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsKlusterai2? 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.ImageGenerationRequestProviderOptionsKlusterai2? 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.ImageGenerationRequestProviderOptionsKlusterai2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsKlusterai2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsKlusterai2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsKlusterai2.g.cs new file mode 100644 index 00000000..e6d6dd90 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsKlusterai2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsKlusterai2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsLambda.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLambda.Json.g.cs new file mode 100644 index 00000000..d3daf0c1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLambda.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsLambda + { + /// + /// 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.ImageGenerationRequestProviderOptionsLambda? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsLambda), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsLambda; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsLambda? 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.ImageGenerationRequestProviderOptionsLambda? 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.ImageGenerationRequestProviderOptionsLambda), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsLambda; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsLambda.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLambda.g.cs new file mode 100644 index 00000000..1f0078d9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLambda.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsLambda + { + + /// + /// 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.ImageGenerationRequestProviderOptionsLambda2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLambda2.Json.g.cs new file mode 100644 index 00000000..8b7b8384 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLambda2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsLambda2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsLambda2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsLambda2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsLambda2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsLambda2? 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.ImageGenerationRequestProviderOptionsLambda2? 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.ImageGenerationRequestProviderOptionsLambda2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsLambda2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsLambda2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLambda2.g.cs new file mode 100644 index 00000000..1b988bf5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLambda2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsLambda2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsLepton.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLepton.Json.g.cs new file mode 100644 index 00000000..2402a268 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLepton.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsLepton + { + /// + /// 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.ImageGenerationRequestProviderOptionsLepton? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsLepton), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsLepton; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsLepton? 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.ImageGenerationRequestProviderOptionsLepton? 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.ImageGenerationRequestProviderOptionsLepton), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsLepton; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsLepton.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLepton.g.cs new file mode 100644 index 00000000..4eca58b9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLepton.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsLepton + { + + /// + /// 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.ImageGenerationRequestProviderOptionsLepton2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLepton2.Json.g.cs new file mode 100644 index 00000000..571c3443 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLepton2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsLepton2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsLepton2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsLepton2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsLepton2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsLepton2? 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.ImageGenerationRequestProviderOptionsLepton2? 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.ImageGenerationRequestProviderOptionsLepton2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsLepton2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsLepton2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLepton2.g.cs new file mode 100644 index 00000000..4ec00f7d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLepton2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsLepton2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsLiquid.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLiquid.Json.g.cs new file mode 100644 index 00000000..7c3500e6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLiquid.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsLiquid + { + /// + /// 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.ImageGenerationRequestProviderOptionsLiquid? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsLiquid), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsLiquid; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsLiquid? 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.ImageGenerationRequestProviderOptionsLiquid? 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.ImageGenerationRequestProviderOptionsLiquid), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsLiquid; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsLiquid.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLiquid.g.cs new file mode 100644 index 00000000..fc4fbc2e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLiquid.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsLiquid + { + + /// + /// 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.ImageGenerationRequestProviderOptionsLiquid2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLiquid2.Json.g.cs new file mode 100644 index 00000000..96b63d23 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLiquid2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsLiquid2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsLiquid2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsLiquid2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsLiquid2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsLiquid2? 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.ImageGenerationRequestProviderOptionsLiquid2? 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.ImageGenerationRequestProviderOptionsLiquid2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsLiquid2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsLiquid2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLiquid2.g.cs new file mode 100644 index 00000000..78f73c06 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLiquid2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsLiquid2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsLynn.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLynn.Json.g.cs new file mode 100644 index 00000000..7685aac7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLynn.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsLynn + { + /// + /// 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.ImageGenerationRequestProviderOptionsLynn? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsLynn), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsLynn; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsLynn? 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.ImageGenerationRequestProviderOptionsLynn? 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.ImageGenerationRequestProviderOptionsLynn), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsLynn; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsLynn.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLynn.g.cs new file mode 100644 index 00000000..53958028 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLynn.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsLynn + { + + /// + /// 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.ImageGenerationRequestProviderOptionsLynn2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLynn2.Json.g.cs new file mode 100644 index 00000000..fec9ed83 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLynn2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsLynn2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsLynn2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsLynn2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsLynn2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsLynn2? 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.ImageGenerationRequestProviderOptionsLynn2? 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.ImageGenerationRequestProviderOptionsLynn2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsLynn2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsLynn2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLynn2.g.cs new file mode 100644 index 00000000..d5d450ba --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLynn2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsLynn2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsLynnPrivate.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLynnPrivate.Json.g.cs new file mode 100644 index 00000000..74229ac9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLynnPrivate.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsLynnPrivate + { + /// + /// 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.ImageGenerationRequestProviderOptionsLynnPrivate? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsLynnPrivate), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsLynnPrivate; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsLynnPrivate? 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.ImageGenerationRequestProviderOptionsLynnPrivate? 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.ImageGenerationRequestProviderOptionsLynnPrivate), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsLynnPrivate; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsLynnPrivate.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLynnPrivate.g.cs new file mode 100644 index 00000000..a0cba6d5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLynnPrivate.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsLynnPrivate + { + + /// + /// 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.ImageGenerationRequestProviderOptionsLynnPrivate2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLynnPrivate2.Json.g.cs new file mode 100644 index 00000000..ced111df --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLynnPrivate2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsLynnPrivate2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsLynnPrivate2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsLynnPrivate2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsLynnPrivate2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsLynnPrivate2? 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.ImageGenerationRequestProviderOptionsLynnPrivate2? 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.ImageGenerationRequestProviderOptionsLynnPrivate2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsLynnPrivate2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsLynnPrivate2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLynnPrivate2.g.cs new file mode 100644 index 00000000..749dae59 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsLynnPrivate2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsLynnPrivate2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsMancer.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMancer.Json.g.cs new file mode 100644 index 00000000..e6fbc922 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMancer.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsMancer + { + /// + /// 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.ImageGenerationRequestProviderOptionsMancer? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsMancer), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsMancer; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsMancer? 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.ImageGenerationRequestProviderOptionsMancer? 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.ImageGenerationRequestProviderOptionsMancer), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsMancer; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsMancer.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMancer.g.cs new file mode 100644 index 00000000..6cc24bc8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMancer.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsMancer + { + + /// + /// 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.ImageGenerationRequestProviderOptionsMancer2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMancer2.Json.g.cs new file mode 100644 index 00000000..96b19827 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMancer2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsMancer2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsMancer2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsMancer2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsMancer2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsMancer2? 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.ImageGenerationRequestProviderOptionsMancer2? 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.ImageGenerationRequestProviderOptionsMancer2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsMancer2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsMancer2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMancer2.g.cs new file mode 100644 index 00000000..4e61c0ea --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMancer2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsMancer2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsMancerOld.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMancerOld.Json.g.cs new file mode 100644 index 00000000..84357e07 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMancerOld.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsMancerOld + { + /// + /// 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.ImageGenerationRequestProviderOptionsMancerOld? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsMancerOld), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsMancerOld; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsMancerOld? 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.ImageGenerationRequestProviderOptionsMancerOld? 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.ImageGenerationRequestProviderOptionsMancerOld), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsMancerOld; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsMancerOld.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMancerOld.g.cs new file mode 100644 index 00000000..00362886 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMancerOld.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsMancerOld + { + + /// + /// 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.ImageGenerationRequestProviderOptionsMancerOld2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMancerOld2.Json.g.cs new file mode 100644 index 00000000..c795eb00 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMancerOld2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsMancerOld2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsMancerOld2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsMancerOld2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsMancerOld2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsMancerOld2? 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.ImageGenerationRequestProviderOptionsMancerOld2? 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.ImageGenerationRequestProviderOptionsMancerOld2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsMancerOld2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsMancerOld2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMancerOld2.g.cs new file mode 100644 index 00000000..ea89f1f3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMancerOld2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsMancerOld2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsMara.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMara.Json.g.cs new file mode 100644 index 00000000..851aed25 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMara.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsMara + { + /// + /// 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.ImageGenerationRequestProviderOptionsMara? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsMara), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsMara; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsMara? 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.ImageGenerationRequestProviderOptionsMara? 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.ImageGenerationRequestProviderOptionsMara), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsMara; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsMara.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMara.g.cs new file mode 100644 index 00000000..967f1494 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMara.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsMara + { + + /// + /// 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.ImageGenerationRequestProviderOptionsMara2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMara2.Json.g.cs new file mode 100644 index 00000000..9c2d23b2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMara2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsMara2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsMara2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsMara2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsMara2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsMara2? 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.ImageGenerationRequestProviderOptionsMara2? 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.ImageGenerationRequestProviderOptionsMara2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsMara2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsMara2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMara2.g.cs new file mode 100644 index 00000000..7cd03630 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMara2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsMara2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsMeta.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMeta.Json.g.cs new file mode 100644 index 00000000..39c5af94 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMeta.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsMeta + { + /// + /// 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.ImageGenerationRequestProviderOptionsMeta? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsMeta), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsMeta; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsMeta? 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.ImageGenerationRequestProviderOptionsMeta? 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.ImageGenerationRequestProviderOptionsMeta), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsMeta; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsMeta.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMeta.g.cs new file mode 100644 index 00000000..5592f60d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMeta.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsMeta + { + + /// + /// 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.ImageGenerationRequestProviderOptionsMeta2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMeta2.Json.g.cs new file mode 100644 index 00000000..61fd29bb --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMeta2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsMeta2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsMeta2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsMeta2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsMeta2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsMeta2? 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.ImageGenerationRequestProviderOptionsMeta2? 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.ImageGenerationRequestProviderOptionsMeta2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsMeta2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsMeta2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMeta2.g.cs new file mode 100644 index 00000000..4c8dc884 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMeta2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsMeta2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsMinimax.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMinimax.Json.g.cs new file mode 100644 index 00000000..b96a900c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMinimax.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsMinimax + { + /// + /// 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.ImageGenerationRequestProviderOptionsMinimax? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsMinimax), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsMinimax; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsMinimax? 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.ImageGenerationRequestProviderOptionsMinimax? 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.ImageGenerationRequestProviderOptionsMinimax), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsMinimax; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsMinimax.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMinimax.g.cs new file mode 100644 index 00000000..d96e70bc --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMinimax.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsMinimax + { + + /// + /// 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.ImageGenerationRequestProviderOptionsMinimax2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMinimax2.Json.g.cs new file mode 100644 index 00000000..f8bc2ac2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMinimax2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsMinimax2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsMinimax2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsMinimax2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsMinimax2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsMinimax2? 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.ImageGenerationRequestProviderOptionsMinimax2? 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.ImageGenerationRequestProviderOptionsMinimax2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsMinimax2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsMinimax2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMinimax2.g.cs new file mode 100644 index 00000000..17b06ec1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMinimax2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsMinimax2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsMistral.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMistral.Json.g.cs new file mode 100644 index 00000000..f93f6187 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMistral.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsMistral + { + /// + /// 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.ImageGenerationRequestProviderOptionsMistral? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsMistral), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsMistral; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsMistral? 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.ImageGenerationRequestProviderOptionsMistral? 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.ImageGenerationRequestProviderOptionsMistral), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsMistral; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsMistral.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMistral.g.cs new file mode 100644 index 00000000..20f23e4d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMistral.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsMistral + { + + /// + /// 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.ImageGenerationRequestProviderOptionsMistral2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMistral2.Json.g.cs new file mode 100644 index 00000000..eb353a64 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMistral2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsMistral2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsMistral2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsMistral2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsMistral2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsMistral2? 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.ImageGenerationRequestProviderOptionsMistral2? 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.ImageGenerationRequestProviderOptionsMistral2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsMistral2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsMistral2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMistral2.g.cs new file mode 100644 index 00000000..140d1ee5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMistral2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsMistral2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsModal.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModal.Json.g.cs new file mode 100644 index 00000000..ea8ab6eb --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModal.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsModal + { + /// + /// 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.ImageGenerationRequestProviderOptionsModal? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsModal), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsModal; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsModal? 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.ImageGenerationRequestProviderOptionsModal? 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.ImageGenerationRequestProviderOptionsModal), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsModal; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsModal.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModal.g.cs new file mode 100644 index 00000000..b872331e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModal.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsModal + { + + /// + /// 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.ImageGenerationRequestProviderOptionsModal2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModal2.Json.g.cs new file mode 100644 index 00000000..839cd431 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModal2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsModal2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsModal2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsModal2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsModal2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsModal2? 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.ImageGenerationRequestProviderOptionsModal2? 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.ImageGenerationRequestProviderOptionsModal2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsModal2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsModal2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModal2.g.cs new file mode 100644 index 00000000..5b9e176e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModal2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsModal2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsModelrun.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModelrun.Json.g.cs new file mode 100644 index 00000000..fe350271 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModelrun.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsModelrun + { + /// + /// 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.ImageGenerationRequestProviderOptionsModelrun? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsModelrun), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsModelrun; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsModelrun? 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.ImageGenerationRequestProviderOptionsModelrun? 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.ImageGenerationRequestProviderOptionsModelrun), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsModelrun; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsModelrun.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModelrun.g.cs new file mode 100644 index 00000000..629f1fcb --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModelrun.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsModelrun + { + + /// + /// 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.ImageGenerationRequestProviderOptionsModelrun2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModelrun2.Json.g.cs new file mode 100644 index 00000000..95d387c6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModelrun2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsModelrun2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsModelrun2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsModelrun2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsModelrun2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsModelrun2? 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.ImageGenerationRequestProviderOptionsModelrun2? 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.ImageGenerationRequestProviderOptionsModelrun2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsModelrun2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsModelrun2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModelrun2.g.cs new file mode 100644 index 00000000..dca78e98 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModelrun2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsModelrun2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsModular.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModular.Json.g.cs new file mode 100644 index 00000000..588e6766 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModular.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsModular + { + /// + /// 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.ImageGenerationRequestProviderOptionsModular? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsModular), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsModular; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsModular? 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.ImageGenerationRequestProviderOptionsModular? 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.ImageGenerationRequestProviderOptionsModular), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsModular; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsModular.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModular.g.cs new file mode 100644 index 00000000..cf78939b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModular.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsModular + { + + /// + /// 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.ImageGenerationRequestProviderOptionsModular2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModular2.Json.g.cs new file mode 100644 index 00000000..3fe7328b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModular2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsModular2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsModular2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsModular2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsModular2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsModular2? 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.ImageGenerationRequestProviderOptionsModular2? 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.ImageGenerationRequestProviderOptionsModular2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsModular2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsModular2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModular2.g.cs new file mode 100644 index 00000000..d74aa94e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsModular2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsModular2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsMoonshotai.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMoonshotai.Json.g.cs new file mode 100644 index 00000000..827fa817 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMoonshotai.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsMoonshotai + { + /// + /// 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.ImageGenerationRequestProviderOptionsMoonshotai? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsMoonshotai), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsMoonshotai; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsMoonshotai? 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.ImageGenerationRequestProviderOptionsMoonshotai? 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.ImageGenerationRequestProviderOptionsMoonshotai), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsMoonshotai; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsMoonshotai.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMoonshotai.g.cs new file mode 100644 index 00000000..5f41182e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMoonshotai.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsMoonshotai + { + + /// + /// 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.ImageGenerationRequestProviderOptionsMoonshotai2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMoonshotai2.Json.g.cs new file mode 100644 index 00000000..5eec771d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMoonshotai2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsMoonshotai2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsMoonshotai2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsMoonshotai2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsMoonshotai2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsMoonshotai2? 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.ImageGenerationRequestProviderOptionsMoonshotai2? 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.ImageGenerationRequestProviderOptionsMoonshotai2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsMoonshotai2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsMoonshotai2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMoonshotai2.g.cs new file mode 100644 index 00000000..23191d83 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMoonshotai2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsMoonshotai2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsMorph.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMorph.Json.g.cs new file mode 100644 index 00000000..d06e6966 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMorph.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsMorph + { + /// + /// 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.ImageGenerationRequestProviderOptionsMorph? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsMorph), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsMorph; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsMorph? 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.ImageGenerationRequestProviderOptionsMorph? 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.ImageGenerationRequestProviderOptionsMorph), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsMorph; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsMorph.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMorph.g.cs new file mode 100644 index 00000000..1db6c52d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMorph.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsMorph + { + + /// + /// 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.ImageGenerationRequestProviderOptionsMorph2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMorph2.Json.g.cs new file mode 100644 index 00000000..506ea473 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMorph2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsMorph2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsMorph2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsMorph2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsMorph2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsMorph2? 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.ImageGenerationRequestProviderOptionsMorph2? 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.ImageGenerationRequestProviderOptionsMorph2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsMorph2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsMorph2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMorph2.g.cs new file mode 100644 index 00000000..ecbd997f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsMorph2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsMorph2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsNcompass.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNcompass.Json.g.cs new file mode 100644 index 00000000..c4076b3c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNcompass.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsNcompass + { + /// + /// 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.ImageGenerationRequestProviderOptionsNcompass? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsNcompass), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsNcompass; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsNcompass? 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.ImageGenerationRequestProviderOptionsNcompass? 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.ImageGenerationRequestProviderOptionsNcompass), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsNcompass; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsNcompass.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNcompass.g.cs new file mode 100644 index 00000000..b9b2fd98 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNcompass.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsNcompass + { + + /// + /// 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.ImageGenerationRequestProviderOptionsNcompass2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNcompass2.Json.g.cs new file mode 100644 index 00000000..13073954 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNcompass2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsNcompass2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsNcompass2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsNcompass2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsNcompass2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsNcompass2? 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.ImageGenerationRequestProviderOptionsNcompass2? 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.ImageGenerationRequestProviderOptionsNcompass2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsNcompass2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsNcompass2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNcompass2.g.cs new file mode 100644 index 00000000..a8f239c9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNcompass2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsNcompass2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsNebius.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNebius.Json.g.cs new file mode 100644 index 00000000..41675c2a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNebius.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsNebius + { + /// + /// 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.ImageGenerationRequestProviderOptionsNebius? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsNebius), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsNebius; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsNebius? 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.ImageGenerationRequestProviderOptionsNebius? 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.ImageGenerationRequestProviderOptionsNebius), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsNebius; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsNebius.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNebius.g.cs new file mode 100644 index 00000000..dd1fadfd --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNebius.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsNebius + { + + /// + /// 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.ImageGenerationRequestProviderOptionsNebius2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNebius2.Json.g.cs new file mode 100644 index 00000000..1efd2aa5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNebius2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsNebius2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsNebius2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsNebius2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsNebius2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsNebius2? 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.ImageGenerationRequestProviderOptionsNebius2? 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.ImageGenerationRequestProviderOptionsNebius2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsNebius2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsNebius2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNebius2.g.cs new file mode 100644 index 00000000..5f1a9f0b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNebius2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsNebius2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsNexAgi.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNexAgi.Json.g.cs new file mode 100644 index 00000000..3d91b44e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNexAgi.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsNexAgi + { + /// + /// 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.ImageGenerationRequestProviderOptionsNexAgi? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsNexAgi), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsNexAgi; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsNexAgi? 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.ImageGenerationRequestProviderOptionsNexAgi? 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.ImageGenerationRequestProviderOptionsNexAgi), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsNexAgi; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsNexAgi.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNexAgi.g.cs new file mode 100644 index 00000000..90af6b5e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNexAgi.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsNexAgi + { + + /// + /// 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.ImageGenerationRequestProviderOptionsNexAgi2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNexAgi2.Json.g.cs new file mode 100644 index 00000000..515a6742 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNexAgi2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsNexAgi2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsNexAgi2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsNexAgi2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsNexAgi2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsNexAgi2? 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.ImageGenerationRequestProviderOptionsNexAgi2? 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.ImageGenerationRequestProviderOptionsNexAgi2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsNexAgi2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsNexAgi2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNexAgi2.g.cs new file mode 100644 index 00000000..36f3ce74 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNexAgi2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsNexAgi2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsNextbit.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNextbit.Json.g.cs new file mode 100644 index 00000000..fb208a68 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNextbit.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsNextbit + { + /// + /// 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.ImageGenerationRequestProviderOptionsNextbit? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsNextbit), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsNextbit; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsNextbit? 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.ImageGenerationRequestProviderOptionsNextbit? 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.ImageGenerationRequestProviderOptionsNextbit), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsNextbit; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsNextbit.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNextbit.g.cs new file mode 100644 index 00000000..db65f1ad --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNextbit.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsNextbit + { + + /// + /// 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.ImageGenerationRequestProviderOptionsNextbit2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNextbit2.Json.g.cs new file mode 100644 index 00000000..5b829016 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNextbit2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsNextbit2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsNextbit2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsNextbit2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsNextbit2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsNextbit2? 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.ImageGenerationRequestProviderOptionsNextbit2? 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.ImageGenerationRequestProviderOptionsNextbit2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsNextbit2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsNextbit2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNextbit2.g.cs new file mode 100644 index 00000000..31217a8e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNextbit2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsNextbit2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsNineteen.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNineteen.Json.g.cs new file mode 100644 index 00000000..fea0732e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNineteen.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsNineteen + { + /// + /// 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.ImageGenerationRequestProviderOptionsNineteen? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsNineteen), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsNineteen; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsNineteen? 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.ImageGenerationRequestProviderOptionsNineteen? 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.ImageGenerationRequestProviderOptionsNineteen), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsNineteen; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsNineteen.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNineteen.g.cs new file mode 100644 index 00000000..b72d9c28 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNineteen.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsNineteen + { + + /// + /// 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.ImageGenerationRequestProviderOptionsNineteen2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNineteen2.Json.g.cs new file mode 100644 index 00000000..93c63454 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNineteen2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsNineteen2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsNineteen2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsNineteen2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsNineteen2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsNineteen2? 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.ImageGenerationRequestProviderOptionsNineteen2? 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.ImageGenerationRequestProviderOptionsNineteen2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsNineteen2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsNineteen2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNineteen2.g.cs new file mode 100644 index 00000000..a6cc6759 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNineteen2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsNineteen2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsNovita.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNovita.Json.g.cs new file mode 100644 index 00000000..d217ed63 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNovita.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsNovita + { + /// + /// 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.ImageGenerationRequestProviderOptionsNovita? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsNovita), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsNovita; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsNovita? 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.ImageGenerationRequestProviderOptionsNovita? 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.ImageGenerationRequestProviderOptionsNovita), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsNovita; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsNovita.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNovita.g.cs new file mode 100644 index 00000000..11779bd7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNovita.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsNovita + { + + /// + /// 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.ImageGenerationRequestProviderOptionsNovita2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNovita2.Json.g.cs new file mode 100644 index 00000000..9a8ef476 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNovita2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsNovita2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsNovita2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsNovita2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsNovita2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsNovita2? 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.ImageGenerationRequestProviderOptionsNovita2? 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.ImageGenerationRequestProviderOptionsNovita2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsNovita2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsNovita2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNovita2.g.cs new file mode 100644 index 00000000..6c8b6adc --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNovita2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsNovita2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsNvidia.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNvidia.Json.g.cs new file mode 100644 index 00000000..db409552 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNvidia.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsNvidia + { + /// + /// 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.ImageGenerationRequestProviderOptionsNvidia? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsNvidia), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsNvidia; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsNvidia? 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.ImageGenerationRequestProviderOptionsNvidia? 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.ImageGenerationRequestProviderOptionsNvidia), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsNvidia; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsNvidia.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNvidia.g.cs new file mode 100644 index 00000000..7c9d0651 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNvidia.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsNvidia + { + + /// + /// 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.ImageGenerationRequestProviderOptionsNvidia2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNvidia2.Json.g.cs new file mode 100644 index 00000000..c51e59f5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNvidia2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsNvidia2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsNvidia2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsNvidia2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsNvidia2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsNvidia2? 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.ImageGenerationRequestProviderOptionsNvidia2? 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.ImageGenerationRequestProviderOptionsNvidia2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsNvidia2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsNvidia2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNvidia2.g.cs new file mode 100644 index 00000000..9ad59717 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsNvidia2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsNvidia2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsOctoai.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOctoai.Json.g.cs new file mode 100644 index 00000000..1cb33cd4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOctoai.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsOctoai + { + /// + /// 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.ImageGenerationRequestProviderOptionsOctoai? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsOctoai), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsOctoai; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsOctoai? 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.ImageGenerationRequestProviderOptionsOctoai? 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.ImageGenerationRequestProviderOptionsOctoai), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsOctoai; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsOctoai.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOctoai.g.cs new file mode 100644 index 00000000..4272a0a0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOctoai.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsOctoai + { + + /// + /// 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.ImageGenerationRequestProviderOptionsOctoai2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOctoai2.Json.g.cs new file mode 100644 index 00000000..cfcdadc9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOctoai2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsOctoai2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsOctoai2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsOctoai2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsOctoai2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsOctoai2? 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.ImageGenerationRequestProviderOptionsOctoai2? 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.ImageGenerationRequestProviderOptionsOctoai2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsOctoai2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsOctoai2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOctoai2.g.cs new file mode 100644 index 00000000..ad812c43 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOctoai2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsOctoai2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsOpenInference.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOpenInference.Json.g.cs new file mode 100644 index 00000000..6f062837 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOpenInference.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsOpenInference + { + /// + /// 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.ImageGenerationRequestProviderOptionsOpenInference? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsOpenInference), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsOpenInference; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsOpenInference? 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.ImageGenerationRequestProviderOptionsOpenInference? 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.ImageGenerationRequestProviderOptionsOpenInference), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsOpenInference; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsOpenInference.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOpenInference.g.cs new file mode 100644 index 00000000..c0e166a7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOpenInference.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsOpenInference + { + + /// + /// 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.ImageGenerationRequestProviderOptionsOpenInference2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOpenInference2.Json.g.cs new file mode 100644 index 00000000..20af5563 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOpenInference2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsOpenInference2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsOpenInference2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsOpenInference2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsOpenInference2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsOpenInference2? 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.ImageGenerationRequestProviderOptionsOpenInference2? 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.ImageGenerationRequestProviderOptionsOpenInference2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsOpenInference2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsOpenInference2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOpenInference2.g.cs new file mode 100644 index 00000000..a3b9735b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOpenInference2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsOpenInference2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsOpenai.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOpenai.Json.g.cs new file mode 100644 index 00000000..b35079da --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOpenai.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsOpenai + { + /// + /// 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.ImageGenerationRequestProviderOptionsOpenai? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsOpenai), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsOpenai; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsOpenai? 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.ImageGenerationRequestProviderOptionsOpenai? 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.ImageGenerationRequestProviderOptionsOpenai), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsOpenai; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsOpenai.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOpenai.g.cs new file mode 100644 index 00000000..7ebb8479 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOpenai.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsOpenai + { + + /// + /// 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.ImageGenerationRequestProviderOptionsOpenai2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOpenai2.Json.g.cs new file mode 100644 index 00000000..943a5dc0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOpenai2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsOpenai2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsOpenai2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsOpenai2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsOpenai2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsOpenai2? 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.ImageGenerationRequestProviderOptionsOpenai2? 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.ImageGenerationRequestProviderOptionsOpenai2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsOpenai2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsOpenai2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOpenai2.g.cs new file mode 100644 index 00000000..4189b454 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsOpenai2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsOpenai2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsParasail.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsParasail.Json.g.cs new file mode 100644 index 00000000..2e785567 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsParasail.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsParasail + { + /// + /// 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.ImageGenerationRequestProviderOptionsParasail? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsParasail), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsParasail; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsParasail? 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.ImageGenerationRequestProviderOptionsParasail? 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.ImageGenerationRequestProviderOptionsParasail), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsParasail; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsParasail.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsParasail.g.cs new file mode 100644 index 00000000..a436f003 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsParasail.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsParasail + { + + /// + /// 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.ImageGenerationRequestProviderOptionsParasail2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsParasail2.Json.g.cs new file mode 100644 index 00000000..486c256f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsParasail2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsParasail2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsParasail2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsParasail2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsParasail2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsParasail2? 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.ImageGenerationRequestProviderOptionsParasail2? 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.ImageGenerationRequestProviderOptionsParasail2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsParasail2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsParasail2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsParasail2.g.cs new file mode 100644 index 00000000..71d36e0a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsParasail2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsParasail2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsPerceptron.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPerceptron.Json.g.cs new file mode 100644 index 00000000..4c14f6fa --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPerceptron.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsPerceptron + { + /// + /// 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.ImageGenerationRequestProviderOptionsPerceptron? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsPerceptron), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsPerceptron; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsPerceptron? 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.ImageGenerationRequestProviderOptionsPerceptron? 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.ImageGenerationRequestProviderOptionsPerceptron), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsPerceptron; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsPerceptron.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPerceptron.g.cs new file mode 100644 index 00000000..de0f8818 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPerceptron.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsPerceptron + { + + /// + /// 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.ImageGenerationRequestProviderOptionsPerceptron2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPerceptron2.Json.g.cs new file mode 100644 index 00000000..c2dc6e8b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPerceptron2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsPerceptron2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsPerceptron2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsPerceptron2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsPerceptron2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsPerceptron2? 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.ImageGenerationRequestProviderOptionsPerceptron2? 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.ImageGenerationRequestProviderOptionsPerceptron2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsPerceptron2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsPerceptron2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPerceptron2.g.cs new file mode 100644 index 00000000..a8dfa76a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPerceptron2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsPerceptron2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsPerplexity.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPerplexity.Json.g.cs new file mode 100644 index 00000000..b04e76bf --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPerplexity.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsPerplexity + { + /// + /// 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.ImageGenerationRequestProviderOptionsPerplexity? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsPerplexity), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsPerplexity; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsPerplexity? 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.ImageGenerationRequestProviderOptionsPerplexity? 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.ImageGenerationRequestProviderOptionsPerplexity), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsPerplexity; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsPerplexity.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPerplexity.g.cs new file mode 100644 index 00000000..753bb750 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPerplexity.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsPerplexity + { + + /// + /// 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.ImageGenerationRequestProviderOptionsPerplexity2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPerplexity2.Json.g.cs new file mode 100644 index 00000000..c8e42766 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPerplexity2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsPerplexity2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsPerplexity2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsPerplexity2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsPerplexity2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsPerplexity2? 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.ImageGenerationRequestProviderOptionsPerplexity2? 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.ImageGenerationRequestProviderOptionsPerplexity2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsPerplexity2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsPerplexity2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPerplexity2.g.cs new file mode 100644 index 00000000..7deda615 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPerplexity2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsPerplexity2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsPhala.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPhala.Json.g.cs new file mode 100644 index 00000000..289c70b1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPhala.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsPhala + { + /// + /// 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.ImageGenerationRequestProviderOptionsPhala? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsPhala), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsPhala; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsPhala? 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.ImageGenerationRequestProviderOptionsPhala? 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.ImageGenerationRequestProviderOptionsPhala), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsPhala; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsPhala.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPhala.g.cs new file mode 100644 index 00000000..f2226fa4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPhala.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsPhala + { + + /// + /// 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.ImageGenerationRequestProviderOptionsPhala2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPhala2.Json.g.cs new file mode 100644 index 00000000..a9924096 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPhala2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsPhala2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsPhala2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsPhala2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsPhala2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsPhala2? 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.ImageGenerationRequestProviderOptionsPhala2? 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.ImageGenerationRequestProviderOptionsPhala2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsPhala2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsPhala2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPhala2.g.cs new file mode 100644 index 00000000..241185c2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPhala2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsPhala2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsPoolside.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPoolside.Json.g.cs new file mode 100644 index 00000000..648a0c3f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPoolside.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsPoolside + { + /// + /// 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.ImageGenerationRequestProviderOptionsPoolside? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsPoolside), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsPoolside; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsPoolside? 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.ImageGenerationRequestProviderOptionsPoolside? 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.ImageGenerationRequestProviderOptionsPoolside), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsPoolside; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsPoolside.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPoolside.g.cs new file mode 100644 index 00000000..32965811 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPoolside.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsPoolside + { + + /// + /// 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.ImageGenerationRequestProviderOptionsPoolside2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPoolside2.Json.g.cs new file mode 100644 index 00000000..953abef2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPoolside2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsPoolside2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsPoolside2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsPoolside2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsPoolside2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsPoolside2? 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.ImageGenerationRequestProviderOptionsPoolside2? 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.ImageGenerationRequestProviderOptionsPoolside2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsPoolside2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsPoolside2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPoolside2.g.cs new file mode 100644 index 00000000..c781f413 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsPoolside2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsPoolside2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsRecraft.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRecraft.Json.g.cs new file mode 100644 index 00000000..f802909e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRecraft.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsRecraft + { + /// + /// 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.ImageGenerationRequestProviderOptionsRecraft? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsRecraft), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsRecraft; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsRecraft? 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.ImageGenerationRequestProviderOptionsRecraft? 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.ImageGenerationRequestProviderOptionsRecraft), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsRecraft; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsRecraft.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRecraft.g.cs new file mode 100644 index 00000000..efbcd8c0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRecraft.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsRecraft + { + + /// + /// 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.ImageGenerationRequestProviderOptionsRecraft2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRecraft2.Json.g.cs new file mode 100644 index 00000000..9376313c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRecraft2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsRecraft2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsRecraft2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsRecraft2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsRecraft2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsRecraft2? 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.ImageGenerationRequestProviderOptionsRecraft2? 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.ImageGenerationRequestProviderOptionsRecraft2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsRecraft2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsRecraft2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRecraft2.g.cs new file mode 100644 index 00000000..610c46aa --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRecraft2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsRecraft2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsRecursal.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRecursal.Json.g.cs new file mode 100644 index 00000000..fd1f34f3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRecursal.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsRecursal + { + /// + /// 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.ImageGenerationRequestProviderOptionsRecursal? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsRecursal), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsRecursal; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsRecursal? 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.ImageGenerationRequestProviderOptionsRecursal? 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.ImageGenerationRequestProviderOptionsRecursal), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsRecursal; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsRecursal.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRecursal.g.cs new file mode 100644 index 00000000..88079375 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRecursal.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsRecursal + { + + /// + /// 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.ImageGenerationRequestProviderOptionsRecursal2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRecursal2.Json.g.cs new file mode 100644 index 00000000..cd235f98 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRecursal2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsRecursal2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsRecursal2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsRecursal2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsRecursal2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsRecursal2? 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.ImageGenerationRequestProviderOptionsRecursal2? 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.ImageGenerationRequestProviderOptionsRecursal2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsRecursal2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsRecursal2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRecursal2.g.cs new file mode 100644 index 00000000..6a2729cf --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRecursal2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsRecursal2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsReflection.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReflection.Json.g.cs new file mode 100644 index 00000000..cf4d3572 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReflection.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsReflection + { + /// + /// 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.ImageGenerationRequestProviderOptionsReflection? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsReflection), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsReflection; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsReflection? 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.ImageGenerationRequestProviderOptionsReflection? 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.ImageGenerationRequestProviderOptionsReflection), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsReflection; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsReflection.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReflection.g.cs new file mode 100644 index 00000000..dcc53c32 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReflection.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsReflection + { + + /// + /// 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.ImageGenerationRequestProviderOptionsReflection2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReflection2.Json.g.cs new file mode 100644 index 00000000..95811ac7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReflection2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsReflection2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsReflection2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsReflection2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsReflection2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsReflection2? 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.ImageGenerationRequestProviderOptionsReflection2? 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.ImageGenerationRequestProviderOptionsReflection2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsReflection2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsReflection2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReflection2.g.cs new file mode 100644 index 00000000..dd6edcb7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReflection2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsReflection2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsReka.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReka.Json.g.cs new file mode 100644 index 00000000..f1565491 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReka.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsReka + { + /// + /// 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.ImageGenerationRequestProviderOptionsReka? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsReka), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsReka; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsReka? 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.ImageGenerationRequestProviderOptionsReka? 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.ImageGenerationRequestProviderOptionsReka), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsReka; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsReka.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReka.g.cs new file mode 100644 index 00000000..752b3a79 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReka.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsReka + { + + /// + /// 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.ImageGenerationRequestProviderOptionsReka2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReka2.Json.g.cs new file mode 100644 index 00000000..fd732b30 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReka2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsReka2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsReka2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsReka2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsReka2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsReka2? 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.ImageGenerationRequestProviderOptionsReka2? 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.ImageGenerationRequestProviderOptionsReka2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsReka2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsReka2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReka2.g.cs new file mode 100644 index 00000000..a26d4507 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReka2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsReka2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsRelace.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRelace.Json.g.cs new file mode 100644 index 00000000..facebd8a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRelace.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsRelace + { + /// + /// 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.ImageGenerationRequestProviderOptionsRelace? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsRelace), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsRelace; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsRelace? 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.ImageGenerationRequestProviderOptionsRelace? 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.ImageGenerationRequestProviderOptionsRelace), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsRelace; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsRelace.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRelace.g.cs new file mode 100644 index 00000000..bfa41b57 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRelace.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsRelace + { + + /// + /// 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.ImageGenerationRequestProviderOptionsRelace2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRelace2.Json.g.cs new file mode 100644 index 00000000..59f004b1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRelace2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsRelace2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsRelace2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsRelace2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsRelace2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsRelace2? 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.ImageGenerationRequestProviderOptionsRelace2? 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.ImageGenerationRequestProviderOptionsRelace2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsRelace2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsRelace2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRelace2.g.cs new file mode 100644 index 00000000..7cdbda3c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsRelace2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsRelace2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsReplicate.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReplicate.Json.g.cs new file mode 100644 index 00000000..04cd4d9c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReplicate.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsReplicate + { + /// + /// 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.ImageGenerationRequestProviderOptionsReplicate? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsReplicate), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsReplicate; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsReplicate? 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.ImageGenerationRequestProviderOptionsReplicate? 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.ImageGenerationRequestProviderOptionsReplicate), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsReplicate; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsReplicate.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReplicate.g.cs new file mode 100644 index 00000000..ea40dbe3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReplicate.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsReplicate + { + + /// + /// 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.ImageGenerationRequestProviderOptionsReplicate2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReplicate2.Json.g.cs new file mode 100644 index 00000000..3f5a60a7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReplicate2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsReplicate2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsReplicate2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsReplicate2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsReplicate2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsReplicate2? 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.ImageGenerationRequestProviderOptionsReplicate2? 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.ImageGenerationRequestProviderOptionsReplicate2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsReplicate2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsReplicate2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReplicate2.g.cs new file mode 100644 index 00000000..bb2652d1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsReplicate2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsReplicate2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsSambanova.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSambanova.Json.g.cs new file mode 100644 index 00000000..5d177e5d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSambanova.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsSambanova + { + /// + /// 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.ImageGenerationRequestProviderOptionsSambanova? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsSambanova), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsSambanova; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsSambanova? 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.ImageGenerationRequestProviderOptionsSambanova? 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.ImageGenerationRequestProviderOptionsSambanova), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsSambanova; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsSambanova.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSambanova.g.cs new file mode 100644 index 00000000..bf3ac71e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSambanova.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsSambanova + { + + /// + /// 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.ImageGenerationRequestProviderOptionsSambanova2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSambanova2.Json.g.cs new file mode 100644 index 00000000..1fc3717f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSambanova2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsSambanova2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsSambanova2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsSambanova2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsSambanova2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsSambanova2? 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.ImageGenerationRequestProviderOptionsSambanova2? 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.ImageGenerationRequestProviderOptionsSambanova2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsSambanova2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsSambanova2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSambanova2.g.cs new file mode 100644 index 00000000..2fd865e5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSambanova2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsSambanova2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsSambanovaCloaked.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSambanovaCloaked.Json.g.cs new file mode 100644 index 00000000..bbeb57b3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSambanovaCloaked.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsSambanovaCloaked + { + /// + /// 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.ImageGenerationRequestProviderOptionsSambanovaCloaked? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsSambanovaCloaked), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsSambanovaCloaked; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsSambanovaCloaked? 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.ImageGenerationRequestProviderOptionsSambanovaCloaked? 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.ImageGenerationRequestProviderOptionsSambanovaCloaked), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsSambanovaCloaked; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsSambanovaCloaked.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSambanovaCloaked.g.cs new file mode 100644 index 00000000..03565d43 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSambanovaCloaked.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsSambanovaCloaked + { + + /// + /// 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.ImageGenerationRequestProviderOptionsSambanovaCloaked2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSambanovaCloaked2.Json.g.cs new file mode 100644 index 00000000..60cf8c35 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSambanovaCloaked2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsSambanovaCloaked2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsSambanovaCloaked2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsSambanovaCloaked2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsSambanovaCloaked2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsSambanovaCloaked2? 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.ImageGenerationRequestProviderOptionsSambanovaCloaked2? 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.ImageGenerationRequestProviderOptionsSambanovaCloaked2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsSambanovaCloaked2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsSambanovaCloaked2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSambanovaCloaked2.g.cs new file mode 100644 index 00000000..1eb1e2c6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSambanovaCloaked2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsSambanovaCloaked2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsSeed.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSeed.Json.g.cs new file mode 100644 index 00000000..af860a23 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSeed.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsSeed + { + /// + /// 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.ImageGenerationRequestProviderOptionsSeed? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsSeed), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsSeed; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsSeed? 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.ImageGenerationRequestProviderOptionsSeed? 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.ImageGenerationRequestProviderOptionsSeed), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsSeed; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsSeed.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSeed.g.cs new file mode 100644 index 00000000..e97e1129 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSeed.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsSeed + { + + /// + /// 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.ImageGenerationRequestProviderOptionsSeed2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSeed2.Json.g.cs new file mode 100644 index 00000000..ee587f75 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSeed2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsSeed2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsSeed2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsSeed2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsSeed2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsSeed2? 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.ImageGenerationRequestProviderOptionsSeed2? 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.ImageGenerationRequestProviderOptionsSeed2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsSeed2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsSeed2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSeed2.g.cs new file mode 100644 index 00000000..c26c6221 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSeed2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsSeed2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsSfCompute.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSfCompute.Json.g.cs new file mode 100644 index 00000000..fd93af72 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSfCompute.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsSfCompute + { + /// + /// 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.ImageGenerationRequestProviderOptionsSfCompute? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsSfCompute), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsSfCompute; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsSfCompute? 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.ImageGenerationRequestProviderOptionsSfCompute? 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.ImageGenerationRequestProviderOptionsSfCompute), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsSfCompute; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsSfCompute.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSfCompute.g.cs new file mode 100644 index 00000000..6cf167f7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSfCompute.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsSfCompute + { + + /// + /// 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.ImageGenerationRequestProviderOptionsSfCompute2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSfCompute2.Json.g.cs new file mode 100644 index 00000000..ed4b6eda --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSfCompute2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsSfCompute2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsSfCompute2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsSfCompute2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsSfCompute2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsSfCompute2? 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.ImageGenerationRequestProviderOptionsSfCompute2? 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.ImageGenerationRequestProviderOptionsSfCompute2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsSfCompute2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsSfCompute2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSfCompute2.g.cs new file mode 100644 index 00000000..d43013af --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSfCompute2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsSfCompute2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsSiliconflow.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSiliconflow.Json.g.cs new file mode 100644 index 00000000..aca04308 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSiliconflow.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsSiliconflow + { + /// + /// 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.ImageGenerationRequestProviderOptionsSiliconflow? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsSiliconflow), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsSiliconflow; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsSiliconflow? 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.ImageGenerationRequestProviderOptionsSiliconflow? 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.ImageGenerationRequestProviderOptionsSiliconflow), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsSiliconflow; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsSiliconflow.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSiliconflow.g.cs new file mode 100644 index 00000000..fb32a8f7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSiliconflow.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsSiliconflow + { + + /// + /// 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.ImageGenerationRequestProviderOptionsSiliconflow2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSiliconflow2.Json.g.cs new file mode 100644 index 00000000..4ce872d2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSiliconflow2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsSiliconflow2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsSiliconflow2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsSiliconflow2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsSiliconflow2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsSiliconflow2? 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.ImageGenerationRequestProviderOptionsSiliconflow2? 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.ImageGenerationRequestProviderOptionsSiliconflow2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsSiliconflow2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsSiliconflow2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSiliconflow2.g.cs new file mode 100644 index 00000000..434a14b7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSiliconflow2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsSiliconflow2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsSourceful.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSourceful.Json.g.cs new file mode 100644 index 00000000..564551f9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSourceful.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsSourceful + { + /// + /// 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.ImageGenerationRequestProviderOptionsSourceful? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsSourceful), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsSourceful; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsSourceful? 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.ImageGenerationRequestProviderOptionsSourceful? 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.ImageGenerationRequestProviderOptionsSourceful), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsSourceful; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsSourceful.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSourceful.g.cs new file mode 100644 index 00000000..a9a4b822 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSourceful.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsSourceful + { + + /// + /// 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.ImageGenerationRequestProviderOptionsSourceful2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSourceful2.Json.g.cs new file mode 100644 index 00000000..8ff9f434 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSourceful2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsSourceful2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsSourceful2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsSourceful2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsSourceful2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsSourceful2? 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.ImageGenerationRequestProviderOptionsSourceful2? 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.ImageGenerationRequestProviderOptionsSourceful2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsSourceful2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsSourceful2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSourceful2.g.cs new file mode 100644 index 00000000..87a02906 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSourceful2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsSourceful2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsStealth.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStealth.Json.g.cs new file mode 100644 index 00000000..f70b1ce2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStealth.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsStealth + { + /// + /// 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.ImageGenerationRequestProviderOptionsStealth? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsStealth), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsStealth; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsStealth? 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.ImageGenerationRequestProviderOptionsStealth? 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.ImageGenerationRequestProviderOptionsStealth), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsStealth; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsStealth.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStealth.g.cs new file mode 100644 index 00000000..da8f90e7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStealth.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsStealth + { + + /// + /// 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.ImageGenerationRequestProviderOptionsStealth2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStealth2.Json.g.cs new file mode 100644 index 00000000..77fbdbeb --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStealth2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsStealth2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsStealth2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsStealth2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsStealth2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsStealth2? 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.ImageGenerationRequestProviderOptionsStealth2? 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.ImageGenerationRequestProviderOptionsStealth2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsStealth2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsStealth2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStealth2.g.cs new file mode 100644 index 00000000..f23827cd --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStealth2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsStealth2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsStepfun.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStepfun.Json.g.cs new file mode 100644 index 00000000..a3387d1b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStepfun.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsStepfun + { + /// + /// 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.ImageGenerationRequestProviderOptionsStepfun? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsStepfun), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsStepfun; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsStepfun? 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.ImageGenerationRequestProviderOptionsStepfun? 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.ImageGenerationRequestProviderOptionsStepfun), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsStepfun; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsStepfun.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStepfun.g.cs new file mode 100644 index 00000000..fb9518a9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStepfun.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsStepfun + { + + /// + /// 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.ImageGenerationRequestProviderOptionsStepfun2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStepfun2.Json.g.cs new file mode 100644 index 00000000..9a6f9319 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStepfun2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsStepfun2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsStepfun2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsStepfun2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsStepfun2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsStepfun2? 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.ImageGenerationRequestProviderOptionsStepfun2? 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.ImageGenerationRequestProviderOptionsStepfun2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsStepfun2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsStepfun2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStepfun2.g.cs new file mode 100644 index 00000000..6856d6eb --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStepfun2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsStepfun2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsStreamlake.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStreamlake.Json.g.cs new file mode 100644 index 00000000..b763c952 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStreamlake.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsStreamlake + { + /// + /// 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.ImageGenerationRequestProviderOptionsStreamlake? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsStreamlake), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsStreamlake; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsStreamlake? 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.ImageGenerationRequestProviderOptionsStreamlake? 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.ImageGenerationRequestProviderOptionsStreamlake), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsStreamlake; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsStreamlake.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStreamlake.g.cs new file mode 100644 index 00000000..50eddf01 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStreamlake.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsStreamlake + { + + /// + /// 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.ImageGenerationRequestProviderOptionsStreamlake2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStreamlake2.Json.g.cs new file mode 100644 index 00000000..b4d6cc16 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStreamlake2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsStreamlake2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsStreamlake2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsStreamlake2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsStreamlake2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsStreamlake2? 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.ImageGenerationRequestProviderOptionsStreamlake2? 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.ImageGenerationRequestProviderOptionsStreamlake2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsStreamlake2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsStreamlake2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStreamlake2.g.cs new file mode 100644 index 00000000..37519731 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsStreamlake2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsStreamlake2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsSwitchpoint.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSwitchpoint.Json.g.cs new file mode 100644 index 00000000..d6811923 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSwitchpoint.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsSwitchpoint + { + /// + /// 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.ImageGenerationRequestProviderOptionsSwitchpoint? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsSwitchpoint), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsSwitchpoint; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsSwitchpoint? 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.ImageGenerationRequestProviderOptionsSwitchpoint? 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.ImageGenerationRequestProviderOptionsSwitchpoint), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsSwitchpoint; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsSwitchpoint.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSwitchpoint.g.cs new file mode 100644 index 00000000..17757f76 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSwitchpoint.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsSwitchpoint + { + + /// + /// 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.ImageGenerationRequestProviderOptionsSwitchpoint2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSwitchpoint2.Json.g.cs new file mode 100644 index 00000000..bbbc773f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSwitchpoint2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsSwitchpoint2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsSwitchpoint2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsSwitchpoint2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsSwitchpoint2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsSwitchpoint2? 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.ImageGenerationRequestProviderOptionsSwitchpoint2? 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.ImageGenerationRequestProviderOptionsSwitchpoint2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsSwitchpoint2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsSwitchpoint2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSwitchpoint2.g.cs new file mode 100644 index 00000000..be6d1a29 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsSwitchpoint2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsSwitchpoint2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsTargon.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTargon.Json.g.cs new file mode 100644 index 00000000..0cb7f648 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTargon.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsTargon + { + /// + /// 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.ImageGenerationRequestProviderOptionsTargon? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsTargon), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsTargon; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsTargon? 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.ImageGenerationRequestProviderOptionsTargon? 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.ImageGenerationRequestProviderOptionsTargon), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsTargon; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsTargon.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTargon.g.cs new file mode 100644 index 00000000..a9420a70 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTargon.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsTargon + { + + /// + /// 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.ImageGenerationRequestProviderOptionsTargon2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTargon2.Json.g.cs new file mode 100644 index 00000000..e85229cb --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTargon2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsTargon2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsTargon2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsTargon2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsTargon2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsTargon2? 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.ImageGenerationRequestProviderOptionsTargon2? 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.ImageGenerationRequestProviderOptionsTargon2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsTargon2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsTargon2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTargon2.g.cs new file mode 100644 index 00000000..e135c491 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTargon2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsTargon2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsTogether.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTogether.Json.g.cs new file mode 100644 index 00000000..7629f2c5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTogether.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsTogether + { + /// + /// 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.ImageGenerationRequestProviderOptionsTogether? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsTogether), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsTogether; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsTogether? 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.ImageGenerationRequestProviderOptionsTogether? 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.ImageGenerationRequestProviderOptionsTogether), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsTogether; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsTogether.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTogether.g.cs new file mode 100644 index 00000000..bde34b5c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTogether.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsTogether + { + + /// + /// 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.ImageGenerationRequestProviderOptionsTogether2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTogether2.Json.g.cs new file mode 100644 index 00000000..13ee4622 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTogether2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsTogether2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsTogether2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsTogether2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsTogether2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsTogether2? 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.ImageGenerationRequestProviderOptionsTogether2? 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.ImageGenerationRequestProviderOptionsTogether2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsTogether2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsTogether2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTogether2.g.cs new file mode 100644 index 00000000..d0ec2e6a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTogether2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsTogether2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsTogetherLite.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTogetherLite.Json.g.cs new file mode 100644 index 00000000..d10b1d34 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTogetherLite.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsTogetherLite + { + /// + /// 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.ImageGenerationRequestProviderOptionsTogetherLite? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsTogetherLite), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsTogetherLite; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsTogetherLite? 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.ImageGenerationRequestProviderOptionsTogetherLite? 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.ImageGenerationRequestProviderOptionsTogetherLite), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsTogetherLite; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsTogetherLite.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTogetherLite.g.cs new file mode 100644 index 00000000..6b5bec52 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTogetherLite.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsTogetherLite + { + + /// + /// 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.ImageGenerationRequestProviderOptionsTogetherLite2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTogetherLite2.Json.g.cs new file mode 100644 index 00000000..e3a2982b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTogetherLite2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsTogetherLite2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsTogetherLite2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsTogetherLite2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsTogetherLite2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsTogetherLite2? 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.ImageGenerationRequestProviderOptionsTogetherLite2? 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.ImageGenerationRequestProviderOptionsTogetherLite2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsTogetherLite2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsTogetherLite2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTogetherLite2.g.cs new file mode 100644 index 00000000..8474ae1e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsTogetherLite2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsTogetherLite2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsUbicloud.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsUbicloud.Json.g.cs new file mode 100644 index 00000000..139eff38 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsUbicloud.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsUbicloud + { + /// + /// 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.ImageGenerationRequestProviderOptionsUbicloud? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsUbicloud), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsUbicloud; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsUbicloud? 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.ImageGenerationRequestProviderOptionsUbicloud? 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.ImageGenerationRequestProviderOptionsUbicloud), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsUbicloud; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsUbicloud.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsUbicloud.g.cs new file mode 100644 index 00000000..7803ad03 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsUbicloud.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsUbicloud + { + + /// + /// 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.ImageGenerationRequestProviderOptionsUbicloud2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsUbicloud2.Json.g.cs new file mode 100644 index 00000000..33cddf18 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsUbicloud2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsUbicloud2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsUbicloud2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsUbicloud2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsUbicloud2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsUbicloud2? 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.ImageGenerationRequestProviderOptionsUbicloud2? 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.ImageGenerationRequestProviderOptionsUbicloud2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsUbicloud2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsUbicloud2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsUbicloud2.g.cs new file mode 100644 index 00000000..763ce6dc --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsUbicloud2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsUbicloud2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsUpstage.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsUpstage.Json.g.cs new file mode 100644 index 00000000..89408969 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsUpstage.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsUpstage + { + /// + /// 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.ImageGenerationRequestProviderOptionsUpstage? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsUpstage), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsUpstage; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsUpstage? 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.ImageGenerationRequestProviderOptionsUpstage? 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.ImageGenerationRequestProviderOptionsUpstage), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsUpstage; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsUpstage.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsUpstage.g.cs new file mode 100644 index 00000000..9e371f2c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsUpstage.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsUpstage + { + + /// + /// 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.ImageGenerationRequestProviderOptionsUpstage2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsUpstage2.Json.g.cs new file mode 100644 index 00000000..92a593a7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsUpstage2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsUpstage2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsUpstage2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsUpstage2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsUpstage2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsUpstage2? 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.ImageGenerationRequestProviderOptionsUpstage2? 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.ImageGenerationRequestProviderOptionsUpstage2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsUpstage2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsUpstage2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsUpstage2.g.cs new file mode 100644 index 00000000..38f0e341 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsUpstage2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsUpstage2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsVenice.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsVenice.Json.g.cs new file mode 100644 index 00000000..d3d0981a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsVenice.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsVenice + { + /// + /// 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.ImageGenerationRequestProviderOptionsVenice? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsVenice), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsVenice; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsVenice? 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.ImageGenerationRequestProviderOptionsVenice? 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.ImageGenerationRequestProviderOptionsVenice), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsVenice; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsVenice.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsVenice.g.cs new file mode 100644 index 00000000..cfd10729 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsVenice.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsVenice + { + + /// + /// 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.ImageGenerationRequestProviderOptionsVenice2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsVenice2.Json.g.cs new file mode 100644 index 00000000..41e3ac3d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsVenice2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsVenice2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsVenice2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsVenice2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsVenice2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsVenice2? 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.ImageGenerationRequestProviderOptionsVenice2? 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.ImageGenerationRequestProviderOptionsVenice2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsVenice2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsVenice2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsVenice2.g.cs new file mode 100644 index 00000000..20368f4c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsVenice2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsVenice2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsWafer.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsWafer.Json.g.cs new file mode 100644 index 00000000..698f55b3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsWafer.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsWafer + { + /// + /// 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.ImageGenerationRequestProviderOptionsWafer? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsWafer), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsWafer; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsWafer? 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.ImageGenerationRequestProviderOptionsWafer? 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.ImageGenerationRequestProviderOptionsWafer), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsWafer; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsWafer.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsWafer.g.cs new file mode 100644 index 00000000..58efd06f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsWafer.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsWafer + { + + /// + /// 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.ImageGenerationRequestProviderOptionsWafer2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsWafer2.Json.g.cs new file mode 100644 index 00000000..830a73bc --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsWafer2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsWafer2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsWafer2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsWafer2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsWafer2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsWafer2? 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.ImageGenerationRequestProviderOptionsWafer2? 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.ImageGenerationRequestProviderOptionsWafer2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsWafer2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsWafer2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsWafer2.g.cs new file mode 100644 index 00000000..0fddf3de --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsWafer2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsWafer2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsWandb.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsWandb.Json.g.cs new file mode 100644 index 00000000..4efe5989 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsWandb.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsWandb + { + /// + /// 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.ImageGenerationRequestProviderOptionsWandb? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsWandb), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsWandb; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsWandb? 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.ImageGenerationRequestProviderOptionsWandb? 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.ImageGenerationRequestProviderOptionsWandb), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsWandb; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsWandb.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsWandb.g.cs new file mode 100644 index 00000000..6e8410e3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsWandb.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsWandb + { + + /// + /// 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.ImageGenerationRequestProviderOptionsWandb2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsWandb2.Json.g.cs new file mode 100644 index 00000000..22c8336b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsWandb2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsWandb2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsWandb2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsWandb2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsWandb2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsWandb2? 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.ImageGenerationRequestProviderOptionsWandb2? 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.ImageGenerationRequestProviderOptionsWandb2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsWandb2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsWandb2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsWandb2.g.cs new file mode 100644 index 00000000..b7f5d2d9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsWandb2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsWandb2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsXai.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsXai.Json.g.cs new file mode 100644 index 00000000..6f371cc6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsXai.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsXai + { + /// + /// 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.ImageGenerationRequestProviderOptionsXai? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsXai), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsXai; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsXai? 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.ImageGenerationRequestProviderOptionsXai? 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.ImageGenerationRequestProviderOptionsXai), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsXai; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsXai.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsXai.g.cs new file mode 100644 index 00000000..536e68ab --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsXai.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsXai + { + + /// + /// 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.ImageGenerationRequestProviderOptionsXai2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsXai2.Json.g.cs new file mode 100644 index 00000000..7e808384 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsXai2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsXai2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsXai2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsXai2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsXai2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsXai2? 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.ImageGenerationRequestProviderOptionsXai2? 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.ImageGenerationRequestProviderOptionsXai2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsXai2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsXai2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsXai2.g.cs new file mode 100644 index 00000000..fb25205f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsXai2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsXai2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsXiaomi.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsXiaomi.Json.g.cs new file mode 100644 index 00000000..40a1453f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsXiaomi.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsXiaomi + { + /// + /// 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.ImageGenerationRequestProviderOptionsXiaomi? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsXiaomi), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsXiaomi; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsXiaomi? 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.ImageGenerationRequestProviderOptionsXiaomi? 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.ImageGenerationRequestProviderOptionsXiaomi), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsXiaomi; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsXiaomi.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsXiaomi.g.cs new file mode 100644 index 00000000..a2b36869 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsXiaomi.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsXiaomi + { + + /// + /// 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.ImageGenerationRequestProviderOptionsXiaomi2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsXiaomi2.Json.g.cs new file mode 100644 index 00000000..ed88f307 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsXiaomi2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsXiaomi2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsXiaomi2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsXiaomi2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsXiaomi2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsXiaomi2? 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.ImageGenerationRequestProviderOptionsXiaomi2? 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.ImageGenerationRequestProviderOptionsXiaomi2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsXiaomi2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsXiaomi2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsXiaomi2.g.cs new file mode 100644 index 00000000..d270277f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsXiaomi2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsXiaomi2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsZAi.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsZAi.Json.g.cs new file mode 100644 index 00000000..02e8cdf2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsZAi.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsZAi + { + /// + /// 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.ImageGenerationRequestProviderOptionsZAi? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsZAi), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsZAi; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsZAi? 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.ImageGenerationRequestProviderOptionsZAi? 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.ImageGenerationRequestProviderOptionsZAi), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsZAi; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsZAi.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsZAi.g.cs new file mode 100644 index 00000000..87893adc --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsZAi.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsZAi + { + + /// + /// 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.ImageGenerationRequestProviderOptionsZAi2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsZAi2.Json.g.cs new file mode 100644 index 00000000..317c9863 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsZAi2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsZAi2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsZAi2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsZAi2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsZAi2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsZAi2? 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.ImageGenerationRequestProviderOptionsZAi2? 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.ImageGenerationRequestProviderOptionsZAi2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsZAi2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsZAi2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsZAi2.g.cs new file mode 100644 index 00000000..6afbbedc --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsZAi2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsZAi2 + { + + /// + /// 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.ImageGenerationRequestProviderOptionsx01ai.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsx01ai.Json.g.cs new file mode 100644 index 00000000..87ddf9d5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsx01ai.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsx01ai + { + /// + /// 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.ImageGenerationRequestProviderOptionsx01ai? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsx01ai), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsx01ai; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsx01ai? 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.ImageGenerationRequestProviderOptionsx01ai? 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.ImageGenerationRequestProviderOptionsx01ai), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsx01ai; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsx01ai.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsx01ai.g.cs new file mode 100644 index 00000000..975f5208 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsx01ai.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationRequestProviderOptionsx01ai + { + + /// + /// 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.ImageGenerationRequestProviderOptionsx01ai2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsx01ai2.Json.g.cs new file mode 100644 index 00000000..eae8a9e4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsx01ai2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationRequestProviderOptionsx01ai2 + { + /// + /// 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.ImageGenerationRequestProviderOptionsx01ai2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsx01ai2), + jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsx01ai2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationRequestProviderOptionsx01ai2? 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.ImageGenerationRequestProviderOptionsx01ai2? 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.ImageGenerationRequestProviderOptionsx01ai2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsx01ai2; + } + + /// + /// 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.ImageGenerationRequestProviderOptionsx01ai2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsx01ai2.g.cs new file mode 100644 index 00000000..e5d9bf25 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestProviderOptionsx01ai2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Any type + /// + public sealed partial class ImageGenerationRequestProviderOptionsx01ai2 + { + + /// + /// 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.ImageGenerationRequestQuality.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestQuality.g.cs new file mode 100644 index 00000000..5a4e4208 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestQuality.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Rendering quality. Providers without a quality knob ignore this. + /// + public enum ImageGenerationRequestQuality + { + /// + /// + /// + Auto, + /// + /// + /// + High, + /// + /// + /// + Low, + /// + /// + /// + Medium, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ImageGenerationRequestQualityExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ImageGenerationRequestQuality value) + { + return value switch + { + ImageGenerationRequestQuality.Auto => "auto", + ImageGenerationRequestQuality.High => "high", + ImageGenerationRequestQuality.Low => "low", + ImageGenerationRequestQuality.Medium => "medium", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ImageGenerationRequestQuality? ToEnum(string value) + { + return value switch + { + "auto" => ImageGenerationRequestQuality.Auto, + "high" => ImageGenerationRequestQuality.High, + "low" => ImageGenerationRequestQuality.Low, + "medium" => ImageGenerationRequestQuality.Medium, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestResolution.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestResolution.g.cs new file mode 100644 index 00000000..96ca4129 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationRequestResolution.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Normalized resolution tier of the generated image. Concrete pixel dimensions are derived per-provider. + /// + public enum ImageGenerationRequestResolution + { + /// + /// + /// + x1k, + /// + /// + /// + x2k, + /// + /// + /// + x4k, + /// + /// + /// + x512, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ImageGenerationRequestResolutionExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ImageGenerationRequestResolution value) + { + return value switch + { + ImageGenerationRequestResolution.x1k => "1K", + ImageGenerationRequestResolution.x2k => "2K", + ImageGenerationRequestResolution.x4k => "4K", + ImageGenerationRequestResolution.x512 => "512", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ImageGenerationRequestResolution? ToEnum(string value) + { + return value switch + { + "1K" => ImageGenerationRequestResolution.x1k, + "2K" => ImageGenerationRequestResolution.x2k, + "4K" => ImageGenerationRequestResolution.x4k, + "512" => ImageGenerationRequestResolution.x512, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationResponse.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationResponse.Json.g.cs new file mode 100644 index 00000000..0f2df82d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationResponse + { + /// + /// 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.ImageGenerationResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationResponse), + jsonSerializerContext) as global::OpenRouter.ImageGenerationResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationResponse? 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.ImageGenerationResponse? 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.ImageGenerationResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationResponse; + } + + /// + /// 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.ImageGenerationResponse.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationResponse.g.cs new file mode 100644 index 00000000..c324ae03 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationResponse.g.cs @@ -0,0 +1,71 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Image generation response + /// + public sealed partial class ImageGenerationResponse + { + /// + /// Unix timestamp (seconds) when the image was generated + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.UnixTimestampJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTimeOffset Created { get; set; } + + /// + /// Generated images + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Data { get; set; } + + /// + /// Token and cost usage for the image generation request, when available + /// + [global::System.Text.Json.Serialization.JsonPropertyName("usage")] + public global::OpenRouter.ImageGenerationUsage? 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. + /// + /// + /// Unix timestamp (seconds) when the image was generated + /// + /// + /// Generated images + /// + /// + /// Token and cost usage for the image generation request, when available + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ImageGenerationResponse( + global::System.DateTimeOffset created, + global::System.Collections.Generic.IList data, + global::OpenRouter.ImageGenerationUsage? usage) + { + this.Created = created; + this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); + this.Usage = usage; + } + + /// + /// Initializes a new instance of the class. + /// + public ImageGenerationResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationResponseDataItems.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationResponseDataItems.Json.g.cs new file mode 100644 index 00000000..bfd82f5b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationResponseDataItems.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationResponseDataItems + { + /// + /// 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.ImageGenerationResponseDataItems? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationResponseDataItems), + jsonSerializerContext) as global::OpenRouter.ImageGenerationResponseDataItems; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationResponseDataItems? 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.ImageGenerationResponseDataItems? 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.ImageGenerationResponseDataItems), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationResponseDataItems; + } + + /// + /// 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.ImageGenerationResponseDataItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationResponseDataItems.g.cs new file mode 100644 index 00000000..5aeb9569 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationResponseDataItems.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationResponseDataItems + { + /// + /// Base64-encoded image bytes + /// + [global::System.Text.Json.Serialization.JsonPropertyName("b64_json")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string B64Json { 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. + /// + /// + /// Base64-encoded image bytes + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ImageGenerationResponseDataItems( + string b64Json) + { + this.B64Json = b64Json ?? throw new global::System.ArgumentNullException(nameof(b64Json)); + } + + /// + /// Initializes a new instance of the class. + /// + public ImageGenerationResponseDataItems() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationUsage.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationUsage.Json.g.cs new file mode 100644 index 00000000..50882fbe --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationUsage.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationUsage + { + /// + /// 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.ImageGenerationUsage? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationUsage), + jsonSerializerContext) as global::OpenRouter.ImageGenerationUsage; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationUsage? 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.ImageGenerationUsage? 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.ImageGenerationUsage), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationUsage; + } + + /// + /// 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.ImageGenerationUsage.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationUsage.g.cs new file mode 100644 index 00000000..b379cd85 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationUsage.g.cs @@ -0,0 +1,168 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Token and cost usage for the image generation request, when available + /// + public sealed partial class ImageGenerationUsage + { + /// + /// The tokens generated + /// + [global::System.Text.Json.Serialization.JsonPropertyName("completion_tokens")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int CompletionTokens { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("completion_tokens_details")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] + public global::OpenRouter.OneOf? CompletionTokensDetails { get; set; } + + /// + /// Cost of the completion + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cost")] + public double? Cost { get; set; } + + /// + /// Breakdown of upstream inference costs + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cost_details")] + public global::OpenRouter.CostDetails? CostDetails { get; set; } + + /// + /// Whether a request was made using a Bring Your Own Key configuration + /// + [global::System.Text.Json.Serialization.JsonPropertyName("is_byok")] + public bool? IsByok { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("iterations")] + public global::System.Collections.Generic.IList? Iterations { get; set; } + + /// + /// Including images, input audio, and tools if any + /// + [global::System.Text.Json.Serialization.JsonPropertyName("prompt_tokens")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int PromptTokens { get; set; } + + /// + /// Breakdown of tokens used in the prompt. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("prompt_tokens_details")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] + public global::OpenRouter.OneOf? PromptTokensDetails { get; set; } + + /// + /// Usage for server-side tool execution (e.g., web search) + /// + [global::System.Text.Json.Serialization.JsonPropertyName("server_tool_use")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] + public global::OpenRouter.OneOf? ServerToolUse { get; set; } + + /// + /// The service tier used by the upstream provider for this request + /// + [global::System.Text.Json.Serialization.JsonPropertyName("service_tier")] + public string? ServiceTier { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("speed")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.AnthropicSpeedJsonConverter))] + public global::OpenRouter.AnthropicSpeed? Speed { get; set; } + + /// + /// Sum of the above two fields + /// + [global::System.Text.Json.Serialization.JsonPropertyName("total_tokens")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int TotalTokens { 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 tokens generated + /// + /// + /// Including images, input audio, and tools if any + /// + /// + /// Sum of the above two fields + /// + /// + /// + /// Cost of the completion + /// + /// + /// Breakdown of upstream inference costs + /// + /// + /// Whether a request was made using a Bring Your Own Key configuration + /// + /// + /// + /// Breakdown of tokens used in the prompt. + /// + /// + /// Usage for server-side tool execution (e.g., web search) + /// + /// + /// The service tier used by the upstream provider for this request + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ImageGenerationUsage( + int completionTokens, + int promptTokens, + int totalTokens, + global::OpenRouter.OneOf? completionTokensDetails, + double? cost, + global::OpenRouter.CostDetails? costDetails, + bool? isByok, + global::System.Collections.Generic.IList? iterations, + global::OpenRouter.OneOf? promptTokensDetails, + global::OpenRouter.OneOf? serverToolUse, + string? serviceTier, + global::OpenRouter.AnthropicSpeed? speed) + { + this.CompletionTokens = completionTokens; + this.CompletionTokensDetails = completionTokensDetails; + this.Cost = cost; + this.CostDetails = costDetails; + this.IsByok = isByok; + this.Iterations = iterations; + this.PromptTokens = promptTokens; + this.PromptTokensDetails = promptTokensDetails; + this.ServerToolUse = serverToolUse; + this.ServiceTier = serviceTier; + this.Speed = speed; + this.TotalTokens = totalTokens; + } + + /// + /// Initializes a new instance of the class. + /// + public ImageGenerationUsage() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationUsageCompletionTokensDetails.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationUsageCompletionTokensDetails.Json.g.cs new file mode 100644 index 00000000..2b3ed71e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationUsageCompletionTokensDetails.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationUsageCompletionTokensDetails + { + /// + /// 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.ImageGenerationUsageCompletionTokensDetails? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationUsageCompletionTokensDetails), + jsonSerializerContext) as global::OpenRouter.ImageGenerationUsageCompletionTokensDetails; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationUsageCompletionTokensDetails? 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.ImageGenerationUsageCompletionTokensDetails? 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.ImageGenerationUsageCompletionTokensDetails), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationUsageCompletionTokensDetails; + } + + /// + /// 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.ImageGenerationUsageCompletionTokensDetails.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationUsageCompletionTokensDetails.g.cs new file mode 100644 index 00000000..58e8002e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationUsageCompletionTokensDetails.g.cs @@ -0,0 +1,68 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageGenerationUsageCompletionTokensDetails + { + /// + /// Tokens generated by the model for audio output. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("audio_tokens")] + public int? AudioTokens { get; set; } + + /// + /// Tokens generated by the model for image output. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("image_tokens")] + public int? ImageTokens { get; set; } + + /// + /// Tokens generated by the model for reasoning. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("reasoning_tokens")] + public int? ReasoningTokens { 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. + /// + /// + /// Tokens generated by the model for audio output. + /// + /// + /// Tokens generated by the model for image output. + /// + /// + /// Tokens generated by the model for reasoning. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ImageGenerationUsageCompletionTokensDetails( + int? audioTokens, + int? imageTokens, + int? reasoningTokens) + { + this.AudioTokens = audioTokens; + this.ImageTokens = imageTokens; + this.ReasoningTokens = reasoningTokens; + } + + /// + /// Initializes a new instance of the class. + /// + public ImageGenerationUsageCompletionTokensDetails() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationUsagePromptTokensDetails.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationUsagePromptTokensDetails.Json.g.cs new file mode 100644 index 00000000..65e889b4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationUsagePromptTokensDetails.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationUsagePromptTokensDetails + { + /// + /// 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.ImageGenerationUsagePromptTokensDetails? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationUsagePromptTokensDetails), + jsonSerializerContext) as global::OpenRouter.ImageGenerationUsagePromptTokensDetails; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationUsagePromptTokensDetails? 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.ImageGenerationUsagePromptTokensDetails? 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.ImageGenerationUsagePromptTokensDetails), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationUsagePromptTokensDetails; + } + + /// + /// 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.ImageGenerationUsagePromptTokensDetails.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationUsagePromptTokensDetails.g.cs new file mode 100644 index 00000000..12a1c5e9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationUsagePromptTokensDetails.g.cs @@ -0,0 +1,90 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Breakdown of tokens used in the prompt. + /// + public sealed partial class ImageGenerationUsagePromptTokensDetails + { + /// + /// Tokens used for input audio. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("audio_tokens")] + public int? AudioTokens { get; set; } + + /// + /// Tokens written to cache. Only returned for models with explicit caching and cache write pricing. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cache_write_tokens")] + public int? CacheWriteTokens { get; set; } + + /// + /// Tokens cached by the endpoint. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cached_tokens")] + public int? CachedTokens { get; set; } + + /// + /// Tokens used for input files/documents. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("file_tokens")] + public int? FileTokens { get; set; } + + /// + /// Tokens used for input video. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("video_tokens")] + public int? VideoTokens { 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. + /// + /// + /// Tokens used for input audio. + /// + /// + /// Tokens written to cache. Only returned for models with explicit caching and cache write pricing. + /// + /// + /// Tokens cached by the endpoint. + /// + /// + /// Tokens used for input files/documents. + /// + /// + /// Tokens used for input video. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ImageGenerationUsagePromptTokensDetails( + int? audioTokens, + int? cacheWriteTokens, + int? cachedTokens, + int? fileTokens, + int? videoTokens) + { + this.AudioTokens = audioTokens; + this.CacheWriteTokens = cacheWriteTokens; + this.CachedTokens = cachedTokens; + this.FileTokens = fileTokens; + this.VideoTokens = videoTokens; + } + + /// + /// Initializes a new instance of the class. + /// + public ImageGenerationUsagePromptTokensDetails() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationUsageServerToolUse.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationUsageServerToolUse.Json.g.cs new file mode 100644 index 00000000..ffe40b91 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationUsageServerToolUse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageGenerationUsageServerToolUse + { + /// + /// 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.ImageGenerationUsageServerToolUse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageGenerationUsageServerToolUse), + jsonSerializerContext) as global::OpenRouter.ImageGenerationUsageServerToolUse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageGenerationUsageServerToolUse? 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.ImageGenerationUsageServerToolUse? 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.ImageGenerationUsageServerToolUse), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationUsageServerToolUse; + } + + /// + /// 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.ImageGenerationUsageServerToolUse.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationUsageServerToolUse.g.cs new file mode 100644 index 00000000..58692840 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationUsageServerToolUse.g.cs @@ -0,0 +1,68 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Usage for server-side tool execution (e.g., web search) + /// + public sealed partial class ImageGenerationUsageServerToolUse + { + /// + /// Number of OpenRouter server tool calls that executed and produced a result. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tool_calls_executed")] + public int? ToolCallsExecuted { get; set; } + + /// + /// Total number of OpenRouter server-orchestrated tool calls the model requested, across all tool types. Provider-native tools (e.g. native web search) are not counted here. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tool_calls_requested")] + public int? ToolCallsRequested { get; set; } + + /// + /// Number of web searches performed by server-side tools. For server-orchestrated tool calls a web search is also counted in tool_calls_requested; provider-native web search may report web_search_requests only. Do not sum the two. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("web_search_requests")] + public int? WebSearchRequests { 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 OpenRouter server tool calls that executed and produced a result. + /// + /// + /// Total number of OpenRouter server-orchestrated tool calls the model requested, across all tool types. Provider-native tools (e.g. native web search) are not counted here. + /// + /// + /// Number of web searches performed by server-side tools. For server-orchestrated tool calls a web search is also counted in tool_calls_requested; provider-native web search may report web_search_requests only. Do not sum the two. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ImageGenerationUsageServerToolUse( + int? toolCallsExecuted, + int? toolCallsRequested, + int? webSearchRequests) + { + this.ToolCallsExecuted = toolCallsExecuted; + this.ToolCallsRequested = toolCallsRequested; + this.WebSearchRequests = webSearchRequests; + } + + /// + /// Initializes a new instance of the class. + /// + public ImageGenerationUsageServerToolUse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageModelArchitecture.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageModelArchitecture.Json.g.cs new file mode 100644 index 00000000..ca938637 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageModelArchitecture.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageModelArchitecture + { + /// + /// 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.ImageModelArchitecture? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageModelArchitecture), + jsonSerializerContext) as global::OpenRouter.ImageModelArchitecture; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageModelArchitecture? 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.ImageModelArchitecture? 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.ImageModelArchitecture), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageModelArchitecture; + } + + /// + /// 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.ImageModelArchitecture.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageModelArchitecture.g.cs new file mode 100644 index 00000000..e91e5cd6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageModelArchitecture.g.cs @@ -0,0 +1,59 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class ImageModelArchitecture + { + /// + /// Supported input modalities + /// + [global::System.Text.Json.Serialization.JsonPropertyName("input_modalities")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList InputModalities { get; set; } + + /// + /// Supported output modalities + /// + [global::System.Text.Json.Serialization.JsonPropertyName("output_modalities")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList OutputModalities { 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. + /// + /// + /// Supported input modalities + /// + /// + /// Supported output modalities + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ImageModelArchitecture( + global::System.Collections.Generic.IList inputModalities, + global::System.Collections.Generic.IList outputModalities) + { + this.InputModalities = inputModalities ?? throw new global::System.ArgumentNullException(nameof(inputModalities)); + this.OutputModalities = outputModalities ?? throw new global::System.ArgumentNullException(nameof(outputModalities)); + } + + /// + /// Initializes a new instance of the class. + /// + public ImageModelArchitecture() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageModelEndpointsResponse.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageModelEndpointsResponse.Json.g.cs new file mode 100644 index 00000000..45bcb9da --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageModelEndpointsResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageModelEndpointsResponse + { + /// + /// 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.ImageModelEndpointsResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageModelEndpointsResponse), + jsonSerializerContext) as global::OpenRouter.ImageModelEndpointsResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageModelEndpointsResponse? 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.ImageModelEndpointsResponse? 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.ImageModelEndpointsResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageModelEndpointsResponse; + } + + /// + /// 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.ImageModelEndpointsResponse.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageModelEndpointsResponse.g.cs new file mode 100644 index 00000000..d7b0c26e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageModelEndpointsResponse.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// The full per-endpoint records for an image model. + /// + public sealed partial class ImageModelEndpointsResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("endpoints")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Endpoints { get; set; } + + /// + /// Model slug + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// Model slug + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ImageModelEndpointsResponse( + global::System.Collections.Generic.IList endpoints, + string id) + { + this.Endpoints = endpoints ?? throw new global::System.ArgumentNullException(nameof(endpoints)); + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + } + + /// + /// Initializes a new instance of the class. + /// + public ImageModelEndpointsResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageModelListItem.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageModelListItem.Json.g.cs new file mode 100644 index 00000000..aa323af9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageModelListItem.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageModelListItem + { + /// + /// 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.ImageModelListItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageModelListItem), + jsonSerializerContext) as global::OpenRouter.ImageModelListItem; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageModelListItem? 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.ImageModelListItem? 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.ImageModelListItem), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageModelListItem; + } + + /// + /// 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.ImageModelListItem.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageModelListItem.g.cs new file mode 100644 index 00000000..c6a61904 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageModelListItem.g.cs @@ -0,0 +1,128 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// A single image model in the discovery listing. + /// + public sealed partial class ImageModelListItem + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("architecture")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ImageModelArchitecture Architecture { get; set; } + + /// + /// Unix timestamp (seconds) of when the model was created + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.UnixTimestampJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTimeOffset Created { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Description { get; set; } + + /// + /// Relative URL to the full per-endpoint records for this model + /// + [global::System.Text.Json.Serialization.JsonPropertyName("endpoints")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Endpoints { get; set; } + + /// + /// Model slug + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// Display name + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// Union of supported parameters across every endpoint of this model. Coarse discovery aid; the definitive per-endpoint set is behind the endpoints URL. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("supported_parameters")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.SupportedParameters SupportedParameters { get; set; } + + /// + /// Whether any endpoint of this model supports native SSE streaming on the dedicated Image API (i.e. `stream: true` in the request). OR across endpoints. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("supports_streaming")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool SupportsStreaming { 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. + /// + /// + /// + /// Unix timestamp (seconds) of when the model was created + /// + /// + /// + /// Relative URL to the full per-endpoint records for this model + /// + /// + /// Model slug + /// + /// + /// Display name + /// + /// + /// Union of supported parameters across every endpoint of this model. Coarse discovery aid; the definitive per-endpoint set is behind the endpoints URL. + /// + /// + /// Whether any endpoint of this model supports native SSE streaming on the dedicated Image API (i.e. `stream: true` in the request). OR across endpoints. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ImageModelListItem( + global::OpenRouter.ImageModelArchitecture architecture, + global::System.DateTimeOffset created, + string description, + string endpoints, + string id, + string name, + global::OpenRouter.SupportedParameters supportedParameters, + bool supportsStreaming) + { + this.Architecture = architecture ?? throw new global::System.ArgumentNullException(nameof(architecture)); + this.Created = created; + this.Description = description ?? throw new global::System.ArgumentNullException(nameof(description)); + this.Endpoints = endpoints ?? throw new global::System.ArgumentNullException(nameof(endpoints)); + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.SupportedParameters = supportedParameters ?? throw new global::System.ArgumentNullException(nameof(supportedParameters)); + this.SupportsStreaming = supportsStreaming; + } + + /// + /// Initializes a new instance of the class. + /// + public ImageModelListItem() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageModelsListResponse.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageModelsListResponse.Json.g.cs new file mode 100644 index 00000000..8d12e881 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageModelsListResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImageModelsListResponse + { + /// + /// 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.ImageModelsListResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImageModelsListResponse), + jsonSerializerContext) as global::OpenRouter.ImageModelsListResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImageModelsListResponse? 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.ImageModelsListResponse? 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.ImageModelsListResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageModelsListResponse; + } + + /// + /// 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.ImageModelsListResponse.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageModelsListResponse.g.cs new file mode 100644 index 00000000..616210ad --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageModelsListResponse.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// List of image generation models. + /// + public sealed partial class ImageModelsListResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Data { 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 ImageModelsListResponse( + global::System.Collections.Generic.IList data) + { + this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); + } + + /// + /// Initializes a new instance of the class. + /// + public ImageModelsListResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageOutputModality.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageOutputModality.g.cs new file mode 100644 index 00000000..9f3dcca3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageOutputModality.g.cs @@ -0,0 +1,87 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ImageOutputModality + { + /// + /// + /// + Audio, + /// + /// + /// + Embeddings, + /// + /// + /// + Image, + /// + /// + /// + Rerank, + /// + /// + /// + Speech, + /// + /// + /// + Text, + /// + /// + /// + Transcription, + /// + /// + /// + Video, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ImageOutputModalityExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ImageOutputModality value) + { + return value switch + { + ImageOutputModality.Audio => "audio", + ImageOutputModality.Embeddings => "embeddings", + ImageOutputModality.Image => "image", + ImageOutputModality.Rerank => "rerank", + ImageOutputModality.Speech => "speech", + ImageOutputModality.Text => "text", + ImageOutputModality.Transcription => "transcription", + ImageOutputModality.Video => "video", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ImageOutputModality? ToEnum(string value) + { + return value switch + { + "audio" => ImageOutputModality.Audio, + "embeddings" => ImageOutputModality.Embeddings, + "image" => ImageOutputModality.Image, + "rerank" => ImageOutputModality.Rerank, + "speech" => ImageOutputModality.Speech, + "text" => ImageOutputModality.Text, + "transcription" => ImageOutputModality.Transcription, + "video" => ImageOutputModality.Video, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImagePricingEntry.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImagePricingEntry.Json.g.cs new file mode 100644 index 00000000..0b85a7b1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImagePricingEntry.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class ImagePricingEntry + { + /// + /// 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.ImagePricingEntry? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.ImagePricingEntry), + jsonSerializerContext) as global::OpenRouter.ImagePricingEntry; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.ImagePricingEntry? 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.ImagePricingEntry? 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.ImagePricingEntry), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImagePricingEntry; + } + + /// + /// 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.ImagePricingEntry.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImagePricingEntry.g.cs new file mode 100644 index 00000000..6836fad3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImagePricingEntry.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// One billable pricing line for an image provider. + /// + public sealed partial class ImagePricingEntry + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("billable")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ImagePricingEntryBillableJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ImagePricingEntryBillable Billable { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cost_usd")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double CostUsd { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("unit")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ImagePricingEntryUnitJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ImagePricingEntryUnit Unit { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("variant")] + public string? Variant { 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 ImagePricingEntry( + global::OpenRouter.ImagePricingEntryBillable billable, + double costUsd, + global::OpenRouter.ImagePricingEntryUnit unit, + string? variant) + { + this.Billable = billable; + this.CostUsd = costUsd; + this.Unit = unit; + this.Variant = variant; + } + + /// + /// Initializes a new instance of the class. + /// + public ImagePricingEntry() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImagePricingEntryBillable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImagePricingEntryBillable.g.cs new file mode 100644 index 00000000..30d4312b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImagePricingEntryBillable.g.cs @@ -0,0 +1,69 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ImagePricingEntryBillable + { + /// + /// + /// + InputFont, + /// + /// + /// + InputImage, + /// + /// + /// + InputReference, + /// + /// + /// + InputText, + /// + /// + /// + OutputImage, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ImagePricingEntryBillableExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ImagePricingEntryBillable value) + { + return value switch + { + ImagePricingEntryBillable.InputFont => "input_font", + ImagePricingEntryBillable.InputImage => "input_image", + ImagePricingEntryBillable.InputReference => "input_reference", + ImagePricingEntryBillable.InputText => "input_text", + ImagePricingEntryBillable.OutputImage => "output_image", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ImagePricingEntryBillable? ToEnum(string value) + { + return value switch + { + "input_font" => ImagePricingEntryBillable.InputFont, + "input_image" => ImagePricingEntryBillable.InputImage, + "input_reference" => ImagePricingEntryBillable.InputReference, + "input_text" => ImagePricingEntryBillable.InputText, + "output_image" => ImagePricingEntryBillable.OutputImage, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImagePricingEntryUnit.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImagePricingEntryUnit.g.cs new file mode 100644 index 00000000..473abbba --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImagePricingEntryUnit.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ImagePricingEntryUnit + { + /// + /// + /// + Image, + /// + /// + /// + Megapixel, + /// + /// + /// + Token, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ImagePricingEntryUnitExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ImagePricingEntryUnit value) + { + return value switch + { + ImagePricingEntryUnit.Image => "image", + ImagePricingEntryUnit.Megapixel => "megapixel", + ImagePricingEntryUnit.Token => "token", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ImagePricingEntryUnit? ToEnum(string value) + { + return value switch + { + "image" => ImagePricingEntryUnit.Image, + "megapixel" => ImagePricingEntryUnit.Megapixel, + "token" => ImagePricingEntryUnit.Token, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.RangeCapabilityType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.RangeCapabilityType.g.cs new file mode 100644 index 00000000..4128a276 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.RangeCapabilityType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum RangeCapabilityType + { + /// + /// + /// + Range, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RangeCapabilityTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RangeCapabilityType value) + { + return value switch + { + RangeCapabilityType.Range => "range", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RangeCapabilityType? ToEnum(string value) + { + return value switch + { + "range" => RangeCapabilityType.Range, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequest.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequest.g.cs index 6560a1e7..c24b41dc 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequest.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequest.g.cs @@ -20,6 +20,12 @@ public sealed partial class ResponsesRequest [global::System.Text.Json.Serialization.JsonPropertyName("cache_control")] public global::OpenRouter.AnthropicCacheControlDirective? CacheControl { get; set; } + /// + /// Debug options for inspecting request transformations (streaming only) + /// + [global::System.Text.Json.Serialization.JsonPropertyName("debug")] + public global::OpenRouter.ChatDebugOptions? Debug { get; set; } + /// /// /// @@ -254,6 +260,9 @@ public sealed partial class ResponsesRequest /// /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. /// + /// + /// Debug options for inspecting request transformations (streaming only) + /// /// /// /// @@ -322,6 +331,7 @@ public sealed partial class ResponsesRequest public ResponsesRequest( bool? background, global::OpenRouter.AnthropicCacheControlDirective? cacheControl, + global::OpenRouter.ChatDebugOptions? debug, double? frequencyPenalty, global::OpenRouter.ImageConfig? imageConfig, global::System.Collections.Generic.IList? include, @@ -361,6 +371,7 @@ public ResponsesRequest( { this.Background = background; this.CacheControl = cacheControl; + this.Debug = debug; this.FrequencyPenalty = frequencyPenalty; this.ImageConfig = imageConfig; this.Include = include; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.SupportedParameters.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.SupportedParameters.Json.g.cs new file mode 100644 index 00000000..90de9187 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.SupportedParameters.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class SupportedParameters + { + /// + /// 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.SupportedParameters? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.SupportedParameters), + jsonSerializerContext) as global::OpenRouter.SupportedParameters; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.SupportedParameters? 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.SupportedParameters? 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.SupportedParameters), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.SupportedParameters; + } + + /// + /// 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.SupportedParameters.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.SupportedParameters.g.cs new file mode 100644 index 00000000..41eec0b0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.SupportedParameters.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Union of supported parameters across every endpoint of this model. Coarse discovery aid; the definitive per-endpoint set is behind the endpoints URL. + /// + public sealed partial class SupportedParameters + { + + /// + /// 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.OpenRouterClient.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.OpenRouterClient.g.cs index a1f7a296..b5a9e7cd 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.OpenRouterClient.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.OpenRouterClient.g.cs @@ -174,6 +174,15 @@ public sealed partial class OpenRouterClient : global::OpenRouter.IOpenRouterCli JsonSerializerContext = JsonSerializerContext, }; + /// + /// + /// + public SubpackageImagesClient SubpackageImages => new SubpackageImagesClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) + { + ReadResponseAsString = ReadResponseAsString, + JsonSerializerContext = JsonSerializerContext, + }; + /// /// /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.SubpackageBetaResponsesClient.CreateResponses.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.SubpackageBetaResponsesClient.CreateResponses.g.cs index 3cfe54dc..664d9dd5 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.SubpackageBetaResponsesClient.CreateResponses.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.SubpackageBetaResponsesClient.CreateResponses.g.cs @@ -907,6 +907,9 @@ partial void ProcessCreateResponsesResponseContent( /// /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. /// + /// + /// Debug options for inspecting request transformations (streaming only) + /// /// /// /// @@ -976,6 +979,7 @@ partial void ProcessCreateResponsesResponseContent( global::OpenRouter.MetadataLevel? xOpenRouterMetadata = default, bool? background = default, global::OpenRouter.AnthropicCacheControlDirective? cacheControl = default, + global::OpenRouter.ChatDebugOptions? debug = default, double? frequencyPenalty = default, global::OpenRouter.ImageConfig? imageConfig = default, global::System.Collections.Generic.IList? include = default, @@ -1019,6 +1023,7 @@ partial void ProcessCreateResponsesResponseContent( { Background = background, CacheControl = cacheControl, + Debug = debug, FrequencyPenalty = frequencyPenalty, ImageConfig = imageConfig, Include = include, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.SubpackageImagesClient.CreateImages.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.SubpackageImagesClient.CreateImages.g.cs new file mode 100644 index 00000000..a014e2eb --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.SubpackageImagesClient.CreateImages.g.cs @@ -0,0 +1,823 @@ + +#nullable enable + +namespace OpenRouter +{ + public partial class SubpackageImagesClient + { + + + private static readonly global::OpenRouter.EndPointSecurityRequirement s_CreateImagesSecurityRequirement0 = + 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_CreateImagesSecurityRequirements = + new global::OpenRouter.EndPointSecurityRequirement[] + { s_CreateImagesSecurityRequirement0, + }; + partial void PrepareCreateImagesArguments( + global::System.Net.Http.HttpClient httpClient, + global::OpenRouter.ImageGenerationRequest request); + partial void PrepareCreateImagesRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::OpenRouter.ImageGenerationRequest request); + partial void ProcessCreateImagesResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessCreateImagesResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Generate an image
+ /// Generates an image from a text prompt via the image generation router + ///
+ /// + /// 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 CreateImagesAsync( + + global::OpenRouter.ImageGenerationRequest request, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await CreateImagesAsResponseAsync( + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Generate an image
+ /// Generates an image from a text prompt via the image generation router + ///
+ /// + /// 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> CreateImagesAsResponseAsync( + + global::OpenRouter.ImageGenerationRequest request, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareCreateImagesArguments( + httpClient: HttpClient, + request: request); + + + var __authorizations = global::OpenRouter.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateImagesSecurityRequirements, + operationName: "CreateImagesAsync"); + + 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: false); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::OpenRouter.PathBuilder( + path: "/images", + baseUri: HttpClient.BaseAddress); + 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); + PrepareCreateImagesRequest( + 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: "CreateImages", + methodName: "CreateImagesAsync", + pathTemplate: "\"/images\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::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: "CreateImages", + methodName: "CreateImagesAsync", + pathTemplate: "\"/images\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::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: "CreateImages", + methodName: "CreateImagesAsync", + pathTemplate: "\"/images\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::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); + ProcessCreateImagesResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateImages", + methodName: "CreateImagesAsync", + pathTemplate: "\"/images\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateImages", + methodName: "CreateImagesAsync", + pathTemplate: "\"/images\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // 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)); + } + // 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)); + } + + 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); + ProcessCreateImagesResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::OpenRouter.ImageGenerationResponse.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.ImageGenerationResponse.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(); + } + } + /// + /// Generate an image
+ /// Generates an image from a text prompt via the image generation router + ///
+ /// + /// Normalized aspect ratio of the generated image. Providers clamp to their supported subset. + /// + /// + /// Background treatment. `transparent` requires an output_format that supports alpha (png or webp). + /// + /// + /// Reference images to guide image-to-image generation, as base64 data URLs or HTTP(S) URLs. + /// + /// + /// The image generation model to use + /// + /// + /// Number of images to generate (1-10). Providers that only support single-image generation reject n > 1. + /// + /// + /// Compression level (0-100) for webp/jpeg output. Ignored for png and by providers without a compression knob. + /// + /// + /// Encoding of the returned image bytes. + /// + /// + /// Text description of the desired image + /// + /// + /// Provider-specific passthrough configuration + /// + /// + /// Rendering quality. Providers without a quality knob ignore this. + /// + /// + /// Normalized resolution tier of the generated image. Concrete pixel dimensions are derived per-provider. + /// + /// + /// If specified, the generation will sample deterministically, such that repeated requests with the same seed and parameters should return the same result. Determinism is not guaranteed for all providers. + /// + /// + /// 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. Interchangeable with resolution + aspect_ratio; use those directly for enumerated, per-model discoverable values. Conflicting size + resolution/aspect_ratio is rejected. + /// + /// + /// If true, partial images are streamed as SSE events as they become available. Only supported by providers with native streaming (currently OpenAI). Non-streaming providers ignore this flag and return a buffered response. + /// + /// 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 CreateImagesAsync( + string model, + string prompt, + global::OpenRouter.ImageGenerationRequestAspectRatio? aspectRatio = default, + global::OpenRouter.ImageGenerationRequestBackground? background = default, + global::System.Collections.Generic.IList? inputReferences = default, + int? n = default, + int? outputCompression = default, + global::OpenRouter.ImageGenerationRequestOutputFormat? outputFormat = default, + global::OpenRouter.ImageGenerationRequestProvider? provider = default, + global::OpenRouter.ImageGenerationRequestQuality? quality = default, + global::OpenRouter.ImageGenerationRequestResolution? resolution = default, + int? seed = default, + string? size = default, + bool? stream = default, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::OpenRouter.ImageGenerationRequest + { + AspectRatio = aspectRatio, + Background = background, + InputReferences = inputReferences, + Model = model, + N = n, + OutputCompression = outputCompression, + OutputFormat = outputFormat, + Prompt = prompt, + Provider = provider, + Quality = quality, + Resolution = resolution, + Seed = seed, + Size = size, + Stream = stream, + }; + + return await CreateImagesAsync( + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.SubpackageImagesClient.ListImageModelEndpoints.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.SubpackageImagesClient.ListImageModelEndpoints.g.cs new file mode 100644 index 00000000..bd964ca7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.SubpackageImagesClient.ListImageModelEndpoints.g.cs @@ -0,0 +1,509 @@ + +#nullable enable + +namespace OpenRouter +{ + public partial class SubpackageImagesClient + { + + + private static readonly global::OpenRouter.EndPointSecurityRequirement s_ListImageModelEndpointsSecurityRequirement0 = + 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_ListImageModelEndpointsSecurityRequirements = + new global::OpenRouter.EndPointSecurityRequirement[] + { s_ListImageModelEndpointsSecurityRequirement0, + }; + partial void PrepareListImageModelEndpointsArguments( + global::System.Net.Http.HttpClient httpClient, + ref string author, + ref string slug); + partial void PrepareListImageModelEndpointsRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string author, + string slug); + partial void ProcessListImageModelEndpointsResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessListImageModelEndpointsResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// List endpoints for an image model
+ /// Returns the full per-endpoint records for an image model: each endpoint's definitive supported parameters, pricing, and passthrough allowlist. + ///
+ /// + /// + /// 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 ListImageModelEndpointsAsync( + string author, + string slug, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await ListImageModelEndpointsAsResponseAsync( + author: author, + slug: slug, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// List endpoints for an image model
+ /// Returns the full per-endpoint records for an image model: each endpoint's definitive supported parameters, pricing, and passthrough allowlist. + ///
+ /// + /// + /// 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> ListImageModelEndpointsAsResponseAsync( + string author, + string slug, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareListImageModelEndpointsArguments( + httpClient: HttpClient, + author: ref author, + slug: ref slug); + + + var __authorizations = global::OpenRouter.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListImageModelEndpointsSecurityRequirements, + operationName: "ListImageModelEndpointsAsync"); + + 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: $"/images/models/{author}/{slug}/endpoints", + baseUri: HttpClient.BaseAddress); + 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.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::OpenRouter.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareListImageModelEndpointsRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + author: author!, + slug: slug!); + + 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: "ListImageModelEndpoints", + methodName: "ListImageModelEndpointsAsync", + pathTemplate: "$\"/images/models/{author}/{slug}/endpoints\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::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: "ListImageModelEndpoints", + methodName: "ListImageModelEndpointsAsync", + pathTemplate: "$\"/images/models/{author}/{slug}/endpoints\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::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: "ListImageModelEndpoints", + methodName: "ListImageModelEndpointsAsync", + pathTemplate: "$\"/images/models/{author}/{slug}/endpoints\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::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); + ProcessListImageModelEndpointsResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListImageModelEndpoints", + methodName: "ListImageModelEndpointsAsync", + pathTemplate: "$\"/images/models/{author}/{slug}/endpoints\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListImageModelEndpoints", + methodName: "ListImageModelEndpointsAsync", + pathTemplate: "$\"/images/models/{author}/{slug}/endpoints\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // 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)); + } + // 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)); + } + + 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); + ProcessListImageModelEndpointsResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::OpenRouter.ImageModelEndpointsResponse.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.ImageModelEndpointsResponse.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(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.SubpackageImagesClient.ListImageModels.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.SubpackageImagesClient.ListImageModels.g.cs new file mode 100644 index 00000000..bd8459b0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.SubpackageImagesClient.ListImageModels.g.cs @@ -0,0 +1,454 @@ + +#nullable enable + +namespace OpenRouter +{ + public partial class SubpackageImagesClient + { + + + private static readonly global::OpenRouter.EndPointSecurityRequirement s_ListImageModelsSecurityRequirement0 = + 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_ListImageModelsSecurityRequirements = + new global::OpenRouter.EndPointSecurityRequirement[] + { s_ListImageModelsSecurityRequirement0, + }; + partial void PrepareListImageModelsArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareListImageModelsRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessListImageModelsResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessListImageModelsResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// List image generation models
+ /// Lists every image generation model with its top-level supported-parameter superset and a URL to its full per-endpoint records. + ///
+ /// 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 ListImageModelsAsync( + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await ListImageModelsAsResponseAsync( + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// List image generation models
+ /// Lists every image generation model with its top-level supported-parameter superset and a URL to its full per-endpoint records. + ///
+ /// 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> ListImageModelsAsResponseAsync( + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareListImageModelsArguments( + httpClient: HttpClient); + + + var __authorizations = global::OpenRouter.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListImageModelsSecurityRequirements, + operationName: "ListImageModelsAsync"); + + 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: "/images/models", + baseUri: HttpClient.BaseAddress); + 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.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::OpenRouter.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareListImageModelsRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + 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: "ListImageModels", + methodName: "ListImageModelsAsync", + pathTemplate: "\"/images/models\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::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: "ListImageModels", + methodName: "ListImageModelsAsync", + pathTemplate: "\"/images/models\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::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: "ListImageModels", + methodName: "ListImageModelsAsync", + pathTemplate: "\"/images/models\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::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); + ProcessListImageModelsResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListImageModels", + methodName: "ListImageModelsAsync", + pathTemplate: "\"/images/models\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListImageModels", + methodName: "ListImageModelsAsync", + pathTemplate: "\"/images/models\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // 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)); + } + + 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); + ProcessListImageModelsResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::OpenRouter.ImageModelsListResponse.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.ImageModelsListResponse.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(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.SubpackageImagesClient.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.SubpackageImagesClient.g.cs new file mode 100644 index 00000000..4104b6a8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.SubpackageImagesClient.g.cs @@ -0,0 +1,136 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// 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 SubpackageImagesClient : global::OpenRouter.ISubpackageImagesClient, global::System.IDisposable + { + /// + /// Production server + /// + public const string DefaultBaseUrl = "https://openrouter.ai/api/v1"; + + 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.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::OpenRouter.SourceGenerationContext.Default; + + + /// + /// Creates a new instance of the SubpackageImagesClient. + /// 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 SubpackageImagesClient( + 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 SubpackageImagesClient 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 SubpackageImagesClient( + 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 SubpackageImagesClient. + /// 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 SubpackageImagesClient( + 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(); + HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl); + Authorizations = authorizations ?? new global::System.Collections.Generic.List(); + Options = options ?? new global::OpenRouter.AutoSDKClientOptions(); + _disposeHttpClient = disposeHttpClient; + + Initialized(HttpClient); + } + + /// + public void Dispose() + { + if (_disposeHttpClient) + { + HttpClient.Dispose(); + } + } + + partial void Initialized( + global::System.Net.Http.HttpClient client); + partial void PrepareArguments( + global::System.Net.Http.HttpClient client); + partial void PrepareRequest( + global::System.Net.Http.HttpClient client, + global::System.Net.Http.HttpRequestMessage request); + partial void ProcessResponse( + global::System.Net.Http.HttpClient client, + global::System.Net.Http.HttpResponseMessage response); + partial void ProcessResponseContent( + global::System.Net.Http.HttpClient client, + global::System.Net.Http.HttpResponseMessage response, + ref string content); + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.SubpackagePresetsClient.CreatePresetsResponses.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.SubpackagePresetsClient.CreatePresetsResponses.g.cs index 3871fb84..056f77f4 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.SubpackagePresetsClient.CreatePresetsResponses.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.SubpackagePresetsClient.CreatePresetsResponses.g.cs @@ -673,6 +673,9 @@ partial void ProcessCreatePresetsResponsesResponseContent( /// /// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models. /// + /// + /// Debug options for inspecting request transformations (streaming only) + /// /// /// /// @@ -742,6 +745,7 @@ partial void ProcessCreatePresetsResponsesResponseContent( string slug, bool? background = default, global::OpenRouter.AnthropicCacheControlDirective? cacheControl = default, + global::OpenRouter.ChatDebugOptions? debug = default, double? frequencyPenalty = default, global::OpenRouter.ImageConfig? imageConfig = default, global::System.Collections.Generic.IList? include = default, @@ -785,6 +789,7 @@ partial void ProcessCreatePresetsResponsesResponseContent( { Background = background, CacheControl = cacheControl, + Debug = debug, FrequencyPenalty = frequencyPenalty, ImageConfig = imageConfig, Include = include, diff --git a/src/libs/OpenRouter/openapi.yaml b/src/libs/OpenRouter/openapi.yaml index 176f62ec..96242b53 100644 --- a/src/libs/OpenRouter/openapi.yaml +++ b/src/libs/OpenRouter/openapi.yaml @@ -379,6 +379,213 @@ } } }, + "/images": { + "post": { + "operationId": "create-images", + "summary": "Generate an image", + "description": "Generates an image from a text prompt via the image generation router", + "tags": [ + "subpackage_images" + ], + "parameters": [], + "responses": { + "200": { + "description": "Image generation response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ImageGenerationResponse" + } + } + } + }, + "400": { + "description": "Bad Request - Invalid request parameters or malformed input", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BadRequestResponse" + } + } + } + }, + "401": { + "description": "Unauthorized - Authentication required or invalid credentials", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UnauthorizedResponse" + } + } + } + }, + "402": { + "description": "Payment Required - Insufficient credits or quota to complete request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PaymentRequiredResponse" + } + } + } + }, + "403": { + "description": "Forbidden - Authentication successful but insufficient permissions", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ForbiddenResponse" + } + } + } + }, + "404": { + "description": "Not Found - Resource does not exist", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NotFoundResponse" + } + } + } + }, + "429": { + "description": "Too Many Requests - Rate limit exceeded", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TooManyRequestsResponse" + } + } + } + }, + "500": { + "description": "Internal Server Error - Unexpected server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InternalServerResponse" + } + } + } + }, + "502": { + "description": "Bad Gateway - Provider/upstream API failure", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BadGatewayResponse" + } + } + } + } + }, + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ImageGenerationRequest" + } + } + } + } + } + }, + "/images/models": { + "get": { + "operationId": "list-image-models", + "summary": "List image generation models", + "description": "Lists every image generation model with its top-level supported-parameter superset and a URL to its full per-endpoint records.", + "tags": [ + "subpackage_images" + ], + "parameters": [], + "responses": { + "200": { + "description": "List of image generation models", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ImageModelsListResponse" + } + } + } + }, + "500": { + "description": "Internal Server Error - Unexpected server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InternalServerResponse" + } + } + } + } + } + } + }, + "/images/models/{author}/{slug}/endpoints": { + "get": { + "operationId": "list-image-model-endpoints", + "summary": "List endpoints for an image model", + "description": "Returns the full per-endpoint records for an image model: each endpoint's definitive supported parameters, pricing, and passthrough allowlist.", + "tags": [ + "subpackage_images" + ], + "parameters": [ + { + "name": "author", + "in": "path", + "description": "Model author/organization", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "slug", + "in": "path", + "description": "Model slug", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "The full per-endpoint records for an image model", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ImageModelEndpointsResponse" + } + } + } + }, + "404": { + "description": "Not Found - Resource does not exist", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NotFoundResponse" + } + } + } + }, + "500": { + "description": "Internal Server Error - Unexpected server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InternalServerResponse" + } + } + } + } + } + } + }, "/audio/speech": { "post": { "operationId": "create-audio-speech", @@ -7014,6 +7221,17 @@ "description": "Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models.", "title": "AnthropicCacheControlDirective" }, + "ChatDebugOptions": { + "type": "object", + "properties": { + "echo_upstream_body": { + "type": "boolean", + "description": "If true, includes the transformed upstream request body in a debug chunk at the start of the stream. Only works with streaming mode." + } + }, + "description": "Debug options for inspecting request transformations (streaming only)", + "title": "ChatDebugOptions" + }, "ImageConfig": { "oneOf": [ { @@ -13367,6 +13585,9 @@ }, "description": "Slugs of models to run in parallel as the analysis panel. Each model receives the user prompt with openrouter:web_search and openrouter:web_fetch enabled, then a judge model summarizes the collective output into structured analysis JSON. Capped at 8 models to bound cost amplification. Defaults to the Quality preset from /labs/fusion." }, + "cache_control": { + "$ref": "#/components/schemas/AnthropicCacheControlDirective" + }, "max_completion_tokens": { "type": "integer", "description": "Maximum number of output tokens (including reasoning tokens) each panelist and the judge model may produce per inner call. Controls the total output budget so reasoning-heavy models like GPT-5.5 do not exhaust their token allowance before producing visible text. When omitted, the provider's default applies." @@ -14033,6 +14254,9 @@ "cache_control": { "$ref": "#/components/schemas/AnthropicCacheControlDirective" }, + "debug": { + "$ref": "#/components/schemas/ChatDebugOptions" + }, "frequency_penalty": { "type": [ "number", @@ -17872,7 +18096,80 @@ "description": "Conflict - Resource conflict or concurrent modification", "title": "ConflictResponse" }, - "ProviderOptions": { + "ImageGenerationRequestAspectRatio": { + "type": "string", + "enum": [ + "1:1", + "1:2", + "1:4", + "1:8", + "2:1", + "2:3", + "3:2", + "3:4", + "4:1", + "4:3", + "4:5", + "5:4", + "8:1", + "9:16", + "16:9", + "9:19.5", + "19.5:9", + "9:20", + "20:9", + "9:21", + "21:9", + "auto" + ], + "description": "Normalized aspect ratio of the generated image. Providers clamp to their supported subset.", + "title": "ImageGenerationRequestAspectRatio" + }, + "ImageGenerationRequestBackground": { + "type": "string", + "enum": [ + "auto", + "transparent", + "opaque" + ], + "description": "Background treatment. `transparent` requires an output_format that supports alpha (png or webp).", + "title": "ImageGenerationRequestBackground" + }, + "InputReferenceDiscriminatorMappingImageUrlImageUrl": { + "type": "object", + "properties": { + "url": { + "type": "string" + } + }, + "required": [ + "url" + ], + "title": "InputReferenceDiscriminatorMappingImageUrlImageUrl" + }, + "ContentPartImage": { + "type": "object", + "properties": { + "image_url": { + "$ref": "#/components/schemas/InputReferenceDiscriminatorMappingImageUrlImageUrl" + } + }, + "required": [ + "image_url" + ], + "title": "ContentPartImage" + }, + "ImageGenerationRequestOutputFormat": { + "type": "string", + "enum": [ + "png", + "jpeg", + "webp" + ], + "description": "Encoding of the returned image bytes.", + "title": "ImageGenerationRequestOutputFormat" + }, + "ImageGenerationRequestProviderOptions": { "type": "object", "properties": { "01ai": { @@ -18567,223 +18864,1766 @@ } }, "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.", - "title": "ProviderOptions" + "title": "ImageGenerationRequestProviderOptions" }, - "SpeechRequestProvider": { + "ImageGenerationRequestProvider": { "type": "object", "properties": { "options": { - "$ref": "#/components/schemas/ProviderOptions" + "$ref": "#/components/schemas/ImageGenerationRequestProviderOptions" } }, "description": "Provider-specific passthrough configuration", - "title": "SpeechRequestProvider" + "title": "ImageGenerationRequestProvider" }, - "SpeechRequestResponseFormat": { + "ImageGenerationRequestQuality": { "type": "string", "enum": [ - "mp3", - "pcm" + "auto", + "low", + "medium", + "high" ], - "default": "pcm", - "description": "Audio output format", - "title": "SpeechRequestResponseFormat" + "description": "Rendering quality. Providers without a quality knob ignore this.", + "title": "ImageGenerationRequestQuality" }, - "SpeechRequest": { + "ImageGenerationRequestResolution": { + "type": "string", + "enum": [ + "512", + "1K", + "2K", + "4K" + ], + "description": "Normalized resolution tier of the generated image. Concrete pixel dimensions are derived per-provider.", + "title": "ImageGenerationRequestResolution" + }, + "ImageGenerationRequest": { "type": "object", "properties": { - "input": { - "type": "string", - "description": "Text to synthesize" + "aspect_ratio": { + "$ref": "#/components/schemas/ImageGenerationRequestAspectRatio", + "description": "Normalized aspect ratio of the generated image. Providers clamp to their supported subset." + }, + "background": { + "$ref": "#/components/schemas/ImageGenerationRequestBackground", + "description": "Background treatment. `transparent` requires an output_format that supports alpha (png or webp)." + }, + "input_references": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ContentPartImage" + }, + "description": "Reference images to guide image-to-image generation, as base64 data URLs or HTTP(S) URLs." }, "model": { "type": "string", - "description": "TTS model identifier" + "description": "The image generation model to use" + }, + "n": { + "type": "integer", + "description": "Number of images to generate (1-10). Providers that only support single-image generation reject n > 1." + }, + "output_compression": { + "type": "integer", + "description": "Compression level (0-100) for webp/jpeg output. Ignored for png and by providers without a compression knob." + }, + "output_format": { + "$ref": "#/components/schemas/ImageGenerationRequestOutputFormat", + "description": "Encoding of the returned image bytes." + }, + "prompt": { + "type": "string", + "description": "Text description of the desired image" }, "provider": { - "$ref": "#/components/schemas/SpeechRequestProvider", + "$ref": "#/components/schemas/ImageGenerationRequestProvider", "description": "Provider-specific passthrough configuration" }, - "response_format": { - "$ref": "#/components/schemas/SpeechRequestResponseFormat", - "description": "Audio output format" + "quality": { + "$ref": "#/components/schemas/ImageGenerationRequestQuality", + "description": "Rendering quality. Providers without a quality knob ignore this." }, - "speed": { - "type": "number", - "format": "double", - "description": "Playback speed multiplier. Only used by models that support it (e.g. OpenAI TTS). Ignored by other providers." + "resolution": { + "$ref": "#/components/schemas/ImageGenerationRequestResolution", + "description": "Normalized resolution tier of the generated image. Concrete pixel dimensions are derived per-provider." }, - "voice": { + "seed": { + "type": "integer", + "description": "If specified, the generation will sample deterministically, such that repeated requests with the same seed and parameters should return the same result. Determinism is not guaranteed for all providers." + }, + "size": { "type": "string", - "description": "Voice identifier (provider-specific)." + "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. Interchangeable with resolution + aspect_ratio; use those directly for enumerated, per-model discoverable values. Conflicting size + resolution/aspect_ratio is rejected." + }, + "stream": { + "type": "boolean", + "description": "If true, partial images are streamed as SSE events as they become available. Only supported by providers with native streaming (currently OpenAI). Non-streaming providers ignore this flag and return a buffered response." } }, "required": [ - "input", "model", - "voice" + "prompt" ], - "description": "Text-to-speech request input", - "title": "SpeechRequest" + "description": "Image generation request input", + "title": "ImageGenerationRequest" }, - "STTInputAudio": { + "ImageGenerationResponseDataItems": { "type": "object", "properties": { - "data": { - "type": "string", - "description": "Base64-encoded audio data (raw bytes, not a data URI)" - }, - "format": { + "b64_json": { "type": "string", - "description": "Audio format (e.g., wav, mp3, flac, m4a, ogg, webm, aac). Supported formats vary by provider." + "description": "Base64-encoded image bytes" } }, "required": [ - "data", - "format" + "b64_json" ], - "description": "Base64-encoded audio to transcribe", - "title": "STTInputAudio" + "title": "ImageGenerationResponseDataItems" }, - "SttRequestProvider": { + "ImageGenerationUsageCompletionTokensDetails": { "type": "object", "properties": { - "options": { - "$ref": "#/components/schemas/ProviderOptions" + "audio_tokens": { + "type": [ + "integer", + "null" + ], + "description": "Tokens generated by the model for audio output." + }, + "image_tokens": { + "type": [ + "integer", + "null" + ], + "description": "Tokens generated by the model for image output." + }, + "reasoning_tokens": { + "type": [ + "integer", + "null" + ], + "description": "Tokens generated by the model for reasoning." } }, - "description": "Provider-specific passthrough configuration", - "title": "SttRequestProvider" + "title": "ImageGenerationUsageCompletionTokensDetails" }, - "STTRequest": { + "CostDetails": { "type": "object", "properties": { - "input_audio": { - "$ref": "#/components/schemas/STTInputAudio" - }, - "language": { - "type": "string", - "description": "ISO-639-1 language code (e.g., \"en\", \"ja\"). Auto-detected if omitted." - }, - "model": { - "type": "string", - "description": "STT model identifier" + "upstream_inference_completions_cost": { + "type": "number", + "format": "double" }, - "provider": { - "$ref": "#/components/schemas/SttRequestProvider", - "description": "Provider-specific passthrough configuration" + "upstream_inference_cost": { + "type": [ + "number", + "null" + ], + "format": "double" }, - "temperature": { + "upstream_inference_prompt_cost": { "type": "number", - "format": "double", - "description": "Sampling temperature for transcription" + "format": "double" } }, "required": [ - "input_audio", - "model" + "upstream_inference_completions_cost", + "upstream_inference_prompt_cost" ], - "description": "Speech-to-text request input. Accepts a JSON body with input_audio containing base64-encoded audio.", - "title": "STTRequest" + "description": "Breakdown of upstream inference costs", + "title": "CostDetails" }, - "STTUsage": { + "AnthropicIterationCacheCreation": { "type": "object", "properties": { - "cost": { - "type": "number", - "format": "double", - "description": "Total cost of the request in USD" - }, - "input_tokens": { - "type": "integer", - "description": "Number of input tokens billed for this request" - }, - "output_tokens": { - "type": "integer", - "description": "Number of output tokens generated" - }, - "seconds": { - "type": "number", - "format": "double", - "description": "Duration of the input audio in seconds" + "ephemeral_1h_input_tokens": { + "type": "integer" }, - "total_tokens": { - "type": "integer", - "description": "Total number of tokens used (input + output)" + "ephemeral_5m_input_tokens": { + "type": "integer" } }, - "description": "Aggregated usage statistics for the request", - "title": "STTUsage" + "title": "AnthropicIterationCacheCreation" }, - "STTResponse": { + "AnthropicCompactionUsageIterationType": { + "type": "string", + "enum": [ + "compaction" + ], + "title": "AnthropicCompactionUsageIterationType" + }, + "AnthropicCompactionUsageIteration": { "type": "object", "properties": { - "text": { - "type": "string", - "description": "The transcribed text" + "cache_creation": { + "$ref": "#/components/schemas/AnthropicIterationCacheCreation" }, - "usage": { - "$ref": "#/components/schemas/STTUsage" + "cache_creation_input_tokens": { + "type": "integer" + }, + "cache_read_input_tokens": { + "type": "integer" + }, + "input_tokens": { + "type": "integer" + }, + "output_tokens": { + "type": "integer" + }, + "type": { + "$ref": "#/components/schemas/AnthropicCompactionUsageIterationType" } }, "required": [ - "text" + "type" ], - "description": "STT response containing transcribed text and optional usage statistics", - "title": "STTResponse" + "title": "AnthropicCompactionUsageIteration" }, - "ActivityItem": { + "AnthropicMessageUsageIterationType": { + "type": "string", + "enum": [ + "message" + ], + "title": "AnthropicMessageUsageIterationType" + }, + "AnthropicMessageUsageIteration": { "type": "object", "properties": { - "byok_usage_inference": { - "type": "number", - "format": "double", - "description": "BYOK inference cost in USD (external credits spent)" - }, - "completion_tokens": { - "type": "integer", - "description": "Total completion tokens generated" - }, - "date": { - "type": "string", - "description": "Date of the activity (YYYY-MM-DD format)" - }, - "endpoint_id": { - "type": "string", - "description": "Unique identifier for the endpoint" - }, - "model": { - "type": "string", - "description": "Model slug (e.g., \"openai/gpt-4.1\")" + "cache_creation": { + "$ref": "#/components/schemas/AnthropicIterationCacheCreation" }, - "model_permaslug": { - "type": "string", - "description": "Model permaslug (e.g., \"openai/gpt-4.1-2025-04-14\")" + "cache_creation_input_tokens": { + "type": "integer" }, - "prompt_tokens": { - "type": "integer", - "description": "Total prompt tokens used" + "cache_read_input_tokens": { + "type": "integer" }, - "provider_name": { - "type": "string", - "description": "Name of the provider serving this endpoint" + "input_tokens": { + "type": "integer" }, - "reasoning_tokens": { - "type": "integer", - "description": "Total reasoning tokens used" + "output_tokens": { + "type": "integer" }, - "requests": { - "type": "integer", - "description": "Number of requests made" + "model": { + "type": "string" }, - "usage": { - "type": "number", - "format": "double", - "description": "Total cost in USD (OpenRouter credits spent)" + "type": { + "$ref": "#/components/schemas/AnthropicMessageUsageIterationType" } }, "required": [ - "byok_usage_inference", + "type" + ], + "title": "AnthropicMessageUsageIteration" + }, + "AnthropicAdvisorMessageUsageIterationType": { + "type": "string", + "enum": [ + "advisor_message" + ], + "title": "AnthropicAdvisorMessageUsageIterationType" + }, + "AnthropicAdvisorMessageUsageIteration": { + "type": "object", + "properties": { + "cache_creation": { + "$ref": "#/components/schemas/AnthropicIterationCacheCreation" + }, + "cache_creation_input_tokens": { + "type": "integer" + }, + "cache_read_input_tokens": { + "type": "integer" + }, + "input_tokens": { + "type": "integer" + }, + "output_tokens": { + "type": "integer" + }, + "model": { + "type": "string" + }, + "type": { + "$ref": "#/components/schemas/AnthropicAdvisorMessageUsageIterationType" + } + }, + "required": [ + "model", + "type" + ], + "title": "AnthropicAdvisorMessageUsageIteration" + }, + "AnthropicUnknownUsageIteration": { + "type": "object", + "properties": { + "cache_creation": { + "$ref": "#/components/schemas/AnthropicIterationCacheCreation" + }, + "cache_creation_input_tokens": { + "type": "integer" + }, + "cache_read_input_tokens": { + "type": "integer" + }, + "input_tokens": { + "type": "integer" + }, + "output_tokens": { + "type": "integer" + }, + "type": { + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "AnthropicUnknownUsageIteration" + }, + "AnthropicUsageIteration": { + "oneOf": [ + { + "$ref": "#/components/schemas/AnthropicCompactionUsageIteration" + }, + { + "$ref": "#/components/schemas/AnthropicMessageUsageIteration" + }, + { + "$ref": "#/components/schemas/AnthropicAdvisorMessageUsageIteration" + }, + { + "$ref": "#/components/schemas/AnthropicUnknownUsageIteration" + } + ], + "title": "AnthropicUsageIteration" + }, + "ImageGenerationUsagePromptTokensDetails": { + "type": "object", + "properties": { + "audio_tokens": { + "type": [ + "integer", + "null" + ], + "description": "Tokens used for input audio." + }, + "cache_write_tokens": { + "type": [ + "integer", + "null" + ], + "description": "Tokens written to cache. Only returned for models with explicit caching and cache write pricing." + }, + "cached_tokens": { + "type": [ + "integer", + "null" + ], + "description": "Tokens cached by the endpoint." + }, + "file_tokens": { + "type": [ + "integer", + "null" + ], + "description": "Tokens used for input files/documents." + }, + "video_tokens": { + "type": [ + "integer", + "null" + ], + "description": "Tokens used for input video." + } + }, + "description": "Breakdown of tokens used in the prompt.", + "title": "ImageGenerationUsagePromptTokensDetails" + }, + "ImageGenerationUsageServerToolUse": { + "type": "object", + "properties": { + "tool_calls_executed": { + "type": [ + "integer", + "null" + ], + "description": "Number of OpenRouter server tool calls that executed and produced a result." + }, + "tool_calls_requested": { + "type": [ + "integer", + "null" + ], + "description": "Total number of OpenRouter server-orchestrated tool calls the model requested, across all tool types. Provider-native tools (e.g. native web search) are not counted here." + }, + "web_search_requests": { + "type": [ + "integer", + "null" + ], + "description": "Number of web searches performed by server-side tools. For server-orchestrated tool calls a web search is also counted in tool_calls_requested; provider-native web search may report web_search_requests only. Do not sum the two." + } + }, + "description": "Usage for server-side tool execution (e.g., web search)", + "title": "ImageGenerationUsageServerToolUse" + }, + "AnthropicSpeed": { + "type": "string", + "enum": [ + "fast", + "standard" + ], + "title": "AnthropicSpeed" + }, + "ImageGenerationUsage": { + "type": "object", + "properties": { + "completion_tokens": { + "type": "integer", + "description": "The tokens generated" + }, + "completion_tokens_details": { + "oneOf": [ + { + "$ref": "#/components/schemas/ImageGenerationUsageCompletionTokensDetails" + }, + { + "type": "null" + } + ] + }, + "cost": { + "type": [ + "number", + "null" + ], + "format": "double", + "description": "Cost of the completion" + }, + "cost_details": { + "$ref": "#/components/schemas/CostDetails" + }, + "is_byok": { + "type": "boolean", + "description": "Whether a request was made using a Bring Your Own Key configuration" + }, + "iterations": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/AnthropicUsageIteration" + } + }, + "prompt_tokens": { + "type": "integer", + "description": "Including images, input audio, and tools if any" + }, + "prompt_tokens_details": { + "oneOf": [ + { + "$ref": "#/components/schemas/ImageGenerationUsagePromptTokensDetails" + }, + { + "type": "null" + } + ], + "description": "Breakdown of tokens used in the prompt." + }, + "server_tool_use": { + "oneOf": [ + { + "$ref": "#/components/schemas/ImageGenerationUsageServerToolUse" + }, + { + "type": "null" + } + ], + "description": "Usage for server-side tool execution (e.g., web search)" + }, + "service_tier": { + "type": [ + "string", + "null" + ], + "description": "The service tier used by the upstream provider for this request" + }, + "speed": { + "$ref": "#/components/schemas/AnthropicSpeed" + }, + "total_tokens": { + "type": "integer", + "description": "Sum of the above two fields" + } + }, + "required": [ + "completion_tokens", + "prompt_tokens", + "total_tokens" + ], + "description": "Token and cost usage for the image generation request, when available", + "title": "ImageGenerationUsage" + }, + "ImageGenerationResponse": { + "type": "object", + "properties": { + "created": { + "type": "integer", + "description": "Unix timestamp (seconds) when the image was generated" + }, + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ImageGenerationResponseDataItems" + }, + "description": "Generated images" + }, + "usage": { + "$ref": "#/components/schemas/ImageGenerationUsage" + } + }, + "required": [ + "created", + "data" + ], + "description": "Image generation response", + "title": "ImageGenerationResponse" + }, + "InputModality": { + "type": "string", + "enum": [ + "text", + "image", + "file", + "audio", + "video" + ], + "title": "InputModality" + }, + "ImageOutputModality": { + "type": "string", + "enum": [ + "text", + "image", + "embeddings", + "audio", + "video", + "rerank", + "speech", + "transcription" + ], + "title": "ImageOutputModality" + }, + "ImageModelArchitecture": { + "type": "object", + "properties": { + "input_modalities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/InputModality" + }, + "description": "Supported input modalities" + }, + "output_modalities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ImageOutputModality" + }, + "description": "Supported output modalities" + } + }, + "required": [ + "input_modalities", + "output_modalities" + ], + "title": "ImageModelArchitecture" + }, + "EnumCapabilityType": { + "type": "string", + "enum": [ + "enum" + ], + "title": "EnumCapabilityType" + }, + "RangeCapabilityType": { + "type": "string", + "enum": [ + "range" + ], + "title": "RangeCapabilityType" + }, + "CapabilityDescriptor": { + "oneOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "boolean" + ], + "description": "Discriminator value: boolean" + } + }, + "required": [ + "type" + ], + "description": "A supported-or-not flag. Present means the parameter is accepted." + }, + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/EnumCapabilityType" + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "type", + "values" + ], + "description": "A parameter that accepts one of a discrete set of string values." + }, + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/RangeCapabilityType" + }, + "max": { + "type": "number", + "format": "double" + }, + "min": { + "type": "number", + "format": "double" + } + }, + "required": [ + "type", + "max", + "min" + ], + "description": "A parameter that accepts any value within an inclusive numeric range." + } + ], + "discriminator": { + "propertyName": "type" + }, + "description": "A typed descriptor for one supported request parameter.", + "title": "CapabilityDescriptor" + }, + "SupportedParameters": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/CapabilityDescriptor" + }, + "description": "Union of supported parameters across every endpoint of this model. Coarse discovery aid; the definitive per-endpoint set is behind the endpoints URL.", + "title": "SupportedParameters" + }, + "ImageModelListItem": { + "type": "object", + "properties": { + "architecture": { + "$ref": "#/components/schemas/ImageModelArchitecture" + }, + "created": { + "type": "integer", + "description": "Unix timestamp (seconds) of when the model was created" + }, + "description": { + "type": "string" + }, + "endpoints": { + "type": "string", + "description": "Relative URL to the full per-endpoint records for this model" + }, + "id": { + "type": "string", + "description": "Model slug" + }, + "name": { + "type": "string", + "description": "Display name" + }, + "supported_parameters": { + "$ref": "#/components/schemas/SupportedParameters" + }, + "supports_streaming": { + "type": "boolean", + "description": "Whether any endpoint of this model supports native SSE streaming on the dedicated Image API (i.e. `stream: true` in the request). OR across endpoints." + } + }, + "required": [ + "architecture", + "created", + "description", + "endpoints", + "id", + "name", + "supported_parameters", + "supports_streaming" + ], + "description": "A single image model in the discovery listing.", + "title": "ImageModelListItem" + }, + "ImageModelsListResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ImageModelListItem" + } + } + }, + "required": [ + "data" + ], + "description": "List of image generation models.", + "title": "ImageModelsListResponse" + }, + "ImagePricingEntryBillable": { + "type": "string", + "enum": [ + "output_image", + "input_image", + "input_font", + "input_reference", + "input_text" + ], + "title": "ImagePricingEntryBillable" + }, + "ImagePricingEntryUnit": { + "type": "string", + "enum": [ + "image", + "megapixel", + "token" + ], + "title": "ImagePricingEntryUnit" + }, + "ImagePricingEntry": { + "type": "object", + "properties": { + "billable": { + "$ref": "#/components/schemas/ImagePricingEntryBillable" + }, + "cost_usd": { + "type": "number", + "format": "double" + }, + "unit": { + "$ref": "#/components/schemas/ImagePricingEntryUnit" + }, + "variant": { + "type": "string" + } + }, + "required": [ + "billable", + "cost_usd", + "unit" + ], + "description": "One billable pricing line for an image provider.", + "title": "ImagePricingEntry" + }, + "ImageEndpoint": { + "type": "object", + "properties": { + "allowed_passthrough_parameters": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Provider-specific options accepted under provider.options[provider_slug]." + }, + "pricing": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ImagePricingEntry" + }, + "description": "Billable pricing lines for this endpoint." + }, + "provider_name": { + "type": "string", + "description": "Provider display name" + }, + "provider_slug": { + "type": "string", + "description": "Provider slug" + }, + "provider_tag": { + "type": [ + "string", + "null" + ], + "description": "Provider tag for request-side selection" + }, + "supported_parameters": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/CapabilityDescriptor" + } + }, + "supports_streaming": { + "type": "boolean", + "description": "Whether this endpoint supports native SSE streaming (`stream: true` in the request)." + } + }, + "required": [ + "allowed_passthrough_parameters", + "pricing", + "provider_name", + "provider_slug", + "provider_tag", + "supported_parameters", + "supports_streaming" + ], + "description": "An endpoint that serves a given image model.", + "title": "ImageEndpoint" + }, + "ImageModelEndpointsResponse": { + "type": "object", + "properties": { + "endpoints": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ImageEndpoint" + } + }, + "id": { + "type": "string", + "description": "Model slug" + } + }, + "required": [ + "endpoints", + "id" + ], + "description": "The full per-endpoint records for an image model.", + "title": "ImageModelEndpointsResponse" + }, + "ProviderOptions": { + "type": "object", + "properties": { + "01ai": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "ai21": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "aion-labs": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "akashml": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "alibaba": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "amazon-bedrock": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "amazon-nova": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "ambient": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "anthropic": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "anyscale": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "arcee-ai": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "atlas-cloud": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "atoma": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "avian": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "azure": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "baidu": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "baseten": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "black-forest-labs": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "byteplus": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "centml": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "cerebras": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "chutes": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "cirrascale": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "clarifai": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "cloudflare": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "cohere": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "crofai": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "crucible": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "crusoe": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "darkbloom": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "decart": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "deepinfra": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "deepseek": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "dekallm": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "digitalocean": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "enfer": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "fake-provider": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "featherless": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "fireworks": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "friendli": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "gmicloud": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "google-ai-studio": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "google-vertex": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "gopomelo": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "groq": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "huggingface": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "hyperbolic": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "hyperbolic-quantized": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "inception": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "inceptron": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "inference-net": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "infermatic": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "inflection": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "inocloud": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "io-net": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "ionstream": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "klusterai": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "lambda": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "lepton": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "liquid": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "lynn": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "lynn-private": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "mancer": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "mancer-old": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "mara": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "meta": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "minimax": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "mistral": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "modal": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "modelrun": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "modular": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "moonshotai": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "morph": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "ncompass": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "nebius": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "nex-agi": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "nextbit": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "nineteen": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "novita": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "nvidia": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "octoai": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "open-inference": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "openai": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "parasail": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "perceptron": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "perplexity": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "phala": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "poolside": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "recraft": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "recursal": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "reflection": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "reka": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "relace": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "replicate": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "sambanova": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "sambanova-cloaked": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "seed": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "sf-compute": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "siliconflow": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "sourceful": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "stealth": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "stepfun": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "streamlake": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "switchpoint": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "targon": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "together": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "together-lite": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "ubicloud": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "upstage": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "venice": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "wafer": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "wandb": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "xai": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "xiaomi": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "z-ai": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + } + }, + "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.", + "title": "ProviderOptions" + }, + "SpeechRequestProvider": { + "type": "object", + "properties": { + "options": { + "$ref": "#/components/schemas/ProviderOptions" + } + }, + "description": "Provider-specific passthrough configuration", + "title": "SpeechRequestProvider" + }, + "SpeechRequestResponseFormat": { + "type": "string", + "enum": [ + "mp3", + "pcm" + ], + "default": "pcm", + "description": "Audio output format", + "title": "SpeechRequestResponseFormat" + }, + "SpeechRequest": { + "type": "object", + "properties": { + "input": { + "type": "string", + "description": "Text to synthesize" + }, + "model": { + "type": "string", + "description": "TTS model identifier" + }, + "provider": { + "$ref": "#/components/schemas/SpeechRequestProvider", + "description": "Provider-specific passthrough configuration" + }, + "response_format": { + "$ref": "#/components/schemas/SpeechRequestResponseFormat", + "description": "Audio output format" + }, + "speed": { + "type": "number", + "format": "double", + "description": "Playback speed multiplier. Only used by models that support it (e.g. OpenAI TTS). Ignored by other providers." + }, + "voice": { + "type": "string", + "description": "Voice identifier (provider-specific)." + } + }, + "required": [ + "input", + "model", + "voice" + ], + "description": "Text-to-speech request input", + "title": "SpeechRequest" + }, + "STTInputAudio": { + "type": "object", + "properties": { + "data": { + "type": "string", + "description": "Base64-encoded audio data (raw bytes, not a data URI)" + }, + "format": { + "type": "string", + "description": "Audio format (e.g., wav, mp3, flac, m4a, ogg, webm, aac). Supported formats vary by provider." + } + }, + "required": [ + "data", + "format" + ], + "description": "Base64-encoded audio to transcribe", + "title": "STTInputAudio" + }, + "SttRequestProvider": { + "type": "object", + "properties": { + "options": { + "$ref": "#/components/schemas/ProviderOptions" + } + }, + "description": "Provider-specific passthrough configuration", + "title": "SttRequestProvider" + }, + "STTRequest": { + "type": "object", + "properties": { + "input_audio": { + "$ref": "#/components/schemas/STTInputAudio" + }, + "language": { + "type": "string", + "description": "ISO-639-1 language code (e.g., \"en\", \"ja\"). Auto-detected if omitted." + }, + "model": { + "type": "string", + "description": "STT model identifier" + }, + "provider": { + "$ref": "#/components/schemas/SttRequestProvider", + "description": "Provider-specific passthrough configuration" + }, + "temperature": { + "type": "number", + "format": "double", + "description": "Sampling temperature for transcription" + } + }, + "required": [ + "input_audio", + "model" + ], + "description": "Speech-to-text request input. Accepts a JSON body with input_audio containing base64-encoded audio.", + "title": "STTRequest" + }, + "STTUsage": { + "type": "object", + "properties": { + "cost": { + "type": "number", + "format": "double", + "description": "Total cost of the request in USD" + }, + "input_tokens": { + "type": "integer", + "description": "Number of input tokens billed for this request" + }, + "output_tokens": { + "type": "integer", + "description": "Number of output tokens generated" + }, + "seconds": { + "type": "number", + "format": "double", + "description": "Duration of the input audio in seconds" + }, + "total_tokens": { + "type": "integer", + "description": "Total number of tokens used (input + output)" + } + }, + "description": "Aggregated usage statistics for the request", + "title": "STTUsage" + }, + "STTResponse": { + "type": "object", + "properties": { + "text": { + "type": "string", + "description": "The transcribed text" + }, + "usage": { + "$ref": "#/components/schemas/STTUsage" + } + }, + "required": [ + "text" + ], + "description": "STT response containing transcribed text and optional usage statistics", + "title": "STTResponse" + }, + "ActivityItem": { + "type": "object", + "properties": { + "byok_usage_inference": { + "type": "number", + "format": "double", + "description": "BYOK inference cost in USD (external credits spent)" + }, + "completion_tokens": { + "type": "integer", + "description": "Total completion tokens generated" + }, + "date": { + "type": "string", + "description": "Date of the activity (YYYY-MM-DD format)" + }, + "endpoint_id": { + "type": "string", + "description": "Unique identifier for the endpoint" + }, + "model": { + "type": "string", + "description": "Model slug (e.g., \"openai/gpt-4.1\")" + }, + "model_permaslug": { + "type": "string", + "description": "Model permaslug (e.g., \"openai/gpt-4.1-2025-04-14\")" + }, + "prompt_tokens": { + "type": "integer", + "description": "Total prompt tokens used" + }, + "provider_name": { + "type": "string", + "description": "Name of the provider serving this endpoint" + }, + "reasoning_tokens": { + "type": "integer", + "description": "Total reasoning tokens used" + }, + "requests": { + "type": "integer", + "description": "Number of requests made" + }, + "usage": { + "type": "number", + "format": "double", + "description": "Total cost in USD (OpenRouter credits spent)" + } + }, + "required": [ + "byok_usage_inference", "completion_tokens", "date", "endpoint_id", @@ -20015,194 +21855,183 @@ "sort_order", "workspace_id" ], - "description": "The BYOK credential.", - "title": "GetByokKeyResponseData" - }, - "GetBYOKKeyResponse": { - "type": "object", - "properties": { - "data": { - "$ref": "#/components/schemas/GetByokKeyResponseData" - } - }, - "required": [ - "data" - ], - "title": "GetBYOKKeyResponse" - }, - "DeleteBYOKKeyResponse": { - "type": "object", - "properties": { - "deleted": { - "type": "boolean", - "enum": [ - true - ], - "description": "Confirmation that the BYOK credential was deleted." - } - }, - "required": [ - "deleted" - ], - "title": "DeleteBYOKKeyResponse" - }, - "UpdateBYOKKeyRequest": { - "type": "object", - "properties": { - "allowed_models": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - }, - "description": "Optional allowlist of model slugs this credential may be used for. `null` means no restriction." - }, - "allowed_user_ids": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - }, - "description": "Optional allowlist of user IDs that may use this credential. `null` means no restriction." - }, - "disabled": { - "type": "boolean", - "description": "Whether this credential is disabled." - }, - "is_fallback": { - "type": "boolean", - "description": "Whether this credential is treated as a fallback — used only after non-fallback keys for the same provider have been tried." - }, - "key": { - "type": "string", - "description": "A new raw provider API key to rotate the credential in-place. The previous key material is overwritten and the masked label is regenerated. Encrypted at rest and never returned in API responses." - }, - "name": { - "type": [ - "string", - "null" - ], - "description": "Optional human-readable name for the credential." - } - }, - "title": "UpdateBYOKKeyRequest" - }, - "UpdateByokKeyResponseData": { - "type": "object", - "properties": { - "allowed_api_key_hashes": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - }, - "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) that may use this credential. `null` means no restriction." - }, - "allowed_models": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - }, - "description": "Optional allowlist of model slugs this credential may be used for. `null` means no restriction." - }, - "allowed_user_ids": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - }, - "description": "Optional allowlist of user IDs that may use this credential. `null` means no restriction." - }, - "created_at": { - "type": "string", - "description": "ISO timestamp of when the credential was created." - }, - "disabled": { - "type": "boolean", - "description": "Whether this credential is currently disabled." - }, - "id": { - "type": "string", - "format": "uuid", - "description": "Stable public identifier for this BYOK credential." - }, - "is_fallback": { - "type": "boolean", - "description": "Whether this credential is treated as a fallback — used only after non-fallback keys for the same provider have been tried." - }, - "label": { - "type": "string", - "description": "Short masked snippet of the key (e.g. the first/last few characters) used to identify it in the UI." - }, - "name": { - "type": [ - "string", - "null" - ], - "description": "Optional human-readable name for the credential." - }, - "provider": { - "$ref": "#/components/schemas/BYOKProviderSlug" - }, - "sort_order": { - "type": "integer", - "description": "Position within the provider — credentials are tried in ascending sort order." - }, - "workspace_id": { - "type": "string", - "format": "uuid", - "description": "ID of the workspace this credential belongs to." - } - }, - "required": [ - "allowed_api_key_hashes", - "allowed_models", - "allowed_user_ids", - "created_at", - "disabled", - "id", - "is_fallback", - "label", - "provider", - "sort_order", - "workspace_id" - ], - "description": "The updated BYOK credential.", - "title": "UpdateByokKeyResponseData" + "description": "The BYOK credential.", + "title": "GetByokKeyResponseData" }, - "UpdateBYOKKeyResponse": { + "GetBYOKKeyResponse": { "type": "object", "properties": { "data": { - "$ref": "#/components/schemas/UpdateByokKeyResponseData" + "$ref": "#/components/schemas/GetByokKeyResponseData" } }, "required": [ "data" ], - "title": "UpdateBYOKKeyResponse" + "title": "GetBYOKKeyResponse" }, - "ChatDebugOptions": { + "DeleteBYOKKeyResponse": { "type": "object", "properties": { - "echo_upstream_body": { + "deleted": { "type": "boolean", - "description": "If true, includes the transformed upstream request body in a debug chunk at the start of the stream. Only works with streaming mode." + "enum": [ + true + ], + "description": "Confirmation that the BYOK credential was deleted." } }, - "description": "Debug options for inspecting request transformations (streaming only)", - "title": "ChatDebugOptions" + "required": [ + "deleted" + ], + "title": "DeleteBYOKKeyResponse" + }, + "UpdateBYOKKeyRequest": { + "type": "object", + "properties": { + "allowed_models": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of model slugs this credential may be used for. `null` means no restriction." + }, + "allowed_user_ids": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of user IDs that may use this credential. `null` means no restriction." + }, + "disabled": { + "type": "boolean", + "description": "Whether this credential is disabled." + }, + "is_fallback": { + "type": "boolean", + "description": "Whether this credential is treated as a fallback — used only after non-fallback keys for the same provider have been tried." + }, + "key": { + "type": "string", + "description": "A new raw provider API key to rotate the credential in-place. The previous key material is overwritten and the masked label is regenerated. Encrypted at rest and never returned in API responses." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Optional human-readable name for the credential." + } + }, + "title": "UpdateBYOKKeyRequest" + }, + "UpdateByokKeyResponseData": { + "type": "object", + "properties": { + "allowed_api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) that may use this credential. `null` means no restriction." + }, + "allowed_models": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of model slugs this credential may be used for. `null` means no restriction." + }, + "allowed_user_ids": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of user IDs that may use this credential. `null` means no restriction." + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the credential was created." + }, + "disabled": { + "type": "boolean", + "description": "Whether this credential is currently disabled." + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this BYOK credential." + }, + "is_fallback": { + "type": "boolean", + "description": "Whether this credential is treated as a fallback — used only after non-fallback keys for the same provider have been tried." + }, + "label": { + "type": "string", + "description": "Short masked snippet of the key (e.g. the first/last few characters) used to identify it in the UI." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Optional human-readable name for the credential." + }, + "provider": { + "$ref": "#/components/schemas/BYOKProviderSlug" + }, + "sort_order": { + "type": "integer", + "description": "Position within the provider — credentials are tried in ascending sort order." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this credential belongs to." + } + }, + "required": [ + "allowed_api_key_hashes", + "allowed_models", + "allowed_user_ids", + "created_at", + "disabled", + "id", + "is_fallback", + "label", + "provider", + "sort_order", + "workspace_id" + ], + "description": "The updated BYOK credential.", + "title": "UpdateByokKeyResponseData" + }, + "UpdateBYOKKeyResponse": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/UpdateByokKeyResponseData" + } + }, + "required": [ + "data" + ], + "title": "UpdateBYOKKeyResponse" }, "ChatAudioOutput": { "type": "object", @@ -22238,32 +24067,6 @@ "description": "Detailed completion token usage", "title": "ChatUsageCompletionTokensDetails" }, - "CostDetails": { - "type": "object", - "properties": { - "upstream_inference_completions_cost": { - "type": "number", - "format": "double" - }, - "upstream_inference_cost": { - "type": [ - "number", - "null" - ], - "format": "double" - }, - "upstream_inference_prompt_cost": { - "type": "number", - "format": "double" - } - }, - "required": [ - "upstream_inference_completions_cost", - "upstream_inference_prompt_cost" - ], - "description": "Breakdown of upstream inference costs", - "title": "CostDetails" - }, "ChatUsagePromptTokensDetails": { "type": "object", "properties": { @@ -23241,17 +25044,6 @@ "description": "Embeddings response containing embedding vectors", "title": "Embeddings_createEmbeddings_Response_200" }, - "InputModality": { - "type": "string", - "enum": [ - "text", - "image", - "file", - "audio", - "video" - ], - "title": "InputModality" - }, "ModelArchitectureInstructType": { "type": "string", "enum": [ @@ -28964,14 +30756,6 @@ }, "title": "MessagesRequestPluginsItems" }, - "AnthropicSpeed": { - "type": "string", - "enum": [ - "fast", - "standard" - ], - "title": "AnthropicSpeed" - }, "MessagesRequestSystem1": { "type": "array", "items": { @@ -31366,171 +33150,6 @@ ], "title": "AnthropicServiceTier" }, - "AnthropicIterationCacheCreation": { - "type": "object", - "properties": { - "ephemeral_1h_input_tokens": { - "type": "integer" - }, - "ephemeral_5m_input_tokens": { - "type": "integer" - } - }, - "title": "AnthropicIterationCacheCreation" - }, - "AnthropicCompactionUsageIterationType": { - "type": "string", - "enum": [ - "compaction" - ], - "title": "AnthropicCompactionUsageIterationType" - }, - "AnthropicCompactionUsageIteration": { - "type": "object", - "properties": { - "cache_creation": { - "$ref": "#/components/schemas/AnthropicIterationCacheCreation" - }, - "cache_creation_input_tokens": { - "type": "integer" - }, - "cache_read_input_tokens": { - "type": "integer" - }, - "input_tokens": { - "type": "integer" - }, - "output_tokens": { - "type": "integer" - }, - "type": { - "$ref": "#/components/schemas/AnthropicCompactionUsageIterationType" - } - }, - "required": [ - "type" - ], - "title": "AnthropicCompactionUsageIteration" - }, - "AnthropicMessageUsageIterationType": { - "type": "string", - "enum": [ - "message" - ], - "title": "AnthropicMessageUsageIterationType" - }, - "AnthropicMessageUsageIteration": { - "type": "object", - "properties": { - "cache_creation": { - "$ref": "#/components/schemas/AnthropicIterationCacheCreation" - }, - "cache_creation_input_tokens": { - "type": "integer" - }, - "cache_read_input_tokens": { - "type": "integer" - }, - "input_tokens": { - "type": "integer" - }, - "output_tokens": { - "type": "integer" - }, - "model": { - "type": "string" - }, - "type": { - "$ref": "#/components/schemas/AnthropicMessageUsageIterationType" - } - }, - "required": [ - "type" - ], - "title": "AnthropicMessageUsageIteration" - }, - "AnthropicAdvisorMessageUsageIterationType": { - "type": "string", - "enum": [ - "advisor_message" - ], - "title": "AnthropicAdvisorMessageUsageIterationType" - }, - "AnthropicAdvisorMessageUsageIteration": { - "type": "object", - "properties": { - "cache_creation": { - "$ref": "#/components/schemas/AnthropicIterationCacheCreation" - }, - "cache_creation_input_tokens": { - "type": "integer" - }, - "cache_read_input_tokens": { - "type": "integer" - }, - "input_tokens": { - "type": "integer" - }, - "output_tokens": { - "type": "integer" - }, - "model": { - "type": "string" - }, - "type": { - "$ref": "#/components/schemas/AnthropicAdvisorMessageUsageIterationType" - } - }, - "required": [ - "model", - "type" - ], - "title": "AnthropicAdvisorMessageUsageIteration" - }, - "AnthropicUnknownUsageIteration": { - "type": "object", - "properties": { - "cache_creation": { - "$ref": "#/components/schemas/AnthropicIterationCacheCreation" - }, - "cache_creation_input_tokens": { - "type": "integer" - }, - "cache_read_input_tokens": { - "type": "integer" - }, - "input_tokens": { - "type": "integer" - }, - "output_tokens": { - "type": "integer" - }, - "type": { - "type": "string" - } - }, - "required": [ - "type" - ], - "title": "AnthropicUnknownUsageIteration" - }, - "AnthropicUsageIteration": { - "oneOf": [ - { - "$ref": "#/components/schemas/AnthropicCompactionUsageIteration" - }, - { - "$ref": "#/components/schemas/AnthropicMessageUsageIteration" - }, - { - "$ref": "#/components/schemas/AnthropicAdvisorMessageUsageIteration" - }, - { - "$ref": "#/components/schemas/AnthropicUnknownUsageIteration" - } - ], - "title": "AnthropicUsageIteration" - }, "MessagesResultUsage": { "type": "object", "properties": { @@ -39616,18 +41235,6 @@ ], "title": "InputReferenceDiscriminatorMappingAudioUrlAudioUrl" }, - "InputReferenceDiscriminatorMappingImageUrlImageUrl": { - "type": "object", - "properties": { - "url": { - "type": "string" - } - }, - "required": [ - "url" - ], - "title": "InputReferenceDiscriminatorMappingImageUrlImageUrl" - }, "InputReferenceDiscriminatorMappingVideoUrlVideoUrl": { "type": "object", "properties": {