From 0c3996b872d02ada074dfe89e84397e4957053f2 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 10 May 2026 18:41:13 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- src/libs/DId/Generated/DId.AllOf.2.g.cs | 10 ++ src/libs/DId/Generated/DId.AllOf.3.g.cs | 15 ++ src/libs/DId/Generated/DId.AnyOf.2.g.cs | 10 ++ src/libs/DId/Generated/DId.AnyOf.3.g.cs | 15 ++ src/libs/DId/Generated/DId.AnyOf.5.g.cs | 25 +++ src/libs/DId/Generated/DId.AnyOf.6.g.cs | 30 ++++ .../Generated/DId.Models.AgentPresenter.g.cs | 15 ++ .../DId.Models.AgentResponseDto.g.cs | 10 ++ ...Id.Models.AgentsTextToSpeechProviders.g.cs | 15 ++ .../Generated/DId.Models.AnimationError.g.cs | 30 ++++ .../DId/Generated/DId.Models.AssetDto.g.cs | 10 ++ .../DId.Models.CreateDocumentDto.g.cs | 10 ++ ...Id.Models.CreateExpressiveResponseDto.g.cs | 10 ++ ...odels.CreateIceCandidateStreamRequest.g.cs | 10 ++ ...els.CreateSecretExternalLLMRequestDto.g.cs | 10 ++ .../DId.Models.CreateSecretRequestDto.g.cs | 15 ++ .../DId.Models.CreateStreamScript.g.cs | 10 ++ .../DId.Models.CreateVideoStreamResponse.g.cs | 10 ++ src/libs/DId/Generated/DId.Models.Crop.g.cs | 10 ++ .../DId.Models.CustomAuthConfig.g.cs | 10 ++ .../DId/Generated/DId.Models.ExportDto.g.cs | 10 ++ .../DId.Models.ExpressiveAvatarDto.g.cs | 5 + ....Models.ExpressiveAvatarExpressionDto.g.cs | 5 + .../DId.Models.ExpressiveVideoBackground.g.cs | 10 ++ .../DId.Models.GetExpressiveAvatarDto.g.cs | 10 ++ .../DId/Generated/DId.Models.JSONValue.g.cs | 20 +++ .../DId/Generated/DId.Models.LLMConfig.g.cs | 25 +++ .../DId.Models.LLMConfigCreateDto.g.cs | 30 ++++ .../DId/Generated/DId.Models.LogoDto.g.cs | 10 ++ .../DId.Models.PartialAgentPresenter.g.cs | 10 ++ src/libs/DId/Generated/DId.Models.Script.g.cs | 10 ++ .../Generated/DId.Models.StreamScript.g.cs | 10 ++ .../DId.Models.TextToSpeechProviders.g.cs | 25 +++ .../DId.Models.ToolResultOutput.g.cs | 10 ++ .../DId.Models.TriggerEventData.g.cs | 10 ++ ...DId.Models.UpdateAuthSecretRequestDto.g.cs | 15 ++ .../DId.Models.UpdatePresenterAttributes.g.cs | 15 ++ ...els.UpdateSecretExternalLLMRequestDto.g.cs | 10 ++ .../DId/Generated/DId.OptionsSupport.g.cs | 150 ++++++++++++++++++ 39 files changed, 670 insertions(+) diff --git a/src/libs/DId/Generated/DId.AllOf.2.g.cs b/src/libs/DId/Generated/DId.AllOf.2.g.cs index f170e875..5a79a41a 100644 --- a/src/libs/DId/Generated/DId.AllOf.2.g.cs +++ b/src/libs/DId/Generated/DId.AllOf.2.g.cs @@ -85,6 +85,11 @@ public AllOf(T1? value) Value1 = value; } + /// + /// + /// + public static AllOf FromValue1(T1? value) => new AllOf(value); + /// /// /// @@ -103,6 +108,11 @@ public AllOf(T2? value) Value2 = value; } + /// + /// + /// + public static AllOf FromValue2(T2? value) => new AllOf(value); + /// /// /// diff --git a/src/libs/DId/Generated/DId.AllOf.3.g.cs b/src/libs/DId/Generated/DId.AllOf.3.g.cs index 74e2e1a5..d53bab9b 100644 --- a/src/libs/DId/Generated/DId.AllOf.3.g.cs +++ b/src/libs/DId/Generated/DId.AllOf.3.g.cs @@ -115,6 +115,11 @@ public AllOf(T1? value) Value1 = value; } + /// + /// + /// + public static AllOf FromValue1(T1? value) => new AllOf(value); + /// /// /// @@ -133,6 +138,11 @@ public AllOf(T2? value) Value2 = value; } + /// + /// + /// + public static AllOf FromValue2(T2? value) => new AllOf(value); + /// /// /// @@ -151,6 +161,11 @@ public AllOf(T3? value) Value3 = value; } + /// + /// + /// + public static AllOf FromValue3(T3? value) => new AllOf(value); + /// /// /// diff --git a/src/libs/DId/Generated/DId.AnyOf.2.g.cs b/src/libs/DId/Generated/DId.AnyOf.2.g.cs index 11c9c27d..1d22b3a0 100644 --- a/src/libs/DId/Generated/DId.AnyOf.2.g.cs +++ b/src/libs/DId/Generated/DId.AnyOf.2.g.cs @@ -85,6 +85,11 @@ public AnyOf(T1? value) Value1 = value; } + /// + /// + /// + public static AnyOf FromValue1(T1? value) => new AnyOf(value); + /// /// /// @@ -103,6 +108,11 @@ public AnyOf(T2? value) Value2 = value; } + /// + /// + /// + public static AnyOf FromValue2(T2? value) => new AnyOf(value); + /// /// /// diff --git a/src/libs/DId/Generated/DId.AnyOf.3.g.cs b/src/libs/DId/Generated/DId.AnyOf.3.g.cs index 2f7c125b..2d00393e 100644 --- a/src/libs/DId/Generated/DId.AnyOf.3.g.cs +++ b/src/libs/DId/Generated/DId.AnyOf.3.g.cs @@ -115,6 +115,11 @@ public AnyOf(T1? value) Value1 = value; } + /// + /// + /// + public static AnyOf FromValue1(T1? value) => new AnyOf(value); + /// /// /// @@ -133,6 +138,11 @@ public AnyOf(T2? value) Value2 = value; } + /// + /// + /// + public static AnyOf FromValue2(T2? value) => new AnyOf(value); + /// /// /// @@ -151,6 +161,11 @@ public AnyOf(T3? value) Value3 = value; } + /// + /// + /// + public static AnyOf FromValue3(T3? value) => new AnyOf(value); + /// /// /// diff --git a/src/libs/DId/Generated/DId.AnyOf.5.g.cs b/src/libs/DId/Generated/DId.AnyOf.5.g.cs index f3b739f2..8e6cd23d 100644 --- a/src/libs/DId/Generated/DId.AnyOf.5.g.cs +++ b/src/libs/DId/Generated/DId.AnyOf.5.g.cs @@ -175,6 +175,11 @@ public AnyOf(T1? value) Value1 = value; } + /// + /// + /// + public static AnyOf FromValue1(T1? value) => new AnyOf(value); + /// /// /// @@ -193,6 +198,11 @@ public AnyOf(T2? value) Value2 = value; } + /// + /// + /// + public static AnyOf FromValue2(T2? value) => new AnyOf(value); + /// /// /// @@ -211,6 +221,11 @@ public AnyOf(T3? value) Value3 = value; } + /// + /// + /// + public static AnyOf FromValue3(T3? value) => new AnyOf(value); + /// /// /// @@ -229,6 +244,11 @@ public AnyOf(T4? value) Value4 = value; } + /// + /// + /// + public static AnyOf FromValue4(T4? value) => new AnyOf(value); + /// /// /// @@ -247,6 +267,11 @@ public AnyOf(T5? value) Value5 = value; } + /// + /// + /// + public static AnyOf FromValue5(T5? value) => new AnyOf(value); + /// /// /// diff --git a/src/libs/DId/Generated/DId.AnyOf.6.g.cs b/src/libs/DId/Generated/DId.AnyOf.6.g.cs index 7c126af7..f62f6b46 100644 --- a/src/libs/DId/Generated/DId.AnyOf.6.g.cs +++ b/src/libs/DId/Generated/DId.AnyOf.6.g.cs @@ -205,6 +205,11 @@ public AnyOf(T1? value) Value1 = value; } + /// + /// + /// + public static AnyOf FromValue1(T1? value) => new AnyOf(value); + /// /// /// @@ -223,6 +228,11 @@ public AnyOf(T2? value) Value2 = value; } + /// + /// + /// + public static AnyOf FromValue2(T2? value) => new AnyOf(value); + /// /// /// @@ -241,6 +251,11 @@ public AnyOf(T3? value) Value3 = value; } + /// + /// + /// + public static AnyOf FromValue3(T3? value) => new AnyOf(value); + /// /// /// @@ -259,6 +274,11 @@ public AnyOf(T4? value) Value4 = value; } + /// + /// + /// + public static AnyOf FromValue4(T4? value) => new AnyOf(value); + /// /// /// @@ -277,6 +297,11 @@ public AnyOf(T5? value) Value5 = value; } + /// + /// + /// + public static AnyOf FromValue5(T5? value) => new AnyOf(value); + /// /// /// @@ -295,6 +320,11 @@ public AnyOf(T6? value) Value6 = value; } + /// + /// + /// + public static AnyOf FromValue6(T6? value) => new AnyOf(value); + /// /// /// diff --git a/src/libs/DId/Generated/DId.Models.AgentPresenter.g.cs b/src/libs/DId/Generated/DId.Models.AgentPresenter.g.cs index 5b4df089..c3b55a9c 100644 --- a/src/libs/DId/Generated/DId.Models.AgentPresenter.g.cs +++ b/src/libs/DId/Generated/DId.Models.AgentPresenter.g.cs @@ -116,6 +116,11 @@ public AgentPresenter(global::DId.AgentPresenterPhotoAvatar? value) PhotoAvatar = value; } + /// + /// + /// + public static AgentPresenter FromPhotoAvatar(global::DId.AgentPresenterPhotoAvatar? value) => new AgentPresenter(value); + /// /// /// @@ -134,6 +139,11 @@ public AgentPresenter(global::DId.AgentPresenterVideoAvatar? value) VideoAvatar = value; } + /// + /// + /// + public static AgentPresenter FromVideoAvatar(global::DId.AgentPresenterVideoAvatar? value) => new AgentPresenter(value); + /// /// /// @@ -152,6 +162,11 @@ public AgentPresenter(global::DId.AgentPresenterExpressiveAvatar? value) ExpressiveAvatar = value; } + /// + /// + /// + public static AgentPresenter FromExpressiveAvatar(global::DId.AgentPresenterExpressiveAvatar? value) => new AgentPresenter(value); + /// /// /// diff --git a/src/libs/DId/Generated/DId.Models.AgentResponseDto.g.cs b/src/libs/DId/Generated/DId.Models.AgentResponseDto.g.cs index a2c081e9..2d8f2efd 100644 --- a/src/libs/DId/Generated/DId.Models.AgentResponseDto.g.cs +++ b/src/libs/DId/Generated/DId.Models.AgentResponseDto.g.cs @@ -86,6 +86,11 @@ public AgentResponseDto(global::DId.AgentResponseDtoVariant1? value) AgentResponseDtoVariant1 = value; } + /// + /// + /// + public static AgentResponseDto FromAgentResponseDtoVariant1(global::DId.AgentResponseDtoVariant1? value) => new AgentResponseDto(value); + /// /// /// @@ -104,6 +109,11 @@ public AgentResponseDto(global::DId.AgentResponseDtoVariant2? value) AgentResponseDtoVariant2 = value; } + /// + /// + /// + public static AgentResponseDto FromAgentResponseDtoVariant2(global::DId.AgentResponseDtoVariant2? value) => new AgentResponseDto(value); + /// /// /// diff --git a/src/libs/DId/Generated/DId.Models.AgentsTextToSpeechProviders.g.cs b/src/libs/DId/Generated/DId.Models.AgentsTextToSpeechProviders.g.cs index 478ddc72..b400f962 100644 --- a/src/libs/DId/Generated/DId.Models.AgentsTextToSpeechProviders.g.cs +++ b/src/libs/DId/Generated/DId.Models.AgentsTextToSpeechProviders.g.cs @@ -116,6 +116,11 @@ public AgentsTextToSpeechProviders(global::DId.AgentsTextToSpeechProvidersMicros Microsoft = value; } + /// + /// + /// + public static AgentsTextToSpeechProviders FromMicrosoft(global::DId.AgentsTextToSpeechProvidersMicrosoft? value) => new AgentsTextToSpeechProviders(value); + /// /// /// @@ -134,6 +139,11 @@ public AgentsTextToSpeechProviders(global::DId.AgentsTextToSpeechProvidersEleven ElevenLabs = value; } + /// + /// + /// + public static AgentsTextToSpeechProviders FromElevenLabs(global::DId.AgentsTextToSpeechProvidersElevenLabs? value) => new AgentsTextToSpeechProviders(value); + /// /// /// @@ -152,6 +162,11 @@ public AgentsTextToSpeechProviders(global::DId.AgentsTextToSpeechProvidersOpenAI OpenAI = value; } + /// + /// + /// + public static AgentsTextToSpeechProviders FromOpenAI(global::DId.AgentsTextToSpeechProvidersOpenAI? value) => new AgentsTextToSpeechProviders(value); + /// /// /// diff --git a/src/libs/DId/Generated/DId.Models.AnimationError.g.cs b/src/libs/DId/Generated/DId.Models.AnimationError.g.cs index 3301a960..6fbf2b34 100644 --- a/src/libs/DId/Generated/DId.Models.AnimationError.g.cs +++ b/src/libs/DId/Generated/DId.Models.AnimationError.g.cs @@ -206,6 +206,11 @@ public AnimationError(global::DId.AnimationErrorVariant1? value) AnimationErrorVariant1 = value; } + /// + /// + /// + public static AnimationError FromAnimationErrorVariant1(global::DId.AnimationErrorVariant1? value) => new AnimationError(value); + /// /// /// @@ -224,6 +229,11 @@ public AnimationError(global::DId.AnimationErrorVariant2? value) AnimationErrorVariant2 = value; } + /// + /// + /// + public static AnimationError FromAnimationErrorVariant2(global::DId.AnimationErrorVariant2? value) => new AnimationError(value); + /// /// /// @@ -242,6 +252,11 @@ public AnimationError(global::DId.AnimationErrorVariant3? value) AnimationErrorVariant3 = value; } + /// + /// + /// + public static AnimationError FromAnimationErrorVariant3(global::DId.AnimationErrorVariant3? value) => new AnimationError(value); + /// /// /// @@ -260,6 +275,11 @@ public AnimationError(global::DId.AnimationErrorVariant4? value) AnimationErrorVariant4 = value; } + /// + /// + /// + public static AnimationError FromAnimationErrorVariant4(global::DId.AnimationErrorVariant4? value) => new AnimationError(value); + /// /// /// @@ -278,6 +298,11 @@ public AnimationError(global::DId.AnimationErrorVariant5? value) AnimationErrorVariant5 = value; } + /// + /// + /// + public static AnimationError FromAnimationErrorVariant5(global::DId.AnimationErrorVariant5? value) => new AnimationError(value); + /// /// /// @@ -296,6 +321,11 @@ public AnimationError(global::DId.AnimationErrorVariant6? value) AnimationErrorVariant6 = value; } + /// + /// + /// + public static AnimationError FromAnimationErrorVariant6(global::DId.AnimationErrorVariant6? value) => new AnimationError(value); + /// /// /// diff --git a/src/libs/DId/Generated/DId.Models.AssetDto.g.cs b/src/libs/DId/Generated/DId.Models.AssetDto.g.cs index cfe1bd24..669a12b6 100644 --- a/src/libs/DId/Generated/DId.Models.AssetDto.g.cs +++ b/src/libs/DId/Generated/DId.Models.AssetDto.g.cs @@ -86,6 +86,11 @@ public AssetDto(global::DId.AssetDtoVariant1? value) AssetDtoVariant1 = value; } + /// + /// + /// + public static AssetDto FromAssetDtoVariant1(global::DId.AssetDtoVariant1? value) => new AssetDto(value); + /// /// /// @@ -104,6 +109,11 @@ public AssetDto(global::DId.AssetDtoVariant2? value) AssetDtoVariant2 = value; } + /// + /// + /// + public static AssetDto FromAssetDtoVariant2(global::DId.AssetDtoVariant2? value) => new AssetDto(value); + /// /// /// diff --git a/src/libs/DId/Generated/DId.Models.CreateDocumentDto.g.cs b/src/libs/DId/Generated/DId.Models.CreateDocumentDto.g.cs index a235137d..34a16356 100644 --- a/src/libs/DId/Generated/DId.Models.CreateDocumentDto.g.cs +++ b/src/libs/DId/Generated/DId.Models.CreateDocumentDto.g.cs @@ -86,6 +86,11 @@ public CreateDocumentDto(global::DId.CreateDocumentDtoVariant1? value) CreateDocumentDtoVariant1 = value; } + /// + /// + /// + public static CreateDocumentDto FromCreateDocumentDtoVariant1(global::DId.CreateDocumentDtoVariant1? value) => new CreateDocumentDto(value); + /// /// /// @@ -104,6 +109,11 @@ public CreateDocumentDto(global::DId.CreateDocumentDtoVariant2? value) CreateDocumentDtoVariant2 = value; } + /// + /// + /// + public static CreateDocumentDto FromCreateDocumentDtoVariant2(global::DId.CreateDocumentDtoVariant2? value) => new CreateDocumentDto(value); + /// /// /// diff --git a/src/libs/DId/Generated/DId.Models.CreateExpressiveResponseDto.g.cs b/src/libs/DId/Generated/DId.Models.CreateExpressiveResponseDto.g.cs index 430b315a..9dc7732d 100644 --- a/src/libs/DId/Generated/DId.Models.CreateExpressiveResponseDto.g.cs +++ b/src/libs/DId/Generated/DId.Models.CreateExpressiveResponseDto.g.cs @@ -86,6 +86,11 @@ public CreateExpressiveResponseDto(global::DId.CreateExpressiveResponseDtoVarian CreateExpressiveResponseDtoVariant1 = value; } + /// + /// + /// + public static CreateExpressiveResponseDto FromCreateExpressiveResponseDtoVariant1(global::DId.CreateExpressiveResponseDtoVariant1? value) => new CreateExpressiveResponseDto(value); + /// /// /// @@ -104,6 +109,11 @@ public CreateExpressiveResponseDto(global::DId.CreateExpressiveResponseDtoVarian CreateExpressiveResponseDtoVariant2 = value; } + /// + /// + /// + public static CreateExpressiveResponseDto FromCreateExpressiveResponseDtoVariant2(global::DId.CreateExpressiveResponseDtoVariant2? value) => new CreateExpressiveResponseDto(value); + /// /// /// diff --git a/src/libs/DId/Generated/DId.Models.CreateIceCandidateStreamRequest.g.cs b/src/libs/DId/Generated/DId.Models.CreateIceCandidateStreamRequest.g.cs index 4e49c5e1..336f4496 100644 --- a/src/libs/DId/Generated/DId.Models.CreateIceCandidateStreamRequest.g.cs +++ b/src/libs/DId/Generated/DId.Models.CreateIceCandidateStreamRequest.g.cs @@ -86,6 +86,11 @@ public CreateIceCandidateStreamRequest(global::DId.AnyOf + /// + /// + public static CreateIceCandidateStreamRequest FromCreateIceCandidateStreamRequestVariant1(global::DId.AnyOf? value) => new CreateIceCandidateStreamRequest(value); + /// /// /// @@ -104,6 +109,11 @@ public CreateIceCandidateStreamRequest(global::DId.CreateIceCandidateStreamReque CreateIceCandidateStreamRequestVariant2 = value; } + /// + /// + /// + public static CreateIceCandidateStreamRequest FromCreateIceCandidateStreamRequestVariant2(global::DId.CreateIceCandidateStreamRequestVariant2? value) => new CreateIceCandidateStreamRequest(value); + /// /// /// diff --git a/src/libs/DId/Generated/DId.Models.CreateSecretExternalLLMRequestDto.g.cs b/src/libs/DId/Generated/DId.Models.CreateSecretExternalLLMRequestDto.g.cs index b5886a89..4604ae9b 100644 --- a/src/libs/DId/Generated/DId.Models.CreateSecretExternalLLMRequestDto.g.cs +++ b/src/libs/DId/Generated/DId.Models.CreateSecretExternalLLMRequestDto.g.cs @@ -86,6 +86,11 @@ public CreateSecretExternalLLMRequestDto(global::DId.CreateSecretExternalLLMRequ OpenAIConfiguration = value; } + /// + /// + /// + public static CreateSecretExternalLLMRequestDto FromOpenAIConfiguration(global::DId.CreateSecretExternalLLMRequestDtoOpenAIConfiguration? value) => new CreateSecretExternalLLMRequestDto(value); + /// /// /// @@ -104,6 +109,11 @@ public CreateSecretExternalLLMRequestDto(global::DId.CreateSecretExternalLLMRequ CreateSecretExternalLLMRequestDtoVariant2 = value; } + /// + /// + /// + public static CreateSecretExternalLLMRequestDto FromCreateSecretExternalLLMRequestDtoVariant2(global::DId.CreateSecretExternalLLMRequestDtoVariant2? value) => new CreateSecretExternalLLMRequestDto(value); + /// /// /// diff --git a/src/libs/DId/Generated/DId.Models.CreateSecretRequestDto.g.cs b/src/libs/DId/Generated/DId.Models.CreateSecretRequestDto.g.cs index 2213533b..8fb91a95 100644 --- a/src/libs/DId/Generated/DId.Models.CreateSecretRequestDto.g.cs +++ b/src/libs/DId/Generated/DId.Models.CreateSecretRequestDto.g.cs @@ -116,6 +116,11 @@ public CreateSecretRequestDto(global::DId.CreateSecretRequestDtoBasicAuthenticat BasicAuthentication = value; } + /// + /// + /// + public static CreateSecretRequestDto FromBasicAuthentication(global::DId.CreateSecretRequestDtoBasicAuthentication? value) => new CreateSecretRequestDto(value); + /// /// /// @@ -134,6 +139,11 @@ public CreateSecretRequestDto(global::DId.CreateSecretRequestDtoBearerToken? val BearerToken = value; } + /// + /// + /// + public static CreateSecretRequestDto FromBearerToken(global::DId.CreateSecretRequestDtoBearerToken? value) => new CreateSecretRequestDto(value); + /// /// /// @@ -152,6 +162,11 @@ public CreateSecretRequestDto(global::DId.CreateSecretRequestDtoApiKey? value) ApiKey = value; } + /// + /// + /// + public static CreateSecretRequestDto FromApiKey(global::DId.CreateSecretRequestDtoApiKey? value) => new CreateSecretRequestDto(value); + /// /// /// diff --git a/src/libs/DId/Generated/DId.Models.CreateStreamScript.g.cs b/src/libs/DId/Generated/DId.Models.CreateStreamScript.g.cs index 4e9ec8ee..c74ba9e0 100644 --- a/src/libs/DId/Generated/DId.Models.CreateStreamScript.g.cs +++ b/src/libs/DId/Generated/DId.Models.CreateStreamScript.g.cs @@ -86,6 +86,11 @@ public CreateStreamScript(global::DId.CreateStreamScriptText? value) Text = value; } + /// + /// + /// + public static CreateStreamScript FromText(global::DId.CreateStreamScriptText? value) => new CreateStreamScript(value); + /// /// /// @@ -104,6 +109,11 @@ public CreateStreamScript(global::DId.CreateStreamScriptAudio? value) Audio = value; } + /// + /// + /// + public static CreateStreamScript FromAudio(global::DId.CreateStreamScriptAudio? value) => new CreateStreamScript(value); + /// /// /// diff --git a/src/libs/DId/Generated/DId.Models.CreateVideoStreamResponse.g.cs b/src/libs/DId/Generated/DId.Models.CreateVideoStreamResponse.g.cs index 1d2b23c9..1371fe94 100644 --- a/src/libs/DId/Generated/DId.Models.CreateVideoStreamResponse.g.cs +++ b/src/libs/DId/Generated/DId.Models.CreateVideoStreamResponse.g.cs @@ -86,6 +86,11 @@ public CreateVideoStreamResponse(global::DId.CreateVideoStreamResponseVariant1? CreateVideoStreamResponseVariant1 = value; } + /// + /// + /// + public static CreateVideoStreamResponse FromCreateVideoStreamResponseVariant1(global::DId.CreateVideoStreamResponseVariant1? value) => new CreateVideoStreamResponse(value); + /// /// /// @@ -104,6 +109,11 @@ public CreateVideoStreamResponse(global::DId.CreateVideoStreamResponseVariant2? CreateVideoStreamResponseVariant2 = value; } + /// + /// + /// + public static CreateVideoStreamResponse FromCreateVideoStreamResponseVariant2(global::DId.CreateVideoStreamResponseVariant2? value) => new CreateVideoStreamResponse(value); + /// /// /// diff --git a/src/libs/DId/Generated/DId.Models.Crop.g.cs b/src/libs/DId/Generated/DId.Models.Crop.g.cs index e4688624..88c84668 100644 --- a/src/libs/DId/Generated/DId.Models.Crop.g.cs +++ b/src/libs/DId/Generated/DId.Models.Crop.g.cs @@ -86,6 +86,11 @@ public Crop(global::DId.CropVariant1? value) CropVariant1 = value; } + /// + /// + /// + public static Crop FromCropVariant1(global::DId.CropVariant1? value) => new Crop(value); + /// /// /// @@ -104,6 +109,11 @@ public Crop(global::DId.CropVariant2? value) CropVariant2 = value; } + /// + /// + /// + public static Crop FromCropVariant2(global::DId.CropVariant2? value) => new Crop(value); + /// /// /// diff --git a/src/libs/DId/Generated/DId.Models.CustomAuthConfig.g.cs b/src/libs/DId/Generated/DId.Models.CustomAuthConfig.g.cs index aa8737e8..c0246f92 100644 --- a/src/libs/DId/Generated/DId.Models.CustomAuthConfig.g.cs +++ b/src/libs/DId/Generated/DId.Models.CustomAuthConfig.g.cs @@ -86,6 +86,11 @@ public CustomAuthConfig(global::DId.CustomAuthConfigBasic? value) Basic = value; } + /// + /// + /// + public static CustomAuthConfig FromBasic(global::DId.CustomAuthConfigBasic? value) => new CustomAuthConfig(value); + /// /// /// @@ -104,6 +109,11 @@ public CustomAuthConfig(global::DId.CustomAuthConfigOAuth2? value) OAuth2 = value; } + /// + /// + /// + public static CustomAuthConfig FromOAuth2(global::DId.CustomAuthConfigOAuth2? value) => new CustomAuthConfig(value); + /// /// /// diff --git a/src/libs/DId/Generated/DId.Models.ExportDto.g.cs b/src/libs/DId/Generated/DId.Models.ExportDto.g.cs index abaae154..34824578 100644 --- a/src/libs/DId/Generated/DId.Models.ExportDto.g.cs +++ b/src/libs/DId/Generated/DId.Models.ExportDto.g.cs @@ -86,6 +86,11 @@ public ExportDto(global::DId.ExportDtoVariant1? value) ExportDtoVariant1 = value; } + /// + /// + /// + public static ExportDto FromExportDtoVariant1(global::DId.ExportDtoVariant1? value) => new ExportDto(value); + /// /// /// @@ -104,6 +109,11 @@ public ExportDto(global::DId.ExportDtoVariant2? value) ExportDtoVariant2 = value; } + /// + /// + /// + public static ExportDto FromExportDtoVariant2(global::DId.ExportDtoVariant2? value) => new ExportDto(value); + /// /// /// diff --git a/src/libs/DId/Generated/DId.Models.ExpressiveAvatarDto.g.cs b/src/libs/DId/Generated/DId.Models.ExpressiveAvatarDto.g.cs index 7f9e1f78..086c134c 100644 --- a/src/libs/DId/Generated/DId.Models.ExpressiveAvatarDto.g.cs +++ b/src/libs/DId/Generated/DId.Models.ExpressiveAvatarDto.g.cs @@ -86,6 +86,11 @@ public ExpressiveAvatarDto(global::DId.ExpressiveAvatarDtoVariant1? value) ExpressiveAvatarDtoVariant1 = value; } + /// + /// + /// + public static ExpressiveAvatarDto FromExpressiveAvatarDtoVariant1(global::DId.ExpressiveAvatarDtoVariant1? value) => new ExpressiveAvatarDto(value); + /// /// /// diff --git a/src/libs/DId/Generated/DId.Models.ExpressiveAvatarExpressionDto.g.cs b/src/libs/DId/Generated/DId.Models.ExpressiveAvatarExpressionDto.g.cs index 6bb49432..2f28621f 100644 --- a/src/libs/DId/Generated/DId.Models.ExpressiveAvatarExpressionDto.g.cs +++ b/src/libs/DId/Generated/DId.Models.ExpressiveAvatarExpressionDto.g.cs @@ -86,6 +86,11 @@ public ExpressiveAvatarExpressionDto(global::DId.ExpressiveAvatarExpressionDtoVa ExpressiveAvatarExpressionDtoVariant1 = value; } + /// + /// + /// + public static ExpressiveAvatarExpressionDto FromExpressiveAvatarExpressionDtoVariant1(global::DId.ExpressiveAvatarExpressionDtoVariant1? value) => new ExpressiveAvatarExpressionDto(value); + /// /// /// diff --git a/src/libs/DId/Generated/DId.Models.ExpressiveVideoBackground.g.cs b/src/libs/DId/Generated/DId.Models.ExpressiveVideoBackground.g.cs index af8579e4..1dc51c52 100644 --- a/src/libs/DId/Generated/DId.Models.ExpressiveVideoBackground.g.cs +++ b/src/libs/DId/Generated/DId.Models.ExpressiveVideoBackground.g.cs @@ -86,6 +86,11 @@ public ExpressiveVideoBackground(global::DId.ExpressiveVideoBackgroundVariant1? ExpressiveVideoBackgroundVariant1 = value; } + /// + /// + /// + public static ExpressiveVideoBackground FromExpressiveVideoBackgroundVariant1(global::DId.ExpressiveVideoBackgroundVariant1? value) => new ExpressiveVideoBackground(value); + /// /// /// @@ -104,6 +109,11 @@ public ExpressiveVideoBackground(global::DId.ExpressiveVideoBackgroundVariant2? ExpressiveVideoBackgroundVariant2 = value; } + /// + /// + /// + public static ExpressiveVideoBackground FromExpressiveVideoBackgroundVariant2(global::DId.ExpressiveVideoBackgroundVariant2? value) => new ExpressiveVideoBackground(value); + /// /// /// diff --git a/src/libs/DId/Generated/DId.Models.GetExpressiveAvatarDto.g.cs b/src/libs/DId/Generated/DId.Models.GetExpressiveAvatarDto.g.cs index c8fd948e..84b00da5 100644 --- a/src/libs/DId/Generated/DId.Models.GetExpressiveAvatarDto.g.cs +++ b/src/libs/DId/Generated/DId.Models.GetExpressiveAvatarDto.g.cs @@ -86,6 +86,11 @@ public GetExpressiveAvatarDto(global::DId.AllOf + /// + /// + public static GetExpressiveAvatarDto FromGetExpressiveAvatarDtoVariant1(global::DId.AllOf? value) => new GetExpressiveAvatarDto(value); + /// /// /// @@ -104,6 +109,11 @@ public GetExpressiveAvatarDto(global::DId.GetExpressiveAvatarDtoVariant2? value) GetExpressiveAvatarDtoVariant2 = value; } + /// + /// + /// + public static GetExpressiveAvatarDto FromGetExpressiveAvatarDtoVariant2(global::DId.GetExpressiveAvatarDtoVariant2? value) => new GetExpressiveAvatarDto(value); + /// /// /// diff --git a/src/libs/DId/Generated/DId.Models.JSONValue.g.cs b/src/libs/DId/Generated/DId.Models.JSONValue.g.cs index ba6bcb2f..bb3087c3 100644 --- a/src/libs/DId/Generated/DId.Models.JSONValue.g.cs +++ b/src/libs/DId/Generated/DId.Models.JSONValue.g.cs @@ -176,6 +176,11 @@ public JSONValue(string? value) JSONValueVariant1 = value; } + /// + /// + /// + public static JSONValue FromJSONValueVariant1(string? value) => new JSONValue(value); + /// /// /// @@ -194,6 +199,11 @@ public JSONValue(double? value) JSONValueVariant2 = value; } + /// + /// + /// + public static JSONValue FromJSONValueVariant2(double? value) => new JSONValue(value); + /// /// /// @@ -212,6 +222,11 @@ public JSONValue(bool? value) JSONValueVariant3 = value; } + /// + /// + /// + public static JSONValue FromJSONValueVariant3(bool? value) => new JSONValue(value); + /// /// /// @@ -230,6 +245,11 @@ public JSONValue(global::System.Collections.Generic.Dictionary + /// + /// + public static JSONValue FromJSONValueVariant5(global::System.Collections.Generic.Dictionary? value) => new JSONValue(value); + /// /// /// diff --git a/src/libs/DId/Generated/DId.Models.LLMConfig.g.cs b/src/libs/DId/Generated/DId.Models.LLMConfig.g.cs index aec8d60c..d5e46004 100644 --- a/src/libs/DId/Generated/DId.Models.LLMConfig.g.cs +++ b/src/libs/DId/Generated/DId.Models.LLMConfig.g.cs @@ -176,6 +176,11 @@ public LLMConfig(global::DId.LLMConfigOpenAI? value) OpenAI = value; } + /// + /// + /// + public static LLMConfig FromOpenAI(global::DId.LLMConfigOpenAI? value) => new LLMConfig(value); + /// /// /// @@ -194,6 +199,11 @@ public LLMConfig(global::DId.LLMConfigVariant2? value) LLMConfigVariant2 = value; } + /// + /// + /// + public static LLMConfig FromLLMConfigVariant2(global::DId.LLMConfigVariant2? value) => new LLMConfig(value); + /// /// /// @@ -212,6 +222,11 @@ public LLMConfig(global::DId.LLMConfigVariant3? value) LLMConfigVariant3 = value; } + /// + /// + /// + public static LLMConfig FromLLMConfigVariant3(global::DId.LLMConfigVariant3? value) => new LLMConfig(value); + /// /// /// @@ -230,6 +245,11 @@ public LLMConfig(global::DId.LLMConfigDId? value) DId = value; } + /// + /// + /// + public static LLMConfig FromDId(global::DId.LLMConfigDId? value) => new LLMConfig(value); + /// /// /// @@ -248,6 +268,11 @@ public LLMConfig(global::DId.LLMConfigGoogle? value) Google = value; } + /// + /// + /// + public static LLMConfig FromGoogle(global::DId.LLMConfigGoogle? value) => new LLMConfig(value); + /// /// /// diff --git a/src/libs/DId/Generated/DId.Models.LLMConfigCreateDto.g.cs b/src/libs/DId/Generated/DId.Models.LLMConfigCreateDto.g.cs index d545af8b..ae7e4b20 100644 --- a/src/libs/DId/Generated/DId.Models.LLMConfigCreateDto.g.cs +++ b/src/libs/DId/Generated/DId.Models.LLMConfigCreateDto.g.cs @@ -206,6 +206,11 @@ public LLMConfigCreateDto(global::DId.LLMConfigCreateDtoVariant1? value) LLMConfigCreateDtoVariant1 = value; } + /// + /// + /// + public static LLMConfigCreateDto FromLLMConfigCreateDtoVariant1(global::DId.LLMConfigCreateDtoVariant1? value) => new LLMConfigCreateDto(value); + /// /// /// @@ -224,6 +229,11 @@ public LLMConfigCreateDto(global::DId.LLMConfigCreateDtoVariant2? value) LLMConfigCreateDtoVariant2 = value; } + /// + /// + /// + public static LLMConfigCreateDto FromLLMConfigCreateDtoVariant2(global::DId.LLMConfigCreateDtoVariant2? value) => new LLMConfigCreateDto(value); + /// /// /// @@ -242,6 +252,11 @@ public LLMConfigCreateDto(global::DId.LLMConfigCreateDtoVariant3? value) LLMConfigCreateDtoVariant3 = value; } + /// + /// + /// + public static LLMConfigCreateDto FromLLMConfigCreateDtoVariant3(global::DId.LLMConfigCreateDtoVariant3? value) => new LLMConfigCreateDto(value); + /// /// /// @@ -260,6 +275,11 @@ public LLMConfigCreateDto(global::DId.LLMConfigCreateDtoVariant4? value) LLMConfigCreateDtoVariant4 = value; } + /// + /// + /// + public static LLMConfigCreateDto FromLLMConfigCreateDtoVariant4(global::DId.LLMConfigCreateDtoVariant4? value) => new LLMConfigCreateDto(value); + /// /// /// @@ -278,6 +298,11 @@ public LLMConfigCreateDto(global::DId.LLMConfigCreateDtoVariant5? value) LLMConfigCreateDtoVariant5 = value; } + /// + /// + /// + public static LLMConfigCreateDto FromLLMConfigCreateDtoVariant5(global::DId.LLMConfigCreateDtoVariant5? value) => new LLMConfigCreateDto(value); + /// /// /// @@ -296,6 +321,11 @@ public LLMConfigCreateDto(global::DId.LLMConfigCreateDtoVariant6? value) LLMConfigCreateDtoVariant6 = value; } + /// + /// + /// + public static LLMConfigCreateDto FromLLMConfigCreateDtoVariant6(global::DId.LLMConfigCreateDtoVariant6? value) => new LLMConfigCreateDto(value); + /// /// /// diff --git a/src/libs/DId/Generated/DId.Models.LogoDto.g.cs b/src/libs/DId/Generated/DId.Models.LogoDto.g.cs index 9b37a6b4..47454267 100644 --- a/src/libs/DId/Generated/DId.Models.LogoDto.g.cs +++ b/src/libs/DId/Generated/DId.Models.LogoDto.g.cs @@ -86,6 +86,11 @@ public LogoDto(global::DId.LogoDtoVariant1? value) LogoDtoVariant1 = value; } + /// + /// + /// + public static LogoDto FromLogoDtoVariant1(global::DId.LogoDtoVariant1? value) => new LogoDto(value); + /// /// /// @@ -104,6 +109,11 @@ public LogoDto(bool? value) LogoDtoVariant2 = value; } + /// + /// + /// + public static LogoDto FromLogoDtoVariant2(bool? value) => new LogoDto(value); + /// /// /// diff --git a/src/libs/DId/Generated/DId.Models.PartialAgentPresenter.g.cs b/src/libs/DId/Generated/DId.Models.PartialAgentPresenter.g.cs index c0caccaa..e57d089a 100644 --- a/src/libs/DId/Generated/DId.Models.PartialAgentPresenter.g.cs +++ b/src/libs/DId/Generated/DId.Models.PartialAgentPresenter.g.cs @@ -86,6 +86,11 @@ public PartialAgentPresenter(global::DId.PartialAgentPresenterPhotoAvatar? value PhotoAvatar = value; } + /// + /// + /// + public static PartialAgentPresenter FromPhotoAvatar(global::DId.PartialAgentPresenterPhotoAvatar? value) => new PartialAgentPresenter(value); + /// /// /// @@ -104,6 +109,11 @@ public PartialAgentPresenter(global::DId.PartialAgentPresenterVideoAvatar? value VideoAvatar = value; } + /// + /// + /// + public static PartialAgentPresenter FromVideoAvatar(global::DId.PartialAgentPresenterVideoAvatar? value) => new PartialAgentPresenter(value); + /// /// /// diff --git a/src/libs/DId/Generated/DId.Models.Script.g.cs b/src/libs/DId/Generated/DId.Models.Script.g.cs index 9658091b..7bb02e5f 100644 --- a/src/libs/DId/Generated/DId.Models.Script.g.cs +++ b/src/libs/DId/Generated/DId.Models.Script.g.cs @@ -86,6 +86,11 @@ public Script(global::DId.ScriptVariant1? value) ScriptVariant1 = value; } + /// + /// + /// + public static Script FromScriptVariant1(global::DId.ScriptVariant1? value) => new Script(value); + /// /// /// @@ -104,6 +109,11 @@ public Script(global::DId.ScriptVariant2? value) ScriptVariant2 = value; } + /// + /// + /// + public static Script FromScriptVariant2(global::DId.ScriptVariant2? value) => new Script(value); + /// /// /// diff --git a/src/libs/DId/Generated/DId.Models.StreamScript.g.cs b/src/libs/DId/Generated/DId.Models.StreamScript.g.cs index 3c3b14e5..9d724394 100644 --- a/src/libs/DId/Generated/DId.Models.StreamScript.g.cs +++ b/src/libs/DId/Generated/DId.Models.StreamScript.g.cs @@ -86,6 +86,11 @@ public StreamScript(global::DId.StreamScriptVariant1? value) StreamScriptVariant1 = value; } + /// + /// + /// + public static StreamScript FromStreamScriptVariant1(global::DId.StreamScriptVariant1? value) => new StreamScript(value); + /// /// /// @@ -104,6 +109,11 @@ public StreamScript(global::DId.StreamScriptVariant2? value) StreamScriptVariant2 = value; } + /// + /// + /// + public static StreamScript FromStreamScriptVariant2(global::DId.StreamScriptVariant2? value) => new StreamScript(value); + /// /// /// diff --git a/src/libs/DId/Generated/DId.Models.TextToSpeechProviders.g.cs b/src/libs/DId/Generated/DId.Models.TextToSpeechProviders.g.cs index fbaaa34b..ba1ab7ab 100644 --- a/src/libs/DId/Generated/DId.Models.TextToSpeechProviders.g.cs +++ b/src/libs/DId/Generated/DId.Models.TextToSpeechProviders.g.cs @@ -176,6 +176,11 @@ public TextToSpeechProviders(global::DId.TextToSpeechProvidersMicrosoft? value) Microsoft = value; } + /// + /// + /// + public static TextToSpeechProviders FromMicrosoft(global::DId.TextToSpeechProvidersMicrosoft? value) => new TextToSpeechProviders(value); + /// /// /// @@ -194,6 +199,11 @@ public TextToSpeechProviders(global::DId.TextToSpeechProvidersElevenLabs? value) ElevenLabs = value; } + /// + /// + /// + public static TextToSpeechProviders FromElevenLabs(global::DId.TextToSpeechProvidersElevenLabs? value) => new TextToSpeechProviders(value); + /// /// /// @@ -212,6 +222,11 @@ public TextToSpeechProviders(global::DId.TextToSpeechProvidersAmazon? value) Amazon = value; } + /// + /// + /// + public static TextToSpeechProviders FromAmazon(global::DId.TextToSpeechProvidersAmazon? value) => new TextToSpeechProviders(value); + /// /// /// @@ -230,6 +245,11 @@ public TextToSpeechProviders(global::DId.TextToSpeechProvidersGoogle? value) Google = value; } + /// + /// + /// + public static TextToSpeechProviders FromGoogle(global::DId.TextToSpeechProvidersGoogle? value) => new TextToSpeechProviders(value); + /// /// /// @@ -248,6 +268,11 @@ public TextToSpeechProviders(global::DId.TextToSpeechProvidersOpenAI? value) OpenAI = value; } + /// + /// + /// + public static TextToSpeechProviders FromOpenAI(global::DId.TextToSpeechProvidersOpenAI? value) => new TextToSpeechProviders(value); + /// /// /// diff --git a/src/libs/DId/Generated/DId.Models.ToolResultOutput.g.cs b/src/libs/DId/Generated/DId.Models.ToolResultOutput.g.cs index 2ba40234..0876f5e8 100644 --- a/src/libs/DId/Generated/DId.Models.ToolResultOutput.g.cs +++ b/src/libs/DId/Generated/DId.Models.ToolResultOutput.g.cs @@ -86,6 +86,11 @@ public ToolResultOutput(global::DId.ToolResultOutputVariant1? value) ToolResultOutputVariant1 = value; } + /// + /// + /// + public static ToolResultOutput FromToolResultOutputVariant1(global::DId.ToolResultOutputVariant1? value) => new ToolResultOutput(value); + /// /// /// @@ -104,6 +109,11 @@ public ToolResultOutput(global::DId.ToolResultOutputVariant2? value) ToolResultOutputVariant2 = value; } + /// + /// + /// + public static ToolResultOutput FromToolResultOutputVariant2(global::DId.ToolResultOutputVariant2? value) => new ToolResultOutput(value); + /// /// /// diff --git a/src/libs/DId/Generated/DId.Models.TriggerEventData.g.cs b/src/libs/DId/Generated/DId.Models.TriggerEventData.g.cs index 9e4e3b92..4e15a53c 100644 --- a/src/libs/DId/Generated/DId.Models.TriggerEventData.g.cs +++ b/src/libs/DId/Generated/DId.Models.TriggerEventData.g.cs @@ -86,6 +86,11 @@ public TriggerEventData(global::DId.ChatEndEventData? value) ChatEnd = value; } + /// + /// + /// + public static TriggerEventData FromChatEnd(global::DId.ChatEndEventData? value) => new TriggerEventData(value); + /// /// /// @@ -104,6 +109,11 @@ public TriggerEventData(global::DId.TriggerEventDataVariant2? value) TriggerEventDataVariant2 = value; } + /// + /// + /// + public static TriggerEventData FromTriggerEventDataVariant2(global::DId.TriggerEventDataVariant2? value) => new TriggerEventData(value); + /// /// /// diff --git a/src/libs/DId/Generated/DId.Models.UpdateAuthSecretRequestDto.g.cs b/src/libs/DId/Generated/DId.Models.UpdateAuthSecretRequestDto.g.cs index 8093f13d..e5c237f5 100644 --- a/src/libs/DId/Generated/DId.Models.UpdateAuthSecretRequestDto.g.cs +++ b/src/libs/DId/Generated/DId.Models.UpdateAuthSecretRequestDto.g.cs @@ -116,6 +116,11 @@ public UpdateAuthSecretRequestDto(global::DId.UpdateAuthSecretRequestDtoBasicAut BasicAuthentication = value; } + /// + /// + /// + public static UpdateAuthSecretRequestDto FromBasicAuthentication(global::DId.UpdateAuthSecretRequestDtoBasicAuthentication? value) => new UpdateAuthSecretRequestDto(value); + /// /// /// @@ -134,6 +139,11 @@ public UpdateAuthSecretRequestDto(global::DId.UpdateAuthSecretRequestDtoBearerTo BearerToken = value; } + /// + /// + /// + public static UpdateAuthSecretRequestDto FromBearerToken(global::DId.UpdateAuthSecretRequestDtoBearerToken? value) => new UpdateAuthSecretRequestDto(value); + /// /// /// @@ -152,6 +162,11 @@ public UpdateAuthSecretRequestDto(global::DId.UpdateAuthSecretRequestDtoApiKey? ApiKey = value; } + /// + /// + /// + public static UpdateAuthSecretRequestDto FromApiKey(global::DId.UpdateAuthSecretRequestDtoApiKey? value) => new UpdateAuthSecretRequestDto(value); + /// /// /// diff --git a/src/libs/DId/Generated/DId.Models.UpdatePresenterAttributes.g.cs b/src/libs/DId/Generated/DId.Models.UpdatePresenterAttributes.g.cs index d617243d..d7175566 100644 --- a/src/libs/DId/Generated/DId.Models.UpdatePresenterAttributes.g.cs +++ b/src/libs/DId/Generated/DId.Models.UpdatePresenterAttributes.g.cs @@ -116,6 +116,11 @@ public UpdatePresenterAttributes(global::DId.UpdatePresenterAttributesVariant1? UpdatePresenterAttributesVariant1 = value; } + /// + /// + /// + public static UpdatePresenterAttributes FromUpdatePresenterAttributesVariant1(global::DId.UpdatePresenterAttributesVariant1? value) => new UpdatePresenterAttributes(value); + /// /// /// @@ -134,6 +139,11 @@ public UpdatePresenterAttributes(global::DId.UpdatePresenterAttributesVariant2? UpdatePresenterAttributesVariant2 = value; } + /// + /// + /// + public static UpdatePresenterAttributes FromUpdatePresenterAttributesVariant2(global::DId.UpdatePresenterAttributesVariant2? value) => new UpdatePresenterAttributes(value); + /// /// /// @@ -152,6 +162,11 @@ public UpdatePresenterAttributes(global::DId.UpdatePresenterAttributesVariant3? UpdatePresenterAttributesVariant3 = value; } + /// + /// + /// + public static UpdatePresenterAttributes FromUpdatePresenterAttributesVariant3(global::DId.UpdatePresenterAttributesVariant3? value) => new UpdatePresenterAttributes(value); + /// /// /// diff --git a/src/libs/DId/Generated/DId.Models.UpdateSecretExternalLLMRequestDto.g.cs b/src/libs/DId/Generated/DId.Models.UpdateSecretExternalLLMRequestDto.g.cs index 8e450644..13b8ef8d 100644 --- a/src/libs/DId/Generated/DId.Models.UpdateSecretExternalLLMRequestDto.g.cs +++ b/src/libs/DId/Generated/DId.Models.UpdateSecretExternalLLMRequestDto.g.cs @@ -86,6 +86,11 @@ public UpdateSecretExternalLLMRequestDto(global::DId.UpdateSecretExternalLLMRequ OpenAIConfiguration = value; } + /// + /// + /// + public static UpdateSecretExternalLLMRequestDto FromOpenAIConfiguration(global::DId.UpdateSecretExternalLLMRequestDtoOpenAIConfiguration? value) => new UpdateSecretExternalLLMRequestDto(value); + /// /// /// @@ -104,6 +109,11 @@ public UpdateSecretExternalLLMRequestDto(global::DId.UpdateSecretExternalLLMRequ UpdateSecretExternalLLMRequestDtoVariant2 = value; } + /// + /// + /// + public static UpdateSecretExternalLLMRequestDto FromUpdateSecretExternalLLMRequestDtoVariant2(global::DId.UpdateSecretExternalLLMRequestDtoVariant2? value) => new UpdateSecretExternalLLMRequestDto(value); + /// /// /// diff --git a/src/libs/DId/Generated/DId.OptionsSupport.g.cs b/src/libs/DId/Generated/DId.OptionsSupport.g.cs index 879e7c02..952ca3fd 100644 --- a/src/libs/DId/Generated/DId.OptionsSupport.g.cs +++ b/src/libs/DId/Generated/DId.OptionsSupport.g.cs @@ -54,6 +54,156 @@ public sealed class AutoSDKClientOptions Hooks.Add(hook ?? throw new global::System.ArgumentNullException(nameof(hook))); return this; } + + /// + /// Optional per-request authorization provider invoked before each request is sent. + /// Set this when the client is registered as a singleton in DI but each call needs + /// a fresh credential resolved from a provider, secret-store, or session — instead + /// of mutating the shared Authorizations list at construction time. + /// + public global::DId.IAutoSDKAuthorizationProvider? AuthorizationProvider { get; set; } + + /// + /// Convenience helper that registers + /// using so request-level auth is resolved without + /// touching shared client state. + /// + /// + public global::DId.AutoSDKClientOptions UseAuthorizationProvider( + global::DId.IAutoSDKAuthorizationProvider provider) + { + AuthorizationProvider = provider ?? throw new global::System.ArgumentNullException(nameof(provider)); + if (Hooks.Find(static x => x is global::DId.AutoSDKAuthorizationProviderHook) == null) + { + Hooks.Add(new global::DId.AutoSDKAuthorizationProviderHook()); + } + + return this; + } + } + + /// + /// A request-level authorization value supplied by . + /// Mirrors the runtime fields the SDK applies for HTTP / OAuth2 / API-key auth without + /// requiring the consumer to construct the generated EndPointAuthorization type. + /// + public readonly struct AutoSDKAuthorizationValue + { + /// + /// Initializes a new . + /// + /// + /// + /// + /// + /// + public AutoSDKAuthorizationValue( + string value, + string scheme = "Bearer", + string? headerName = null, + string location = "Header", + string type = "Http") + { + Value = value ?? string.Empty; + Scheme = string.IsNullOrWhiteSpace(scheme) ? "Bearer" : scheme; + HeaderName = headerName ?? string.Empty; + Location = string.IsNullOrWhiteSpace(location) ? "Header" : location; + Type = string.IsNullOrWhiteSpace(type) ? "Http" : type; + } + + /// The credential value (token, API key, etc.). + public string Value { get; } + + /// The HTTP authorization scheme — typically Bearer, Basic, or Token. + public string Scheme { get; } + + /// The custom header name when is ApiKey; ignored for HTTP/OAuth2 auth. + public string HeaderName { get; } + + /// The credential location — Header, Query, or Cookie. + public string Location { get; } + + /// The auth type — Http, OAuth2, OpenIdConnect, or ApiKey. + public string Type { get; } + + /// Convenience factory for a Bearer token. + public static global::DId.AutoSDKAuthorizationValue Bearer(string token) => new(value: token, scheme: "Bearer"); + + /// Convenience factory for an API-key header. + public static global::DId.AutoSDKAuthorizationValue ApiKeyHeader(string name, string value) => + new(value: value, headerName: name, location: "Header", type: "ApiKey"); + } + + /// + /// Resolves request-level authorization values without mutating the shared client + /// authorization list. Implementations should be safe to invoke concurrently — + /// the hook calls them once per outgoing request. + /// + public interface IAutoSDKAuthorizationProvider + { + /// + /// Returns one or more values to apply to + /// the current request, or an empty list / null to leave the request as-is. + /// + /// + global::System.Threading.Tasks.Task?> ResolveAsync( + global::DId.AutoSDKHookContext context); + } + + /// + /// Built-in that consults + /// before every outgoing + /// request and stamps the resolved values onto the . + /// + public sealed class AutoSDKAuthorizationProviderHook : global::DId.AutoSDKHook + { + /// + public override async global::System.Threading.Tasks.Task OnBeforeRequestAsync( + global::DId.AutoSDKHookContext context) + { + context = context ?? throw new global::System.ArgumentNullException(nameof(context)); + + var provider = context.ClientOptions?.AuthorizationProvider; + if (provider == null || context.Request == null) + { + return; + } + + var resolved = await provider.ResolveAsync(context).ConfigureAwait(false); + if (resolved == null || resolved.Count == 0) + { + return; + } + + for (var index = 0; index < resolved.Count; index++) + { + ApplyAuthorization(context.Request, resolved[index]); + } + } + + private static void ApplyAuthorization( + global::System.Net.Http.HttpRequestMessage request, + global::DId.AutoSDKAuthorizationValue authorization) + { + switch (authorization.Type) + { + case "Http": + case "OAuth2": + case "OpenIdConnect": + request.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: authorization.Scheme, + parameter: authorization.Value); + break; + case "ApiKey": + if (string.Equals(authorization.Location, "Header", global::System.StringComparison.OrdinalIgnoreCase) && + !string.IsNullOrEmpty(authorization.HeaderName)) + { + request.Headers.Remove(authorization.HeaderName); + request.Headers.TryAddWithoutValidation(authorization.HeaderName, authorization.Value ?? string.Empty); + } + break; + } + } } ///