diff --git a/src/libs/DId/Generated/DId.JsonConverters.AgentPresenter.g.cs b/src/libs/DId/Generated/DId.JsonConverters.AgentPresenter.g.cs index 9c2fe7d5..bafd6df4 100644 --- a/src/libs/DId/Generated/DId.JsonConverters.AgentPresenter.g.cs +++ b/src/libs/DId/Generated/DId.JsonConverters.AgentPresenter.g.cs @@ -116,6 +116,7 @@ public class AgentPresenterJsonConverter : global::System.Text.Json.Serializatio { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.AgentPresenterPhotoAvatar), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.AgentPresenterPhotoAvatar).Name}"); photoAvatar = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -126,9 +127,13 @@ public class AgentPresenterJsonConverter : global::System.Text.Json.Serializatio catch (global::System.InvalidOperationException) { } + } + if (photoAvatar == null && videoAvatar == null && expressiveAvatar == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.AgentPresenterVideoAvatar), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.AgentPresenterVideoAvatar).Name}"); videoAvatar = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -139,9 +144,13 @@ public class AgentPresenterJsonConverter : global::System.Text.Json.Serializatio catch (global::System.InvalidOperationException) { } + } + if (photoAvatar == null && videoAvatar == null && expressiveAvatar == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.AgentPresenterExpressiveAvatar), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.AgentPresenterExpressiveAvatar).Name}"); expressiveAvatar = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/DId/Generated/DId.JsonConverters.AgentResponseDto.g.cs b/src/libs/DId/Generated/DId.JsonConverters.AgentResponseDto.g.cs index 5983d8a5..34e880e4 100644 --- a/src/libs/DId/Generated/DId.JsonConverters.AgentResponseDto.g.cs +++ b/src/libs/DId/Generated/DId.JsonConverters.AgentResponseDto.g.cs @@ -102,6 +102,7 @@ public class AgentResponseDtoJsonConverter : global::System.Text.Json.Serializat { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.AgentResponseDtoVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.AgentResponseDtoVariant1).Name}"); agentResponseDtoVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -112,9 +113,13 @@ public class AgentResponseDtoJsonConverter : global::System.Text.Json.Serializat catch (global::System.InvalidOperationException) { } + } + if (agentResponseDtoVariant1 == null && agentResponseDtoVariant2 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.AgentResponseDtoVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.AgentResponseDtoVariant2).Name}"); agentResponseDtoVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/DId/Generated/DId.JsonConverters.AgentsTextToSpeechProviders.g.cs b/src/libs/DId/Generated/DId.JsonConverters.AgentsTextToSpeechProviders.g.cs index f190a29c..c75e6cb5 100644 --- a/src/libs/DId/Generated/DId.JsonConverters.AgentsTextToSpeechProviders.g.cs +++ b/src/libs/DId/Generated/DId.JsonConverters.AgentsTextToSpeechProviders.g.cs @@ -125,6 +125,7 @@ public class AgentsTextToSpeechProvidersJsonConverter : global::System.Text.Json { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.AgentsTextToSpeechProvidersMicrosoft), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.AgentsTextToSpeechProvidersMicrosoft).Name}"); microsoft = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -135,9 +136,13 @@ public class AgentsTextToSpeechProvidersJsonConverter : global::System.Text.Json catch (global::System.InvalidOperationException) { } + } + if (microsoft == null && elevenLabs == null && openAI == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.AgentsTextToSpeechProvidersElevenLabs), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.AgentsTextToSpeechProvidersElevenLabs).Name}"); elevenLabs = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -148,9 +153,13 @@ public class AgentsTextToSpeechProvidersJsonConverter : global::System.Text.Json catch (global::System.InvalidOperationException) { } + } + if (microsoft == null && elevenLabs == null && openAI == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.AgentsTextToSpeechProvidersOpenAI), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.AgentsTextToSpeechProvidersOpenAI).Name}"); openAI = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/DId/Generated/DId.JsonConverters.AllOf2.g.cs b/src/libs/DId/Generated/DId.JsonConverters.AllOf2.g.cs index 1af810d7..5b3abcb8 100644 --- a/src/libs/DId/Generated/DId.JsonConverters.AllOf2.g.cs +++ b/src/libs/DId/Generated/DId.JsonConverters.AllOf2.g.cs @@ -107,7 +107,10 @@ public class AllOfJsonConverter : global::System.Text.Json.Serialization catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null) + { try { diff --git a/src/libs/DId/Generated/DId.JsonConverters.AllOf3.g.cs b/src/libs/DId/Generated/DId.JsonConverters.AllOf3.g.cs index 1a2c9a2f..cc085943 100644 --- a/src/libs/DId/Generated/DId.JsonConverters.AllOf3.g.cs +++ b/src/libs/DId/Generated/DId.JsonConverters.AllOf3.g.cs @@ -137,7 +137,10 @@ public class AllOfJsonConverter : global::System.Text.Json.Serializa catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null) + { try { @@ -151,7 +154,10 @@ public class AllOfJsonConverter : global::System.Text.Json.Serializa catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null) + { try { diff --git a/src/libs/DId/Generated/DId.JsonConverters.AnimationError.g.cs b/src/libs/DId/Generated/DId.JsonConverters.AnimationError.g.cs index 1bbf445b..3b816439 100644 --- a/src/libs/DId/Generated/DId.JsonConverters.AnimationError.g.cs +++ b/src/libs/DId/Generated/DId.JsonConverters.AnimationError.g.cs @@ -158,6 +158,7 @@ public class AnimationErrorJsonConverter : global::System.Text.Json.Serializatio { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.AnimationErrorVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.AnimationErrorVariant1).Name}"); animationErrorVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -168,9 +169,13 @@ public class AnimationErrorJsonConverter : global::System.Text.Json.Serializatio catch (global::System.InvalidOperationException) { } + } + if (animationErrorVariant1 == null && animationErrorVariant2 == null && animationErrorVariant3 == null && animationErrorVariant4 == null && animationErrorVariant5 == null && animationErrorVariant6 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.AnimationErrorVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.AnimationErrorVariant2).Name}"); animationErrorVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -181,9 +186,13 @@ public class AnimationErrorJsonConverter : global::System.Text.Json.Serializatio catch (global::System.InvalidOperationException) { } + } + if (animationErrorVariant1 == null && animationErrorVariant2 == null && animationErrorVariant3 == null && animationErrorVariant4 == null && animationErrorVariant5 == null && animationErrorVariant6 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.AnimationErrorVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.AnimationErrorVariant3).Name}"); animationErrorVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -194,9 +203,13 @@ public class AnimationErrorJsonConverter : global::System.Text.Json.Serializatio catch (global::System.InvalidOperationException) { } + } + if (animationErrorVariant1 == null && animationErrorVariant2 == null && animationErrorVariant3 == null && animationErrorVariant4 == null && animationErrorVariant5 == null && animationErrorVariant6 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.AnimationErrorVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.AnimationErrorVariant4).Name}"); animationErrorVariant4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -207,9 +220,13 @@ public class AnimationErrorJsonConverter : global::System.Text.Json.Serializatio catch (global::System.InvalidOperationException) { } + } + if (animationErrorVariant1 == null && animationErrorVariant2 == null && animationErrorVariant3 == null && animationErrorVariant4 == null && animationErrorVariant5 == null && animationErrorVariant6 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.AnimationErrorVariant5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.AnimationErrorVariant5).Name}"); animationErrorVariant5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -220,9 +237,13 @@ public class AnimationErrorJsonConverter : global::System.Text.Json.Serializatio catch (global::System.InvalidOperationException) { } + } + if (animationErrorVariant1 == null && animationErrorVariant2 == null && animationErrorVariant3 == null && animationErrorVariant4 == null && animationErrorVariant5 == null && animationErrorVariant6 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.AnimationErrorVariant6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.AnimationErrorVariant6).Name}"); animationErrorVariant6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/DId/Generated/DId.JsonConverters.AnyOf2.g.cs b/src/libs/DId/Generated/DId.JsonConverters.AnyOf2.g.cs index ab9d7fba..3aa9502b 100644 --- a/src/libs/DId/Generated/DId.JsonConverters.AnyOf2.g.cs +++ b/src/libs/DId/Generated/DId.JsonConverters.AnyOf2.g.cs @@ -107,7 +107,10 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serialization catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null) + { try { diff --git a/src/libs/DId/Generated/DId.JsonConverters.AnyOf3.g.cs b/src/libs/DId/Generated/DId.JsonConverters.AnyOf3.g.cs index f42f2871..70851c95 100644 --- a/src/libs/DId/Generated/DId.JsonConverters.AnyOf3.g.cs +++ b/src/libs/DId/Generated/DId.JsonConverters.AnyOf3.g.cs @@ -137,7 +137,10 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serializa catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null) + { try { @@ -151,7 +154,10 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serializa catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null) + { try { diff --git a/src/libs/DId/Generated/DId.JsonConverters.AnyOf5.g.cs b/src/libs/DId/Generated/DId.JsonConverters.AnyOf5.g.cs index b4293aaa..90fc6caa 100644 --- a/src/libs/DId/Generated/DId.JsonConverters.AnyOf5.g.cs +++ b/src/libs/DId/Generated/DId.JsonConverters.AnyOf5.g.cs @@ -197,7 +197,10 @@ public class AnyOfJsonConverter : global::System.Text.Json.S catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null) + { try { @@ -211,7 +214,10 @@ public class AnyOfJsonConverter : global::System.Text.Json.S catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null) + { try { @@ -225,7 +231,10 @@ public class AnyOfJsonConverter : global::System.Text.Json.S catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null) + { try { @@ -239,7 +248,10 @@ public class AnyOfJsonConverter : global::System.Text.Json.S catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null) + { try { diff --git a/src/libs/DId/Generated/DId.JsonConverters.AnyOf6.g.cs b/src/libs/DId/Generated/DId.JsonConverters.AnyOf6.g.cs index 4100f34a..0fe9cf28 100644 --- a/src/libs/DId/Generated/DId.JsonConverters.AnyOf6.g.cs +++ b/src/libs/DId/Generated/DId.JsonConverters.AnyOf6.g.cs @@ -227,7 +227,10 @@ public class AnyOfJsonConverter : global::System.Text.Js catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null) + { try { @@ -241,7 +244,10 @@ public class AnyOfJsonConverter : global::System.Text.Js catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null) + { try { @@ -255,7 +261,10 @@ public class AnyOfJsonConverter : global::System.Text.Js catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null) + { try { @@ -269,7 +278,10 @@ public class AnyOfJsonConverter : global::System.Text.Js catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null) + { try { @@ -283,7 +295,10 @@ public class AnyOfJsonConverter : global::System.Text.Js catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null) + { try { diff --git a/src/libs/DId/Generated/DId.JsonConverters.AssetDto.g.cs b/src/libs/DId/Generated/DId.JsonConverters.AssetDto.g.cs index 76d6ccec..3c116883 100644 --- a/src/libs/DId/Generated/DId.JsonConverters.AssetDto.g.cs +++ b/src/libs/DId/Generated/DId.JsonConverters.AssetDto.g.cs @@ -87,6 +87,7 @@ public class AssetDtoJsonConverter : global::System.Text.Json.Serialization.Json { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.AssetDtoVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.AssetDtoVariant1).Name}"); assetDtoVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -97,9 +98,13 @@ public class AssetDtoJsonConverter : global::System.Text.Json.Serialization.Json catch (global::System.InvalidOperationException) { } + } + if (assetDtoVariant1 == null && assetDtoVariant2 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.AssetDtoVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.AssetDtoVariant2).Name}"); assetDtoVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/DId/Generated/DId.JsonConverters.CreateDocumentDto.g.cs b/src/libs/DId/Generated/DId.JsonConverters.CreateDocumentDto.g.cs index 7712a3cc..be75457a 100644 --- a/src/libs/DId/Generated/DId.JsonConverters.CreateDocumentDto.g.cs +++ b/src/libs/DId/Generated/DId.JsonConverters.CreateDocumentDto.g.cs @@ -78,6 +78,7 @@ public class CreateDocumentDtoJsonConverter : global::System.Text.Json.Serializa { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.CreateDocumentDtoVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.CreateDocumentDtoVariant1).Name}"); createDocumentDtoVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -88,9 +89,13 @@ public class CreateDocumentDtoJsonConverter : global::System.Text.Json.Serializa catch (global::System.InvalidOperationException) { } + } + if (createDocumentDtoVariant1 == null && createDocumentDtoVariant2 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.CreateDocumentDtoVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.CreateDocumentDtoVariant2).Name}"); createDocumentDtoVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/DId/Generated/DId.JsonConverters.CreateExpressiveResponseDto.g.cs b/src/libs/DId/Generated/DId.JsonConverters.CreateExpressiveResponseDto.g.cs index 3376dd29..5c93d1f1 100644 --- a/src/libs/DId/Generated/DId.JsonConverters.CreateExpressiveResponseDto.g.cs +++ b/src/libs/DId/Generated/DId.JsonConverters.CreateExpressiveResponseDto.g.cs @@ -78,6 +78,7 @@ public class CreateExpressiveResponseDtoJsonConverter : global::System.Text.Json { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.CreateExpressiveResponseDtoVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.CreateExpressiveResponseDtoVariant1).Name}"); createExpressiveResponseDtoVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -88,9 +89,13 @@ public class CreateExpressiveResponseDtoJsonConverter : global::System.Text.Json catch (global::System.InvalidOperationException) { } + } + if (createExpressiveResponseDtoVariant1 == null && createExpressiveResponseDtoVariant2 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.CreateExpressiveResponseDtoVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.CreateExpressiveResponseDtoVariant2).Name}"); createExpressiveResponseDtoVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/DId/Generated/DId.JsonConverters.CreateIceCandidateStreamRequest.g.cs b/src/libs/DId/Generated/DId.JsonConverters.CreateIceCandidateStreamRequest.g.cs index bfce09c4..101418b9 100644 --- a/src/libs/DId/Generated/DId.JsonConverters.CreateIceCandidateStreamRequest.g.cs +++ b/src/libs/DId/Generated/DId.JsonConverters.CreateIceCandidateStreamRequest.g.cs @@ -75,6 +75,7 @@ public class CreateIceCandidateStreamRequestJsonConverter : global::System.Text. { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.AnyOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.AnyOf).Name}"); createIceCandidateStreamRequestVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -85,9 +86,13 @@ public class CreateIceCandidateStreamRequestJsonConverter : global::System.Text. catch (global::System.InvalidOperationException) { } + } + if (createIceCandidateStreamRequestVariant1 == null && createIceCandidateStreamRequestVariant2 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.CreateIceCandidateStreamRequestVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.CreateIceCandidateStreamRequestVariant2).Name}"); createIceCandidateStreamRequestVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/DId/Generated/DId.JsonConverters.CreateSecretExternalLLMRequestDto.g.cs b/src/libs/DId/Generated/DId.JsonConverters.CreateSecretExternalLLMRequestDto.g.cs index cb8788bb..3da0578f 100644 --- a/src/libs/DId/Generated/DId.JsonConverters.CreateSecretExternalLLMRequestDto.g.cs +++ b/src/libs/DId/Generated/DId.JsonConverters.CreateSecretExternalLLMRequestDto.g.cs @@ -87,6 +87,7 @@ public class CreateSecretExternalLLMRequestDtoJsonConverter : global::System.Tex { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.CreateSecretExternalLLMRequestDtoOpenAIConfiguration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.CreateSecretExternalLLMRequestDtoOpenAIConfiguration).Name}"); openAIConfiguration = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -97,9 +98,13 @@ public class CreateSecretExternalLLMRequestDtoJsonConverter : global::System.Tex catch (global::System.InvalidOperationException) { } + } + if (openAIConfiguration == null && createSecretExternalLLMRequestDtoVariant2 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.CreateSecretExternalLLMRequestDtoVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.CreateSecretExternalLLMRequestDtoVariant2).Name}"); createSecretExternalLLMRequestDtoVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/DId/Generated/DId.JsonConverters.CreateSecretRequestDto.g.cs b/src/libs/DId/Generated/DId.JsonConverters.CreateSecretRequestDto.g.cs index fe254991..4233b2bd 100644 --- a/src/libs/DId/Generated/DId.JsonConverters.CreateSecretRequestDto.g.cs +++ b/src/libs/DId/Generated/DId.JsonConverters.CreateSecretRequestDto.g.cs @@ -103,6 +103,7 @@ public class CreateSecretRequestDtoJsonConverter : global::System.Text.Json.Seri { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.CreateSecretRequestDtoBasicAuthentication), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.CreateSecretRequestDtoBasicAuthentication).Name}"); basicAuthentication = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -113,9 +114,13 @@ public class CreateSecretRequestDtoJsonConverter : global::System.Text.Json.Seri catch (global::System.InvalidOperationException) { } + } + if (basicAuthentication == null && bearerToken == null && apiKey == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.CreateSecretRequestDtoBearerToken), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.CreateSecretRequestDtoBearerToken).Name}"); bearerToken = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -126,9 +131,13 @@ public class CreateSecretRequestDtoJsonConverter : global::System.Text.Json.Seri catch (global::System.InvalidOperationException) { } + } + if (basicAuthentication == null && bearerToken == null && apiKey == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.CreateSecretRequestDtoApiKey), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.CreateSecretRequestDtoApiKey).Name}"); apiKey = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/DId/Generated/DId.JsonConverters.CreateStreamScript.g.cs b/src/libs/DId/Generated/DId.JsonConverters.CreateStreamScript.g.cs index 8bbd388d..a58da095 100644 --- a/src/libs/DId/Generated/DId.JsonConverters.CreateStreamScript.g.cs +++ b/src/libs/DId/Generated/DId.JsonConverters.CreateStreamScript.g.cs @@ -80,6 +80,7 @@ public class CreateStreamScriptJsonConverter : global::System.Text.Json.Serializ { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.CreateStreamScriptText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.CreateStreamScriptText).Name}"); text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -90,9 +91,13 @@ public class CreateStreamScriptJsonConverter : global::System.Text.Json.Serializ catch (global::System.InvalidOperationException) { } + } + if (text == null && audio == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.CreateStreamScriptAudio), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.CreateStreamScriptAudio).Name}"); audio = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/DId/Generated/DId.JsonConverters.CreateVideoStreamResponse.g.cs b/src/libs/DId/Generated/DId.JsonConverters.CreateVideoStreamResponse.g.cs index 9c0ce9a5..a9ef8ba9 100644 --- a/src/libs/DId/Generated/DId.JsonConverters.CreateVideoStreamResponse.g.cs +++ b/src/libs/DId/Generated/DId.JsonConverters.CreateVideoStreamResponse.g.cs @@ -77,6 +77,7 @@ public class CreateVideoStreamResponseJsonConverter : global::System.Text.Json.S { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.CreateVideoStreamResponseVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.CreateVideoStreamResponseVariant1).Name}"); createVideoStreamResponseVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -87,9 +88,13 @@ public class CreateVideoStreamResponseJsonConverter : global::System.Text.Json.S catch (global::System.InvalidOperationException) { } + } + if (createVideoStreamResponseVariant1 == null && createVideoStreamResponseVariant2 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.CreateVideoStreamResponseVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.CreateVideoStreamResponseVariant2).Name}"); createVideoStreamResponseVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/DId/Generated/DId.JsonConverters.Crop.g.cs b/src/libs/DId/Generated/DId.JsonConverters.Crop.g.cs index e094f041..5ea6103a 100644 --- a/src/libs/DId/Generated/DId.JsonConverters.Crop.g.cs +++ b/src/libs/DId/Generated/DId.JsonConverters.Crop.g.cs @@ -88,6 +88,7 @@ public class CropJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.CropVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.CropVariant1).Name}"); cropVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -98,9 +99,13 @@ public class CropJsonConverter : global::System.Text.Json.Serialization.JsonConv catch (global::System.InvalidOperationException) { } + } + if (cropVariant1 == null && cropVariant2 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.CropVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.CropVariant2).Name}"); cropVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/DId/Generated/DId.JsonConverters.CustomAuthConfig.g.cs b/src/libs/DId/Generated/DId.JsonConverters.CustomAuthConfig.g.cs index 3333d3b0..f553c105 100644 --- a/src/libs/DId/Generated/DId.JsonConverters.CustomAuthConfig.g.cs +++ b/src/libs/DId/Generated/DId.JsonConverters.CustomAuthConfig.g.cs @@ -91,6 +91,7 @@ public class CustomAuthConfigJsonConverter : global::System.Text.Json.Serializat { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.CustomAuthConfigBasic), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.CustomAuthConfigBasic).Name}"); basic = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -101,9 +102,13 @@ public class CustomAuthConfigJsonConverter : global::System.Text.Json.Serializat catch (global::System.InvalidOperationException) { } + } + if (basic == null && oAuth2 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.CustomAuthConfigOAuth2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.CustomAuthConfigOAuth2).Name}"); oAuth2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/DId/Generated/DId.JsonConverters.ExportDto.g.cs b/src/libs/DId/Generated/DId.JsonConverters.ExportDto.g.cs index 7f7cc85d..3c996a21 100644 --- a/src/libs/DId/Generated/DId.JsonConverters.ExportDto.g.cs +++ b/src/libs/DId/Generated/DId.JsonConverters.ExportDto.g.cs @@ -79,6 +79,7 @@ public class ExportDtoJsonConverter : global::System.Text.Json.Serialization.Jso { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.ExportDtoVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.ExportDtoVariant1).Name}"); exportDtoVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -89,9 +90,13 @@ public class ExportDtoJsonConverter : global::System.Text.Json.Serialization.Jso catch (global::System.InvalidOperationException) { } + } + if (exportDtoVariant1 == null && exportDtoVariant2 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.ExportDtoVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.ExportDtoVariant2).Name}"); exportDtoVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/DId/Generated/DId.JsonConverters.ExpressiveAvatarDto.g.cs b/src/libs/DId/Generated/DId.JsonConverters.ExpressiveAvatarDto.g.cs index 4ee8a8ca..9be54b68 100644 --- a/src/libs/DId/Generated/DId.JsonConverters.ExpressiveAvatarDto.g.cs +++ b/src/libs/DId/Generated/DId.JsonConverters.ExpressiveAvatarDto.g.cs @@ -80,6 +80,7 @@ public class ExpressiveAvatarDtoJsonConverter : global::System.Text.Json.Seriali { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.ExpressiveAvatarDtoVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.ExpressiveAvatarDtoVariant1).Name}"); expressiveAvatarDtoVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -90,9 +91,13 @@ public class ExpressiveAvatarDtoJsonConverter : global::System.Text.Json.Seriali catch (global::System.InvalidOperationException) { } + } + if (expressiveAvatarDtoVariant1 == null && expressiveAvatarDtoVariant2 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); expressiveAvatarDtoVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/DId/Generated/DId.JsonConverters.ExpressiveAvatarExpressionDto.g.cs b/src/libs/DId/Generated/DId.JsonConverters.ExpressiveAvatarExpressionDto.g.cs index e136b67c..6b2a96bf 100644 --- a/src/libs/DId/Generated/DId.JsonConverters.ExpressiveAvatarExpressionDto.g.cs +++ b/src/libs/DId/Generated/DId.JsonConverters.ExpressiveAvatarExpressionDto.g.cs @@ -79,6 +79,7 @@ public class ExpressiveAvatarExpressionDtoJsonConverter : global::System.Text.Js { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.ExpressiveAvatarExpressionDtoVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.ExpressiveAvatarExpressionDtoVariant1).Name}"); expressiveAvatarExpressionDtoVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -89,9 +90,13 @@ public class ExpressiveAvatarExpressionDtoJsonConverter : global::System.Text.Js catch (global::System.InvalidOperationException) { } + } + if (expressiveAvatarExpressionDtoVariant1 == null && expressiveAvatarExpressionDtoVariant2 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); expressiveAvatarExpressionDtoVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/DId/Generated/DId.JsonConverters.ExpressiveVideoBackground.g.cs b/src/libs/DId/Generated/DId.JsonConverters.ExpressiveVideoBackground.g.cs index 142808e0..6d8ce85d 100644 --- a/src/libs/DId/Generated/DId.JsonConverters.ExpressiveVideoBackground.g.cs +++ b/src/libs/DId/Generated/DId.JsonConverters.ExpressiveVideoBackground.g.cs @@ -78,6 +78,7 @@ public class ExpressiveVideoBackgroundJsonConverter : global::System.Text.Json.S { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.ExpressiveVideoBackgroundVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.ExpressiveVideoBackgroundVariant1).Name}"); expressiveVideoBackgroundVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -88,9 +89,13 @@ public class ExpressiveVideoBackgroundJsonConverter : global::System.Text.Json.S catch (global::System.InvalidOperationException) { } + } + if (expressiveVideoBackgroundVariant1 == null && expressiveVideoBackgroundVariant2 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.ExpressiveVideoBackgroundVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.ExpressiveVideoBackgroundVariant2).Name}"); expressiveVideoBackgroundVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/DId/Generated/DId.JsonConverters.GetExpressiveAvatarDto.g.cs b/src/libs/DId/Generated/DId.JsonConverters.GetExpressiveAvatarDto.g.cs index 3ceacda5..16b8502c 100644 --- a/src/libs/DId/Generated/DId.JsonConverters.GetExpressiveAvatarDto.g.cs +++ b/src/libs/DId/Generated/DId.JsonConverters.GetExpressiveAvatarDto.g.cs @@ -75,6 +75,7 @@ public class GetExpressiveAvatarDtoJsonConverter : global::System.Text.Json.Seri { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.AllOf).Name}"); getExpressiveAvatarDtoVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -85,9 +86,13 @@ public class GetExpressiveAvatarDtoJsonConverter : global::System.Text.Json.Seri catch (global::System.InvalidOperationException) { } + } + if (getExpressiveAvatarDtoVariant1 == null && getExpressiveAvatarDtoVariant2 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.GetExpressiveAvatarDtoVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.GetExpressiveAvatarDtoVariant2).Name}"); getExpressiveAvatarDtoVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/DId/Generated/DId.JsonConverters.JSONValue.g.cs b/src/libs/DId/Generated/DId.JsonConverters.JSONValue.g.cs index ae647220..1fdd5ca3 100644 --- a/src/libs/DId/Generated/DId.JsonConverters.JSONValue.g.cs +++ b/src/libs/DId/Generated/DId.JsonConverters.JSONValue.g.cs @@ -198,7 +198,10 @@ public class JSONValueJsonConverter : global::System.Text.Json.Serialization.Jso catch (global::System.InvalidOperationException) { } + } + if (jSONValueVariant1 == null && jSONValueVariant2 == null && jSONValueVariant3 == null && jSONValueVariant4 == null && jSONValueVariant5 == null) + { try { @@ -212,7 +215,10 @@ public class JSONValueJsonConverter : global::System.Text.Json.Serialization.Jso catch (global::System.InvalidOperationException) { } + } + if (jSONValueVariant1 == null && jSONValueVariant2 == null && jSONValueVariant3 == null && jSONValueVariant4 == null && jSONValueVariant5 == null) + { try { @@ -226,7 +232,10 @@ public class JSONValueJsonConverter : global::System.Text.Json.Serialization.Jso catch (global::System.InvalidOperationException) { } + } + if (jSONValueVariant1 == null && jSONValueVariant2 == null && jSONValueVariant3 == null && jSONValueVariant4 == null && jSONValueVariant5 == null) + { try { @@ -240,7 +249,10 @@ public class JSONValueJsonConverter : global::System.Text.Json.Serialization.Jso catch (global::System.InvalidOperationException) { } + } + if (jSONValueVariant1 == null && jSONValueVariant2 == null && jSONValueVariant3 == null && jSONValueVariant4 == null && jSONValueVariant5 == null) + { try { diff --git a/src/libs/DId/Generated/DId.JsonConverters.LLMConfig.g.cs b/src/libs/DId/Generated/DId.JsonConverters.LLMConfig.g.cs index d02802bf..5bd9d4e5 100644 --- a/src/libs/DId/Generated/DId.JsonConverters.LLMConfig.g.cs +++ b/src/libs/DId/Generated/DId.JsonConverters.LLMConfig.g.cs @@ -193,6 +193,7 @@ public class LLMConfigJsonConverter : global::System.Text.Json.Serialization.Jso { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.LLMConfigOpenAI), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.LLMConfigOpenAI).Name}"); openAI = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -203,9 +204,13 @@ public class LLMConfigJsonConverter : global::System.Text.Json.Serialization.Jso catch (global::System.InvalidOperationException) { } + } + if (openAI == null && lLMConfigVariant2 == null && lLMConfigVariant3 == null && dId == null && google == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.LLMConfigVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.LLMConfigVariant2).Name}"); lLMConfigVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -216,9 +221,13 @@ public class LLMConfigJsonConverter : global::System.Text.Json.Serialization.Jso catch (global::System.InvalidOperationException) { } + } + if (openAI == null && lLMConfigVariant2 == null && lLMConfigVariant3 == null && dId == null && google == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.LLMConfigVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.LLMConfigVariant3).Name}"); lLMConfigVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -229,9 +238,13 @@ public class LLMConfigJsonConverter : global::System.Text.Json.Serialization.Jso catch (global::System.InvalidOperationException) { } + } + if (openAI == null && lLMConfigVariant2 == null && lLMConfigVariant3 == null && dId == null && google == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.LLMConfigDId), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.LLMConfigDId).Name}"); dId = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -242,9 +255,13 @@ public class LLMConfigJsonConverter : global::System.Text.Json.Serialization.Jso catch (global::System.InvalidOperationException) { } + } + if (openAI == null && lLMConfigVariant2 == null && lLMConfigVariant3 == null && dId == null && google == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.LLMConfigGoogle), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.LLMConfigGoogle).Name}"); google = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/DId/Generated/DId.JsonConverters.LLMConfigCreateDto.g.cs b/src/libs/DId/Generated/DId.JsonConverters.LLMConfigCreateDto.g.cs index 642244b5..729b3b55 100644 --- a/src/libs/DId/Generated/DId.JsonConverters.LLMConfigCreateDto.g.cs +++ b/src/libs/DId/Generated/DId.JsonConverters.LLMConfigCreateDto.g.cs @@ -223,6 +223,7 @@ public class LLMConfigCreateDtoJsonConverter : global::System.Text.Json.Serializ { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.LLMConfigCreateDtoVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.LLMConfigCreateDtoVariant1).Name}"); lLMConfigCreateDtoVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -233,9 +234,13 @@ public class LLMConfigCreateDtoJsonConverter : global::System.Text.Json.Serializ catch (global::System.InvalidOperationException) { } + } + if (lLMConfigCreateDtoVariant1 == null && lLMConfigCreateDtoVariant2 == null && lLMConfigCreateDtoVariant3 == null && lLMConfigCreateDtoVariant4 == null && lLMConfigCreateDtoVariant5 == null && lLMConfigCreateDtoVariant6 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.LLMConfigCreateDtoVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.LLMConfigCreateDtoVariant2).Name}"); lLMConfigCreateDtoVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -246,9 +251,13 @@ public class LLMConfigCreateDtoJsonConverter : global::System.Text.Json.Serializ catch (global::System.InvalidOperationException) { } + } + if (lLMConfigCreateDtoVariant1 == null && lLMConfigCreateDtoVariant2 == null && lLMConfigCreateDtoVariant3 == null && lLMConfigCreateDtoVariant4 == null && lLMConfigCreateDtoVariant5 == null && lLMConfigCreateDtoVariant6 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.LLMConfigCreateDtoVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.LLMConfigCreateDtoVariant3).Name}"); lLMConfigCreateDtoVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -259,9 +268,13 @@ public class LLMConfigCreateDtoJsonConverter : global::System.Text.Json.Serializ catch (global::System.InvalidOperationException) { } + } + if (lLMConfigCreateDtoVariant1 == null && lLMConfigCreateDtoVariant2 == null && lLMConfigCreateDtoVariant3 == null && lLMConfigCreateDtoVariant4 == null && lLMConfigCreateDtoVariant5 == null && lLMConfigCreateDtoVariant6 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.LLMConfigCreateDtoVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.LLMConfigCreateDtoVariant4).Name}"); lLMConfigCreateDtoVariant4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -272,9 +285,13 @@ public class LLMConfigCreateDtoJsonConverter : global::System.Text.Json.Serializ catch (global::System.InvalidOperationException) { } + } + if (lLMConfigCreateDtoVariant1 == null && lLMConfigCreateDtoVariant2 == null && lLMConfigCreateDtoVariant3 == null && lLMConfigCreateDtoVariant4 == null && lLMConfigCreateDtoVariant5 == null && lLMConfigCreateDtoVariant6 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.LLMConfigCreateDtoVariant5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.LLMConfigCreateDtoVariant5).Name}"); lLMConfigCreateDtoVariant5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -285,9 +302,13 @@ public class LLMConfigCreateDtoJsonConverter : global::System.Text.Json.Serializ catch (global::System.InvalidOperationException) { } + } + if (lLMConfigCreateDtoVariant1 == null && lLMConfigCreateDtoVariant2 == null && lLMConfigCreateDtoVariant3 == null && lLMConfigCreateDtoVariant4 == null && lLMConfigCreateDtoVariant5 == null && lLMConfigCreateDtoVariant6 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.LLMConfigCreateDtoVariant6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.LLMConfigCreateDtoVariant6).Name}"); lLMConfigCreateDtoVariant6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/DId/Generated/DId.JsonConverters.LogoDto.g.cs b/src/libs/DId/Generated/DId.JsonConverters.LogoDto.g.cs index 0042b058..c273326f 100644 --- a/src/libs/DId/Generated/DId.JsonConverters.LogoDto.g.cs +++ b/src/libs/DId/Generated/DId.JsonConverters.LogoDto.g.cs @@ -76,6 +76,7 @@ public class LogoDtoJsonConverter : global::System.Text.Json.Serialization.JsonC { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.LogoDtoVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.LogoDtoVariant1).Name}"); logoDtoVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -86,9 +87,13 @@ public class LogoDtoJsonConverter : global::System.Text.Json.Serialization.JsonC catch (global::System.InvalidOperationException) { } + } + if (logoDtoVariant1 == null && logoDtoVariant2 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(bool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(bool).Name}"); logoDtoVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/DId/Generated/DId.JsonConverters.PartialAgentPresenter.g.cs b/src/libs/DId/Generated/DId.JsonConverters.PartialAgentPresenter.g.cs index 10ebc68d..c7d3df39 100644 --- a/src/libs/DId/Generated/DId.JsonConverters.PartialAgentPresenter.g.cs +++ b/src/libs/DId/Generated/DId.JsonConverters.PartialAgentPresenter.g.cs @@ -92,6 +92,7 @@ public class PartialAgentPresenterJsonConverter : global::System.Text.Json.Seria { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.PartialAgentPresenterPhotoAvatar), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.PartialAgentPresenterPhotoAvatar).Name}"); photoAvatar = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -102,9 +103,13 @@ public class PartialAgentPresenterJsonConverter : global::System.Text.Json.Seria catch (global::System.InvalidOperationException) { } + } + if (photoAvatar == null && videoAvatar == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.PartialAgentPresenterVideoAvatar), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.PartialAgentPresenterVideoAvatar).Name}"); videoAvatar = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/DId/Generated/DId.JsonConverters.Script.g.cs b/src/libs/DId/Generated/DId.JsonConverters.Script.g.cs index 33ac4b1d..c0d5dd6c 100644 --- a/src/libs/DId/Generated/DId.JsonConverters.Script.g.cs +++ b/src/libs/DId/Generated/DId.JsonConverters.Script.g.cs @@ -82,6 +82,7 @@ public class ScriptJsonConverter : global::System.Text.Json.Serialization.JsonCo { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.ScriptVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.ScriptVariant1).Name}"); scriptVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -92,9 +93,13 @@ public class ScriptJsonConverter : global::System.Text.Json.Serialization.JsonCo catch (global::System.InvalidOperationException) { } + } + if (scriptVariant1 == null && scriptVariant2 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.ScriptVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.ScriptVariant2).Name}"); scriptVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/DId/Generated/DId.JsonConverters.StreamScript.g.cs b/src/libs/DId/Generated/DId.JsonConverters.StreamScript.g.cs index 0c037c2e..2062647e 100644 --- a/src/libs/DId/Generated/DId.JsonConverters.StreamScript.g.cs +++ b/src/libs/DId/Generated/DId.JsonConverters.StreamScript.g.cs @@ -80,6 +80,7 @@ public class StreamScriptJsonConverter : global::System.Text.Json.Serialization. { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.StreamScriptVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.StreamScriptVariant1).Name}"); streamScriptVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -90,9 +91,13 @@ public class StreamScriptJsonConverter : global::System.Text.Json.Serialization. catch (global::System.InvalidOperationException) { } + } + if (streamScriptVariant1 == null && streamScriptVariant2 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.StreamScriptVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.StreamScriptVariant2).Name}"); streamScriptVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/DId/Generated/DId.JsonConverters.TextToSpeechProviders.g.cs b/src/libs/DId/Generated/DId.JsonConverters.TextToSpeechProviders.g.cs index d3a40c21..61115aab 100644 --- a/src/libs/DId/Generated/DId.JsonConverters.TextToSpeechProviders.g.cs +++ b/src/libs/DId/Generated/DId.JsonConverters.TextToSpeechProviders.g.cs @@ -165,6 +165,7 @@ public class TextToSpeechProvidersJsonConverter : global::System.Text.Json.Seria { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.TextToSpeechProvidersMicrosoft), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.TextToSpeechProvidersMicrosoft).Name}"); microsoft = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -175,9 +176,13 @@ public class TextToSpeechProvidersJsonConverter : global::System.Text.Json.Seria catch (global::System.InvalidOperationException) { } + } + if (microsoft == null && elevenLabs == null && amazon == null && google == null && openAI == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.TextToSpeechProvidersElevenLabs), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.TextToSpeechProvidersElevenLabs).Name}"); elevenLabs = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -188,9 +193,13 @@ public class TextToSpeechProvidersJsonConverter : global::System.Text.Json.Seria catch (global::System.InvalidOperationException) { } + } + if (microsoft == null && elevenLabs == null && amazon == null && google == null && openAI == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.TextToSpeechProvidersAmazon), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.TextToSpeechProvidersAmazon).Name}"); amazon = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -201,9 +210,13 @@ public class TextToSpeechProvidersJsonConverter : global::System.Text.Json.Seria catch (global::System.InvalidOperationException) { } + } + if (microsoft == null && elevenLabs == null && amazon == null && google == null && openAI == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.TextToSpeechProvidersGoogle), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.TextToSpeechProvidersGoogle).Name}"); google = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -214,9 +227,13 @@ public class TextToSpeechProvidersJsonConverter : global::System.Text.Json.Seria catch (global::System.InvalidOperationException) { } + } + if (microsoft == null && elevenLabs == null && amazon == null && google == null && openAI == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.TextToSpeechProvidersOpenAI), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.TextToSpeechProvidersOpenAI).Name}"); openAI = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/DId/Generated/DId.JsonConverters.ToolResultOutput.g.cs b/src/libs/DId/Generated/DId.JsonConverters.ToolResultOutput.g.cs index 9983f7b8..f3ebc011 100644 --- a/src/libs/DId/Generated/DId.JsonConverters.ToolResultOutput.g.cs +++ b/src/libs/DId/Generated/DId.JsonConverters.ToolResultOutput.g.cs @@ -78,6 +78,7 @@ public class ToolResultOutputJsonConverter : global::System.Text.Json.Serializat { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.ToolResultOutputVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.ToolResultOutputVariant1).Name}"); toolResultOutputVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -88,9 +89,13 @@ public class ToolResultOutputJsonConverter : global::System.Text.Json.Serializat catch (global::System.InvalidOperationException) { } + } + if (toolResultOutputVariant1 == null && toolResultOutputVariant2 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.ToolResultOutputVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.ToolResultOutputVariant2).Name}"); toolResultOutputVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/DId/Generated/DId.JsonConverters.TriggerEventData.g.cs b/src/libs/DId/Generated/DId.JsonConverters.TriggerEventData.g.cs index 0fed0ac4..089c17ff 100644 --- a/src/libs/DId/Generated/DId.JsonConverters.TriggerEventData.g.cs +++ b/src/libs/DId/Generated/DId.JsonConverters.TriggerEventData.g.cs @@ -81,6 +81,7 @@ public class TriggerEventDataJsonConverter : global::System.Text.Json.Serializat { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.ChatEndEventData), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.ChatEndEventData).Name}"); chatEnd = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -91,9 +92,13 @@ public class TriggerEventDataJsonConverter : global::System.Text.Json.Serializat catch (global::System.InvalidOperationException) { } + } + if (chatEnd == null && triggerEventDataVariant2 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.TriggerEventDataVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.TriggerEventDataVariant2).Name}"); triggerEventDataVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/DId/Generated/DId.JsonConverters.UpdateAuthSecretRequestDto.g.cs b/src/libs/DId/Generated/DId.JsonConverters.UpdateAuthSecretRequestDto.g.cs index 644ce35e..07523980 100644 --- a/src/libs/DId/Generated/DId.JsonConverters.UpdateAuthSecretRequestDto.g.cs +++ b/src/libs/DId/Generated/DId.JsonConverters.UpdateAuthSecretRequestDto.g.cs @@ -105,6 +105,7 @@ public class UpdateAuthSecretRequestDtoJsonConverter : global::System.Text.Json. { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.UpdateAuthSecretRequestDtoBasicAuthentication), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.UpdateAuthSecretRequestDtoBasicAuthentication).Name}"); basicAuthentication = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -115,9 +116,13 @@ public class UpdateAuthSecretRequestDtoJsonConverter : global::System.Text.Json. catch (global::System.InvalidOperationException) { } + } + if (basicAuthentication == null && bearerToken == null && apiKey == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.UpdateAuthSecretRequestDtoBearerToken), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.UpdateAuthSecretRequestDtoBearerToken).Name}"); bearerToken = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -128,9 +133,13 @@ public class UpdateAuthSecretRequestDtoJsonConverter : global::System.Text.Json. catch (global::System.InvalidOperationException) { } + } + if (basicAuthentication == null && bearerToken == null && apiKey == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.UpdateAuthSecretRequestDtoApiKey), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.UpdateAuthSecretRequestDtoApiKey).Name}"); apiKey = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/DId/Generated/DId.JsonConverters.UpdatePresenterAttributes.g.cs b/src/libs/DId/Generated/DId.JsonConverters.UpdatePresenterAttributes.g.cs index efafb0a7..12bf113b 100644 --- a/src/libs/DId/Generated/DId.JsonConverters.UpdatePresenterAttributes.g.cs +++ b/src/libs/DId/Generated/DId.JsonConverters.UpdatePresenterAttributes.g.cs @@ -122,6 +122,7 @@ public class UpdatePresenterAttributesJsonConverter : global::System.Text.Json.S { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.UpdatePresenterAttributesVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.UpdatePresenterAttributesVariant1).Name}"); updatePresenterAttributesVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -132,9 +133,13 @@ public class UpdatePresenterAttributesJsonConverter : global::System.Text.Json.S catch (global::System.InvalidOperationException) { } + } + if (updatePresenterAttributesVariant1 == null && updatePresenterAttributesVariant2 == null && updatePresenterAttributesVariant3 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.UpdatePresenterAttributesVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.UpdatePresenterAttributesVariant2).Name}"); updatePresenterAttributesVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -145,9 +150,13 @@ public class UpdatePresenterAttributesJsonConverter : global::System.Text.Json.S catch (global::System.InvalidOperationException) { } + } + if (updatePresenterAttributesVariant1 == null && updatePresenterAttributesVariant2 == null && updatePresenterAttributesVariant3 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.UpdatePresenterAttributesVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.UpdatePresenterAttributesVariant3).Name}"); updatePresenterAttributesVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/DId/Generated/DId.JsonConverters.UpdateSecretExternalLLMRequestDto.g.cs b/src/libs/DId/Generated/DId.JsonConverters.UpdateSecretExternalLLMRequestDto.g.cs index e7552e59..0cac3df7 100644 --- a/src/libs/DId/Generated/DId.JsonConverters.UpdateSecretExternalLLMRequestDto.g.cs +++ b/src/libs/DId/Generated/DId.JsonConverters.UpdateSecretExternalLLMRequestDto.g.cs @@ -87,6 +87,7 @@ public class UpdateSecretExternalLLMRequestDtoJsonConverter : global::System.Tex { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.UpdateSecretExternalLLMRequestDtoOpenAIConfiguration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.UpdateSecretExternalLLMRequestDtoOpenAIConfiguration).Name}"); openAIConfiguration = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -97,9 +98,13 @@ public class UpdateSecretExternalLLMRequestDtoJsonConverter : global::System.Tex catch (global::System.InvalidOperationException) { } + } + if (openAIConfiguration == null && updateSecretExternalLLMRequestDtoVariant2 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::DId.UpdateSecretExternalLLMRequestDtoVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::DId.UpdateSecretExternalLLMRequestDtoVariant2).Name}"); updateSecretExternalLLMRequestDtoVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);