From 15611169447ccb4d4c2d9c2d439b942e542c8fe4 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 10 May 2026 02:02:00 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../Letta.JsonConverters.AnyOf2.g.cs | 3 + .../Letta.JsonConverters.AnyOf3.g.cs | 6 + .../Letta.JsonConverters.AnyOf4.g.cs | 9 + .../Letta.JsonConverters.AnyOf5.g.cs | 12 + .../Letta.JsonConverters.AnyOf6.g.cs | 15 + ...kenRequestPolicyItemDiscriminatorType.g.cs | 53 + ...stPolicyItemDiscriminatorTypeNullable.g.cs | 60 + ...sponsePolicyDataItemDiscriminatorType.g.cs | 53 + ...licyDataItemDiscriminatorTypeNullable.g.cs | 60 + ...eTokenPolicyDataItemDiscriminatorType.g.cs | 53 + ...licyDataItemDiscriminatorTypeNullable.g.cs | 60 + .../Letta.JsonConverters.Config5.g.cs | 103 +- .../Letta.JsonConverters.Config6.g.cs | 103 +- .../Letta.JsonConverters.Config7.g.cs | 103 +- .../Letta.JsonConverters.Config8.g.cs | 103 +- .../Letta.JsonConverters.Config9.g.cs | 103 +- .../Letta.JsonConverters.DataItem.g.cs | 59 +- .../Letta.JsonConverters.DataItem2.g.cs | 59 +- .../Letta.JsonConverters.EventsItem.g.cs | 270 +--- ...elemetryRequestEventDiscriminatorType.g.cs | 53 + ...RequestEventDiscriminatorTypeNullable.g.cs | 60 + .../Letta.JsonConverters.OneOf2.g.cs | 3 + .../Letta.JsonConverters.OneOf6.g.cs | 15 + .../Letta.JsonConverters.OneOf9.g.cs | 24 + ...equestProducerConfigDiscriminatorType.g.cs | 53 + ...oducerConfigDiscriminatorTypeNullable.g.cs | 60 + ...sponsePipelineConfigDiscriminatorType.g.cs | 53 + ...pelineConfigDiscriminatorTypeNullable.g.cs | 60 + ...sponsePipelineConfigDiscriminatorType.g.cs | 53 + ...pelineConfigDiscriminatorTypeNullable.g.cs | 60 + ...sponsePipelineConfigDiscriminatorType.g.cs | 53 + ...pelineConfigDiscriminatorTypeNullable.g.cs | 60 + ...equestProducerConfigDiscriminatorType.g.cs | 53 + ...oducerConfigDiscriminatorTypeNullable.g.cs | 60 + ...equestProducerConfigDiscriminatorType.g.cs | 53 + ...oducerConfigDiscriminatorTypeNullable.g.cs | 60 + ...sponsePipelineConfigDiscriminatorType.g.cs | 53 + ...pelineConfigDiscriminatorTypeNullable.g.cs | 60 + ...sponsePipelineConfigDiscriminatorType.g.cs | 53 + ...pelineConfigDiscriminatorTypeNullable.g.cs | 60 + .../Letta.JsonConverters.PolicyItem.g.cs | 59 +- .../Letta.JsonConverters.ProducerConfig.g.cs | 103 +- .../Letta.JsonConverters.ProducerConfig2.g.cs | 103 +- .../Letta.JsonConverters.ProducerConfig3.g.cs | 103 +- ...mplatesCreateTemplateNoProjectRequest.g.cs | 97 +- ...lateNoProjectRequestDiscriminatorType.g.cs | 53 + ...ojectRequestDiscriminatorTypeNullable.g.cs | 60 + ...erters.TemplatesCreateTemplateRequest.g.cs | 97 +- ...reateTemplateRequestDiscriminatorType.g.cs | 53 + ...plateRequestDiscriminatorTypeNullable.g.cs | 60 + .../Letta.JsonSerializerContext.g.cs | 308 +++- .../Letta.JsonSerializerContextTypes.g.cs | 1242 +++++++++-------- ...ssTokenRequestPolicyItemDiscriminator.g.cs | 5 +- ...kenRequestPolicyItemDiscriminatorType.g.cs | 45 + ...enResponsePolicyDataItemDiscriminator.g.cs | 5 +- ...sponsePolicyDataItemDiscriminatorType.g.cs | 45 + ...ponseTokenPolicyDataItemDiscriminator.g.cs | 5 +- ...eTokenPolicyDataItemDiscriminatorType.g.cs | 45 + .../Letta/Generated/Letta.Models.Config5.g.cs | 8 + .../Letta/Generated/Letta.Models.Config6.g.cs | 8 + .../Letta/Generated/Letta.Models.Config7.g.cs | 8 + .../Letta/Generated/Letta.Models.Config8.g.cs | 8 + .../Letta/Generated/Letta.Models.Config9.g.cs | 8 + .../Generated/Letta.Models.DataItem.g.cs | 18 + .../Generated/Letta.Models.DataItem2.g.cs | 18 + .../Generated/Letta.Models.EventsItem.g.cs | 8 + ...endTelemetryRequestEventDiscriminator.g.cs | 5 +- ...elemetryRequestEventDiscriminatorType.g.cs | 69 + ...ineRequestProducerConfigDiscriminator.g.cs | 5 +- ...equestProducerConfigDiscriminatorType.g.cs | 51 + ...neResponsePipelineConfigDiscriminator.g.cs | 5 +- ...sponsePipelineConfigDiscriminatorType.g.cs | 51 + ...neResponsePipelineConfigDiscriminator.g.cs | 5 +- ...sponsePipelineConfigDiscriminatorType.g.cs | 51 + ...esResponsePipelineConfigDiscriminator.g.cs | 5 +- ...sponsePipelineConfigDiscriminatorType.g.cs | 51 + ...ineRequestProducerConfigDiscriminator.g.cs | 5 +- ...equestProducerConfigDiscriminatorType.g.cs | 51 + ...figRequestProducerConfigDiscriminator.g.cs | 5 +- ...equestProducerConfigDiscriminatorType.g.cs | 51 + ...igResponsePipelineConfigDiscriminator.g.cs | 5 +- ...sponsePipelineConfigDiscriminatorType.g.cs | 51 + ...neResponsePipelineConfigDiscriminator.g.cs | 5 +- ...sponsePipelineConfigDiscriminatorType.g.cs | 51 + .../Generated/Letta.Models.PolicyItem.g.cs | 18 + .../Letta.Models.ProducerConfig.g.cs | 8 + .../Letta.Models.ProducerConfig2.g.cs | 8 + .../Letta.Models.ProducerConfig3.g.cs | 8 + ...mplatesCreateTemplateNoProjectRequest.g.cs | 8 + ...TemplateNoProjectRequestDiscriminator.g.cs | 5 +- ...lateNoProjectRequestDiscriminatorType.g.cs | 51 + ...Models.TemplatesCreateTemplateRequest.g.cs | 8 + ...tesCreateTemplateRequestDiscriminator.g.cs | 5 +- ...reateTemplateRequestDiscriminatorType.g.cs | 51 + 94 files changed, 3702 insertions(+), 1908 deletions(-) create mode 100644 src/libs/Letta/Generated/Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorType.g.cs create mode 100644 src/libs/Letta/Generated/Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorTypeNullable.g.cs create mode 100644 src/libs/Letta/Generated/Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorType.g.cs create mode 100644 src/libs/Letta/Generated/Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorTypeNullable.g.cs create mode 100644 src/libs/Letta/Generated/Letta.JsonConverters.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorType.g.cs create mode 100644 src/libs/Letta/Generated/Letta.JsonConverters.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorTypeNullable.g.cs create mode 100644 src/libs/Letta/Generated/Letta.JsonConverters.MetadataSendTelemetryRequestEventDiscriminatorType.g.cs create mode 100644 src/libs/Letta/Generated/Letta.JsonConverters.MetadataSendTelemetryRequestEventDiscriminatorTypeNullable.g.cs create mode 100644 src/libs/Letta/Generated/Letta.JsonConverters.PipelinesCreatePipelineRequestProducerConfigDiscriminatorType.g.cs create mode 100644 src/libs/Letta/Generated/Letta.JsonConverters.PipelinesCreatePipelineRequestProducerConfigDiscriminatorTypeNullable.g.cs create mode 100644 src/libs/Letta/Generated/Letta.JsonConverters.PipelinesCreatePipelineResponsePipelineConfigDiscriminatorType.g.cs create mode 100644 src/libs/Letta/Generated/Letta.JsonConverters.PipelinesCreatePipelineResponsePipelineConfigDiscriminatorTypeNullable.g.cs create mode 100644 src/libs/Letta/Generated/Letta.JsonConverters.PipelinesGetPipelineResponsePipelineConfigDiscriminatorType.g.cs create mode 100644 src/libs/Letta/Generated/Letta.JsonConverters.PipelinesGetPipelineResponsePipelineConfigDiscriminatorTypeNullable.g.cs create mode 100644 src/libs/Letta/Generated/Letta.JsonConverters.PipelinesListPipelinesResponsePipelineConfigDiscriminatorType.g.cs create mode 100644 src/libs/Letta/Generated/Letta.JsonConverters.PipelinesListPipelinesResponsePipelineConfigDiscriminatorTypeNullable.g.cs create mode 100644 src/libs/Letta/Generated/Letta.JsonConverters.PipelinesPreviewPipelineRequestProducerConfigDiscriminatorType.g.cs create mode 100644 src/libs/Letta/Generated/Letta.JsonConverters.PipelinesPreviewPipelineRequestProducerConfigDiscriminatorTypeNullable.g.cs create mode 100644 src/libs/Letta/Generated/Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorType.g.cs create mode 100644 src/libs/Letta/Generated/Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorTypeNullable.g.cs create mode 100644 src/libs/Letta/Generated/Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorType.g.cs create mode 100644 src/libs/Letta/Generated/Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorTypeNullable.g.cs create mode 100644 src/libs/Letta/Generated/Letta.JsonConverters.PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorType.g.cs create mode 100644 src/libs/Letta/Generated/Letta.JsonConverters.PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorTypeNullable.g.cs create mode 100644 src/libs/Letta/Generated/Letta.JsonConverters.TemplatesCreateTemplateNoProjectRequestDiscriminatorType.g.cs create mode 100644 src/libs/Letta/Generated/Letta.JsonConverters.TemplatesCreateTemplateNoProjectRequestDiscriminatorTypeNullable.g.cs create mode 100644 src/libs/Letta/Generated/Letta.JsonConverters.TemplatesCreateTemplateRequestDiscriminatorType.g.cs create mode 100644 src/libs/Letta/Generated/Letta.JsonConverters.TemplatesCreateTemplateRequestDiscriminatorTypeNullable.g.cs create mode 100644 src/libs/Letta/Generated/Letta.Models.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorType.g.cs create mode 100644 src/libs/Letta/Generated/Letta.Models.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorType.g.cs create mode 100644 src/libs/Letta/Generated/Letta.Models.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorType.g.cs create mode 100644 src/libs/Letta/Generated/Letta.Models.MetadataSendTelemetryRequestEventDiscriminatorType.g.cs create mode 100644 src/libs/Letta/Generated/Letta.Models.PipelinesCreatePipelineRequestProducerConfigDiscriminatorType.g.cs create mode 100644 src/libs/Letta/Generated/Letta.Models.PipelinesCreatePipelineResponsePipelineConfigDiscriminatorType.g.cs create mode 100644 src/libs/Letta/Generated/Letta.Models.PipelinesGetPipelineResponsePipelineConfigDiscriminatorType.g.cs create mode 100644 src/libs/Letta/Generated/Letta.Models.PipelinesListPipelinesResponsePipelineConfigDiscriminatorType.g.cs create mode 100644 src/libs/Letta/Generated/Letta.Models.PipelinesPreviewPipelineRequestProducerConfigDiscriminatorType.g.cs create mode 100644 src/libs/Letta/Generated/Letta.Models.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorType.g.cs create mode 100644 src/libs/Letta/Generated/Letta.Models.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorType.g.cs create mode 100644 src/libs/Letta/Generated/Letta.Models.PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorType.g.cs create mode 100644 src/libs/Letta/Generated/Letta.Models.TemplatesCreateTemplateNoProjectRequestDiscriminatorType.g.cs create mode 100644 src/libs/Letta/Generated/Letta.Models.TemplatesCreateTemplateRequestDiscriminatorType.g.cs diff --git a/src/libs/Letta/Generated/Letta.JsonConverters.AnyOf2.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.AnyOf2.g.cs index f241fa2a..b48955c0 100644 --- a/src/libs/Letta/Generated/Letta.JsonConverters.AnyOf2.g.cs +++ b/src/libs/Letta/Generated/Letta.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/Letta/Generated/Letta.JsonConverters.AnyOf3.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.AnyOf3.g.cs index 6a0e3bb0..9073f8a2 100644 --- a/src/libs/Letta/Generated/Letta.JsonConverters.AnyOf3.g.cs +++ b/src/libs/Letta/Generated/Letta.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/Letta/Generated/Letta.JsonConverters.AnyOf4.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.AnyOf4.g.cs index 591cf1f9..2c2e8634 100644 --- a/src/libs/Letta/Generated/Letta.JsonConverters.AnyOf4.g.cs +++ b/src/libs/Letta/Generated/Letta.JsonConverters.AnyOf4.g.cs @@ -167,7 +167,10 @@ public class AnyOfJsonConverter : global::System.Text.Json.Seria catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null && value4 == null) + { try { @@ -181,7 +184,10 @@ public class AnyOfJsonConverter : global::System.Text.Json.Seria catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null && value4 == null) + { try { @@ -195,7 +201,10 @@ public class AnyOfJsonConverter : global::System.Text.Json.Seria catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null && value4 == null) + { try { diff --git a/src/libs/Letta/Generated/Letta.JsonConverters.AnyOf5.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.AnyOf5.g.cs index f04b20f1..b4e018da 100644 --- a/src/libs/Letta/Generated/Letta.JsonConverters.AnyOf5.g.cs +++ b/src/libs/Letta/Generated/Letta.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/Letta/Generated/Letta.JsonConverters.AnyOf6.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.AnyOf6.g.cs index 06631f88..df09457c 100644 --- a/src/libs/Letta/Generated/Letta.JsonConverters.AnyOf6.g.cs +++ b/src/libs/Letta/Generated/Letta.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/Letta/Generated/Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorType.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorType.g.cs new file mode 100644 index 00000000..f2abbf40 --- /dev/null +++ b/src/libs/Letta/Generated/Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Letta.JsonConverters +{ + /// + public sealed class ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Letta/Generated/Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorTypeNullable.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..1d559c13 --- /dev/null +++ b/src/libs/Letta/Generated/Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Letta.JsonConverters +{ + /// + public sealed class ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Letta/Generated/Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorType.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorType.g.cs new file mode 100644 index 00000000..9e861bfd --- /dev/null +++ b/src/libs/Letta/Generated/Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Letta.JsonConverters +{ + /// + public sealed class ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Letta/Generated/Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorTypeNullable.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..450aef4c --- /dev/null +++ b/src/libs/Letta/Generated/Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Letta.JsonConverters +{ + /// + public sealed class ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Letta/Generated/Letta.JsonConverters.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorType.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorType.g.cs new file mode 100644 index 00000000..79568b9b --- /dev/null +++ b/src/libs/Letta/Generated/Letta.JsonConverters.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Letta.JsonConverters +{ + /// + public sealed class ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Letta/Generated/Letta.JsonConverters.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorTypeNullable.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..d5c683e7 --- /dev/null +++ b/src/libs/Letta/Generated/Letta.JsonConverters.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Letta.JsonConverters +{ + /// + public sealed class ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Letta/Generated/Letta.JsonConverters.Config5.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.Config5.g.cs index 87e075a9..ec4b89f5 100644 --- a/src/libs/Letta/Generated/Letta.JsonConverters.Config5.g.cs +++ b/src/libs/Letta/Generated/Letta.JsonConverters.Config5.g.cs @@ -15,104 +15,29 @@ public class Config5JsonConverter : global::System.Text.Json.Serialization.JsonC options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name); - } - } - - } - } - var __score0 = 0; - if (__jsonProps.Contains("data")) __score0++; - if (__jsonProps.Contains("data.channels")) __score0++; - if (__jsonProps.Contains("data.max_messages_per_poll")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("data")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesCreatePipelineResponsePipelineConfigDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Letta.PipelinesCreatePipelineResponsePipelineConfigDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::Letta.PipelinesCreatePipelineResponsePipelineConfigVariant1? slackChannelReader = default; - global::Letta.PipelinesCreatePipelineResponsePipelineConfigVariant2? customWebhook = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::Letta.PipelinesCreatePipelineResponsePipelineConfigDiscriminatorType.SlackChannelReader) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesCreatePipelineResponsePipelineConfigVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.PipelinesCreatePipelineResponsePipelineConfigVariant1).Name}"); - slackChannelReader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesCreatePipelineResponsePipelineConfigVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.PipelinesCreatePipelineResponsePipelineConfigVariant2).Name}"); - customWebhook = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesCreatePipelineResponsePipelineConfigVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Letta.PipelinesCreatePipelineResponsePipelineConfigVariant1)}"); + slackChannelReader = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (slackChannelReader == null && customWebhook == null) + global::Letta.PipelinesCreatePipelineResponsePipelineConfigVariant2? customWebhook = default; + if (discriminator?.Type == global::Letta.PipelinesCreatePipelineResponsePipelineConfigDiscriminatorType.CustomWebhook) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesCreatePipelineResponsePipelineConfigVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.PipelinesCreatePipelineResponsePipelineConfigVariant1).Name}"); - slackChannelReader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesCreatePipelineResponsePipelineConfigVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.PipelinesCreatePipelineResponsePipelineConfigVariant2).Name}"); - customWebhook = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesCreatePipelineResponsePipelineConfigVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Letta.PipelinesCreatePipelineResponsePipelineConfigVariant2)}"); + customWebhook = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::Letta.Config5( + discriminator?.Type, slackChannelReader, customWebhook diff --git a/src/libs/Letta/Generated/Letta.JsonConverters.Config6.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.Config6.g.cs index a81d1cd9..78fc06a2 100644 --- a/src/libs/Letta/Generated/Letta.JsonConverters.Config6.g.cs +++ b/src/libs/Letta/Generated/Letta.JsonConverters.Config6.g.cs @@ -15,104 +15,29 @@ public class Config6JsonConverter : global::System.Text.Json.Serialization.JsonC options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name); - } - } - - } - } - var __score0 = 0; - if (__jsonProps.Contains("data")) __score0++; - if (__jsonProps.Contains("data.channels")) __score0++; - if (__jsonProps.Contains("data.max_messages_per_poll")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("data")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesListPipelinesResponsePipelineConfigDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Letta.PipelinesListPipelinesResponsePipelineConfigDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::Letta.PipelinesListPipelinesResponsePipelineConfigVariant1? slackChannelReader = default; - global::Letta.PipelinesListPipelinesResponsePipelineConfigVariant2? customWebhook = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::Letta.PipelinesListPipelinesResponsePipelineConfigDiscriminatorType.SlackChannelReader) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesListPipelinesResponsePipelineConfigVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.PipelinesListPipelinesResponsePipelineConfigVariant1).Name}"); - slackChannelReader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesListPipelinesResponsePipelineConfigVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.PipelinesListPipelinesResponsePipelineConfigVariant2).Name}"); - customWebhook = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesListPipelinesResponsePipelineConfigVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Letta.PipelinesListPipelinesResponsePipelineConfigVariant1)}"); + slackChannelReader = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (slackChannelReader == null && customWebhook == null) + global::Letta.PipelinesListPipelinesResponsePipelineConfigVariant2? customWebhook = default; + if (discriminator?.Type == global::Letta.PipelinesListPipelinesResponsePipelineConfigDiscriminatorType.CustomWebhook) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesListPipelinesResponsePipelineConfigVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.PipelinesListPipelinesResponsePipelineConfigVariant1).Name}"); - slackChannelReader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesListPipelinesResponsePipelineConfigVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.PipelinesListPipelinesResponsePipelineConfigVariant2).Name}"); - customWebhook = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesListPipelinesResponsePipelineConfigVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Letta.PipelinesListPipelinesResponsePipelineConfigVariant2)}"); + customWebhook = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::Letta.Config6( + discriminator?.Type, slackChannelReader, customWebhook diff --git a/src/libs/Letta/Generated/Letta.JsonConverters.Config7.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.Config7.g.cs index 4eb34675..62efc791 100644 --- a/src/libs/Letta/Generated/Letta.JsonConverters.Config7.g.cs +++ b/src/libs/Letta/Generated/Letta.JsonConverters.Config7.g.cs @@ -15,104 +15,29 @@ public class Config7JsonConverter : global::System.Text.Json.Serialization.JsonC options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name); - } - } - - } - } - var __score0 = 0; - if (__jsonProps.Contains("data")) __score0++; - if (__jsonProps.Contains("data.channels")) __score0++; - if (__jsonProps.Contains("data.max_messages_per_poll")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("data")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesGetPipelineResponsePipelineConfigDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Letta.PipelinesGetPipelineResponsePipelineConfigDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::Letta.PipelinesGetPipelineResponsePipelineConfigVariant1? slackChannelReader = default; - global::Letta.PipelinesGetPipelineResponsePipelineConfigVariant2? customWebhook = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::Letta.PipelinesGetPipelineResponsePipelineConfigDiscriminatorType.SlackChannelReader) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesGetPipelineResponsePipelineConfigVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.PipelinesGetPipelineResponsePipelineConfigVariant1).Name}"); - slackChannelReader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesGetPipelineResponsePipelineConfigVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.PipelinesGetPipelineResponsePipelineConfigVariant2).Name}"); - customWebhook = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesGetPipelineResponsePipelineConfigVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Letta.PipelinesGetPipelineResponsePipelineConfigVariant1)}"); + slackChannelReader = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (slackChannelReader == null && customWebhook == null) + global::Letta.PipelinesGetPipelineResponsePipelineConfigVariant2? customWebhook = default; + if (discriminator?.Type == global::Letta.PipelinesGetPipelineResponsePipelineConfigDiscriminatorType.CustomWebhook) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesGetPipelineResponsePipelineConfigVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.PipelinesGetPipelineResponsePipelineConfigVariant1).Name}"); - slackChannelReader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesGetPipelineResponsePipelineConfigVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.PipelinesGetPipelineResponsePipelineConfigVariant2).Name}"); - customWebhook = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesGetPipelineResponsePipelineConfigVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Letta.PipelinesGetPipelineResponsePipelineConfigVariant2)}"); + customWebhook = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::Letta.Config7( + discriminator?.Type, slackChannelReader, customWebhook diff --git a/src/libs/Letta/Generated/Letta.JsonConverters.Config8.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.Config8.g.cs index 4c1caf1c..c5ce39e4 100644 --- a/src/libs/Letta/Generated/Letta.JsonConverters.Config8.g.cs +++ b/src/libs/Letta/Generated/Letta.JsonConverters.Config8.g.cs @@ -15,104 +15,29 @@ public class Config8JsonConverter : global::System.Text.Json.Serialization.JsonC options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name); - } - } - - } - } - var __score0 = 0; - if (__jsonProps.Contains("data")) __score0++; - if (__jsonProps.Contains("data.channels")) __score0++; - if (__jsonProps.Contains("data.max_messages_per_poll")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("data")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesUpdatePipelineResponsePipelineConfigDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Letta.PipelinesUpdatePipelineResponsePipelineConfigDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::Letta.PipelinesUpdatePipelineResponsePipelineConfigVariant1? slackChannelReader = default; - global::Letta.PipelinesUpdatePipelineResponsePipelineConfigVariant2? customWebhook = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::Letta.PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorType.SlackChannelReader) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesUpdatePipelineResponsePipelineConfigVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.PipelinesUpdatePipelineResponsePipelineConfigVariant1).Name}"); - slackChannelReader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesUpdatePipelineResponsePipelineConfigVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.PipelinesUpdatePipelineResponsePipelineConfigVariant2).Name}"); - customWebhook = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesUpdatePipelineResponsePipelineConfigVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Letta.PipelinesUpdatePipelineResponsePipelineConfigVariant1)}"); + slackChannelReader = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (slackChannelReader == null && customWebhook == null) + global::Letta.PipelinesUpdatePipelineResponsePipelineConfigVariant2? customWebhook = default; + if (discriminator?.Type == global::Letta.PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorType.CustomWebhook) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesUpdatePipelineResponsePipelineConfigVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.PipelinesUpdatePipelineResponsePipelineConfigVariant1).Name}"); - slackChannelReader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesUpdatePipelineResponsePipelineConfigVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.PipelinesUpdatePipelineResponsePipelineConfigVariant2).Name}"); - customWebhook = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesUpdatePipelineResponsePipelineConfigVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Letta.PipelinesUpdatePipelineResponsePipelineConfigVariant2)}"); + customWebhook = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::Letta.Config8( + discriminator?.Type, slackChannelReader, customWebhook diff --git a/src/libs/Letta/Generated/Letta.JsonConverters.Config9.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.Config9.g.cs index b619430f..d8196001 100644 --- a/src/libs/Letta/Generated/Letta.JsonConverters.Config9.g.cs +++ b/src/libs/Letta/Generated/Letta.JsonConverters.Config9.g.cs @@ -15,104 +15,29 @@ public class Config9JsonConverter : global::System.Text.Json.Serialization.JsonC options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name); - } - } - - } - } - var __score0 = 0; - if (__jsonProps.Contains("data")) __score0++; - if (__jsonProps.Contains("data.channels")) __score0++; - if (__jsonProps.Contains("data.max_messages_per_poll")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("data")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigVariant1? slackChannelReader = default; - global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigVariant2? customWebhook = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorType.SlackChannelReader) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigVariant1).Name}"); - slackChannelReader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigVariant2).Name}"); - customWebhook = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigVariant1)}"); + slackChannelReader = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (slackChannelReader == null && customWebhook == null) + global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigVariant2? customWebhook = default; + if (discriminator?.Type == global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorType.CustomWebhook) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigVariant1).Name}"); - slackChannelReader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigVariant2).Name}"); - customWebhook = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigVariant2)}"); + customWebhook = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::Letta.Config9( + discriminator?.Type, slackChannelReader, customWebhook diff --git a/src/libs/Letta/Generated/Letta.JsonConverters.DataItem.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.DataItem.g.cs index 60afbac4..b6c562de 100644 --- a/src/libs/Letta/Generated/Letta.JsonConverters.DataItem.g.cs +++ b/src/libs/Letta/Generated/Letta.JsonConverters.DataItem.g.cs @@ -15,63 +15,22 @@ public class DataItemJsonConverter : global::System.Text.Json.Serialization.Json options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - - } - } - var __score0 = 0; - if (__jsonProps.Contains("access")) __score0++; - if (__jsonProps.Contains("id")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemVariant1? agent = default; - if (__bestIndex >= 0) - { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemVariant1).Name}"); - agent = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - } - - if (agent == null) + if (discriminator?.Type == global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorType.Agent) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemVariant1).Name}"); - agent = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemVariant1)}"); + agent = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::Letta.DataItem( + discriminator?.Type, agent ); diff --git a/src/libs/Letta/Generated/Letta.JsonConverters.DataItem2.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.DataItem2.g.cs index beeacd78..d0efba0b 100644 --- a/src/libs/Letta/Generated/Letta.JsonConverters.DataItem2.g.cs +++ b/src/libs/Letta/Generated/Letta.JsonConverters.DataItem2.g.cs @@ -15,63 +15,22 @@ public class DataItem2JsonConverter : global::System.Text.Json.Serialization.Jso options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - - } - } - var __score0 = 0; - if (__jsonProps.Contains("access")) __score0++; - if (__jsonProps.Contains("id")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemVariant1? agent = default; - if (__bestIndex >= 0) - { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemVariant1).Name}"); - agent = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - } - - if (agent == null) + if (discriminator?.Type == global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorType.Agent) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemVariant1).Name}"); - agent = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemVariant1)}"); + agent = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::Letta.DataItem2( + discriminator?.Type, agent ); diff --git a/src/libs/Letta/Generated/Letta.JsonConverters.EventsItem.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.EventsItem.g.cs index 08096be1..86fb4453 100644 --- a/src/libs/Letta/Generated/Letta.JsonConverters.EventsItem.g.cs +++ b/src/libs/Letta/Generated/Letta.JsonConverters.EventsItem.g.cs @@ -15,256 +15,50 @@ public class EventsItemJsonConverter : global::System.Text.Json.Serialization.Js options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name); - } - } - - } - } - var __score0 = 0; - if (__jsonProps.Contains("data")) __score0++; - if (__jsonProps.Contains("data.agent_id")) __score0++; - if (__jsonProps.Contains("data.node_version")) __score0++; - if (__jsonProps.Contains("data.platform")) __score0++; - if (__jsonProps.Contains("data.session_id")) __score0++; - if (__jsonProps.Contains("data.startup_command")) __score0++; - if (__jsonProps.Contains("data.surface")) __score0++; - if (__jsonProps.Contains("data.version")) __score0++; - if (__jsonProps.Contains("timestamp")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("data")) __score1++; - if (__jsonProps.Contains("data.agent_id")) __score1++; - if (__jsonProps.Contains("data.cached_tokens")) __score1++; - if (__jsonProps.Contains("data.completion_tokens")) __score1++; - if (__jsonProps.Contains("data.duration")) __score1++; - if (__jsonProps.Contains("data.exit_reason")) __score1++; - if (__jsonProps.Contains("data.message_count")) __score1++; - if (__jsonProps.Contains("data.prompt_tokens")) __score1++; - if (__jsonProps.Contains("data.reasoning_tokens")) __score1++; - if (__jsonProps.Contains("data.session_id")) __score1++; - if (__jsonProps.Contains("data.step_count")) __score1++; - if (__jsonProps.Contains("data.surface")) __score1++; - if (__jsonProps.Contains("data.tool_call_count")) __score1++; - if (__jsonProps.Contains("data.total_api_ms")) __score1++; - if (__jsonProps.Contains("data.total_tokens")) __score1++; - if (__jsonProps.Contains("data.total_wall_ms")) __score1++; - if (__jsonProps.Contains("timestamp")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - var __score2 = 0; - if (__jsonProps.Contains("data")) __score2++; - if (__jsonProps.Contains("data.agent_id")) __score2++; - if (__jsonProps.Contains("data.duration")) __score2++; - if (__jsonProps.Contains("data.error_type")) __score2++; - if (__jsonProps.Contains("data.response_length")) __score2++; - if (__jsonProps.Contains("data.session_id")) __score2++; - if (__jsonProps.Contains("data.stderr")) __score2++; - if (__jsonProps.Contains("data.success")) __score2++; - if (__jsonProps.Contains("data.surface")) __score2++; - if (__jsonProps.Contains("data.tool_name")) __score2++; - if (__jsonProps.Contains("timestamp")) __score2++; - if (__jsonProps.Contains("type")) __score2++; - var __score3 = 0; - if (__jsonProps.Contains("data")) __score3++; - if (__jsonProps.Contains("data.agent_id")) __score3++; - if (__jsonProps.Contains("data.context")) __score3++; - if (__jsonProps.Contains("data.debug_log_tail")) __score3++; - if (__jsonProps.Contains("data.error_message")) __score3++; - if (__jsonProps.Contains("data.error_type")) __score3++; - if (__jsonProps.Contains("data.http_status")) __score3++; - if (__jsonProps.Contains("data.model_id")) __score3++; - if (__jsonProps.Contains("data.recent_chunks")) __score3++; - if (__jsonProps.Contains("data.run_id")) __score3++; - if (__jsonProps.Contains("data.session_id")) __score3++; - if (__jsonProps.Contains("data.surface")) __score3++; - if (__jsonProps.Contains("timestamp")) __score3++; - if (__jsonProps.Contains("type")) __score3++; - var __score4 = 0; - if (__jsonProps.Contains("data")) __score4++; - if (__jsonProps.Contains("data.agent_id")) __score4++; - if (__jsonProps.Contains("data.command_name")) __score4++; - if (__jsonProps.Contains("data.input_length")) __score4++; - if (__jsonProps.Contains("data.is_command")) __score4++; - if (__jsonProps.Contains("data.message_type")) __score4++; - if (__jsonProps.Contains("data.model_id")) __score4++; - if (__jsonProps.Contains("data.session_id")) __score4++; - if (__jsonProps.Contains("data.surface")) __score4++; - if (__jsonProps.Contains("timestamp")) __score4++; - if (__jsonProps.Contains("type")) __score4++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } - if (__score3 > __bestScore) { __bestScore = __score3; __bestIndex = 3; } - if (__score4 > __bestScore) { __bestScore = __score4; __bestIndex = 4; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.MetadataSendTelemetryRequestEventDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Letta.MetadataSendTelemetryRequestEventDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::Letta.MetadataSendTelemetryRequestEventVariant1? sessionStart = default; + if (discriminator?.Type == global::Letta.MetadataSendTelemetryRequestEventDiscriminatorType.SessionStart) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.MetadataSendTelemetryRequestEventVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Letta.MetadataSendTelemetryRequestEventVariant1)}"); + sessionStart = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::Letta.MetadataSendTelemetryRequestEventVariant2? sessionEnd = default; + if (discriminator?.Type == global::Letta.MetadataSendTelemetryRequestEventDiscriminatorType.SessionEnd) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.MetadataSendTelemetryRequestEventVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Letta.MetadataSendTelemetryRequestEventVariant2)}"); + sessionEnd = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::Letta.MetadataSendTelemetryRequestEventVariant3? toolUsage = default; + if (discriminator?.Type == global::Letta.MetadataSendTelemetryRequestEventDiscriminatorType.ToolUsage) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.MetadataSendTelemetryRequestEventVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Letta.MetadataSendTelemetryRequestEventVariant3)}"); + toolUsage = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::Letta.MetadataSendTelemetryRequestEventVariant4? error = default; - global::Letta.MetadataSendTelemetryRequestEventVariant5? userInput = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::Letta.MetadataSendTelemetryRequestEventDiscriminatorType.Error) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.MetadataSendTelemetryRequestEventVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.MetadataSendTelemetryRequestEventVariant1).Name}"); - sessionStart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.MetadataSendTelemetryRequestEventVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.MetadataSendTelemetryRequestEventVariant2).Name}"); - sessionEnd = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 2) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.MetadataSendTelemetryRequestEventVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.MetadataSendTelemetryRequestEventVariant3).Name}"); - toolUsage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 3) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.MetadataSendTelemetryRequestEventVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.MetadataSendTelemetryRequestEventVariant4).Name}"); - error = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 4) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.MetadataSendTelemetryRequestEventVariant5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.MetadataSendTelemetryRequestEventVariant5).Name}"); - userInput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.MetadataSendTelemetryRequestEventVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Letta.MetadataSendTelemetryRequestEventVariant4)}"); + error = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (sessionStart == null && sessionEnd == null && toolUsage == null && error == null && userInput == null) + global::Letta.MetadataSendTelemetryRequestEventVariant5? userInput = default; + if (discriminator?.Type == global::Letta.MetadataSendTelemetryRequestEventDiscriminatorType.UserInput) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.MetadataSendTelemetryRequestEventVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.MetadataSendTelemetryRequestEventVariant1).Name}"); - sessionStart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.MetadataSendTelemetryRequestEventVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.MetadataSendTelemetryRequestEventVariant2).Name}"); - sessionEnd = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.MetadataSendTelemetryRequestEventVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.MetadataSendTelemetryRequestEventVariant3).Name}"); - toolUsage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.MetadataSendTelemetryRequestEventVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.MetadataSendTelemetryRequestEventVariant4).Name}"); - error = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.MetadataSendTelemetryRequestEventVariant5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.MetadataSendTelemetryRequestEventVariant5).Name}"); - userInput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.MetadataSendTelemetryRequestEventVariant5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Letta.MetadataSendTelemetryRequestEventVariant5)}"); + userInput = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::Letta.EventsItem( + discriminator?.Type, sessionStart, sessionEnd, diff --git a/src/libs/Letta/Generated/Letta.JsonConverters.MetadataSendTelemetryRequestEventDiscriminatorType.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.MetadataSendTelemetryRequestEventDiscriminatorType.g.cs new file mode 100644 index 00000000..658d7f0b --- /dev/null +++ b/src/libs/Letta/Generated/Letta.JsonConverters.MetadataSendTelemetryRequestEventDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Letta.JsonConverters +{ + /// + public sealed class MetadataSendTelemetryRequestEventDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Letta.MetadataSendTelemetryRequestEventDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Letta.MetadataSendTelemetryRequestEventDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Letta.MetadataSendTelemetryRequestEventDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Letta.MetadataSendTelemetryRequestEventDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Letta.MetadataSendTelemetryRequestEventDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Letta.MetadataSendTelemetryRequestEventDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Letta/Generated/Letta.JsonConverters.MetadataSendTelemetryRequestEventDiscriminatorTypeNullable.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.MetadataSendTelemetryRequestEventDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..49d05622 --- /dev/null +++ b/src/libs/Letta/Generated/Letta.JsonConverters.MetadataSendTelemetryRequestEventDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Letta.JsonConverters +{ + /// + public sealed class MetadataSendTelemetryRequestEventDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Letta.MetadataSendTelemetryRequestEventDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Letta.MetadataSendTelemetryRequestEventDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Letta.MetadataSendTelemetryRequestEventDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Letta.MetadataSendTelemetryRequestEventDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Letta.MetadataSendTelemetryRequestEventDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Letta.MetadataSendTelemetryRequestEventDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Letta/Generated/Letta.JsonConverters.OneOf2.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.OneOf2.g.cs index 66b3da00..06572814 100644 --- a/src/libs/Letta/Generated/Letta.JsonConverters.OneOf2.g.cs +++ b/src/libs/Letta/Generated/Letta.JsonConverters.OneOf2.g.cs @@ -107,7 +107,10 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null) + { try { diff --git a/src/libs/Letta/Generated/Letta.JsonConverters.OneOf6.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.OneOf6.g.cs index 300b2d2d..a7177f19 100644 --- a/src/libs/Letta/Generated/Letta.JsonConverters.OneOf6.g.cs +++ b/src/libs/Letta/Generated/Letta.JsonConverters.OneOf6.g.cs @@ -227,7 +227,10 @@ public class OneOfJsonConverter : 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 OneOfJsonConverter : 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 OneOfJsonConverter : 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 OneOfJsonConverter : 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 OneOfJsonConverter : 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/Letta/Generated/Letta.JsonConverters.OneOf9.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.OneOf9.g.cs index b6519e45..83a8a843 100644 --- a/src/libs/Letta/Generated/Letta.JsonConverters.OneOf9.g.cs +++ b/src/libs/Letta/Generated/Letta.JsonConverters.OneOf9.g.cs @@ -317,7 +317,10 @@ public class OneOfJsonConverter : global::Sy catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null && value7 == null && value8 == null && value9 == null) + { try { @@ -331,7 +334,10 @@ public class OneOfJsonConverter : global::Sy catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null && value7 == null && value8 == null && value9 == null) + { try { @@ -345,7 +351,10 @@ public class OneOfJsonConverter : global::Sy catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null && value7 == null && value8 == null && value9 == null) + { try { @@ -359,7 +368,10 @@ public class OneOfJsonConverter : global::Sy catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null && value7 == null && value8 == null && value9 == null) + { try { @@ -373,7 +385,10 @@ public class OneOfJsonConverter : global::Sy catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null && value7 == null && value8 == null && value9 == null) + { try { @@ -387,7 +402,10 @@ public class OneOfJsonConverter : global::Sy catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null && value7 == null && value8 == null && value9 == null) + { try { @@ -401,7 +419,10 @@ public class OneOfJsonConverter : global::Sy catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null && value7 == null && value8 == null && value9 == null) + { try { @@ -415,7 +436,10 @@ public class OneOfJsonConverter : global::Sy catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null && value7 == null && value8 == null && value9 == null) + { try { diff --git a/src/libs/Letta/Generated/Letta.JsonConverters.PipelinesCreatePipelineRequestProducerConfigDiscriminatorType.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.PipelinesCreatePipelineRequestProducerConfigDiscriminatorType.g.cs new file mode 100644 index 00000000..70dee23f --- /dev/null +++ b/src/libs/Letta/Generated/Letta.JsonConverters.PipelinesCreatePipelineRequestProducerConfigDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Letta.JsonConverters +{ + /// + public sealed class PipelinesCreatePipelineRequestProducerConfigDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Letta.PipelinesCreatePipelineRequestProducerConfigDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Letta.PipelinesCreatePipelineRequestProducerConfigDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Letta.PipelinesCreatePipelineRequestProducerConfigDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Letta.PipelinesCreatePipelineRequestProducerConfigDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Letta.PipelinesCreatePipelineRequestProducerConfigDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Letta.PipelinesCreatePipelineRequestProducerConfigDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Letta/Generated/Letta.JsonConverters.PipelinesCreatePipelineRequestProducerConfigDiscriminatorTypeNullable.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.PipelinesCreatePipelineRequestProducerConfigDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..3700bec5 --- /dev/null +++ b/src/libs/Letta/Generated/Letta.JsonConverters.PipelinesCreatePipelineRequestProducerConfigDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Letta.JsonConverters +{ + /// + public sealed class PipelinesCreatePipelineRequestProducerConfigDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Letta.PipelinesCreatePipelineRequestProducerConfigDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Letta.PipelinesCreatePipelineRequestProducerConfigDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Letta.PipelinesCreatePipelineRequestProducerConfigDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Letta.PipelinesCreatePipelineRequestProducerConfigDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Letta.PipelinesCreatePipelineRequestProducerConfigDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Letta.PipelinesCreatePipelineRequestProducerConfigDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Letta/Generated/Letta.JsonConverters.PipelinesCreatePipelineResponsePipelineConfigDiscriminatorType.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.PipelinesCreatePipelineResponsePipelineConfigDiscriminatorType.g.cs new file mode 100644 index 00000000..4a12a40a --- /dev/null +++ b/src/libs/Letta/Generated/Letta.JsonConverters.PipelinesCreatePipelineResponsePipelineConfigDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Letta.JsonConverters +{ + /// + public sealed class PipelinesCreatePipelineResponsePipelineConfigDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Letta.PipelinesCreatePipelineResponsePipelineConfigDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Letta.PipelinesCreatePipelineResponsePipelineConfigDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Letta.PipelinesCreatePipelineResponsePipelineConfigDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Letta.PipelinesCreatePipelineResponsePipelineConfigDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Letta.PipelinesCreatePipelineResponsePipelineConfigDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Letta.PipelinesCreatePipelineResponsePipelineConfigDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Letta/Generated/Letta.JsonConverters.PipelinesCreatePipelineResponsePipelineConfigDiscriminatorTypeNullable.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.PipelinesCreatePipelineResponsePipelineConfigDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..41b32a06 --- /dev/null +++ b/src/libs/Letta/Generated/Letta.JsonConverters.PipelinesCreatePipelineResponsePipelineConfigDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Letta.JsonConverters +{ + /// + public sealed class PipelinesCreatePipelineResponsePipelineConfigDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Letta.PipelinesCreatePipelineResponsePipelineConfigDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Letta.PipelinesCreatePipelineResponsePipelineConfigDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Letta.PipelinesCreatePipelineResponsePipelineConfigDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Letta.PipelinesCreatePipelineResponsePipelineConfigDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Letta.PipelinesCreatePipelineResponsePipelineConfigDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Letta.PipelinesCreatePipelineResponsePipelineConfigDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Letta/Generated/Letta.JsonConverters.PipelinesGetPipelineResponsePipelineConfigDiscriminatorType.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.PipelinesGetPipelineResponsePipelineConfigDiscriminatorType.g.cs new file mode 100644 index 00000000..20a1674e --- /dev/null +++ b/src/libs/Letta/Generated/Letta.JsonConverters.PipelinesGetPipelineResponsePipelineConfigDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Letta.JsonConverters +{ + /// + public sealed class PipelinesGetPipelineResponsePipelineConfigDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Letta.PipelinesGetPipelineResponsePipelineConfigDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Letta.PipelinesGetPipelineResponsePipelineConfigDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Letta.PipelinesGetPipelineResponsePipelineConfigDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Letta.PipelinesGetPipelineResponsePipelineConfigDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Letta.PipelinesGetPipelineResponsePipelineConfigDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Letta.PipelinesGetPipelineResponsePipelineConfigDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Letta/Generated/Letta.JsonConverters.PipelinesGetPipelineResponsePipelineConfigDiscriminatorTypeNullable.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.PipelinesGetPipelineResponsePipelineConfigDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..ff93bc3b --- /dev/null +++ b/src/libs/Letta/Generated/Letta.JsonConverters.PipelinesGetPipelineResponsePipelineConfigDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Letta.JsonConverters +{ + /// + public sealed class PipelinesGetPipelineResponsePipelineConfigDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Letta.PipelinesGetPipelineResponsePipelineConfigDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Letta.PipelinesGetPipelineResponsePipelineConfigDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Letta.PipelinesGetPipelineResponsePipelineConfigDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Letta.PipelinesGetPipelineResponsePipelineConfigDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Letta.PipelinesGetPipelineResponsePipelineConfigDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Letta.PipelinesGetPipelineResponsePipelineConfigDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Letta/Generated/Letta.JsonConverters.PipelinesListPipelinesResponsePipelineConfigDiscriminatorType.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.PipelinesListPipelinesResponsePipelineConfigDiscriminatorType.g.cs new file mode 100644 index 00000000..f69396fb --- /dev/null +++ b/src/libs/Letta/Generated/Letta.JsonConverters.PipelinesListPipelinesResponsePipelineConfigDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Letta.JsonConverters +{ + /// + public sealed class PipelinesListPipelinesResponsePipelineConfigDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Letta.PipelinesListPipelinesResponsePipelineConfigDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Letta.PipelinesListPipelinesResponsePipelineConfigDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Letta.PipelinesListPipelinesResponsePipelineConfigDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Letta.PipelinesListPipelinesResponsePipelineConfigDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Letta.PipelinesListPipelinesResponsePipelineConfigDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Letta.PipelinesListPipelinesResponsePipelineConfigDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Letta/Generated/Letta.JsonConverters.PipelinesListPipelinesResponsePipelineConfigDiscriminatorTypeNullable.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.PipelinesListPipelinesResponsePipelineConfigDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..032923c5 --- /dev/null +++ b/src/libs/Letta/Generated/Letta.JsonConverters.PipelinesListPipelinesResponsePipelineConfigDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Letta.JsonConverters +{ + /// + public sealed class PipelinesListPipelinesResponsePipelineConfigDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Letta.PipelinesListPipelinesResponsePipelineConfigDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Letta.PipelinesListPipelinesResponsePipelineConfigDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Letta.PipelinesListPipelinesResponsePipelineConfigDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Letta.PipelinesListPipelinesResponsePipelineConfigDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Letta.PipelinesListPipelinesResponsePipelineConfigDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Letta.PipelinesListPipelinesResponsePipelineConfigDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Letta/Generated/Letta.JsonConverters.PipelinesPreviewPipelineRequestProducerConfigDiscriminatorType.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.PipelinesPreviewPipelineRequestProducerConfigDiscriminatorType.g.cs new file mode 100644 index 00000000..f74b36f8 --- /dev/null +++ b/src/libs/Letta/Generated/Letta.JsonConverters.PipelinesPreviewPipelineRequestProducerConfigDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Letta.JsonConverters +{ + /// + public sealed class PipelinesPreviewPipelineRequestProducerConfigDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Letta.PipelinesPreviewPipelineRequestProducerConfigDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Letta.PipelinesPreviewPipelineRequestProducerConfigDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Letta.PipelinesPreviewPipelineRequestProducerConfigDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Letta.PipelinesPreviewPipelineRequestProducerConfigDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Letta.PipelinesPreviewPipelineRequestProducerConfigDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Letta.PipelinesPreviewPipelineRequestProducerConfigDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Letta/Generated/Letta.JsonConverters.PipelinesPreviewPipelineRequestProducerConfigDiscriminatorTypeNullable.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.PipelinesPreviewPipelineRequestProducerConfigDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..6fc06a97 --- /dev/null +++ b/src/libs/Letta/Generated/Letta.JsonConverters.PipelinesPreviewPipelineRequestProducerConfigDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Letta.JsonConverters +{ + /// + public sealed class PipelinesPreviewPipelineRequestProducerConfigDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Letta.PipelinesPreviewPipelineRequestProducerConfigDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Letta.PipelinesPreviewPipelineRequestProducerConfigDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Letta.PipelinesPreviewPipelineRequestProducerConfigDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Letta.PipelinesPreviewPipelineRequestProducerConfigDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Letta.PipelinesPreviewPipelineRequestProducerConfigDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Letta.PipelinesPreviewPipelineRequestProducerConfigDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Letta/Generated/Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorType.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorType.g.cs new file mode 100644 index 00000000..c89b4f19 --- /dev/null +++ b/src/libs/Letta/Generated/Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Letta.JsonConverters +{ + /// + public sealed class PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Letta/Generated/Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorTypeNullable.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..d9d7e294 --- /dev/null +++ b/src/libs/Letta/Generated/Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Letta.JsonConverters +{ + /// + public sealed class PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Letta/Generated/Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorType.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorType.g.cs new file mode 100644 index 00000000..514355d6 --- /dev/null +++ b/src/libs/Letta/Generated/Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Letta.JsonConverters +{ + /// + public sealed class PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Letta/Generated/Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorTypeNullable.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..11b2e763 --- /dev/null +++ b/src/libs/Letta/Generated/Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Letta.JsonConverters +{ + /// + public sealed class PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Letta/Generated/Letta.JsonConverters.PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorType.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorType.g.cs new file mode 100644 index 00000000..038a0310 --- /dev/null +++ b/src/libs/Letta/Generated/Letta.JsonConverters.PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Letta.JsonConverters +{ + /// + public sealed class PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Letta.PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Letta.PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Letta.PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Letta.PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Letta.PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Letta.PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Letta/Generated/Letta.JsonConverters.PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorTypeNullable.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..78102193 --- /dev/null +++ b/src/libs/Letta/Generated/Letta.JsonConverters.PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Letta.JsonConverters +{ + /// + public sealed class PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Letta.PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Letta.PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Letta.PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Letta.PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Letta.PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Letta.PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Letta/Generated/Letta.JsonConverters.PolicyItem.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.PolicyItem.g.cs index ef53db8f..0518d417 100644 --- a/src/libs/Letta/Generated/Letta.JsonConverters.PolicyItem.g.cs +++ b/src/libs/Letta/Generated/Letta.JsonConverters.PolicyItem.g.cs @@ -15,63 +15,22 @@ public class PolicyItemJsonConverter : global::System.Text.Json.Serialization.Js options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - - } - } - var __score0 = 0; - if (__jsonProps.Contains("access")) __score0++; - if (__jsonProps.Contains("id")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemVariant1? agent = default; - if (__bestIndex >= 0) - { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemVariant1).Name}"); - agent = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - } - - if (agent == null) + if (discriminator?.Type == global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorType.Agent) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemVariant1).Name}"); - agent = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemVariant1)}"); + agent = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::Letta.PolicyItem( + discriminator?.Type, agent ); diff --git a/src/libs/Letta/Generated/Letta.JsonConverters.ProducerConfig.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.ProducerConfig.g.cs index 2027819c..d351abfa 100644 --- a/src/libs/Letta/Generated/Letta.JsonConverters.ProducerConfig.g.cs +++ b/src/libs/Letta/Generated/Letta.JsonConverters.ProducerConfig.g.cs @@ -15,104 +15,29 @@ public class ProducerConfigJsonConverter : global::System.Text.Json.Serializatio options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name); - } - } - - } - } - var __score0 = 0; - if (__jsonProps.Contains("data")) __score0++; - if (__jsonProps.Contains("data.channels")) __score0++; - if (__jsonProps.Contains("data.max_messages_per_poll")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("data")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesCreatePipelineRequestProducerConfigDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Letta.PipelinesCreatePipelineRequestProducerConfigDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::Letta.PipelinesCreatePipelineRequestProducerConfigVariant1? slackChannelReader = default; - global::Letta.PipelinesCreatePipelineRequestProducerConfigVariant2? customWebhook = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::Letta.PipelinesCreatePipelineRequestProducerConfigDiscriminatorType.SlackChannelReader) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesCreatePipelineRequestProducerConfigVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.PipelinesCreatePipelineRequestProducerConfigVariant1).Name}"); - slackChannelReader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesCreatePipelineRequestProducerConfigVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.PipelinesCreatePipelineRequestProducerConfigVariant2).Name}"); - customWebhook = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesCreatePipelineRequestProducerConfigVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Letta.PipelinesCreatePipelineRequestProducerConfigVariant1)}"); + slackChannelReader = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (slackChannelReader == null && customWebhook == null) + global::Letta.PipelinesCreatePipelineRequestProducerConfigVariant2? customWebhook = default; + if (discriminator?.Type == global::Letta.PipelinesCreatePipelineRequestProducerConfigDiscriminatorType.CustomWebhook) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesCreatePipelineRequestProducerConfigVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.PipelinesCreatePipelineRequestProducerConfigVariant1).Name}"); - slackChannelReader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesCreatePipelineRequestProducerConfigVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.PipelinesCreatePipelineRequestProducerConfigVariant2).Name}"); - customWebhook = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesCreatePipelineRequestProducerConfigVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Letta.PipelinesCreatePipelineRequestProducerConfigVariant2)}"); + customWebhook = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::Letta.ProducerConfig( + discriminator?.Type, slackChannelReader, customWebhook diff --git a/src/libs/Letta/Generated/Letta.JsonConverters.ProducerConfig2.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.ProducerConfig2.g.cs index b234e2eb..d9b605a5 100644 --- a/src/libs/Letta/Generated/Letta.JsonConverters.ProducerConfig2.g.cs +++ b/src/libs/Letta/Generated/Letta.JsonConverters.ProducerConfig2.g.cs @@ -15,104 +15,29 @@ public class ProducerConfig2JsonConverter : global::System.Text.Json.Serializati options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name); - } - } - - } - } - var __score0 = 0; - if (__jsonProps.Contains("data")) __score0++; - if (__jsonProps.Contains("data.channels")) __score0++; - if (__jsonProps.Contains("data.max_messages_per_poll")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("data")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant1? slackChannelReader = default; - global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant2? customWebhook = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorType.SlackChannelReader) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant1).Name}"); - slackChannelReader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant2).Name}"); - customWebhook = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant1)}"); + slackChannelReader = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (slackChannelReader == null && customWebhook == null) + global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant2? customWebhook = default; + if (discriminator?.Type == global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorType.CustomWebhook) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant1).Name}"); - slackChannelReader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant2).Name}"); - customWebhook = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant2)}"); + customWebhook = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::Letta.ProducerConfig2( + discriminator?.Type, slackChannelReader, customWebhook diff --git a/src/libs/Letta/Generated/Letta.JsonConverters.ProducerConfig3.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.ProducerConfig3.g.cs index fec16a97..c59a44b4 100644 --- a/src/libs/Letta/Generated/Letta.JsonConverters.ProducerConfig3.g.cs +++ b/src/libs/Letta/Generated/Letta.JsonConverters.ProducerConfig3.g.cs @@ -15,104 +15,29 @@ public class ProducerConfig3JsonConverter : global::System.Text.Json.Serializati options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name); - } - } - - } - } - var __score0 = 0; - if (__jsonProps.Contains("data")) __score0++; - if (__jsonProps.Contains("data.channels")) __score0++; - if (__jsonProps.Contains("data.max_messages_per_poll")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("data")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesPreviewPipelineRequestProducerConfigDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Letta.PipelinesPreviewPipelineRequestProducerConfigDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::Letta.PipelinesPreviewPipelineRequestProducerConfigVariant1? slackChannelReader = default; - global::Letta.PipelinesPreviewPipelineRequestProducerConfigVariant2? customWebhook = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::Letta.PipelinesPreviewPipelineRequestProducerConfigDiscriminatorType.SlackChannelReader) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesPreviewPipelineRequestProducerConfigVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.PipelinesPreviewPipelineRequestProducerConfigVariant1).Name}"); - slackChannelReader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesPreviewPipelineRequestProducerConfigVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.PipelinesPreviewPipelineRequestProducerConfigVariant2).Name}"); - customWebhook = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesPreviewPipelineRequestProducerConfigVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Letta.PipelinesPreviewPipelineRequestProducerConfigVariant1)}"); + slackChannelReader = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (slackChannelReader == null && customWebhook == null) + global::Letta.PipelinesPreviewPipelineRequestProducerConfigVariant2? customWebhook = default; + if (discriminator?.Type == global::Letta.PipelinesPreviewPipelineRequestProducerConfigDiscriminatorType.CustomWebhook) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesPreviewPipelineRequestProducerConfigVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.PipelinesPreviewPipelineRequestProducerConfigVariant1).Name}"); - slackChannelReader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesPreviewPipelineRequestProducerConfigVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.PipelinesPreviewPipelineRequestProducerConfigVariant2).Name}"); - customWebhook = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.PipelinesPreviewPipelineRequestProducerConfigVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Letta.PipelinesPreviewPipelineRequestProducerConfigVariant2)}"); + customWebhook = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::Letta.ProducerConfig3( + discriminator?.Type, slackChannelReader, customWebhook diff --git a/src/libs/Letta/Generated/Letta.JsonConverters.TemplatesCreateTemplateNoProjectRequest.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.TemplatesCreateTemplateNoProjectRequest.g.cs index 65658b2d..12c9fd8e 100644 --- a/src/libs/Letta/Generated/Letta.JsonConverters.TemplatesCreateTemplateNoProjectRequest.g.cs +++ b/src/libs/Letta/Generated/Letta.JsonConverters.TemplatesCreateTemplateNoProjectRequest.g.cs @@ -15,98 +15,29 @@ public class TemplatesCreateTemplateNoProjectRequestJsonConverter : global::Syst options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - - } - } - var __score0 = 0; - if (__jsonProps.Contains("agent_id")) __score0++; - if (__jsonProps.Contains("name")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("agent_file")) __score1++; - if (__jsonProps.Contains("name")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - if (__jsonProps.Contains("update_existing_tools")) __score1++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.TemplatesCreateTemplateNoProjectRequestDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Letta.TemplatesCreateTemplateNoProjectRequestDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::Letta.TemplatesCreateTemplateNoProjectRequestVariant1? agent = default; - global::Letta.TemplatesCreateTemplateNoProjectRequestVariant2? agentFile = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::Letta.TemplatesCreateTemplateNoProjectRequestDiscriminatorType.Agent) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.TemplatesCreateTemplateNoProjectRequestVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.TemplatesCreateTemplateNoProjectRequestVariant1).Name}"); - agent = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.TemplatesCreateTemplateNoProjectRequestVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.TemplatesCreateTemplateNoProjectRequestVariant2).Name}"); - agentFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.TemplatesCreateTemplateNoProjectRequestVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Letta.TemplatesCreateTemplateNoProjectRequestVariant1)}"); + agent = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (agent == null && agentFile == null) + global::Letta.TemplatesCreateTemplateNoProjectRequestVariant2? agentFile = default; + if (discriminator?.Type == global::Letta.TemplatesCreateTemplateNoProjectRequestDiscriminatorType.AgentFile) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.TemplatesCreateTemplateNoProjectRequestVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.TemplatesCreateTemplateNoProjectRequestVariant1).Name}"); - agent = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.TemplatesCreateTemplateNoProjectRequestVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.TemplatesCreateTemplateNoProjectRequestVariant2).Name}"); - agentFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.TemplatesCreateTemplateNoProjectRequestVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Letta.TemplatesCreateTemplateNoProjectRequestVariant2)}"); + agentFile = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::Letta.TemplatesCreateTemplateNoProjectRequest( + discriminator?.Type, agent, agentFile diff --git a/src/libs/Letta/Generated/Letta.JsonConverters.TemplatesCreateTemplateNoProjectRequestDiscriminatorType.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.TemplatesCreateTemplateNoProjectRequestDiscriminatorType.g.cs new file mode 100644 index 00000000..8e30d6cc --- /dev/null +++ b/src/libs/Letta/Generated/Letta.JsonConverters.TemplatesCreateTemplateNoProjectRequestDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Letta.JsonConverters +{ + /// + public sealed class TemplatesCreateTemplateNoProjectRequestDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Letta.TemplatesCreateTemplateNoProjectRequestDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Letta.TemplatesCreateTemplateNoProjectRequestDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Letta.TemplatesCreateTemplateNoProjectRequestDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Letta.TemplatesCreateTemplateNoProjectRequestDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Letta.TemplatesCreateTemplateNoProjectRequestDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Letta.TemplatesCreateTemplateNoProjectRequestDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Letta/Generated/Letta.JsonConverters.TemplatesCreateTemplateNoProjectRequestDiscriminatorTypeNullable.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.TemplatesCreateTemplateNoProjectRequestDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..5a53f493 --- /dev/null +++ b/src/libs/Letta/Generated/Letta.JsonConverters.TemplatesCreateTemplateNoProjectRequestDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Letta.JsonConverters +{ + /// + public sealed class TemplatesCreateTemplateNoProjectRequestDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Letta.TemplatesCreateTemplateNoProjectRequestDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Letta.TemplatesCreateTemplateNoProjectRequestDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Letta.TemplatesCreateTemplateNoProjectRequestDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Letta.TemplatesCreateTemplateNoProjectRequestDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Letta.TemplatesCreateTemplateNoProjectRequestDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Letta.TemplatesCreateTemplateNoProjectRequestDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Letta/Generated/Letta.JsonConverters.TemplatesCreateTemplateRequest.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.TemplatesCreateTemplateRequest.g.cs index 91fbad7f..dbd51aa5 100644 --- a/src/libs/Letta/Generated/Letta.JsonConverters.TemplatesCreateTemplateRequest.g.cs +++ b/src/libs/Letta/Generated/Letta.JsonConverters.TemplatesCreateTemplateRequest.g.cs @@ -15,98 +15,29 @@ public class TemplatesCreateTemplateRequestJsonConverter : global::System.Text.J options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - - } - } - var __score0 = 0; - if (__jsonProps.Contains("agent_id")) __score0++; - if (__jsonProps.Contains("name")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("agent_file")) __score1++; - if (__jsonProps.Contains("name")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - if (__jsonProps.Contains("update_existing_tools")) __score1++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.TemplatesCreateTemplateRequestDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Letta.TemplatesCreateTemplateRequestDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::Letta.TemplatesCreateTemplateRequestVariant1? agent = default; - global::Letta.TemplatesCreateTemplateRequestVariant2? agentFile = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::Letta.TemplatesCreateTemplateRequestDiscriminatorType.Agent) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.TemplatesCreateTemplateRequestVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.TemplatesCreateTemplateRequestVariant1).Name}"); - agent = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.TemplatesCreateTemplateRequestVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.TemplatesCreateTemplateRequestVariant2).Name}"); - agentFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.TemplatesCreateTemplateRequestVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Letta.TemplatesCreateTemplateRequestVariant1)}"); + agent = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (agent == null && agentFile == null) + global::Letta.TemplatesCreateTemplateRequestVariant2? agentFile = default; + if (discriminator?.Type == global::Letta.TemplatesCreateTemplateRequestDiscriminatorType.AgentFile) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.TemplatesCreateTemplateRequestVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.TemplatesCreateTemplateRequestVariant1).Name}"); - agent = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.TemplatesCreateTemplateRequestVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Letta.TemplatesCreateTemplateRequestVariant2).Name}"); - agentFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Letta.TemplatesCreateTemplateRequestVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Letta.TemplatesCreateTemplateRequestVariant2)}"); + agentFile = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::Letta.TemplatesCreateTemplateRequest( + discriminator?.Type, agent, agentFile diff --git a/src/libs/Letta/Generated/Letta.JsonConverters.TemplatesCreateTemplateRequestDiscriminatorType.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.TemplatesCreateTemplateRequestDiscriminatorType.g.cs new file mode 100644 index 00000000..85ab3f0d --- /dev/null +++ b/src/libs/Letta/Generated/Letta.JsonConverters.TemplatesCreateTemplateRequestDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Letta.JsonConverters +{ + /// + public sealed class TemplatesCreateTemplateRequestDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Letta.TemplatesCreateTemplateRequestDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Letta.TemplatesCreateTemplateRequestDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Letta.TemplatesCreateTemplateRequestDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Letta.TemplatesCreateTemplateRequestDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Letta.TemplatesCreateTemplateRequestDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Letta.TemplatesCreateTemplateRequestDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Letta/Generated/Letta.JsonConverters.TemplatesCreateTemplateRequestDiscriminatorTypeNullable.g.cs b/src/libs/Letta/Generated/Letta.JsonConverters.TemplatesCreateTemplateRequestDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..db05c7a2 --- /dev/null +++ b/src/libs/Letta/Generated/Letta.JsonConverters.TemplatesCreateTemplateRequestDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Letta.JsonConverters +{ + /// + public sealed class TemplatesCreateTemplateRequestDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Letta.TemplatesCreateTemplateRequestDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Letta.TemplatesCreateTemplateRequestDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Letta.TemplatesCreateTemplateRequestDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Letta.TemplatesCreateTemplateRequestDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Letta.TemplatesCreateTemplateRequestDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Letta.TemplatesCreateTemplateRequestDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Letta/Generated/Letta.JsonSerializerContext.g.cs b/src/libs/Letta/Generated/Letta.JsonSerializerContext.g.cs index 9d48a101..fd0a6bf6 100644 --- a/src/libs/Letta/Generated/Letta.JsonSerializerContext.g.cs +++ b/src/libs/Letta/Generated/Letta.JsonSerializerContext.g.cs @@ -553,6 +553,10 @@ namespace Letta typeof(global::Letta.JsonConverters.TemplatesCreateTemplateNoProjectRequestVariant2TypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.TemplatesCreateTemplateNoProjectRequestDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.TemplatesCreateTemplateNoProjectRequestDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.TemplatesSaveTemplateVersionNoProjectRequestBlockReconciliationStrategyJsonConverter), typeof(global::Letta.JsonConverters.TemplatesSaveTemplateVersionNoProjectRequestBlockReconciliationStrategyNullableJsonConverter), @@ -569,6 +573,10 @@ namespace Letta typeof(global::Letta.JsonConverters.TemplatesCreateTemplateRequestVariant2TypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.TemplatesCreateTemplateRequestDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.TemplatesCreateTemplateRequestDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemVariant1TypeJsonConverter), typeof(global::Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemVariant1TypeNullableJsonConverter), @@ -577,6 +585,10 @@ namespace Letta typeof(global::Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemVariant1AccesNullableJsonConverter), + typeof(global::Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.MetadataSendFeedbackRequestFeatureJsonConverter), typeof(global::Letta.JsonConverters.MetadataSendFeedbackRequestFeatureNullableJsonConverter), @@ -605,6 +617,10 @@ namespace Letta typeof(global::Letta.JsonConverters.MetadataSendTelemetryRequestEventVariant5TypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.MetadataSendTelemetryRequestEventDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.MetadataSendTelemetryRequestEventDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.ScheduledMessagesScheduleAgentMessageRequestMessageContentVariant1ItemVariant1TypeJsonConverter), typeof(global::Letta.JsonConverters.ScheduledMessagesScheduleAgentMessageRequestMessageContentVariant1ItemVariant1TypeNullableJsonConverter), @@ -649,6 +665,10 @@ namespace Letta typeof(global::Letta.JsonConverters.PipelinesCreatePipelineRequestProducerConfigVariant2TypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesCreatePipelineRequestProducerConfigDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.PipelinesCreatePipelineRequestProducerConfigDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant1TypeJsonConverter), typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant1TypeNullableJsonConverter), @@ -657,6 +677,10 @@ namespace Letta typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant2TypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesPreviewPipelineRequestIntegrationTypeJsonConverter), typeof(global::Letta.JsonConverters.PipelinesPreviewPipelineRequestIntegrationTypeNullableJsonConverter), @@ -669,6 +693,10 @@ namespace Letta typeof(global::Letta.JsonConverters.PipelinesPreviewPipelineRequestProducerConfigVariant2TypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesPreviewPipelineRequestProducerConfigDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.PipelinesPreviewPipelineRequestProducerConfigDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.EnvironmentsSendMessageRequestMessageVariant1RoleJsonConverter), typeof(global::Letta.JsonConverters.EnvironmentsSendMessageRequestMessageVariant1RoleNullableJsonConverter), @@ -1029,6 +1057,10 @@ namespace Letta typeof(global::Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemVariant1AccesNullableJsonConverter), + typeof(global::Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyVersionJsonConverter), typeof(global::Letta.JsonConverters.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyVersionNullableJsonConverter), @@ -1041,6 +1073,10 @@ namespace Letta typeof(global::Letta.JsonConverters.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemVariant1AccesNullableJsonConverter), + typeof(global::Letta.JsonConverters.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.ScheduledMessagesListScheduledMessagesResponseScheduledMessageMessageMessageContentVariant1ItemVariant1TypeJsonConverter), typeof(global::Letta.JsonConverters.ScheduledMessagesListScheduledMessagesResponseScheduledMessageMessageMessageContentVariant1ItemVariant1TypeNullableJsonConverter), @@ -1153,6 +1189,10 @@ namespace Letta typeof(global::Letta.JsonConverters.PipelinesCreatePipelineResponsePipelineConfigVariant2TypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesCreatePipelineResponsePipelineConfigDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.PipelinesCreatePipelineResponsePipelineConfigDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesCreatePipelineResponseErrorCodeJsonConverter), typeof(global::Letta.JsonConverters.PipelinesCreatePipelineResponseErrorCodeNullableJsonConverter), @@ -1169,6 +1209,10 @@ namespace Letta typeof(global::Letta.JsonConverters.PipelinesListPipelinesResponsePipelineConfigVariant2TypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesListPipelinesResponsePipelineConfigDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.PipelinesListPipelinesResponsePipelineConfigDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesGetPipelineResponsePipelineIntegrationTypeJsonConverter), typeof(global::Letta.JsonConverters.PipelinesGetPipelineResponsePipelineIntegrationTypeNullableJsonConverter), @@ -1181,6 +1225,10 @@ namespace Letta typeof(global::Letta.JsonConverters.PipelinesGetPipelineResponsePipelineConfigVariant2TypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesGetPipelineResponsePipelineConfigDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.PipelinesGetPipelineResponsePipelineConfigDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesGetPipelineResponseErrorCodeJsonConverter), typeof(global::Letta.JsonConverters.PipelinesGetPipelineResponseErrorCodeNullableJsonConverter), @@ -1197,6 +1245,10 @@ namespace Letta typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineResponsePipelineConfigVariant2TypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineResponseErrorCodeJsonConverter), typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineResponseErrorCodeNullableJsonConverter), @@ -1217,6 +1269,10 @@ namespace Letta typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigVariant2TypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigResponseErrorCodeJsonConverter), typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigResponseErrorCodeNullableJsonConverter), @@ -2624,6 +2680,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Letta.JsonConverters.TemplatesCreateTemplateNoProjectRequestVariant2TypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.TemplatesCreateTemplateNoProjectRequestDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.TemplatesCreateTemplateNoProjectRequestDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.TemplatesSaveTemplateVersionNoProjectRequestBlockReconciliationStrategyJsonConverter), typeof(global::Letta.JsonConverters.TemplatesSaveTemplateVersionNoProjectRequestBlockReconciliationStrategyNullableJsonConverter), @@ -2640,6 +2700,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Letta.JsonConverters.TemplatesCreateTemplateRequestVariant2TypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.TemplatesCreateTemplateRequestDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.TemplatesCreateTemplateRequestDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemVariant1TypeJsonConverter), typeof(global::Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemVariant1TypeNullableJsonConverter), @@ -2648,6 +2712,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemVariant1AccesNullableJsonConverter), + typeof(global::Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.MetadataSendFeedbackRequestFeatureJsonConverter), typeof(global::Letta.JsonConverters.MetadataSendFeedbackRequestFeatureNullableJsonConverter), @@ -2676,6 +2744,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Letta.JsonConverters.MetadataSendTelemetryRequestEventVariant5TypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.MetadataSendTelemetryRequestEventDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.MetadataSendTelemetryRequestEventDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.ScheduledMessagesScheduleAgentMessageRequestMessageContentVariant1ItemVariant1TypeJsonConverter), typeof(global::Letta.JsonConverters.ScheduledMessagesScheduleAgentMessageRequestMessageContentVariant1ItemVariant1TypeNullableJsonConverter), @@ -2720,6 +2792,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Letta.JsonConverters.PipelinesCreatePipelineRequestProducerConfigVariant2TypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesCreatePipelineRequestProducerConfigDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.PipelinesCreatePipelineRequestProducerConfigDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant1TypeJsonConverter), typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant1TypeNullableJsonConverter), @@ -2728,6 +2804,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant2TypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesPreviewPipelineRequestIntegrationTypeJsonConverter), typeof(global::Letta.JsonConverters.PipelinesPreviewPipelineRequestIntegrationTypeNullableJsonConverter), @@ -2740,6 +2820,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Letta.JsonConverters.PipelinesPreviewPipelineRequestProducerConfigVariant2TypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesPreviewPipelineRequestProducerConfigDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.PipelinesPreviewPipelineRequestProducerConfigDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.EnvironmentsSendMessageRequestMessageVariant1RoleJsonConverter), typeof(global::Letta.JsonConverters.EnvironmentsSendMessageRequestMessageVariant1RoleNullableJsonConverter), @@ -3100,6 +3184,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemVariant1AccesNullableJsonConverter), + typeof(global::Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyVersionJsonConverter), typeof(global::Letta.JsonConverters.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyVersionNullableJsonConverter), @@ -3112,6 +3200,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Letta.JsonConverters.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemVariant1AccesNullableJsonConverter), + typeof(global::Letta.JsonConverters.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.ScheduledMessagesListScheduledMessagesResponseScheduledMessageMessageMessageContentVariant1ItemVariant1TypeJsonConverter), typeof(global::Letta.JsonConverters.ScheduledMessagesListScheduledMessagesResponseScheduledMessageMessageMessageContentVariant1ItemVariant1TypeNullableJsonConverter), @@ -3224,6 +3316,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Letta.JsonConverters.PipelinesCreatePipelineResponsePipelineConfigVariant2TypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesCreatePipelineResponsePipelineConfigDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.PipelinesCreatePipelineResponsePipelineConfigDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesCreatePipelineResponseErrorCodeJsonConverter), typeof(global::Letta.JsonConverters.PipelinesCreatePipelineResponseErrorCodeNullableJsonConverter), @@ -3240,6 +3336,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Letta.JsonConverters.PipelinesListPipelinesResponsePipelineConfigVariant2TypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesListPipelinesResponsePipelineConfigDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.PipelinesListPipelinesResponsePipelineConfigDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesGetPipelineResponsePipelineIntegrationTypeJsonConverter), typeof(global::Letta.JsonConverters.PipelinesGetPipelineResponsePipelineIntegrationTypeNullableJsonConverter), @@ -3252,6 +3352,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Letta.JsonConverters.PipelinesGetPipelineResponsePipelineConfigVariant2TypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesGetPipelineResponsePipelineConfigDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.PipelinesGetPipelineResponsePipelineConfigDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesGetPipelineResponseErrorCodeJsonConverter), typeof(global::Letta.JsonConverters.PipelinesGetPipelineResponseErrorCodeNullableJsonConverter), @@ -3268,6 +3372,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineResponsePipelineConfigVariant2TypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineResponseErrorCodeJsonConverter), typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineResponseErrorCodeNullableJsonConverter), @@ -3288,6 +3396,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigVariant2TypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigResponseErrorCodeJsonConverter), typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigResponseErrorCodeNullableJsonConverter), @@ -3978,6 +4090,7 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.TemplatesCreateTemplateNoProjectRequestVariant2Type), TypeInfoPropertyName = "TemplatesCreateTemplateNoProjectRequestVariant2Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.TemplatesCreateTemplateNoProjectRequestDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.TemplatesCreateTemplateNoProjectRequestDiscriminatorType), TypeInfoPropertyName = "TemplatesCreateTemplateNoProjectRequestDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.TemplatesSaveTemplateVersionNoProjectRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.TemplatesSaveTemplateVersionNoProjectRequestBlockReconciliationStrategy), TypeInfoPropertyName = "TemplatesSaveTemplateVersionNoProjectRequestBlockReconciliationStrategy2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.TemplatesSaveTemplateVersionRequest))] @@ -3989,6 +4102,7 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.TemplatesCreateTemplateRequestVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.TemplatesCreateTemplateRequestVariant2Type), TypeInfoPropertyName = "TemplatesCreateTemplateRequestVariant2Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.TemplatesCreateTemplateRequestDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.TemplatesCreateTemplateRequestDiscriminatorType), TypeInfoPropertyName = "TemplatesCreateTemplateRequestDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.TemplatesUpdateCurrentTemplateFromAgentFileNoProjectRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.TemplatesRenameTemplateRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.TemplatesUpdateTemplateDescriptionRequest))] @@ -4004,6 +4118,7 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemVariant1Acces), TypeInfoPropertyName = "ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemVariant1Acces2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorType), TypeInfoPropertyName = "ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.ProjectsCreateProjectRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.MetadataSendFeedbackRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.MetadataSendFeedbackRequestFeature), TypeInfoPropertyName = "MetadataSendFeedbackRequestFeature2")] @@ -4027,6 +4142,7 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.MetadataSendTelemetryRequestEventVariant5Type), TypeInfoPropertyName = "MetadataSendTelemetryRequestEventVariant5Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.MetadataSendTelemetryRequestEventVariant5Data))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.MetadataSendTelemetryRequestEventDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.MetadataSendTelemetryRequestEventDiscriminatorType), TypeInfoPropertyName = "MetadataSendTelemetryRequestEventDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.ScheduledMessagesScheduleAgentMessageRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.ScheduledMessagesScheduleAgentMessageRequestMessage))] @@ -4064,6 +4180,7 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesCreatePipelineRequestProducerConfigVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesCreatePipelineRequestProducerConfigVariant2Type), TypeInfoPropertyName = "PipelinesCreatePipelineRequestProducerConfigVariant2Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesCreatePipelineRequestProducerConfigDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesCreatePipelineRequestProducerConfigDiscriminatorType), TypeInfoPropertyName = "PipelinesCreatePipelineRequestProducerConfigDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesUpdatePipelineRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesUpdatePipelineProducerConfigRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.ProducerConfig2), TypeInfoPropertyName = "ProducerConfig22")] @@ -4075,6 +4192,7 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant2Type), TypeInfoPropertyName = "PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant2Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorType), TypeInfoPropertyName = "PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesPreviewPipelineRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesPreviewPipelineRequestIntegrationType), TypeInfoPropertyName = "PipelinesPreviewPipelineRequestIntegrationType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.ProducerConfig3), TypeInfoPropertyName = "ProducerConfig32")] @@ -4086,6 +4204,7 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesPreviewPipelineRequestProducerConfigVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesPreviewPipelineRequestProducerConfigVariant2Type), TypeInfoPropertyName = "PipelinesPreviewPipelineRequestProducerConfigVariant2Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesPreviewPipelineRequestProducerConfigDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesPreviewPipelineRequestProducerConfigDiscriminatorType), TypeInfoPropertyName = "PipelinesPreviewPipelineRequestProducerConfigDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.EnvironmentsRegisterRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.EnvironmentsRegisterRequestMetadata))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.EnvironmentsSendMessageRequest))] @@ -4137,13 +4256,6 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.ListConversationMessagesOrder), TypeInfoPropertyName = "ListConversationMessagesOrder2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.ListGroupsOrder), TypeInfoPropertyName = "ListGroupsOrder2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.ListGroupMessagesOrder), TypeInfoPropertyName = "ListGroupMessagesOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.ListIdentitiesOrder), TypeInfoPropertyName = "ListIdentitiesOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.ListAgentsForIdentityOrder), TypeInfoPropertyName = "ListAgentsForIdentityOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.ListAgentsForIdentityIncludeItem), TypeInfoPropertyName = "ListAgentsForIdentityIncludeItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.ListBlocksForIdentityOrder), TypeInfoPropertyName = "ListBlocksForIdentityOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.ListInternalBlocksOrder), TypeInfoPropertyName = "ListInternalBlocksOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.ListAgentsForInternalBlockOrder), TypeInfoPropertyName = "ListAgentsForInternalBlockOrder2")] internal sealed partial class SourceGenerationContextChunk1 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -4695,6 +4807,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::Letta.JsonConverters.TemplatesCreateTemplateNoProjectRequestVariant2TypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.TemplatesCreateTemplateNoProjectRequestDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.TemplatesCreateTemplateNoProjectRequestDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.TemplatesSaveTemplateVersionNoProjectRequestBlockReconciliationStrategyJsonConverter), typeof(global::Letta.JsonConverters.TemplatesSaveTemplateVersionNoProjectRequestBlockReconciliationStrategyNullableJsonConverter), @@ -4711,6 +4827,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::Letta.JsonConverters.TemplatesCreateTemplateRequestVariant2TypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.TemplatesCreateTemplateRequestDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.TemplatesCreateTemplateRequestDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemVariant1TypeJsonConverter), typeof(global::Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemVariant1TypeNullableJsonConverter), @@ -4719,6 +4839,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemVariant1AccesNullableJsonConverter), + typeof(global::Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.MetadataSendFeedbackRequestFeatureJsonConverter), typeof(global::Letta.JsonConverters.MetadataSendFeedbackRequestFeatureNullableJsonConverter), @@ -4747,6 +4871,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::Letta.JsonConverters.MetadataSendTelemetryRequestEventVariant5TypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.MetadataSendTelemetryRequestEventDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.MetadataSendTelemetryRequestEventDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.ScheduledMessagesScheduleAgentMessageRequestMessageContentVariant1ItemVariant1TypeJsonConverter), typeof(global::Letta.JsonConverters.ScheduledMessagesScheduleAgentMessageRequestMessageContentVariant1ItemVariant1TypeNullableJsonConverter), @@ -4791,6 +4919,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::Letta.JsonConverters.PipelinesCreatePipelineRequestProducerConfigVariant2TypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesCreatePipelineRequestProducerConfigDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.PipelinesCreatePipelineRequestProducerConfigDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant1TypeJsonConverter), typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant1TypeNullableJsonConverter), @@ -4799,6 +4931,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant2TypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesPreviewPipelineRequestIntegrationTypeJsonConverter), typeof(global::Letta.JsonConverters.PipelinesPreviewPipelineRequestIntegrationTypeNullableJsonConverter), @@ -4811,6 +4947,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::Letta.JsonConverters.PipelinesPreviewPipelineRequestProducerConfigVariant2TypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesPreviewPipelineRequestProducerConfigDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.PipelinesPreviewPipelineRequestProducerConfigDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.EnvironmentsSendMessageRequestMessageVariant1RoleJsonConverter), typeof(global::Letta.JsonConverters.EnvironmentsSendMessageRequestMessageVariant1RoleNullableJsonConverter), @@ -5171,6 +5311,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemVariant1AccesNullableJsonConverter), + typeof(global::Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyVersionJsonConverter), typeof(global::Letta.JsonConverters.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyVersionNullableJsonConverter), @@ -5183,6 +5327,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::Letta.JsonConverters.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemVariant1AccesNullableJsonConverter), + typeof(global::Letta.JsonConverters.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.ScheduledMessagesListScheduledMessagesResponseScheduledMessageMessageMessageContentVariant1ItemVariant1TypeJsonConverter), typeof(global::Letta.JsonConverters.ScheduledMessagesListScheduledMessagesResponseScheduledMessageMessageMessageContentVariant1ItemVariant1TypeNullableJsonConverter), @@ -5295,6 +5443,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::Letta.JsonConverters.PipelinesCreatePipelineResponsePipelineConfigVariant2TypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesCreatePipelineResponsePipelineConfigDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.PipelinesCreatePipelineResponsePipelineConfigDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesCreatePipelineResponseErrorCodeJsonConverter), typeof(global::Letta.JsonConverters.PipelinesCreatePipelineResponseErrorCodeNullableJsonConverter), @@ -5311,6 +5463,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::Letta.JsonConverters.PipelinesListPipelinesResponsePipelineConfigVariant2TypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesListPipelinesResponsePipelineConfigDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.PipelinesListPipelinesResponsePipelineConfigDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesGetPipelineResponsePipelineIntegrationTypeJsonConverter), typeof(global::Letta.JsonConverters.PipelinesGetPipelineResponsePipelineIntegrationTypeNullableJsonConverter), @@ -5323,6 +5479,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::Letta.JsonConverters.PipelinesGetPipelineResponsePipelineConfigVariant2TypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesGetPipelineResponsePipelineConfigDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.PipelinesGetPipelineResponsePipelineConfigDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesGetPipelineResponseErrorCodeJsonConverter), typeof(global::Letta.JsonConverters.PipelinesGetPipelineResponseErrorCodeNullableJsonConverter), @@ -5339,6 +5499,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineResponsePipelineConfigVariant2TypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineResponseErrorCodeJsonConverter), typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineResponseErrorCodeNullableJsonConverter), @@ -5359,6 +5523,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigVariant2TypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigResponseErrorCodeJsonConverter), typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigResponseErrorCodeNullableJsonConverter), @@ -5770,6 +5938,13 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "ScheduledMessagesListScheduledMessagesResponseScheduledMessageMessageMessageContentVariant1ItemVariant2_97cf3dee86b43fa6")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.OneOf>, string>), TypeInfoPropertyName = "ScheduledMessagesRetrieveScheduledMessageResponseMessageMessageContentVariant1ItemVariant2_string_e6d48bff86b9f0ca")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "ScheduledMessagesRetrieveScheduledMessageResponseMessageMessageContentVariant1ItemVariant2_4c4e29f4c2923f40")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.ListIdentitiesOrder), TypeInfoPropertyName = "ListIdentitiesOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.ListAgentsForIdentityOrder), TypeInfoPropertyName = "ListAgentsForIdentityOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.ListAgentsForIdentityIncludeItem), TypeInfoPropertyName = "ListAgentsForIdentityIncludeItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.ListBlocksForIdentityOrder), TypeInfoPropertyName = "ListBlocksForIdentityOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.ListInternalBlocksOrder), TypeInfoPropertyName = "ListInternalBlocksOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.ListAgentsForInternalBlockOrder), TypeInfoPropertyName = "ListAgentsForInternalBlockOrder2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.ListInternalRunsOrder), TypeInfoPropertyName = "ListInternalRunsOrder2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.ListInternalRunsOrderBy), TypeInfoPropertyName = "ListInternalRunsOrderBy2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.ListInternalRunsDurationOperator2))] @@ -5959,6 +6134,7 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemVariant1Acces), TypeInfoPropertyName = "ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemVariant1Acces2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorType), TypeInfoPropertyName = "ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponse2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -5972,6 +6148,7 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemVariant1Acces), TypeInfoPropertyName = "ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemVariant1Acces2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorType), TypeInfoPropertyName = "ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponse2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.ClientSideAccessTokensDeleteClientSideAccessTokenResponse2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.ProjectsListProjectsResponse))] @@ -6090,6 +6267,7 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesCreatePipelineResponsePipelineConfigVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesCreatePipelineResponsePipelineConfigVariant2Type), TypeInfoPropertyName = "PipelinesCreatePipelineResponsePipelineConfigVariant2Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesCreatePipelineResponsePipelineConfigDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesCreatePipelineResponsePipelineConfigDiscriminatorType), TypeInfoPropertyName = "PipelinesCreatePipelineResponsePipelineConfigDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesCreatePipelineResponse2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesCreatePipelineResponseErrorCode), TypeInfoPropertyName = "PipelinesCreatePipelineResponseErrorCode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesListPipelinesResponse))] @@ -6105,6 +6283,7 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesListPipelinesResponsePipelineConfigVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesListPipelinesResponsePipelineConfigVariant2Type), TypeInfoPropertyName = "PipelinesListPipelinesResponsePipelineConfigVariant2Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesListPipelinesResponsePipelineConfigDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesListPipelinesResponsePipelineConfigDiscriminatorType), TypeInfoPropertyName = "PipelinesListPipelinesResponsePipelineConfigDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesCountPipelinesResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesGetPipelineResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesGetPipelineResponsePipeline))] @@ -6118,6 +6297,7 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesGetPipelineResponsePipelineConfigVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesGetPipelineResponsePipelineConfigVariant2Type), TypeInfoPropertyName = "PipelinesGetPipelineResponsePipelineConfigVariant2Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesGetPipelineResponsePipelineConfigDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesGetPipelineResponsePipelineConfigDiscriminatorType), TypeInfoPropertyName = "PipelinesGetPipelineResponsePipelineConfigDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesGetPipelineResponse2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesGetPipelineResponseErrorCode), TypeInfoPropertyName = "PipelinesGetPipelineResponseErrorCode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesUpdatePipelineResponse))] @@ -6132,6 +6312,7 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesUpdatePipelineResponsePipelineConfigVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesUpdatePipelineResponsePipelineConfigVariant2Type), TypeInfoPropertyName = "PipelinesUpdatePipelineResponsePipelineConfigVariant2Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesUpdatePipelineResponsePipelineConfigDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorType), TypeInfoPropertyName = "PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesUpdatePipelineResponse2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesUpdatePipelineResponseErrorCode), TypeInfoPropertyName = "PipelinesUpdatePipelineResponseErrorCode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesDeletePipelineResponse))] @@ -6149,6 +6330,7 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigVariant2Type), TypeInfoPropertyName = "PipelinesUpdatePipelineProducerConfigResponsePipelineConfigVariant2Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorType), TypeInfoPropertyName = "PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesUpdatePipelineProducerConfigResponse2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesUpdatePipelineProducerConfigResponseErrorCode), TypeInfoPropertyName = "PipelinesUpdatePipelineProducerConfigResponseErrorCode2_3")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.PipelinesUpdatePipelineProducerConfigResponse3))] @@ -6201,20 +6383,6 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.AnyOf, global::Letta.ToolCallDelta, object>))] internal sealed partial class SourceGenerationContextChunk2 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -6766,6 +6934,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::Letta.JsonConverters.TemplatesCreateTemplateNoProjectRequestVariant2TypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.TemplatesCreateTemplateNoProjectRequestDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.TemplatesCreateTemplateNoProjectRequestDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.TemplatesSaveTemplateVersionNoProjectRequestBlockReconciliationStrategyJsonConverter), typeof(global::Letta.JsonConverters.TemplatesSaveTemplateVersionNoProjectRequestBlockReconciliationStrategyNullableJsonConverter), @@ -6782,6 +6954,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::Letta.JsonConverters.TemplatesCreateTemplateRequestVariant2TypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.TemplatesCreateTemplateRequestDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.TemplatesCreateTemplateRequestDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemVariant1TypeJsonConverter), typeof(global::Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemVariant1TypeNullableJsonConverter), @@ -6790,6 +6966,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemVariant1AccesNullableJsonConverter), + typeof(global::Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.MetadataSendFeedbackRequestFeatureJsonConverter), typeof(global::Letta.JsonConverters.MetadataSendFeedbackRequestFeatureNullableJsonConverter), @@ -6818,6 +6998,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::Letta.JsonConverters.MetadataSendTelemetryRequestEventVariant5TypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.MetadataSendTelemetryRequestEventDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.MetadataSendTelemetryRequestEventDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.ScheduledMessagesScheduleAgentMessageRequestMessageContentVariant1ItemVariant1TypeJsonConverter), typeof(global::Letta.JsonConverters.ScheduledMessagesScheduleAgentMessageRequestMessageContentVariant1ItemVariant1TypeNullableJsonConverter), @@ -6862,6 +7046,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::Letta.JsonConverters.PipelinesCreatePipelineRequestProducerConfigVariant2TypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesCreatePipelineRequestProducerConfigDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.PipelinesCreatePipelineRequestProducerConfigDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant1TypeJsonConverter), typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant1TypeNullableJsonConverter), @@ -6870,6 +7058,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant2TypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesPreviewPipelineRequestIntegrationTypeJsonConverter), typeof(global::Letta.JsonConverters.PipelinesPreviewPipelineRequestIntegrationTypeNullableJsonConverter), @@ -6882,6 +7074,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::Letta.JsonConverters.PipelinesPreviewPipelineRequestProducerConfigVariant2TypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesPreviewPipelineRequestProducerConfigDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.PipelinesPreviewPipelineRequestProducerConfigDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.EnvironmentsSendMessageRequestMessageVariant1RoleJsonConverter), typeof(global::Letta.JsonConverters.EnvironmentsSendMessageRequestMessageVariant1RoleNullableJsonConverter), @@ -7242,6 +7438,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemVariant1AccesNullableJsonConverter), + typeof(global::Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyVersionJsonConverter), typeof(global::Letta.JsonConverters.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyVersionNullableJsonConverter), @@ -7254,6 +7454,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::Letta.JsonConverters.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemVariant1AccesNullableJsonConverter), + typeof(global::Letta.JsonConverters.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.ScheduledMessagesListScheduledMessagesResponseScheduledMessageMessageMessageContentVariant1ItemVariant1TypeJsonConverter), typeof(global::Letta.JsonConverters.ScheduledMessagesListScheduledMessagesResponseScheduledMessageMessageMessageContentVariant1ItemVariant1TypeNullableJsonConverter), @@ -7366,6 +7570,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::Letta.JsonConverters.PipelinesCreatePipelineResponsePipelineConfigVariant2TypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesCreatePipelineResponsePipelineConfigDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.PipelinesCreatePipelineResponsePipelineConfigDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesCreatePipelineResponseErrorCodeJsonConverter), typeof(global::Letta.JsonConverters.PipelinesCreatePipelineResponseErrorCodeNullableJsonConverter), @@ -7382,6 +7590,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::Letta.JsonConverters.PipelinesListPipelinesResponsePipelineConfigVariant2TypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesListPipelinesResponsePipelineConfigDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.PipelinesListPipelinesResponsePipelineConfigDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesGetPipelineResponsePipelineIntegrationTypeJsonConverter), typeof(global::Letta.JsonConverters.PipelinesGetPipelineResponsePipelineIntegrationTypeNullableJsonConverter), @@ -7394,6 +7606,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::Letta.JsonConverters.PipelinesGetPipelineResponsePipelineConfigVariant2TypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesGetPipelineResponsePipelineConfigDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.PipelinesGetPipelineResponsePipelineConfigDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesGetPipelineResponseErrorCodeJsonConverter), typeof(global::Letta.JsonConverters.PipelinesGetPipelineResponseErrorCodeNullableJsonConverter), @@ -7410,6 +7626,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineResponsePipelineConfigVariant2TypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineResponseErrorCodeJsonConverter), typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineResponseErrorCodeNullableJsonConverter), @@ -7430,6 +7650,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigVariant2TypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorTypeJsonConverter), + + typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorTypeNullableJsonConverter), + typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigResponseErrorCodeJsonConverter), typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigResponseErrorCodeNullableJsonConverter), @@ -7841,6 +8065,20 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "ScheduledMessagesListScheduledMessagesResponseScheduledMessageMessageMessageContentVariant1ItemVariant2_97cf3dee86b43fa6")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.OneOf>, string>), TypeInfoPropertyName = "ScheduledMessagesRetrieveScheduledMessageResponseMessageMessageContentVariant1ItemVariant2_string_e6d48bff86b9f0ca")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "ScheduledMessagesRetrieveScheduledMessageResponseMessageMessageContentVariant1ItemVariant2_4c4e29f4c2923f40")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Letta.AnyOf, global::Letta.ToolCallDelta, object>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -8325,6 +8563,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::Letta.JsonConverters.TemplatesCreateTemplateNoProjectRequestVariant1TypeNullableJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.TemplatesCreateTemplateNoProjectRequestVariant2TypeJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.TemplatesCreateTemplateNoProjectRequestVariant2TypeNullableJsonConverter()); + options.Converters.Add(new global::Letta.JsonConverters.TemplatesCreateTemplateNoProjectRequestDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::Letta.JsonConverters.TemplatesCreateTemplateNoProjectRequestDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.TemplatesSaveTemplateVersionNoProjectRequestBlockReconciliationStrategyJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.TemplatesSaveTemplateVersionNoProjectRequestBlockReconciliationStrategyNullableJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.TemplatesSaveTemplateVersionRequestBlockReconciliationStrategyJsonConverter()); @@ -8333,10 +8573,14 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::Letta.JsonConverters.TemplatesCreateTemplateRequestVariant1TypeNullableJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.TemplatesCreateTemplateRequestVariant2TypeJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.TemplatesCreateTemplateRequestVariant2TypeNullableJsonConverter()); + options.Converters.Add(new global::Letta.JsonConverters.TemplatesCreateTemplateRequestDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::Letta.JsonConverters.TemplatesCreateTemplateRequestDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemVariant1TypeJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemVariant1TypeNullableJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemVariant1AccesJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemVariant1AccesNullableJsonConverter()); + options.Converters.Add(new global::Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.MetadataSendFeedbackRequestFeatureJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.MetadataSendFeedbackRequestFeatureNullableJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.MetadataSendTelemetryRequestServiceJsonConverter()); @@ -8351,6 +8595,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::Letta.JsonConverters.MetadataSendTelemetryRequestEventVariant4TypeNullableJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.MetadataSendTelemetryRequestEventVariant5TypeJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.MetadataSendTelemetryRequestEventVariant5TypeNullableJsonConverter()); + options.Converters.Add(new global::Letta.JsonConverters.MetadataSendTelemetryRequestEventDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::Letta.JsonConverters.MetadataSendTelemetryRequestEventDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.ScheduledMessagesScheduleAgentMessageRequestMessageContentVariant1ItemVariant1TypeJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.ScheduledMessagesScheduleAgentMessageRequestMessageContentVariant1ItemVariant1TypeNullableJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.ScheduledMessagesScheduleAgentMessageRequestMessageContentVariant1ItemVariant2SourceTypeJsonConverter()); @@ -8373,16 +8619,22 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::Letta.JsonConverters.PipelinesCreatePipelineRequestProducerConfigVariant1TypeNullableJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.PipelinesCreatePipelineRequestProducerConfigVariant2TypeJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.PipelinesCreatePipelineRequestProducerConfigVariant2TypeNullableJsonConverter()); + options.Converters.Add(new global::Letta.JsonConverters.PipelinesCreatePipelineRequestProducerConfigDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::Letta.JsonConverters.PipelinesCreatePipelineRequestProducerConfigDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant1TypeJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant1TypeNullableJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant2TypeJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant2TypeNullableJsonConverter()); + options.Converters.Add(new global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.PipelinesPreviewPipelineRequestIntegrationTypeJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.PipelinesPreviewPipelineRequestIntegrationTypeNullableJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.PipelinesPreviewPipelineRequestProducerConfigVariant1TypeJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.PipelinesPreviewPipelineRequestProducerConfigVariant1TypeNullableJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.PipelinesPreviewPipelineRequestProducerConfigVariant2TypeJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.PipelinesPreviewPipelineRequestProducerConfigVariant2TypeNullableJsonConverter()); + options.Converters.Add(new global::Letta.JsonConverters.PipelinesPreviewPipelineRequestProducerConfigDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::Letta.JsonConverters.PipelinesPreviewPipelineRequestProducerConfigDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.EnvironmentsSendMessageRequestMessageVariant1RoleJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.EnvironmentsSendMessageRequestMessageVariant1RoleNullableJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.EnvironmentsSendMessageRequestMessageVariant1ContentVariant2ItemTypeJsonConverter()); @@ -8563,12 +8815,16 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemVariant1TypeNullableJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemVariant1AccesJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemVariant1AccesNullableJsonConverter()); + options.Converters.Add(new global::Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyVersionJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyVersionNullableJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemVariant1TypeJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemVariant1TypeNullableJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemVariant1AccesJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemVariant1AccesNullableJsonConverter()); + options.Converters.Add(new global::Letta.JsonConverters.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::Letta.JsonConverters.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.ScheduledMessagesListScheduledMessagesResponseScheduledMessageMessageMessageContentVariant1ItemVariant1TypeJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.ScheduledMessagesListScheduledMessagesResponseScheduledMessageMessageMessageContentVariant1ItemVariant1TypeNullableJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.ScheduledMessagesListScheduledMessagesResponseScheduledMessageMessageMessageContentVariant1ItemVariant2SourceTypeJsonConverter()); @@ -8625,6 +8881,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::Letta.JsonConverters.PipelinesCreatePipelineResponsePipelineConfigVariant1TypeNullableJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.PipelinesCreatePipelineResponsePipelineConfigVariant2TypeJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.PipelinesCreatePipelineResponsePipelineConfigVariant2TypeNullableJsonConverter()); + options.Converters.Add(new global::Letta.JsonConverters.PipelinesCreatePipelineResponsePipelineConfigDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::Letta.JsonConverters.PipelinesCreatePipelineResponsePipelineConfigDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.PipelinesCreatePipelineResponseErrorCodeJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.PipelinesCreatePipelineResponseErrorCodeNullableJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.PipelinesListPipelinesResponsePipelineIntegrationTypeJsonConverter()); @@ -8633,12 +8891,16 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::Letta.JsonConverters.PipelinesListPipelinesResponsePipelineConfigVariant1TypeNullableJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.PipelinesListPipelinesResponsePipelineConfigVariant2TypeJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.PipelinesListPipelinesResponsePipelineConfigVariant2TypeNullableJsonConverter()); + options.Converters.Add(new global::Letta.JsonConverters.PipelinesListPipelinesResponsePipelineConfigDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::Letta.JsonConverters.PipelinesListPipelinesResponsePipelineConfigDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.PipelinesGetPipelineResponsePipelineIntegrationTypeJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.PipelinesGetPipelineResponsePipelineIntegrationTypeNullableJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.PipelinesGetPipelineResponsePipelineConfigVariant1TypeJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.PipelinesGetPipelineResponsePipelineConfigVariant1TypeNullableJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.PipelinesGetPipelineResponsePipelineConfigVariant2TypeJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.PipelinesGetPipelineResponsePipelineConfigVariant2TypeNullableJsonConverter()); + options.Converters.Add(new global::Letta.JsonConverters.PipelinesGetPipelineResponsePipelineConfigDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::Letta.JsonConverters.PipelinesGetPipelineResponsePipelineConfigDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.PipelinesGetPipelineResponseErrorCodeJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.PipelinesGetPipelineResponseErrorCodeNullableJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.PipelinesUpdatePipelineResponsePipelineIntegrationTypeJsonConverter()); @@ -8647,6 +8909,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::Letta.JsonConverters.PipelinesUpdatePipelineResponsePipelineConfigVariant1TypeNullableJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.PipelinesUpdatePipelineResponsePipelineConfigVariant2TypeJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.PipelinesUpdatePipelineResponsePipelineConfigVariant2TypeNullableJsonConverter()); + options.Converters.Add(new global::Letta.JsonConverters.PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::Letta.JsonConverters.PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.PipelinesUpdatePipelineResponseErrorCodeJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.PipelinesUpdatePipelineResponseErrorCodeNullableJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.PipelinesDeletePipelineResponseErrorCodeJsonConverter()); @@ -8657,6 +8921,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigVariant1TypeNullableJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigVariant2TypeJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigVariant2TypeNullableJsonConverter()); + options.Converters.Add(new global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigResponseErrorCodeJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigResponseErrorCodeNullableJsonConverter()); options.Converters.Add(new global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigResponseErrorCode2JsonConverter()); diff --git a/src/libs/Letta/Generated/Letta.JsonSerializerContextTypes.g.cs b/src/libs/Letta/Generated/Letta.JsonSerializerContextTypes.g.cs index 083aeb7d..e1ef5836 100644 --- a/src/libs/Letta/Generated/Letta.JsonSerializerContextTypes.g.cs +++ b/src/libs/Letta/Generated/Letta.JsonSerializerContextTypes.g.cs @@ -2912,2375 +2912,2431 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Letta.TemplatesSaveTemplateVersionNoProjectRequest? Type721 { get; set; } + public global::Letta.TemplatesCreateTemplateNoProjectRequestDiscriminatorType? Type721 { get; set; } /// /// /// - public global::Letta.TemplatesSaveTemplateVersionNoProjectRequestBlockReconciliationStrategy? Type722 { get; set; } + public global::Letta.TemplatesSaveTemplateVersionNoProjectRequest? Type722 { get; set; } /// /// /// - public global::Letta.TemplatesSaveTemplateVersionRequest? Type723 { get; set; } + public global::Letta.TemplatesSaveTemplateVersionNoProjectRequestBlockReconciliationStrategy? Type723 { get; set; } /// /// /// - public global::Letta.TemplatesSaveTemplateVersionRequestBlockReconciliationStrategy? Type724 { get; set; } + public global::Letta.TemplatesSaveTemplateVersionRequest? Type724 { get; set; } /// /// /// - public global::Letta.TemplatesForkTemplateRequest? Type725 { get; set; } + public global::Letta.TemplatesSaveTemplateVersionRequestBlockReconciliationStrategy? Type725 { get; set; } /// /// /// - public global::Letta.TemplatesCreateTemplateRequest? Type726 { get; set; } + public global::Letta.TemplatesForkTemplateRequest? Type726 { get; set; } /// /// /// - public global::Letta.TemplatesCreateTemplateRequestVariant1? Type727 { get; set; } + public global::Letta.TemplatesCreateTemplateRequest? Type727 { get; set; } /// /// /// - public global::Letta.TemplatesCreateTemplateRequestVariant1Type? Type728 { get; set; } + public global::Letta.TemplatesCreateTemplateRequestVariant1? Type728 { get; set; } /// /// /// - public global::Letta.TemplatesCreateTemplateRequestVariant2? Type729 { get; set; } + public global::Letta.TemplatesCreateTemplateRequestVariant1Type? Type729 { get; set; } /// /// /// - public global::Letta.TemplatesCreateTemplateRequestVariant2Type? Type730 { get; set; } + public global::Letta.TemplatesCreateTemplateRequestVariant2? Type730 { get; set; } /// /// /// - public global::Letta.TemplatesCreateTemplateRequestDiscriminator? Type731 { get; set; } + public global::Letta.TemplatesCreateTemplateRequestVariant2Type? Type731 { get; set; } /// /// /// - public global::Letta.TemplatesUpdateCurrentTemplateFromAgentFileNoProjectRequest? Type732 { get; set; } + public global::Letta.TemplatesCreateTemplateRequestDiscriminator? Type732 { get; set; } /// /// /// - public global::Letta.TemplatesRenameTemplateRequest? Type733 { get; set; } + public global::Letta.TemplatesCreateTemplateRequestDiscriminatorType? Type733 { get; set; } /// /// /// - public global::Letta.TemplatesUpdateTemplateDescriptionRequest? Type734 { get; set; } + public global::Letta.TemplatesUpdateCurrentTemplateFromAgentFileNoProjectRequest? Type734 { get; set; } /// /// /// - public global::Letta.TemplatesMigrateDeploymentRequest? Type735 { get; set; } + public global::Letta.TemplatesRenameTemplateRequest? Type735 { get; set; } /// /// /// - public global::Letta.TemplatesRollbackTemplateNoProjectRequest? Type736 { get; set; } + public global::Letta.TemplatesUpdateTemplateDescriptionRequest? Type736 { get; set; } /// /// /// - public global::Letta.TemplatesRollbackTemplateRequest? Type737 { get; set; } + public global::Letta.TemplatesMigrateDeploymentRequest? Type737 { get; set; } /// /// /// - public global::Letta.TemplatesUpdateCurrentTemplateFromAgentFileRequest? Type738 { get; set; } + public global::Letta.TemplatesRollbackTemplateNoProjectRequest? Type738 { get; set; } /// /// /// - public global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenRequest? Type739 { get; set; } + public global::Letta.TemplatesRollbackTemplateRequest? Type739 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type740 { get; set; } + public global::Letta.TemplatesUpdateCurrentTemplateFromAgentFileRequest? Type740 { get; set; } /// /// /// - public global::Letta.PolicyItem? Type741 { get; set; } + public global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenRequest? Type741 { get; set; } /// /// /// - public global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemVariant1? Type742 { get; set; } + public global::System.Collections.Generic.IList? Type742 { get; set; } /// /// /// - public global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemVariant1Type? Type743 { get; set; } + public global::Letta.PolicyItem? Type743 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type744 { get; set; } + public global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemVariant1? Type744 { get; set; } /// /// /// - public global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemVariant1Acces? Type745 { get; set; } + public global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemVariant1Type? Type745 { get; set; } /// /// /// - public global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminator? Type746 { get; set; } + public global::System.Collections.Generic.IList? Type746 { get; set; } /// /// /// - public global::Letta.ProjectsCreateProjectRequest? Type747 { get; set; } + public global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemVariant1Acces? Type747 { get; set; } /// /// /// - public global::Letta.MetadataSendFeedbackRequest? Type748 { get; set; } + public global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminator? Type748 { get; set; } /// /// /// - public global::Letta.MetadataSendFeedbackRequestFeature? Type749 { get; set; } + public global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorType? Type749 { get; set; } /// /// /// - public global::Letta.MetadataSendTelemetryRequest? Type750 { get; set; } + public global::Letta.ProjectsCreateProjectRequest? Type750 { get; set; } /// /// /// - public global::Letta.MetadataSendTelemetryRequestService? Type751 { get; set; } + public global::Letta.MetadataSendFeedbackRequest? Type751 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type752 { get; set; } + public global::Letta.MetadataSendFeedbackRequestFeature? Type752 { get; set; } /// /// /// - public global::Letta.EventsItem? Type753 { get; set; } + public global::Letta.MetadataSendTelemetryRequest? Type753 { get; set; } /// /// /// - public global::Letta.MetadataSendTelemetryRequestEventVariant1? Type754 { get; set; } + public global::Letta.MetadataSendTelemetryRequestService? Type754 { get; set; } /// /// /// - public global::Letta.MetadataSendTelemetryRequestEventVariant1Type? Type755 { get; set; } + public global::System.Collections.Generic.IList? Type755 { get; set; } /// /// /// - public global::Letta.MetadataSendTelemetryRequestEventVariant1Data? Type756 { get; set; } + public global::Letta.EventsItem? Type756 { get; set; } /// /// /// - public global::Letta.MetadataSendTelemetryRequestEventVariant2? Type757 { get; set; } + public global::Letta.MetadataSendTelemetryRequestEventVariant1? Type757 { get; set; } /// /// /// - public global::Letta.MetadataSendTelemetryRequestEventVariant2Type? Type758 { get; set; } + public global::Letta.MetadataSendTelemetryRequestEventVariant1Type? Type758 { get; set; } /// /// /// - public global::Letta.MetadataSendTelemetryRequestEventVariant2Data? Type759 { get; set; } + public global::Letta.MetadataSendTelemetryRequestEventVariant1Data? Type759 { get; set; } /// /// /// - public global::Letta.MetadataSendTelemetryRequestEventVariant3? Type760 { get; set; } + public global::Letta.MetadataSendTelemetryRequestEventVariant2? Type760 { get; set; } /// /// /// - public global::Letta.MetadataSendTelemetryRequestEventVariant3Type? Type761 { get; set; } + public global::Letta.MetadataSendTelemetryRequestEventVariant2Type? Type761 { get; set; } /// /// /// - public global::Letta.MetadataSendTelemetryRequestEventVariant3Data? Type762 { get; set; } + public global::Letta.MetadataSendTelemetryRequestEventVariant2Data? Type762 { get; set; } /// /// /// - public global::Letta.MetadataSendTelemetryRequestEventVariant4? Type763 { get; set; } + public global::Letta.MetadataSendTelemetryRequestEventVariant3? Type763 { get; set; } /// /// /// - public global::Letta.MetadataSendTelemetryRequestEventVariant4Type? Type764 { get; set; } + public global::Letta.MetadataSendTelemetryRequestEventVariant3Type? Type764 { get; set; } /// /// /// - public global::Letta.MetadataSendTelemetryRequestEventVariant4Data? Type765 { get; set; } + public global::Letta.MetadataSendTelemetryRequestEventVariant3Data? Type765 { get; set; } /// /// /// - public global::Letta.MetadataSendTelemetryRequestEventVariant5? Type766 { get; set; } + public global::Letta.MetadataSendTelemetryRequestEventVariant4? Type766 { get; set; } /// /// /// - public global::Letta.MetadataSendTelemetryRequestEventVariant5Type? Type767 { get; set; } + public global::Letta.MetadataSendTelemetryRequestEventVariant4Type? Type767 { get; set; } /// /// /// - public global::Letta.MetadataSendTelemetryRequestEventVariant5Data? Type768 { get; set; } + public global::Letta.MetadataSendTelemetryRequestEventVariant4Data? Type768 { get; set; } /// /// /// - public global::Letta.MetadataSendTelemetryRequestEventDiscriminator? Type769 { get; set; } + public global::Letta.MetadataSendTelemetryRequestEventVariant5? Type769 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesScheduleAgentMessageRequest? Type770 { get; set; } + public global::Letta.MetadataSendTelemetryRequestEventVariant5Type? Type770 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type771 { get; set; } + public global::Letta.MetadataSendTelemetryRequestEventVariant5Data? Type771 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesScheduleAgentMessageRequestMessage? Type772 { get; set; } + public global::Letta.MetadataSendTelemetryRequestEventDiscriminator? Type772 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesScheduleAgentMessageRequestMessageContentVariant1ItemVariant1? Type773 { get; set; } + public global::Letta.MetadataSendTelemetryRequestEventDiscriminatorType? Type773 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesScheduleAgentMessageRequestMessageContentVariant1ItemVariant1Type? Type774 { get; set; } + public global::Letta.ScheduledMessagesScheduleAgentMessageRequest? Type774 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesScheduleAgentMessageRequestMessageContentVariant1ItemVariant2? Type775 { get; set; } + public global::System.Collections.Generic.IList? Type775 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesScheduleAgentMessageRequestMessageContentVariant1ItemVariant2Source? Type776 { get; set; } + public global::Letta.ScheduledMessagesScheduleAgentMessageRequestMessage? Type776 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesScheduleAgentMessageRequestMessageContentVariant1ItemVariant2SourceType? Type777 { get; set; } + public global::Letta.ScheduledMessagesScheduleAgentMessageRequestMessageContentVariant1ItemVariant1? Type777 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesScheduleAgentMessageRequestMessageContentVariant1ItemVariant2Type? Type778 { get; set; } + public global::Letta.ScheduledMessagesScheduleAgentMessageRequestMessageContentVariant1ItemVariant1Type? Type778 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesScheduleAgentMessageRequestMessageRole? Type779 { get; set; } + public global::Letta.ScheduledMessagesScheduleAgentMessageRequestMessageContentVariant1ItemVariant2? Type779 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesScheduleAgentMessageRequestMessageType? Type780 { get; set; } + public global::Letta.ScheduledMessagesScheduleAgentMessageRequestMessageContentVariant1ItemVariant2Source? Type780 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type781 { get; set; } + public global::Letta.ScheduledMessagesScheduleAgentMessageRequestMessageContentVariant1ItemVariant2SourceType? Type781 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesScheduleAgentMessageRequestIncludeReturnMessageType? Type782 { get; set; } + public global::Letta.ScheduledMessagesScheduleAgentMessageRequestMessageContentVariant1ItemVariant2Type? Type782 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesScheduleAgentMessageRequestScheduleVariant1? Type783 { get; set; } + public global::Letta.ScheduledMessagesScheduleAgentMessageRequestMessageRole? Type783 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesScheduleAgentMessageRequestScheduleVariant1Type? Type784 { get; set; } + public global::Letta.ScheduledMessagesScheduleAgentMessageRequestMessageType? Type784 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesScheduleAgentMessageRequestScheduleVariant2? Type785 { get; set; } + public global::System.Collections.Generic.IList? Type785 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesScheduleAgentMessageRequestScheduleVariant2Type? Type786 { get; set; } + public global::Letta.ScheduledMessagesScheduleAgentMessageRequestIncludeReturnMessageType? Type786 { get; set; } /// /// /// - public global::Letta.FeedsCreateFeedRequest? Type787 { get; set; } + public global::Letta.ScheduledMessagesScheduleAgentMessageRequestScheduleVariant1? Type787 { get; set; } /// /// /// - public global::Letta.FeedsPublishMessagesRequest? Type788 { get; set; } + public global::Letta.ScheduledMessagesScheduleAgentMessageRequestScheduleVariant1Type? Type788 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type789 { get; set; } + public global::Letta.ScheduledMessagesScheduleAgentMessageRequestScheduleVariant2? Type789 { get; set; } /// /// /// - public global::Letta.FeedsPublishMessagesRequestMessage? Type790 { get; set; } + public global::Letta.ScheduledMessagesScheduleAgentMessageRequestScheduleVariant2Type? Type790 { get; set; } /// /// /// - public global::Letta.FeedsSubscribeAgentRequest? Type791 { get; set; } + public global::Letta.FeedsCreateFeedRequest? Type791 { get; set; } /// /// /// - public global::Letta.FeedsUpdateSubscriptionRequest? Type792 { get; set; } + public global::Letta.FeedsPublishMessagesRequest? Type792 { get; set; } /// /// /// - public global::Letta.FeedsUnsubscribeAgentRequest? Type793 { get; set; } + public global::System.Collections.Generic.IList? Type793 { get; set; } /// /// /// - public global::Letta.FeedsBackfillSubscriptionRequest? Type794 { get; set; } + public global::Letta.FeedsPublishMessagesRequestMessage? Type794 { get; set; } /// /// /// - public global::Letta.FeedsUpdateAllSubscriptionsCronRequest? Type795 { get; set; } + public global::Letta.FeedsSubscribeAgentRequest? Type795 { get; set; } /// /// /// - public global::Letta.PipelinesCreatePipelineRequest? Type796 { get; set; } + public global::Letta.FeedsUpdateSubscriptionRequest? Type796 { get; set; } /// /// /// - public global::Letta.PipelinesCreatePipelineRequestIntegrationType? Type797 { get; set; } + public global::Letta.FeedsUnsubscribeAgentRequest? Type797 { get; set; } /// /// /// - public global::Letta.ProducerConfig? Type798 { get; set; } + public global::Letta.FeedsBackfillSubscriptionRequest? Type798 { get; set; } /// /// /// - public global::Letta.PipelinesCreatePipelineRequestProducerConfigVariant1? Type799 { get; set; } + public global::Letta.FeedsUpdateAllSubscriptionsCronRequest? Type799 { get; set; } /// /// /// - public global::Letta.PipelinesCreatePipelineRequestProducerConfigVariant1Type? Type800 { get; set; } + public global::Letta.PipelinesCreatePipelineRequest? Type800 { get; set; } /// /// /// - public global::Letta.PipelinesCreatePipelineRequestProducerConfigVariant1Data? Type801 { get; set; } + public global::Letta.PipelinesCreatePipelineRequestIntegrationType? Type801 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type802 { get; set; } + public global::Letta.ProducerConfig? Type802 { get; set; } /// /// /// - public global::Letta.PipelinesCreatePipelineRequestProducerConfigVariant1DataChannel? Type803 { get; set; } + public global::Letta.PipelinesCreatePipelineRequestProducerConfigVariant1? Type803 { get; set; } /// /// /// - public global::Letta.PipelinesCreatePipelineRequestProducerConfigVariant2? Type804 { get; set; } + public global::Letta.PipelinesCreatePipelineRequestProducerConfigVariant1Type? Type804 { get; set; } /// /// /// - public global::Letta.PipelinesCreatePipelineRequestProducerConfigVariant2Type? Type805 { get; set; } + public global::Letta.PipelinesCreatePipelineRequestProducerConfigVariant1Data? Type805 { get; set; } /// /// /// - public global::Letta.PipelinesCreatePipelineRequestProducerConfigDiscriminator? Type806 { get; set; } + public global::System.Collections.Generic.IList? Type806 { get; set; } /// /// /// - public global::Letta.PipelinesUpdatePipelineRequest? Type807 { get; set; } + public global::Letta.PipelinesCreatePipelineRequestProducerConfigVariant1DataChannel? Type807 { get; set; } /// /// /// - public global::Letta.PipelinesUpdatePipelineProducerConfigRequest? Type808 { get; set; } + public global::Letta.PipelinesCreatePipelineRequestProducerConfigVariant2? Type808 { get; set; } /// /// /// - public global::Letta.ProducerConfig2? Type809 { get; set; } + public global::Letta.PipelinesCreatePipelineRequestProducerConfigVariant2Type? Type809 { get; set; } /// /// /// - public global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant1? Type810 { get; set; } + public global::Letta.PipelinesCreatePipelineRequestProducerConfigDiscriminator? Type810 { get; set; } /// /// /// - public global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant1Type? Type811 { get; set; } + public global::Letta.PipelinesCreatePipelineRequestProducerConfigDiscriminatorType? Type811 { get; set; } /// /// /// - public global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant1Data? Type812 { get; set; } + public global::Letta.PipelinesUpdatePipelineRequest? Type812 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type813 { get; set; } + public global::Letta.PipelinesUpdatePipelineProducerConfigRequest? Type813 { get; set; } /// /// /// - public global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant1DataChannel? Type814 { get; set; } + public global::Letta.ProducerConfig2? Type814 { get; set; } /// /// /// - public global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant2? Type815 { get; set; } + public global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant1? Type815 { get; set; } /// /// /// - public global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant2Type? Type816 { get; set; } + public global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant1Type? Type816 { get; set; } /// /// /// - public global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminator? Type817 { get; set; } + public global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant1Data? Type817 { get; set; } /// /// /// - public global::Letta.PipelinesPreviewPipelineRequest? Type818 { get; set; } + public global::System.Collections.Generic.IList? Type818 { get; set; } /// /// /// - public global::Letta.PipelinesPreviewPipelineRequestIntegrationType? Type819 { get; set; } + public global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant1DataChannel? Type819 { get; set; } /// /// /// - public global::Letta.ProducerConfig3? Type820 { get; set; } + public global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant2? Type820 { get; set; } /// /// /// - public global::Letta.PipelinesPreviewPipelineRequestProducerConfigVariant1? Type821 { get; set; } + public global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant2Type? Type821 { get; set; } /// /// /// - public global::Letta.PipelinesPreviewPipelineRequestProducerConfigVariant1Type? Type822 { get; set; } + public global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminator? Type822 { get; set; } /// /// /// - public global::Letta.PipelinesPreviewPipelineRequestProducerConfigVariant1Data? Type823 { get; set; } + public global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorType? Type823 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type824 { get; set; } + public global::Letta.PipelinesPreviewPipelineRequest? Type824 { get; set; } /// /// /// - public global::Letta.PipelinesPreviewPipelineRequestProducerConfigVariant1DataChannel? Type825 { get; set; } + public global::Letta.PipelinesPreviewPipelineRequestIntegrationType? Type825 { get; set; } /// /// /// - public global::Letta.PipelinesPreviewPipelineRequestProducerConfigVariant2? Type826 { get; set; } + public global::Letta.ProducerConfig3? Type826 { get; set; } /// /// /// - public global::Letta.PipelinesPreviewPipelineRequestProducerConfigVariant2Type? Type827 { get; set; } + public global::Letta.PipelinesPreviewPipelineRequestProducerConfigVariant1? Type827 { get; set; } /// /// /// - public global::Letta.PipelinesPreviewPipelineRequestProducerConfigDiscriminator? Type828 { get; set; } + public global::Letta.PipelinesPreviewPipelineRequestProducerConfigVariant1Type? Type828 { get; set; } /// /// /// - public global::Letta.EnvironmentsRegisterRequest? Type829 { get; set; } + public global::Letta.PipelinesPreviewPipelineRequestProducerConfigVariant1Data? Type829 { get; set; } /// /// /// - public global::Letta.EnvironmentsRegisterRequestMetadata? Type830 { get; set; } + public global::System.Collections.Generic.IList? Type830 { get; set; } /// /// /// - public global::Letta.EnvironmentsSendMessageRequest? Type831 { get; set; } + public global::Letta.PipelinesPreviewPipelineRequestProducerConfigVariant1DataChannel? Type831 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type832 { get; set; } + public global::Letta.PipelinesPreviewPipelineRequestProducerConfigVariant2? Type832 { get; set; } /// /// /// - public global::Letta.OneOf? Type833 { get; set; } + public global::Letta.PipelinesPreviewPipelineRequestProducerConfigVariant2Type? Type833 { get; set; } /// /// /// - public global::Letta.EnvironmentsSendMessageRequestMessageVariant1? Type834 { get; set; } + public global::Letta.PipelinesPreviewPipelineRequestProducerConfigDiscriminator? Type834 { get; set; } /// /// /// - public global::Letta.EnvironmentsSendMessageRequestMessageVariant1Role? Type835 { get; set; } + public global::Letta.PipelinesPreviewPipelineRequestProducerConfigDiscriminatorType? Type835 { get; set; } /// /// /// - public global::Letta.OneOf>? Type836 { get; set; } + public global::Letta.EnvironmentsRegisterRequest? Type836 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type837 { get; set; } + public global::Letta.EnvironmentsRegisterRequestMetadata? Type837 { get; set; } /// /// /// - public global::Letta.EnvironmentsSendMessageRequestMessageVariant1ContentVariant2Item? Type838 { get; set; } + public global::Letta.EnvironmentsSendMessageRequest? Type838 { get; set; } /// /// /// - public global::Letta.EnvironmentsSendMessageRequestMessageVariant1ContentVariant2ItemType? Type839 { get; set; } + public global::System.Collections.Generic.IList>? Type839 { get; set; } /// /// /// - public global::Letta.EnvironmentsSendMessageRequestMessageVariant2? Type840 { get; set; } + public global::Letta.OneOf? Type840 { get; set; } /// /// /// - public global::Letta.EnvironmentsSendMessageRequestMessageVariant2Type? Type841 { get; set; } + public global::Letta.EnvironmentsSendMessageRequestMessageVariant1? Type841 { get; set; } /// /// /// - public global::Letta.EnvironmentsSendMessageRequestMessageVariant2ApprovalVariant1? Type842 { get; set; } + public global::Letta.EnvironmentsSendMessageRequestMessageVariant1Role? Type842 { get; set; } /// /// /// - public global::Letta.EnvironmentsSendMessageRequestMessageVariant2ApprovalVariant1Type? Type843 { get; set; } + public global::Letta.OneOf>? Type843 { get; set; } /// /// /// - public global::Letta.OneOf>? Type844 { get; set; } + public global::System.Collections.Generic.IList? Type844 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type845 { get; set; } + public global::Letta.EnvironmentsSendMessageRequestMessageVariant1ContentVariant2Item? Type845 { get; set; } /// /// /// - public global::Letta.EnvironmentsSendMessageRequestMessageVariant2ApprovalVariant1ToolReturnVariant2Item? Type846 { get; set; } + public global::Letta.EnvironmentsSendMessageRequestMessageVariant1ContentVariant2ItemType? Type846 { get; set; } /// /// /// - public global::Letta.EnvironmentsSendMessageRequestMessageVariant2ApprovalVariant1ToolReturnVariant2ItemType? Type847 { get; set; } + public global::Letta.EnvironmentsSendMessageRequestMessageVariant2? Type847 { get; set; } /// /// /// - public global::Letta.EnvironmentsSendMessageRequestMessageVariant2ApprovalVariant1Status? Type848 { get; set; } + public global::Letta.EnvironmentsSendMessageRequestMessageVariant2Type? Type848 { get; set; } /// /// /// - public global::Letta.EnvironmentsSendMessageRequestMessageVariant2ApprovalVariant2? Type849 { get; set; } + public global::Letta.EnvironmentsSendMessageRequestMessageVariant2ApprovalVariant1? Type849 { get; set; } /// /// /// - public global::Letta.EnvironmentsSendMessageRequestMessageVariant2ApprovalVariant2Type? Type850 { get; set; } + public global::Letta.EnvironmentsSendMessageRequestMessageVariant2ApprovalVariant1Type? Type850 { get; set; } /// /// /// - public global::Letta.SandboxesCreateSandboxRequest? Type851 { get; set; } + public global::Letta.OneOf>? Type851 { get; set; } /// /// /// - public global::Letta.ListArchivesOrder? Type852 { get; set; } + public global::System.Collections.Generic.IList? Type852 { get; set; } /// /// /// - public global::Letta.ListAgentsForArchiveOrder? Type853 { get; set; } + public global::Letta.EnvironmentsSendMessageRequestMessageVariant2ApprovalVariant1ToolReturnVariant2Item? Type853 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type854 { get; set; } + public global::Letta.EnvironmentsSendMessageRequestMessageVariant2ApprovalVariant1ToolReturnVariant2ItemType? Type854 { get; set; } /// /// /// - public global::Letta.ListAgentsForArchiveIncludeItem? Type855 { get; set; } + public global::Letta.EnvironmentsSendMessageRequestMessageVariant2ApprovalVariant1Status? Type855 { get; set; } /// /// /// - public global::Letta.ListToolsOrder? Type856 { get; set; } + public global::Letta.EnvironmentsSendMessageRequestMessageVariant2ApprovalVariant2? Type856 { get; set; } /// /// /// - public global::Letta.ListFoldersOrder? Type857 { get; set; } + public global::Letta.EnvironmentsSendMessageRequestMessageVariant2ApprovalVariant2Type? Type857 { get; set; } /// /// /// - public global::Letta.ListAgentsForFolderOrder? Type858 { get; set; } + public global::Letta.SandboxesCreateSandboxRequest? Type858 { get; set; } /// /// /// - public global::Letta.ListFolderPassagesOrder? Type859 { get; set; } + public global::Letta.ListArchivesOrder? Type859 { get; set; } /// /// /// - public global::Letta.ListFilesForFolderOrder? Type860 { get; set; } + public global::Letta.ListAgentsForArchiveOrder? Type860 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type861 { get; set; } + public global::System.Collections.Generic.IList? Type861 { get; set; } /// /// /// - public global::Letta.ListAgentsIncludeItem? Type862 { get; set; } + public global::Letta.ListAgentsForArchiveIncludeItem? Type862 { get; set; } /// /// /// - public global::Letta.ListAgentsOrder? Type863 { get; set; } + public global::Letta.ListToolsOrder? Type863 { get; set; } /// /// /// - public global::Letta.ListAgentsOrderBy? Type864 { get; set; } + public global::Letta.ListFoldersOrder? Type864 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type865 { get; set; } + public global::Letta.ListAgentsForFolderOrder? Type865 { get; set; } /// /// /// - public global::Letta.RetrieveAgentIncludeItem? Type866 { get; set; } + public global::Letta.ListFolderPassagesOrder? Type866 { get; set; } /// /// /// - public global::Letta.ListToolsForAgentOrder? Type867 { get; set; } + public global::Letta.ListFilesForFolderOrder? Type867 { get; set; } /// /// /// - public global::Letta.ListAgentSourcesOrder? Type868 { get; set; } + public global::System.Collections.Generic.IList? Type868 { get; set; } /// /// /// - public global::Letta.ListFoldersForAgentOrder? Type869 { get; set; } + public global::Letta.ListAgentsIncludeItem? Type869 { get; set; } /// /// /// - public global::Letta.ListFilesForAgentOrder? Type870 { get; set; } + public global::Letta.ListAgentsOrder? Type870 { get; set; } /// /// /// - public global::Letta.ListCoreMemoryBlocksOrder? Type871 { get; set; } + public global::Letta.ListAgentsOrderBy? Type871 { get; set; } /// /// /// - public global::Letta.SearchArchivalMemoryTagMatchMode? Type872 { get; set; } + public global::System.Collections.Generic.IList? Type872 { get; set; } /// /// /// - public global::Letta.ListMessagesOrder? Type873 { get; set; } + public global::Letta.RetrieveAgentIncludeItem? Type873 { get; set; } /// /// /// - public global::Letta.ListGroupsForAgentOrder? Type874 { get; set; } + public global::Letta.ListToolsForAgentOrder? Type874 { get; set; } /// /// /// - public global::Letta.ListConversationsOrder? Type875 { get; set; } + public global::Letta.ListAgentSourcesOrder? Type875 { get; set; } /// /// /// - public global::Letta.ListConversationsOrderBy? Type876 { get; set; } + public global::Letta.ListFoldersForAgentOrder? Type876 { get; set; } /// /// /// - public global::Letta.ListConversationMessagesOrder? Type877 { get; set; } + public global::Letta.ListFilesForAgentOrder? Type877 { get; set; } /// /// /// - public global::Letta.ListGroupsOrder? Type878 { get; set; } + public global::Letta.ListCoreMemoryBlocksOrder? Type878 { get; set; } /// /// /// - public global::Letta.ListGroupMessagesOrder? Type879 { get; set; } + public global::Letta.SearchArchivalMemoryTagMatchMode? Type879 { get; set; } /// /// /// - public global::Letta.ListIdentitiesOrder? Type880 { get; set; } + public global::Letta.ListMessagesOrder? Type880 { get; set; } /// /// /// - public global::Letta.ListAgentsForIdentityOrder? Type881 { get; set; } + public global::Letta.ListGroupsForAgentOrder? Type881 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type882 { get; set; } + public global::Letta.ListConversationsOrder? Type882 { get; set; } /// /// /// - public global::Letta.ListAgentsForIdentityIncludeItem? Type883 { get; set; } + public global::Letta.ListConversationsOrderBy? Type883 { get; set; } /// /// /// - public global::Letta.ListBlocksForIdentityOrder? Type884 { get; set; } + public global::Letta.ListConversationMessagesOrder? Type884 { get; set; } /// /// /// - public global::Letta.ListInternalBlocksOrder? Type885 { get; set; } + public global::Letta.ListGroupsOrder? Type885 { get; set; } /// /// /// - public global::Letta.ListAgentsForInternalBlockOrder? Type886 { get; set; } + public global::Letta.ListGroupMessagesOrder? Type886 { get; set; } /// /// /// - public global::Letta.ListInternalRunsOrder? Type887 { get; set; } + public global::Letta.ListIdentitiesOrder? Type887 { get; set; } /// /// /// - public global::Letta.ListInternalRunsOrderBy? Type888 { get; set; } + public global::Letta.ListAgentsForIdentityOrder? Type888 { get; set; } /// /// /// - public global::Letta.ListInternalRunsDurationOperator2? Type889 { get; set; } + public global::System.Collections.Generic.IList? Type889 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type890 { get; set; } + public global::Letta.ListAgentsForIdentityIncludeItem? Type890 { get; set; } /// /// /// - public global::Letta.ListBlocksOrder? Type891 { get; set; } + public global::Letta.ListBlocksForIdentityOrder? Type891 { get; set; } /// /// /// - public global::Letta.ListAgentsForBlockOrder? Type892 { get; set; } + public global::Letta.ListInternalBlocksOrder? Type892 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type893 { get; set; } + public global::Letta.ListAgentsForInternalBlockOrder? Type893 { get; set; } /// /// /// - public global::Letta.ListAgentsForBlockIncludeItem? Type894 { get; set; } + public global::Letta.ListInternalRunsOrder? Type894 { get; set; } /// /// /// - public global::Letta.ListJobsOrder? Type895 { get; set; } + public global::Letta.ListInternalRunsOrderBy? Type895 { get; set; } /// /// /// - public global::Letta.ListProvidersOrder? Type896 { get; set; } + public global::Letta.ListInternalRunsDurationOperator2? Type896 { get; set; } /// /// /// - public global::Letta.ListRunsOrder? Type897 { get; set; } + public global::System.Collections.Generic.IList? Type897 { get; set; } /// /// /// - public global::Letta.ListMessagesForRunOrder? Type898 { get; set; } + public global::Letta.ListBlocksOrder? Type898 { get; set; } /// /// /// - public global::Letta.ListStepsForRunOrder? Type899 { get; set; } + public global::Letta.ListAgentsForBlockOrder? Type899 { get; set; } /// /// /// - public global::Letta.ListStepsOrder? Type900 { get; set; } + public global::System.Collections.Generic.IList? Type900 { get; set; } /// /// /// - public global::Letta.ListStepsFeedback2? Type901 { get; set; } + public global::Letta.ListAgentsForBlockIncludeItem? Type901 { get; set; } /// /// /// - public global::Letta.ListMessagesForStepOrder? Type902 { get; set; } + public global::Letta.ListJobsOrder? Type902 { get; set; } /// /// /// - public global::Letta.ListTagsOrder? Type903 { get; set; } + public global::Letta.ListProvidersOrder? Type903 { get; set; } /// /// /// - public global::Letta.ListAllMessagesOrder? Type904 { get; set; } + public global::Letta.ListRunsOrder? Type904 { get; set; } /// /// /// - public global::Letta.ListBatchesOrder? Type905 { get; set; } + public global::Letta.ListMessagesForRunOrder? Type905 { get; set; } /// /// /// - public global::Letta.ListMessagesForBatchOrder? Type906 { get; set; } + public global::Letta.ListStepsForRunOrder? Type906 { get; set; } /// /// /// - public global::Letta.AgentsCountDeployedAgentsSearchItemVariant1? Type907 { get; set; } + public global::Letta.ListStepsOrder? Type907 { get; set; } /// /// /// - public global::Letta.AgentsCountDeployedAgentsSearchItemVariant1Field? Type908 { get; set; } + public global::Letta.ListStepsFeedback2? Type908 { get; set; } /// /// /// - public global::Letta.AgentsCountDeployedAgentsSearchItemVariant2? Type909 { get; set; } + public global::Letta.ListMessagesForStepOrder? Type909 { get; set; } /// /// /// - public global::Letta.AgentsCountDeployedAgentsSearchItemVariant2Field? Type910 { get; set; } + public global::Letta.ListTagsOrder? Type910 { get; set; } /// /// /// - public global::Letta.AgentsCountDeployedAgentsSearchItemVariant2Operator? Type911 { get; set; } + public global::Letta.ListAllMessagesOrder? Type911 { get; set; } /// /// /// - public global::Letta.AgentsCountDeployedAgentsSearchItemVariant3? Type912 { get; set; } + public global::Letta.ListBatchesOrder? Type912 { get; set; } /// /// /// - public global::Letta.AgentsCountDeployedAgentsSearchItemVariant3Field? Type913 { get; set; } + public global::Letta.ListMessagesForBatchOrder? Type913 { get; set; } /// /// /// - public global::Letta.AgentsCountDeployedAgentsSearchItemVariant3Operator? Type914 { get; set; } + public global::Letta.AgentsCountDeployedAgentsSearchItemVariant1? Type914 { get; set; } /// /// /// - public global::Letta.AgentsCountDeployedAgentsSearchItemVariant4? Type915 { get; set; } + public global::Letta.AgentsCountDeployedAgentsSearchItemVariant1Field? Type915 { get; set; } /// /// /// - public global::Letta.AgentsCountDeployedAgentsSearchItemVariant4Field? Type916 { get; set; } + public global::Letta.AgentsCountDeployedAgentsSearchItemVariant2? Type916 { get; set; } /// /// /// - public global::Letta.AgentsCountDeployedAgentsSearchItemVariant4Operator? Type917 { get; set; } + public global::Letta.AgentsCountDeployedAgentsSearchItemVariant2Field? Type917 { get; set; } /// /// /// - public global::Letta.AgentsCountDeployedAgentsSearchItemVariant5? Type918 { get; set; } + public global::Letta.AgentsCountDeployedAgentsSearchItemVariant2Operator? Type918 { get; set; } /// /// /// - public global::Letta.AgentsCountDeployedAgentsSearchItemVariant5Field? Type919 { get; set; } + public global::Letta.AgentsCountDeployedAgentsSearchItemVariant3? Type919 { get; set; } /// /// /// - public global::Letta.AgentsCountDeployedAgentsSearchItemVariant5Operator? Type920 { get; set; } + public global::Letta.AgentsCountDeployedAgentsSearchItemVariant3Field? Type920 { get; set; } /// /// /// - public global::Letta.AgentsCountDeployedAgentsSearchItemVariant6? Type921 { get; set; } + public global::Letta.AgentsCountDeployedAgentsSearchItemVariant3Operator? Type921 { get; set; } /// /// /// - public global::Letta.AgentsCountDeployedAgentsSearchItemVariant6Field? Type922 { get; set; } + public global::Letta.AgentsCountDeployedAgentsSearchItemVariant4? Type922 { get; set; } /// /// /// - public global::Letta.AgentsCountDeployedAgentsSearchItemVariant6Operator? Type923 { get; set; } + public global::Letta.AgentsCountDeployedAgentsSearchItemVariant4Field? Type923 { get; set; } /// /// /// - public global::Letta.AgentsCountDeployedAgentsCombinator? Type924 { get; set; } + public global::Letta.AgentsCountDeployedAgentsSearchItemVariant4Operator? Type924 { get; set; } /// /// /// - public global::Letta.OneOf? Type925 { get; set; } + public global::Letta.AgentsCountDeployedAgentsSearchItemVariant5? Type925 { get; set; } /// /// /// - public global::Letta.TemplatesListTemplatesSortBy? Type926 { get; set; } + public global::Letta.AgentsCountDeployedAgentsSearchItemVariant5Field? Type926 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type927 { get; set; } + public global::Letta.AgentsCountDeployedAgentsSearchItemVariant5Operator? Type927 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type928 { get; set; } + public global::Letta.AgentsCountDeployedAgentsSearchItemVariant6? Type928 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type929 { get; set; } + public global::Letta.AgentsCountDeployedAgentsSearchItemVariant6Field? Type929 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type930 { get; set; } + public global::Letta.AgentsCountDeployedAgentsSearchItemVariant6Operator? Type930 { get; set; } /// /// /// - public global::Letta.AnyOf? Type931 { get; set; } + public global::Letta.AgentsCountDeployedAgentsCombinator? Type931 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type932 { get; set; } + public global::Letta.OneOf? Type932 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type933 { get; set; } + public global::Letta.TemplatesListTemplatesSortBy? Type933 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type934 { get; set; } + public global::System.Collections.Generic.IList? Type934 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type935 { get; set; } + public global::System.Collections.Generic.IList? Type935 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type936 { get; set; } + public global::System.Collections.Generic.IList? Type936 { get; set; } /// /// /// - public global::Letta.ModifyMessageResponse? Type937 { get; set; } + public global::System.Collections.Generic.IList? Type937 { get; set; } /// /// /// - public global::Letta.ModifyMessageResponseDiscriminator? Type938 { get; set; } + public global::Letta.AnyOf? Type938 { get; set; } /// /// /// - public global::Letta.ModifyMessageResponseDiscriminatorMessageType? Type939 { get; set; } + public global::System.Collections.Generic.IList>? Type939 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type940 { get; set; } + public global::System.Collections.Generic.IList? Type940 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type941 { get; set; } + public global::System.Collections.Generic.IList? Type941 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type942 { get; set; } + public global::System.Collections.Generic.IList? Type942 { get; set; } /// /// /// - public global::Letta.ModifyGroupMessageResponse? Type943 { get; set; } + public global::System.Collections.Generic.IList? Type943 { get; set; } /// /// /// - public global::Letta.ModifyGroupMessageResponseDiscriminator? Type944 { get; set; } + public global::Letta.ModifyMessageResponse? Type944 { get; set; } /// /// /// - public global::Letta.ModifyGroupMessageResponseDiscriminatorMessageType? Type945 { get; set; } + public global::Letta.ModifyMessageResponseDiscriminator? Type945 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type946 { get; set; } + public global::Letta.ModifyMessageResponseDiscriminatorMessageType? Type946 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type947 { get; set; } + public global::System.Collections.Generic.IList? Type947 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type948 { get; set; } + public global::System.Collections.Generic.IList? Type948 { get; set; } /// /// /// - public global::Letta.AnyOf? Type949 { get; set; } + public global::System.Collections.Generic.IList? Type949 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type950 { get; set; } + public global::Letta.ModifyGroupMessageResponse? Type950 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type951 { get; set; } + public global::Letta.ModifyGroupMessageResponseDiscriminator? Type951 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type952 { get; set; } + public global::Letta.ModifyGroupMessageResponseDiscriminatorMessageType? Type952 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type953 { get; set; } + public global::System.Collections.Generic.IList? Type953 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type954 { get; set; } + public global::System.Collections.Generic.IList? Type954 { get; set; } /// /// /// - public global::Letta.ListMessagesForStepResponseItem? Type955 { get; set; } + public global::System.Collections.Generic.IList? Type955 { get; set; } /// /// /// - public global::Letta.ListMessagesForStepResponseItemDiscriminator? Type956 { get; set; } + public global::Letta.AnyOf? Type956 { get; set; } /// /// /// - public global::Letta.ListMessagesForStepResponseItemDiscriminatorMessageType? Type957 { get; set; } + public global::System.Collections.Generic.IList>? Type957 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type958 { get; set; } + public global::System.Collections.Generic.IList? Type958 { get; set; } /// /// /// - public global::Letta.SearchAllMessagesResponseItem? Type959 { get; set; } + public global::System.Collections.Generic.IList? Type959 { get; set; } /// /// /// - public global::Letta.SearchAllMessagesResponseItemDiscriminator? Type960 { get; set; } + public global::System.Collections.Generic.IList? Type960 { get; set; } /// /// /// - public global::Letta.SearchAllMessagesResponseItemDiscriminatorMessageType? Type961 { get; set; } + public global::System.Collections.Generic.IList? Type961 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type962 { get; set; } + public global::Letta.ListMessagesForStepResponseItem? Type962 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type963 { get; set; } + public global::Letta.ListMessagesForStepResponseItemDiscriminator? Type963 { get; set; } /// /// /// - public global::Letta.AgentsSearchDeployedAgentsResponse? Type964 { get; set; } + public global::Letta.ListMessagesForStepResponseItemDiscriminatorMessageType? Type964 { get; set; } /// /// /// - public global::Letta.AgentsCountDeployedAgentsResponse? Type965 { get; set; } + public global::System.Collections.Generic.IList? Type965 { get; set; } /// /// /// - public global::Letta.AgentsGetAgentVariablesResponse? Type966 { get; set; } + public global::Letta.SearchAllMessagesResponseItem? Type966 { get; set; } /// /// /// - public global::Letta.AgentsGetAgentVariablesResponse2? Type967 { get; set; } + public global::Letta.SearchAllMessagesResponseItemDiscriminator? Type967 { get; set; } /// /// /// - public global::Letta.AgentsGetAgentVariablesResponseMessage? Type968 { get; set; } + public global::Letta.SearchAllMessagesResponseItemDiscriminatorMessageType? Type968 { get; set; } /// /// /// - public global::Letta.TemplatesCreateAgentsFromTemplateResponse? Type969 { get; set; } + public global::System.Collections.Generic.IList? Type969 { get; set; } /// /// /// - public global::Letta.TemplatesCreateAgentsFromTemplateNoProjectResponse? Type970 { get; set; } + public global::System.Collections.Generic.IList? Type970 { get; set; } /// /// /// - public global::Letta.TemplatesCreateAgentsFromTemplateNoProjectResponse2? Type971 { get; set; } + public global::Letta.AgentsSearchDeployedAgentsResponse? Type971 { get; set; } /// /// /// - public global::Letta.TemplatesListTemplatesResponse? Type972 { get; set; } + public global::Letta.AgentsCountDeployedAgentsResponse? Type972 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type973 { get; set; } + public global::Letta.AgentsGetAgentVariablesResponse? Type973 { get; set; } /// /// /// - public global::Letta.TemplatesListTemplatesResponseTemplate? Type974 { get; set; } + public global::Letta.AgentsGetAgentVariablesResponse2? Type974 { get; set; } /// /// /// - public global::Letta.TemplatesCreateTemplateNoProjectResponse? Type975 { get; set; } + public global::Letta.AgentsGetAgentVariablesResponseMessage? Type975 { get; set; } /// /// /// - public global::Letta.TemplatesCreateTemplateNoProjectResponse2? Type976 { get; set; } + public global::Letta.TemplatesCreateAgentsFromTemplateResponse? Type976 { get; set; } /// /// /// - public global::Letta.TemplatesSaveTemplateVersionNoProjectResponse? Type977 { get; set; } + public global::Letta.TemplatesCreateAgentsFromTemplateNoProjectResponse? Type977 { get; set; } /// /// /// - public global::Letta.TemplatesSaveTemplateVersionNoProjectResponse2? Type978 { get; set; } + public global::Letta.TemplatesCreateAgentsFromTemplateNoProjectResponse2? Type978 { get; set; } /// /// /// - public global::Letta.TemplatesSaveTemplateVersionResponse? Type979 { get; set; } + public global::Letta.TemplatesListTemplatesResponse? Type979 { get; set; } /// /// /// - public global::Letta.TemplatesSaveTemplateVersionResponse2? Type980 { get; set; } + public global::System.Collections.Generic.IList? Type980 { get; set; } /// /// /// - public global::Letta.TemplatesDeleteTemplateResponse? Type981 { get; set; } + public global::Letta.TemplatesListTemplatesResponseTemplate? Type981 { get; set; } /// /// /// - public global::Letta.TemplatesDeleteTemplateResponse2? Type982 { get; set; } + public global::Letta.TemplatesCreateTemplateNoProjectResponse? Type982 { get; set; } /// /// /// - public global::Letta.TemplatesGetTemplateSnapshotResponse? Type983 { get; set; } + public global::Letta.TemplatesCreateTemplateNoProjectResponse2? Type983 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type984 { get; set; } + public global::Letta.TemplatesSaveTemplateVersionNoProjectResponse? Type984 { get; set; } /// /// /// - public global::Letta.TemplatesGetTemplateSnapshotResponseAgent? Type985 { get; set; } + public global::Letta.TemplatesSaveTemplateVersionNoProjectResponse2? Type985 { get; set; } /// /// /// - public global::Letta.TemplatesGetTemplateSnapshotResponseAgentMemoryVariables? Type986 { get; set; } + public global::Letta.TemplatesSaveTemplateVersionResponse? Type986 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type987 { get; set; } + public global::Letta.TemplatesSaveTemplateVersionResponse2? Type987 { get; set; } /// /// /// - public global::Letta.TemplatesGetTemplateSnapshotResponseAgentMemoryVariablesDataItem? Type988 { get; set; } + public global::Letta.TemplatesDeleteTemplateResponse? Type988 { get; set; } /// /// /// - public global::Letta.TemplatesGetTemplateSnapshotResponseAgentToolVariables? Type989 { get; set; } + public global::Letta.TemplatesDeleteTemplateResponse2? Type989 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type990 { get; set; } + public global::Letta.TemplatesGetTemplateSnapshotResponse? Type990 { get; set; } /// /// /// - public global::Letta.TemplatesGetTemplateSnapshotResponseAgentToolVariablesDataItem? Type991 { get; set; } + public global::System.Collections.Generic.IList? Type991 { get; set; } /// /// /// - public global::Letta.TemplatesGetTemplateSnapshotResponseAgentToolRuleVariant1? Type992 { get; set; } + public global::Letta.TemplatesGetTemplateSnapshotResponseAgent? Type992 { get; set; } /// /// /// - public global::Letta.TemplatesGetTemplateSnapshotResponseAgentToolRuleVariant1Type? Type993 { get; set; } + public global::Letta.TemplatesGetTemplateSnapshotResponseAgentMemoryVariables? Type993 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type994 { get; set; } + public global::System.Collections.Generic.IList? Type994 { get; set; } /// /// /// - public global::Letta.TemplatesGetTemplateSnapshotResponseAgentToolRuleVariant1ChildArgNode? Type995 { get; set; } + public global::Letta.TemplatesGetTemplateSnapshotResponseAgentMemoryVariablesDataItem? Type995 { get; set; } /// /// /// - public global::Letta.TemplatesGetTemplateSnapshotResponseAgentToolRuleVariant2? Type996 { get; set; } + public global::Letta.TemplatesGetTemplateSnapshotResponseAgentToolVariables? Type996 { get; set; } /// /// /// - public global::Letta.TemplatesGetTemplateSnapshotResponseAgentToolRuleVariant2Type? Type997 { get; set; } + public global::System.Collections.Generic.IList? Type997 { get; set; } /// /// /// - public global::Letta.TemplatesGetTemplateSnapshotResponseAgentToolRuleVariant3? Type998 { get; set; } + public global::Letta.TemplatesGetTemplateSnapshotResponseAgentToolVariablesDataItem? Type998 { get; set; } /// /// /// - public global::Letta.TemplatesGetTemplateSnapshotResponseAgentToolRuleVariant3Type? Type999 { get; set; } + public global::Letta.TemplatesGetTemplateSnapshotResponseAgentToolRuleVariant1? Type999 { get; set; } /// /// /// - public global::Letta.TemplatesGetTemplateSnapshotResponseAgentToolRuleVariant4? Type1000 { get; set; } + public global::Letta.TemplatesGetTemplateSnapshotResponseAgentToolRuleVariant1Type? Type1000 { get; set; } /// /// /// - public global::Letta.TemplatesGetTemplateSnapshotResponseAgentToolRuleVariant4Type? Type1001 { get; set; } + public global::System.Collections.Generic.IList? Type1001 { get; set; } /// /// /// - public global::Letta.TemplatesGetTemplateSnapshotResponseAgentToolRuleVariant5? Type1002 { get; set; } + public global::Letta.TemplatesGetTemplateSnapshotResponseAgentToolRuleVariant1ChildArgNode? Type1002 { get; set; } /// /// /// - public global::Letta.TemplatesGetTemplateSnapshotResponseAgentToolRuleVariant5Type? Type1003 { get; set; } + public global::Letta.TemplatesGetTemplateSnapshotResponseAgentToolRuleVariant2? Type1003 { get; set; } /// /// /// - public global::Letta.TemplatesGetTemplateSnapshotResponseAgentToolRuleVariant6? Type1004 { get; set; } + public global::Letta.TemplatesGetTemplateSnapshotResponseAgentToolRuleVariant2Type? Type1004 { get; set; } /// /// /// - public global::Letta.TemplatesGetTemplateSnapshotResponseAgentToolRuleVariant6Type? Type1005 { get; set; } + public global::Letta.TemplatesGetTemplateSnapshotResponseAgentToolRuleVariant3? Type1005 { get; set; } /// /// /// - public global::Letta.TemplatesGetTemplateSnapshotResponseAgentToolRuleVariant7? Type1006 { get; set; } + public global::Letta.TemplatesGetTemplateSnapshotResponseAgentToolRuleVariant3Type? Type1006 { get; set; } /// /// /// - public global::Letta.TemplatesGetTemplateSnapshotResponseAgentToolRuleVariant7Type? Type1007 { get; set; } + public global::Letta.TemplatesGetTemplateSnapshotResponseAgentToolRuleVariant4? Type1007 { get; set; } /// /// /// - public global::Letta.TemplatesGetTemplateSnapshotResponseAgentToolRuleVariant8? Type1008 { get; set; } + public global::Letta.TemplatesGetTemplateSnapshotResponseAgentToolRuleVariant4Type? Type1008 { get; set; } /// /// /// - public global::Letta.TemplatesGetTemplateSnapshotResponseAgentToolRuleVariant8Type? Type1009 { get; set; } + public global::Letta.TemplatesGetTemplateSnapshotResponseAgentToolRuleVariant5? Type1009 { get; set; } /// /// /// - public global::Letta.TemplatesGetTemplateSnapshotResponseAgentToolRuleVariant9? Type1010 { get; set; } + public global::Letta.TemplatesGetTemplateSnapshotResponseAgentToolRuleVariant5Type? Type1010 { get; set; } /// /// /// - public global::Letta.TemplatesGetTemplateSnapshotResponseAgentToolRuleVariant9Type? Type1011 { get; set; } + public global::Letta.TemplatesGetTemplateSnapshotResponseAgentToolRuleVariant6? Type1011 { get; set; } /// /// /// - public global::Letta.TemplatesGetTemplateSnapshotResponseAgentAgentType? Type1012 { get; set; } + public global::Letta.TemplatesGetTemplateSnapshotResponseAgentToolRuleVariant6Type? Type1012 { get; set; } /// /// /// - public global::Letta.TemplatesGetTemplateSnapshotResponseAgentProperties? Type1013 { get; set; } + public global::Letta.TemplatesGetTemplateSnapshotResponseAgentToolRuleVariant7? Type1013 { get; set; } /// /// /// - public global::Letta.TemplatesGetTemplateSnapshotResponseAgentPropertiesVerbosityLevel? Type1014 { get; set; } + public global::Letta.TemplatesGetTemplateSnapshotResponseAgentToolRuleVariant7Type? Type1014 { get; set; } /// /// /// - public global::Letta.TemplatesGetTemplateSnapshotResponseAgentPropertiesReasoningEffort? Type1015 { get; set; } + public global::Letta.TemplatesGetTemplateSnapshotResponseAgentToolRuleVariant8? Type1015 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1016 { get; set; } + public global::Letta.TemplatesGetTemplateSnapshotResponseAgentToolRuleVariant8Type? Type1016 { get; set; } /// /// /// - public global::Letta.TemplatesGetTemplateSnapshotResponseBlock? Type1017 { get; set; } + public global::Letta.TemplatesGetTemplateSnapshotResponseAgentToolRuleVariant9? Type1017 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1018 { get; set; } + public global::Letta.TemplatesGetTemplateSnapshotResponseAgentToolRuleVariant9Type? Type1018 { get; set; } /// /// /// - public global::Letta.TemplatesGetTemplateSnapshotResponseRelationship? Type1019 { get; set; } + public global::Letta.TemplatesGetTemplateSnapshotResponseAgentAgentType? Type1019 { get; set; } /// /// /// - public global::Letta.TemplatesGetTemplateSnapshotResponseConfiguration? Type1020 { get; set; } + public global::Letta.TemplatesGetTemplateSnapshotResponseAgentProperties? Type1020 { get; set; } /// /// /// - public global::Letta.TemplatesGetTemplateSnapshotResponseType? Type1021 { get; set; } + public global::Letta.TemplatesGetTemplateSnapshotResponseAgentPropertiesVerbosityLevel? Type1021 { get; set; } /// /// /// - public global::Letta.TemplatesSetCurrentTemplateFromSnapshotResponse? Type1022 { get; set; } + public global::Letta.TemplatesGetTemplateSnapshotResponseAgentPropertiesReasoningEffort? Type1022 { get; set; } /// /// /// - public global::Letta.TemplatesSetCurrentTemplateFromSnapshotResponse2? Type1023 { get; set; } + public global::System.Collections.Generic.IList? Type1023 { get; set; } /// /// /// - public global::Letta.TemplatesSetCurrentTemplateFromSnapshotResponse3? Type1024 { get; set; } + public global::Letta.TemplatesGetTemplateSnapshotResponseBlock? Type1024 { get; set; } /// /// /// - public global::Letta.TemplatesSetCurrentTemplateFromSnapshotResponse4? Type1025 { get; set; } + public global::System.Collections.Generic.IList? Type1025 { get; set; } /// /// /// - public global::Letta.TemplatesForkTemplateResponse? Type1026 { get; set; } + public global::Letta.TemplatesGetTemplateSnapshotResponseRelationship? Type1026 { get; set; } /// /// /// - public global::Letta.TemplatesForkTemplateResponse2? Type1027 { get; set; } + public global::Letta.TemplatesGetTemplateSnapshotResponseConfiguration? Type1027 { get; set; } /// /// /// - public global::Letta.TemplatesCreateTemplateResponse? Type1028 { get; set; } + public global::Letta.TemplatesGetTemplateSnapshotResponseType? Type1028 { get; set; } /// /// /// - public global::Letta.TemplatesCreateTemplateResponse2? Type1029 { get; set; } + public global::Letta.TemplatesSetCurrentTemplateFromSnapshotResponse? Type1029 { get; set; } /// /// /// - public global::Letta.TemplatesDeleteTemplateNoProjectResponse? Type1030 { get; set; } + public global::Letta.TemplatesSetCurrentTemplateFromSnapshotResponse2? Type1030 { get; set; } /// /// /// - public global::Letta.TemplatesDeleteTemplateNoProjectResponse2? Type1031 { get; set; } + public global::Letta.TemplatesSetCurrentTemplateFromSnapshotResponse3? Type1031 { get; set; } /// /// /// - public global::Letta.TemplatesUpdateCurrentTemplateFromAgentFileNoProjectResponse? Type1032 { get; set; } + public global::Letta.TemplatesSetCurrentTemplateFromSnapshotResponse4? Type1032 { get; set; } /// /// /// - public global::Letta.TemplatesUpdateCurrentTemplateFromAgentFileNoProjectResponse2? Type1033 { get; set; } + public global::Letta.TemplatesForkTemplateResponse? Type1033 { get; set; } /// /// /// - public global::Letta.TemplatesUpdateCurrentTemplateFromAgentFileNoProjectResponse3? Type1034 { get; set; } + public global::Letta.TemplatesForkTemplateResponse2? Type1034 { get; set; } /// /// /// - public global::Letta.TemplatesUpdateCurrentTemplateFromAgentFileNoProjectResponse4? Type1035 { get; set; } + public global::Letta.TemplatesCreateTemplateResponse? Type1035 { get; set; } /// /// /// - public global::Letta.TemplatesRenameTemplateResponse? Type1036 { get; set; } + public global::Letta.TemplatesCreateTemplateResponse2? Type1036 { get; set; } /// /// /// - public global::Letta.TemplatesRenameTemplateResponse2? Type1037 { get; set; } + public global::Letta.TemplatesDeleteTemplateNoProjectResponse? Type1037 { get; set; } /// /// /// - public global::Letta.TemplatesRenameTemplateResponse3? Type1038 { get; set; } + public global::Letta.TemplatesDeleteTemplateNoProjectResponse2? Type1038 { get; set; } /// /// /// - public global::Letta.TemplatesRenameTemplateResponse4? Type1039 { get; set; } + public global::Letta.TemplatesUpdateCurrentTemplateFromAgentFileNoProjectResponse? Type1039 { get; set; } /// /// /// - public global::Letta.TemplatesUpdateTemplateDescriptionResponse? Type1040 { get; set; } + public global::Letta.TemplatesUpdateCurrentTemplateFromAgentFileNoProjectResponse2? Type1040 { get; set; } /// /// /// - public global::Letta.TemplatesUpdateTemplateDescriptionResponse2? Type1041 { get; set; } + public global::Letta.TemplatesUpdateCurrentTemplateFromAgentFileNoProjectResponse3? Type1041 { get; set; } /// /// /// - public global::Letta.TemplatesUpdateTemplateDescriptionResponse3? Type1042 { get; set; } + public global::Letta.TemplatesUpdateCurrentTemplateFromAgentFileNoProjectResponse4? Type1042 { get; set; } /// /// /// - public global::Letta.TemplatesListTemplateVersionsResponse? Type1043 { get; set; } + public global::Letta.TemplatesRenameTemplateResponse? Type1043 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1044 { get; set; } + public global::Letta.TemplatesRenameTemplateResponse2? Type1044 { get; set; } /// /// /// - public global::Letta.TemplatesListTemplateVersionsResponseVersion? Type1045 { get; set; } + public global::Letta.TemplatesRenameTemplateResponse3? Type1045 { get; set; } /// /// /// - public global::Letta.TemplatesListTemplateVersionsResponse2? Type1046 { get; set; } + public global::Letta.TemplatesRenameTemplateResponse4? Type1046 { get; set; } /// /// /// - public global::Letta.TemplatesMigrateDeploymentResponse? Type1047 { get; set; } + public global::Letta.TemplatesUpdateTemplateDescriptionResponse? Type1047 { get; set; } /// /// /// - public global::Letta.TemplatesMigrateDeploymentResponse2? Type1048 { get; set; } + public global::Letta.TemplatesUpdateTemplateDescriptionResponse2? Type1048 { get; set; } /// /// /// - public global::Letta.TemplatesMigrateDeploymentResponse3? Type1049 { get; set; } + public global::Letta.TemplatesUpdateTemplateDescriptionResponse3? Type1049 { get; set; } /// /// /// - public global::Letta.TemplatesMigrateDeploymentResponse4? Type1050 { get; set; } + public global::Letta.TemplatesListTemplateVersionsResponse? Type1050 { get; set; } /// /// /// - public global::Letta.TemplatesRollbackTemplateNoProjectResponse? Type1051 { get; set; } + public global::System.Collections.Generic.IList? Type1051 { get; set; } /// /// /// - public global::Letta.TemplatesRollbackTemplateNoProjectResponse2? Type1052 { get; set; } + public global::Letta.TemplatesListTemplateVersionsResponseVersion? Type1052 { get; set; } /// /// /// - public global::Letta.TemplatesRollbackTemplateNoProjectResponse3? Type1053 { get; set; } + public global::Letta.TemplatesListTemplateVersionsResponse2? Type1053 { get; set; } /// /// /// - public global::Letta.TemplatesRollbackTemplateNoProjectResponse4? Type1054 { get; set; } + public global::Letta.TemplatesMigrateDeploymentResponse? Type1054 { get; set; } /// /// /// - public global::Letta.TemplatesRollbackTemplateResponse? Type1055 { get; set; } + public global::Letta.TemplatesMigrateDeploymentResponse2? Type1055 { get; set; } /// /// /// - public global::Letta.TemplatesRollbackTemplateResponse2? Type1056 { get; set; } + public global::Letta.TemplatesMigrateDeploymentResponse3? Type1056 { get; set; } /// /// /// - public global::Letta.TemplatesRollbackTemplateResponse3? Type1057 { get; set; } + public global::Letta.TemplatesMigrateDeploymentResponse4? Type1057 { get; set; } /// /// /// - public global::Letta.TemplatesRollbackTemplateResponse4? Type1058 { get; set; } + public global::Letta.TemplatesRollbackTemplateNoProjectResponse? Type1058 { get; set; } /// /// /// - public global::Letta.TemplatesUpdateCurrentTemplateFromAgentFileResponse? Type1059 { get; set; } + public global::Letta.TemplatesRollbackTemplateNoProjectResponse2? Type1059 { get; set; } /// /// /// - public global::Letta.TemplatesUpdateCurrentTemplateFromAgentFileResponse2? Type1060 { get; set; } + public global::Letta.TemplatesRollbackTemplateNoProjectResponse3? Type1060 { get; set; } /// /// /// - public global::Letta.TemplatesUpdateCurrentTemplateFromAgentFileResponse3? Type1061 { get; set; } + public global::Letta.TemplatesRollbackTemplateNoProjectResponse4? Type1061 { get; set; } /// /// /// - public global::Letta.TemplatesUpdateCurrentTemplateFromAgentFileResponse4? Type1062 { get; set; } + public global::Letta.TemplatesRollbackTemplateResponse? Type1062 { get; set; } /// /// /// - public global::Letta.TemplatesLegacyMigrationResponse? Type1063 { get; set; } + public global::Letta.TemplatesRollbackTemplateResponse2? Type1063 { get; set; } /// /// /// - public global::Letta.TemplatesLegacyMigrationResponse2? Type1064 { get; set; } + public global::Letta.TemplatesRollbackTemplateResponse3? Type1064 { get; set; } /// /// /// - public global::Letta.TemplatesLegacyMigrationResponse3? Type1065 { get; set; } + public global::Letta.TemplatesRollbackTemplateResponse4? Type1065 { get; set; } /// /// /// - public global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponse? Type1066 { get; set; } + public global::Letta.TemplatesUpdateCurrentTemplateFromAgentFileResponse? Type1066 { get; set; } /// /// /// - public global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicy? Type1067 { get; set; } + public global::Letta.TemplatesUpdateCurrentTemplateFromAgentFileResponse2? Type1067 { get; set; } /// /// /// - public global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyVersion? Type1068 { get; set; } + public global::Letta.TemplatesUpdateCurrentTemplateFromAgentFileResponse3? Type1068 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1069 { get; set; } + public global::Letta.TemplatesUpdateCurrentTemplateFromAgentFileResponse4? Type1069 { get; set; } /// /// /// - public global::Letta.DataItem? Type1070 { get; set; } + public global::Letta.TemplatesLegacyMigrationResponse? Type1070 { get; set; } /// /// /// - public global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemVariant1? Type1071 { get; set; } + public global::Letta.TemplatesLegacyMigrationResponse2? Type1071 { get; set; } /// /// /// - public global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemVariant1Type? Type1072 { get; set; } + public global::Letta.TemplatesLegacyMigrationResponse3? Type1072 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1073 { get; set; } + public global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponse? Type1073 { get; set; } /// /// /// - public global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemVariant1Acces? Type1074 { get; set; } + public global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicy? Type1074 { get; set; } /// /// /// - public global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminator? Type1075 { get; set; } + public global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyVersion? Type1075 { get; set; } /// /// /// - public global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponse2? Type1076 { get; set; } + public global::System.Collections.Generic.IList? Type1076 { get; set; } /// /// /// - public global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponse? Type1077 { get; set; } + public global::Letta.DataItem? Type1077 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1078 { get; set; } + public global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemVariant1? Type1078 { get; set; } /// /// /// - public global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponseToken? Type1079 { get; set; } + public global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemVariant1Type? Type1079 { get; set; } /// /// /// - public global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicy? Type1080 { get; set; } + public global::System.Collections.Generic.IList? Type1080 { get; set; } /// /// /// - public global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyVersion? Type1081 { get; set; } + public global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemVariant1Acces? Type1081 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1082 { get; set; } + public global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminator? Type1082 { get; set; } /// /// /// - public global::Letta.DataItem2? Type1083 { get; set; } + public global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorType? Type1083 { get; set; } /// /// /// - public global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemVariant1? Type1084 { get; set; } + public global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponse2? Type1084 { get; set; } /// /// /// - public global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemVariant1Type? Type1085 { get; set; } + public global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponse? Type1085 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1086 { get; set; } + public global::System.Collections.Generic.IList? Type1086 { get; set; } /// /// /// - public global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemVariant1Acces? Type1087 { get; set; } + public global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponseToken? Type1087 { get; set; } /// /// /// - public global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminator? Type1088 { get; set; } + public global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicy? Type1088 { get; set; } /// /// /// - public global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponse2? Type1089 { get; set; } + public global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyVersion? Type1089 { get; set; } /// /// /// - public global::Letta.ClientSideAccessTokensDeleteClientSideAccessTokenResponse2? Type1090 { get; set; } + public global::System.Collections.Generic.IList? Type1090 { get; set; } /// /// /// - public global::Letta.ProjectsListProjectsResponse? Type1091 { get; set; } + public global::Letta.DataItem2? Type1091 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1092 { get; set; } + public global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemVariant1? Type1092 { get; set; } /// /// /// - public global::Letta.ProjectsListProjectsResponseProject? Type1093 { get; set; } + public global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemVariant1Type? Type1093 { get; set; } /// /// /// - public global::Letta.ProjectsCreateProjectResponse? Type1094 { get; set; } + public global::System.Collections.Generic.IList? Type1094 { get; set; } /// /// /// - public global::Letta.ProjectsDeleteProjectResponse? Type1095 { get; set; } + public global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemVariant1Acces? Type1095 { get; set; } /// /// /// - public global::Letta.MetadataRetrieveCurrentBalancesResponse? Type1096 { get; set; } + public global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminator? Type1096 { get; set; } /// /// /// - public global::Letta.MetadataSendFeedbackResponse? Type1097 { get; set; } + public global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorType? Type1097 { get; set; } /// /// /// - public global::Letta.MetadataSendTelemetryResponse? Type1098 { get; set; } + public global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponse2? Type1098 { get; set; } /// /// /// - public global::Letta.MetadataGetStatusResponse? Type1099 { get; set; } + public global::Letta.ClientSideAccessTokensDeleteClientSideAccessTokenResponse2? Type1099 { get; set; } /// /// /// - public global::Letta.MetadataGetUserResponse? Type1100 { get; set; } + public global::Letta.ProjectsListProjectsResponse? Type1100 { get; set; } /// /// /// - public global::Letta.MetadataGetUserResponse2? Type1101 { get; set; } + public global::System.Collections.Generic.IList? Type1101 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesScheduleAgentMessageResponse? Type1102 { get; set; } + public global::Letta.ProjectsListProjectsResponseProject? Type1102 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesListScheduledMessagesResponse? Type1103 { get; set; } + public global::Letta.ProjectsCreateProjectResponse? Type1103 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1104 { get; set; } + public global::Letta.ProjectsDeleteProjectResponse? Type1104 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesListScheduledMessagesResponseScheduledMessage? Type1105 { get; set; } + public global::Letta.MetadataRetrieveCurrentBalancesResponse? Type1105 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesListScheduledMessagesResponseScheduledMessageMessage? Type1106 { get; set; } + public global::Letta.MetadataSendFeedbackResponse? Type1106 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1107 { get; set; } + public global::Letta.MetadataSendTelemetryResponse? Type1107 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesListScheduledMessagesResponseScheduledMessageMessageMessage? Type1108 { get; set; } + public global::Letta.MetadataGetStatusResponse? Type1108 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesListScheduledMessagesResponseScheduledMessageMessageMessageContentVariant1ItemVariant1? Type1109 { get; set; } + public global::Letta.MetadataGetUserResponse? Type1109 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesListScheduledMessagesResponseScheduledMessageMessageMessageContentVariant1ItemVariant1Type? Type1110 { get; set; } + public global::Letta.MetadataGetUserResponse2? Type1110 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesListScheduledMessagesResponseScheduledMessageMessageMessageContentVariant1ItemVariant2? Type1111 { get; set; } + public global::Letta.ScheduledMessagesScheduleAgentMessageResponse? Type1111 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesListScheduledMessagesResponseScheduledMessageMessageMessageContentVariant1ItemVariant2Source? Type1112 { get; set; } + public global::Letta.ScheduledMessagesListScheduledMessagesResponse? Type1112 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesListScheduledMessagesResponseScheduledMessageMessageMessageContentVariant1ItemVariant2Type? Type1113 { get; set; } + public global::System.Collections.Generic.IList? Type1113 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesListScheduledMessagesResponseScheduledMessageMessageMessageRole? Type1114 { get; set; } + public global::Letta.ScheduledMessagesListScheduledMessagesResponseScheduledMessage? Type1114 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesListScheduledMessagesResponseScheduledMessageMessageMessageType? Type1115 { get; set; } + public global::Letta.ScheduledMessagesListScheduledMessagesResponseScheduledMessageMessage? Type1115 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1116 { get; set; } + public global::System.Collections.Generic.IList? Type1116 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesListScheduledMessagesResponseScheduledMessageMessageIncludeReturnMessageType? Type1117 { get; set; } + public global::Letta.ScheduledMessagesListScheduledMessagesResponseScheduledMessageMessageMessage? Type1117 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesListScheduledMessagesResponseScheduledMessageScheduleVariant1? Type1118 { get; set; } + public global::Letta.ScheduledMessagesListScheduledMessagesResponseScheduledMessageMessageMessageContentVariant1ItemVariant1? Type1118 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesListScheduledMessagesResponseScheduledMessageScheduleVariant1Type? Type1119 { get; set; } + public global::Letta.ScheduledMessagesListScheduledMessagesResponseScheduledMessageMessageMessageContentVariant1ItemVariant1Type? Type1119 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesListScheduledMessagesResponseScheduledMessageScheduleVariant2? Type1120 { get; set; } + public global::Letta.ScheduledMessagesListScheduledMessagesResponseScheduledMessageMessageMessageContentVariant1ItemVariant2? Type1120 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesListScheduledMessagesResponseScheduledMessageScheduleVariant2Type? Type1121 { get; set; } + public global::Letta.ScheduledMessagesListScheduledMessagesResponseScheduledMessageMessageMessageContentVariant1ItemVariant2Source? Type1121 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesDeleteScheduledMessageResponse? Type1122 { get; set; } + public global::Letta.ScheduledMessagesListScheduledMessagesResponseScheduledMessageMessageMessageContentVariant1ItemVariant2Type? Type1122 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesRetrieveScheduledMessageResponse? Type1123 { get; set; } + public global::Letta.ScheduledMessagesListScheduledMessagesResponseScheduledMessageMessageMessageRole? Type1123 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesRetrieveScheduledMessageResponseMessage? Type1124 { get; set; } + public global::Letta.ScheduledMessagesListScheduledMessagesResponseScheduledMessageMessageMessageType? Type1124 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1125 { get; set; } + public global::System.Collections.Generic.IList? Type1125 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesRetrieveScheduledMessageResponseMessageMessage? Type1126 { get; set; } + public global::Letta.ScheduledMessagesListScheduledMessagesResponseScheduledMessageMessageIncludeReturnMessageType? Type1126 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesRetrieveScheduledMessageResponseMessageMessageContentVariant1ItemVariant1? Type1127 { get; set; } + public global::Letta.ScheduledMessagesListScheduledMessagesResponseScheduledMessageScheduleVariant1? Type1127 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesRetrieveScheduledMessageResponseMessageMessageContentVariant1ItemVariant1Type? Type1128 { get; set; } + public global::Letta.ScheduledMessagesListScheduledMessagesResponseScheduledMessageScheduleVariant1Type? Type1128 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesRetrieveScheduledMessageResponseMessageMessageContentVariant1ItemVariant2? Type1129 { get; set; } + public global::Letta.ScheduledMessagesListScheduledMessagesResponseScheduledMessageScheduleVariant2? Type1129 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesRetrieveScheduledMessageResponseMessageMessageContentVariant1ItemVariant2Source? Type1130 { get; set; } + public global::Letta.ScheduledMessagesListScheduledMessagesResponseScheduledMessageScheduleVariant2Type? Type1130 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesRetrieveScheduledMessageResponseMessageMessageContentVariant1ItemVariant2SourceType? Type1131 { get; set; } + public global::Letta.ScheduledMessagesDeleteScheduledMessageResponse? Type1131 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesRetrieveScheduledMessageResponseMessageMessageContentVariant1ItemVariant2Type? Type1132 { get; set; } + public global::Letta.ScheduledMessagesRetrieveScheduledMessageResponse? Type1132 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesRetrieveScheduledMessageResponseMessageMessageRole? Type1133 { get; set; } + public global::Letta.ScheduledMessagesRetrieveScheduledMessageResponseMessage? Type1133 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesRetrieveScheduledMessageResponseMessageMessageType? Type1134 { get; set; } + public global::System.Collections.Generic.IList? Type1134 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1135 { get; set; } + public global::Letta.ScheduledMessagesRetrieveScheduledMessageResponseMessageMessage? Type1135 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesRetrieveScheduledMessageResponseMessageIncludeReturnMessageType? Type1136 { get; set; } + public global::Letta.ScheduledMessagesRetrieveScheduledMessageResponseMessageMessageContentVariant1ItemVariant1? Type1136 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesRetrieveScheduledMessageResponseScheduleVariant1? Type1137 { get; set; } + public global::Letta.ScheduledMessagesRetrieveScheduledMessageResponseMessageMessageContentVariant1ItemVariant1Type? Type1137 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesRetrieveScheduledMessageResponseScheduleVariant1Type? Type1138 { get; set; } + public global::Letta.ScheduledMessagesRetrieveScheduledMessageResponseMessageMessageContentVariant1ItemVariant2? Type1138 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesRetrieveScheduledMessageResponseScheduleVariant2? Type1139 { get; set; } + public global::Letta.ScheduledMessagesRetrieveScheduledMessageResponseMessageMessageContentVariant1ItemVariant2Source? Type1139 { get; set; } /// /// /// - public global::Letta.ScheduledMessagesRetrieveScheduledMessageResponseScheduleVariant2Type? Type1140 { get; set; } + public global::Letta.ScheduledMessagesRetrieveScheduledMessageResponseMessageMessageContentVariant1ItemVariant2SourceType? Type1140 { get; set; } /// /// /// - public global::Letta.FeedsCreateFeedResponse? Type1141 { get; set; } + public global::Letta.ScheduledMessagesRetrieveScheduledMessageResponseMessageMessageContentVariant1ItemVariant2Type? Type1141 { get; set; } /// /// /// - public global::Letta.FeedsListFeedsResponse? Type1142 { get; set; } + public global::Letta.ScheduledMessagesRetrieveScheduledMessageResponseMessageMessageRole? Type1142 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1143 { get; set; } + public global::Letta.ScheduledMessagesRetrieveScheduledMessageResponseMessageMessageType? Type1143 { get; set; } /// /// /// - public global::Letta.FeedsListFeedsResponseFeed? Type1144 { get; set; } + public global::System.Collections.Generic.IList? Type1144 { get; set; } /// /// /// - public global::Letta.FeedsGetFeedResponse? Type1145 { get; set; } + public global::Letta.ScheduledMessagesRetrieveScheduledMessageResponseMessageIncludeReturnMessageType? Type1145 { get; set; } /// /// /// - public global::Letta.FeedsDeleteFeedResponse? Type1146 { get; set; } + public global::Letta.ScheduledMessagesRetrieveScheduledMessageResponseScheduleVariant1? Type1146 { get; set; } /// /// /// - public global::Letta.FeedsPublishMessagesResponse? Type1147 { get; set; } + public global::Letta.ScheduledMessagesRetrieveScheduledMessageResponseScheduleVariant1Type? Type1147 { get; set; } /// /// /// - public global::Letta.FeedsListMessagesResponse? Type1148 { get; set; } + public global::Letta.ScheduledMessagesRetrieveScheduledMessageResponseScheduleVariant2? Type1148 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1149 { get; set; } + public global::Letta.ScheduledMessagesRetrieveScheduledMessageResponseScheduleVariant2Type? Type1149 { get; set; } /// /// /// - public global::Letta.FeedsListMessagesResponseMessage? Type1150 { get; set; } + public global::Letta.FeedsCreateFeedResponse? Type1150 { get; set; } /// /// /// - public global::Letta.FeedsGetMessageResponse? Type1151 { get; set; } + public global::Letta.FeedsListFeedsResponse? Type1151 { get; set; } /// /// /// - public global::Letta.FeedsGetMessageResponseMessage? Type1152 { get; set; } + public global::System.Collections.Generic.IList? Type1152 { get; set; } /// /// /// - public global::Letta.FeedsGetMessageResponse2? Type1153 { get; set; } + public global::Letta.FeedsListFeedsResponseFeed? Type1153 { get; set; } /// /// /// - public global::Letta.FeedsSubscribeAgentResponse? Type1154 { get; set; } + public global::Letta.FeedsGetFeedResponse? Type1154 { get; set; } /// /// /// - public global::Letta.FeedsSubscribeAgentResponseMergeStrategy? Type1155 { get; set; } + public global::Letta.FeedsDeleteFeedResponse? Type1155 { get; set; } /// /// /// - public global::Letta.FeedsSubscribeAgentResponse2? Type1156 { get; set; } + public global::Letta.FeedsPublishMessagesResponse? Type1156 { get; set; } /// /// /// - public global::Letta.FeedsSubscribeAgentResponseErrorCode? Type1157 { get; set; } + public global::Letta.FeedsListMessagesResponse? Type1157 { get; set; } /// /// /// - public global::Letta.FeedsUpdateSubscriptionResponse? Type1158 { get; set; } + public global::System.Collections.Generic.IList? Type1158 { get; set; } /// /// /// - public global::Letta.FeedsUpdateSubscriptionResponseMergeStrategy? Type1159 { get; set; } + public global::Letta.FeedsListMessagesResponseMessage? Type1159 { get; set; } /// /// /// - public global::Letta.FeedsDeleteSubscriptionResponse? Type1160 { get; set; } + public global::Letta.FeedsGetMessageResponse? Type1160 { get; set; } /// /// /// - public global::Letta.FeedsUnsubscribeAgentResponse? Type1161 { get; set; } + public global::Letta.FeedsGetMessageResponseMessage? Type1161 { get; set; } /// /// /// - public global::Letta.FeedsTriggerSubscriptionResponse? Type1162 { get; set; } + public global::Letta.FeedsGetMessageResponse2? Type1162 { get; set; } /// /// /// - public global::Letta.FeedsTriggerSubscriptionResponse2? Type1163 { get; set; } + public global::Letta.FeedsSubscribeAgentResponse? Type1163 { get; set; } /// /// /// - public global::Letta.FeedsBackfillSubscriptionResponse? Type1164 { get; set; } + public global::Letta.FeedsSubscribeAgentResponseMergeStrategy? Type1164 { get; set; } /// /// /// - public global::Letta.FeedsBackfillSubscriptionResponse2? Type1165 { get; set; } + public global::Letta.FeedsSubscribeAgentResponse2? Type1165 { get; set; } /// /// /// - public global::Letta.FeedsBackfillSubscriptionResponseErrorCode? Type1166 { get; set; } + public global::Letta.FeedsSubscribeAgentResponseErrorCode? Type1166 { get; set; } /// /// /// - public global::Letta.FeedsListSubscriptionHistoryResponse? Type1167 { get; set; } + public global::Letta.FeedsUpdateSubscriptionResponse? Type1167 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1168 { get; set; } + public global::Letta.FeedsUpdateSubscriptionResponseMergeStrategy? Type1168 { get; set; } /// /// /// - public global::Letta.FeedsListSubscriptionHistoryResponseRun? Type1169 { get; set; } + public global::Letta.FeedsDeleteSubscriptionResponse? Type1169 { get; set; } /// /// /// - public global::Letta.FeedsListSubscriptionHistoryResponseRunType? Type1170 { get; set; } + public global::Letta.FeedsUnsubscribeAgentResponse? Type1170 { get; set; } /// /// /// - public global::Letta.FeedsListSubscriptionHistoryResponseRunStatus? Type1171 { get; set; } + public global::Letta.FeedsTriggerSubscriptionResponse? Type1171 { get; set; } /// /// /// - public global::Letta.FeedsListSubscriptionHistoryResponse2? Type1172 { get; set; } + public global::Letta.FeedsTriggerSubscriptionResponse2? Type1172 { get; set; } /// /// /// - public global::Letta.FeedsListSubscriptionHistoryResponseErrorCode? Type1173 { get; set; } + public global::Letta.FeedsBackfillSubscriptionResponse? Type1173 { get; set; } /// /// /// - public global::Letta.FeedsUpdateAllSubscriptionsCronResponse? Type1174 { get; set; } + public global::Letta.FeedsBackfillSubscriptionResponse2? Type1174 { get; set; } /// /// /// - public global::Letta.FeedsUpdateAllSubscriptionsCronResponse2? Type1175 { get; set; } + public global::Letta.FeedsBackfillSubscriptionResponseErrorCode? Type1175 { get; set; } /// /// /// - public global::Letta.FeedsListSubscriptionsResponse? Type1176 { get; set; } + public global::Letta.FeedsListSubscriptionHistoryResponse? Type1176 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1177 { get; set; } + public global::System.Collections.Generic.IList? Type1177 { get; set; } /// /// /// - public global::Letta.FeedsListSubscriptionsResponseSubscription? Type1178 { get; set; } + public global::Letta.FeedsListSubscriptionHistoryResponseRun? Type1178 { get; set; } /// /// /// - public global::Letta.FeedsListSubscriptionsResponseSubscriptionMergeStrategy? Type1179 { get; set; } + public global::Letta.FeedsListSubscriptionHistoryResponseRunType? Type1179 { get; set; } /// /// /// - public global::Letta.MemoryFilesListDirectoryResponse? Type1180 { get; set; } + public global::Letta.FeedsListSubscriptionHistoryResponseRunStatus? Type1180 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1181 { get; set; } + public global::Letta.FeedsListSubscriptionHistoryResponse2? Type1181 { get; set; } /// /// /// - public global::Letta.MemoryFilesListDirectoryResponseEntrie? Type1182 { get; set; } + public global::Letta.FeedsListSubscriptionHistoryResponseErrorCode? Type1182 { get; set; } /// /// /// - public global::Letta.MemoryFilesListDirectoryResponseEntrieType? Type1183 { get; set; } + public global::Letta.FeedsUpdateAllSubscriptionsCronResponse? Type1183 { get; set; } /// /// /// - public global::Letta.MemoryFilesListDirectoryResponse2? Type1184 { get; set; } + public global::Letta.FeedsUpdateAllSubscriptionsCronResponse2? Type1184 { get; set; } /// /// /// - public global::Letta.MemoryFilesListDirectoryResponse3? Type1185 { get; set; } + public global::Letta.FeedsListSubscriptionsResponse? Type1185 { get; set; } /// /// /// - public global::Letta.MemoryFilesGetFileHistoryResponse? Type1186 { get; set; } + public global::System.Collections.Generic.IList? Type1186 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1187 { get; set; } + public global::Letta.FeedsListSubscriptionsResponseSubscription? Type1187 { get; set; } /// /// /// - public global::Letta.MemoryFilesGetFileHistoryResponseCommit? Type1188 { get; set; } + public global::Letta.FeedsListSubscriptionsResponseSubscriptionMergeStrategy? Type1188 { get; set; } /// /// /// - public global::Letta.MemoryFilesGetFileHistoryResponse2? Type1189 { get; set; } + public global::Letta.MemoryFilesListDirectoryResponse? Type1189 { get; set; } /// /// /// - public global::Letta.MemoryFilesGetFileHistoryResponse3? Type1190 { get; set; } + public global::System.Collections.Generic.IList? Type1190 { get; set; } /// /// /// - public global::Letta.MemoryFilesReadFileContentResponse? Type1191 { get; set; } + public global::Letta.MemoryFilesListDirectoryResponseEntrie? Type1191 { get; set; } /// /// /// - public global::Letta.MemoryFilesReadFileContentResponse2? Type1192 { get; set; } + public global::Letta.MemoryFilesListDirectoryResponseEntrieType? Type1192 { get; set; } /// /// /// - public global::Letta.MemoryFilesReadFileContentResponse3? Type1193 { get; set; } + public global::Letta.MemoryFilesListDirectoryResponse2? Type1193 { get; set; } /// /// /// - public global::Letta.PipelinesCreatePipelineResponse? Type1194 { get; set; } + public global::Letta.MemoryFilesListDirectoryResponse3? Type1194 { get; set; } /// /// /// - public global::Letta.PipelinesCreatePipelineResponsePipeline? Type1195 { get; set; } + public global::Letta.MemoryFilesGetFileHistoryResponse? Type1195 { get; set; } /// /// /// - public global::Letta.PipelinesCreatePipelineResponsePipelineIntegrationType? Type1196 { get; set; } + public global::System.Collections.Generic.IList? Type1196 { get; set; } /// /// /// - public global::Letta.Config5? Type1197 { get; set; } + public global::Letta.MemoryFilesGetFileHistoryResponseCommit? Type1197 { get; set; } /// /// /// - public global::Letta.PipelinesCreatePipelineResponsePipelineConfigVariant1? Type1198 { get; set; } + public global::Letta.MemoryFilesGetFileHistoryResponse2? Type1198 { get; set; } /// /// /// - public global::Letta.PipelinesCreatePipelineResponsePipelineConfigVariant1Type? Type1199 { get; set; } + public global::Letta.MemoryFilesGetFileHistoryResponse3? Type1199 { get; set; } /// /// /// - public global::Letta.PipelinesCreatePipelineResponsePipelineConfigVariant1Data? Type1200 { get; set; } + public global::Letta.MemoryFilesReadFileContentResponse? Type1200 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1201 { get; set; } + public global::Letta.MemoryFilesReadFileContentResponse2? Type1201 { get; set; } /// /// /// - public global::Letta.PipelinesCreatePipelineResponsePipelineConfigVariant1DataChannel? Type1202 { get; set; } + public global::Letta.MemoryFilesReadFileContentResponse3? Type1202 { get; set; } /// /// /// - public global::Letta.PipelinesCreatePipelineResponsePipelineConfigVariant2? Type1203 { get; set; } + public global::Letta.PipelinesCreatePipelineResponse? Type1203 { get; set; } /// /// /// - public global::Letta.PipelinesCreatePipelineResponsePipelineConfigVariant2Type? Type1204 { get; set; } + public global::Letta.PipelinesCreatePipelineResponsePipeline? Type1204 { get; set; } /// /// /// - public global::Letta.PipelinesCreatePipelineResponsePipelineConfigDiscriminator? Type1205 { get; set; } + public global::Letta.PipelinesCreatePipelineResponsePipelineIntegrationType? Type1205 { get; set; } /// /// /// - public global::Letta.PipelinesCreatePipelineResponse2? Type1206 { get; set; } + public global::Letta.Config5? Type1206 { get; set; } /// /// /// - public global::Letta.PipelinesCreatePipelineResponseErrorCode? Type1207 { get; set; } + public global::Letta.PipelinesCreatePipelineResponsePipelineConfigVariant1? Type1207 { get; set; } /// /// /// - public global::Letta.PipelinesListPipelinesResponse? Type1208 { get; set; } + public global::Letta.PipelinesCreatePipelineResponsePipelineConfigVariant1Type? Type1208 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1209 { get; set; } + public global::Letta.PipelinesCreatePipelineResponsePipelineConfigVariant1Data? Type1209 { get; set; } /// /// /// - public global::Letta.PipelinesListPipelinesResponsePipeline? Type1210 { get; set; } + public global::System.Collections.Generic.IList? Type1210 { get; set; } /// /// /// - public global::Letta.PipelinesListPipelinesResponsePipelineIntegrationType? Type1211 { get; set; } + public global::Letta.PipelinesCreatePipelineResponsePipelineConfigVariant1DataChannel? Type1211 { get; set; } /// /// /// - public global::Letta.Config6? Type1212 { get; set; } + public global::Letta.PipelinesCreatePipelineResponsePipelineConfigVariant2? Type1212 { get; set; } /// /// /// - public global::Letta.PipelinesListPipelinesResponsePipelineConfigVariant1? Type1213 { get; set; } + public global::Letta.PipelinesCreatePipelineResponsePipelineConfigVariant2Type? Type1213 { get; set; } /// /// /// - public global::Letta.PipelinesListPipelinesResponsePipelineConfigVariant1Type? Type1214 { get; set; } + public global::Letta.PipelinesCreatePipelineResponsePipelineConfigDiscriminator? Type1214 { get; set; } /// /// /// - public global::Letta.PipelinesListPipelinesResponsePipelineConfigVariant1Data? Type1215 { get; set; } + public global::Letta.PipelinesCreatePipelineResponsePipelineConfigDiscriminatorType? Type1215 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1216 { get; set; } + public global::Letta.PipelinesCreatePipelineResponse2? Type1216 { get; set; } /// /// /// - public global::Letta.PipelinesListPipelinesResponsePipelineConfigVariant1DataChannel? Type1217 { get; set; } + public global::Letta.PipelinesCreatePipelineResponseErrorCode? Type1217 { get; set; } /// /// /// - public global::Letta.PipelinesListPipelinesResponsePipelineConfigVariant2? Type1218 { get; set; } + public global::Letta.PipelinesListPipelinesResponse? Type1218 { get; set; } /// /// /// - public global::Letta.PipelinesListPipelinesResponsePipelineConfigVariant2Type? Type1219 { get; set; } + public global::System.Collections.Generic.IList? Type1219 { get; set; } /// /// /// - public global::Letta.PipelinesListPipelinesResponsePipelineConfigDiscriminator? Type1220 { get; set; } + public global::Letta.PipelinesListPipelinesResponsePipeline? Type1220 { get; set; } /// /// /// - public global::Letta.PipelinesCountPipelinesResponse? Type1221 { get; set; } + public global::Letta.PipelinesListPipelinesResponsePipelineIntegrationType? Type1221 { get; set; } /// /// /// - public global::Letta.PipelinesGetPipelineResponse? Type1222 { get; set; } + public global::Letta.Config6? Type1222 { get; set; } /// /// /// - public global::Letta.PipelinesGetPipelineResponsePipeline? Type1223 { get; set; } + public global::Letta.PipelinesListPipelinesResponsePipelineConfigVariant1? Type1223 { get; set; } /// /// /// - public global::Letta.PipelinesGetPipelineResponsePipelineIntegrationType? Type1224 { get; set; } + public global::Letta.PipelinesListPipelinesResponsePipelineConfigVariant1Type? Type1224 { get; set; } /// /// /// - public global::Letta.Config7? Type1225 { get; set; } + public global::Letta.PipelinesListPipelinesResponsePipelineConfigVariant1Data? Type1225 { get; set; } /// /// /// - public global::Letta.PipelinesGetPipelineResponsePipelineConfigVariant1? Type1226 { get; set; } + public global::System.Collections.Generic.IList? Type1226 { get; set; } /// /// /// - public global::Letta.PipelinesGetPipelineResponsePipelineConfigVariant1Type? Type1227 { get; set; } + public global::Letta.PipelinesListPipelinesResponsePipelineConfigVariant1DataChannel? Type1227 { get; set; } /// /// /// - public global::Letta.PipelinesGetPipelineResponsePipelineConfigVariant1Data? Type1228 { get; set; } + public global::Letta.PipelinesListPipelinesResponsePipelineConfigVariant2? Type1228 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1229 { get; set; } + public global::Letta.PipelinesListPipelinesResponsePipelineConfigVariant2Type? Type1229 { get; set; } /// /// /// - public global::Letta.PipelinesGetPipelineResponsePipelineConfigVariant1DataChannel? Type1230 { get; set; } + public global::Letta.PipelinesListPipelinesResponsePipelineConfigDiscriminator? Type1230 { get; set; } /// /// /// - public global::Letta.PipelinesGetPipelineResponsePipelineConfigVariant2? Type1231 { get; set; } + public global::Letta.PipelinesListPipelinesResponsePipelineConfigDiscriminatorType? Type1231 { get; set; } /// /// /// - public global::Letta.PipelinesGetPipelineResponsePipelineConfigVariant2Type? Type1232 { get; set; } + public global::Letta.PipelinesCountPipelinesResponse? Type1232 { get; set; } /// /// /// - public global::Letta.PipelinesGetPipelineResponsePipelineConfigDiscriminator? Type1233 { get; set; } + public global::Letta.PipelinesGetPipelineResponse? Type1233 { get; set; } /// /// /// - public global::Letta.PipelinesGetPipelineResponse2? Type1234 { get; set; } + public global::Letta.PipelinesGetPipelineResponsePipeline? Type1234 { get; set; } /// /// /// - public global::Letta.PipelinesGetPipelineResponseErrorCode? Type1235 { get; set; } + public global::Letta.PipelinesGetPipelineResponsePipelineIntegrationType? Type1235 { get; set; } /// /// /// - public global::Letta.PipelinesUpdatePipelineResponse? Type1236 { get; set; } + public global::Letta.Config7? Type1236 { get; set; } /// /// /// - public global::Letta.PipelinesUpdatePipelineResponsePipeline? Type1237 { get; set; } + public global::Letta.PipelinesGetPipelineResponsePipelineConfigVariant1? Type1237 { get; set; } /// /// /// - public global::Letta.PipelinesUpdatePipelineResponsePipelineIntegrationType? Type1238 { get; set; } + public global::Letta.PipelinesGetPipelineResponsePipelineConfigVariant1Type? Type1238 { get; set; } /// /// /// - public global::Letta.Config8? Type1239 { get; set; } + public global::Letta.PipelinesGetPipelineResponsePipelineConfigVariant1Data? Type1239 { get; set; } /// /// /// - public global::Letta.PipelinesUpdatePipelineResponsePipelineConfigVariant1? Type1240 { get; set; } + public global::System.Collections.Generic.IList? Type1240 { get; set; } /// /// /// - public global::Letta.PipelinesUpdatePipelineResponsePipelineConfigVariant1Type? Type1241 { get; set; } + public global::Letta.PipelinesGetPipelineResponsePipelineConfigVariant1DataChannel? Type1241 { get; set; } /// /// /// - public global::Letta.PipelinesUpdatePipelineResponsePipelineConfigVariant1Data? Type1242 { get; set; } + public global::Letta.PipelinesGetPipelineResponsePipelineConfigVariant2? Type1242 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1243 { get; set; } + public global::Letta.PipelinesGetPipelineResponsePipelineConfigVariant2Type? Type1243 { get; set; } /// /// /// - public global::Letta.PipelinesUpdatePipelineResponsePipelineConfigVariant1DataChannel? Type1244 { get; set; } + public global::Letta.PipelinesGetPipelineResponsePipelineConfigDiscriminator? Type1244 { get; set; } /// /// /// - public global::Letta.PipelinesUpdatePipelineResponsePipelineConfigVariant2? Type1245 { get; set; } + public global::Letta.PipelinesGetPipelineResponsePipelineConfigDiscriminatorType? Type1245 { get; set; } /// /// /// - public global::Letta.PipelinesUpdatePipelineResponsePipelineConfigVariant2Type? Type1246 { get; set; } + public global::Letta.PipelinesGetPipelineResponse2? Type1246 { get; set; } /// /// /// - public global::Letta.PipelinesUpdatePipelineResponsePipelineConfigDiscriminator? Type1247 { get; set; } + public global::Letta.PipelinesGetPipelineResponseErrorCode? Type1247 { get; set; } /// /// /// - public global::Letta.PipelinesUpdatePipelineResponse2? Type1248 { get; set; } + public global::Letta.PipelinesUpdatePipelineResponse? Type1248 { get; set; } /// /// /// - public global::Letta.PipelinesUpdatePipelineResponseErrorCode? Type1249 { get; set; } + public global::Letta.PipelinesUpdatePipelineResponsePipeline? Type1249 { get; set; } /// /// /// - public global::Letta.PipelinesDeletePipelineResponse? Type1250 { get; set; } + public global::Letta.PipelinesUpdatePipelineResponsePipelineIntegrationType? Type1250 { get; set; } /// /// /// - public global::Letta.PipelinesDeletePipelineResponse2? Type1251 { get; set; } + public global::Letta.Config8? Type1251 { get; set; } /// /// /// - public global::Letta.PipelinesDeletePipelineResponseErrorCode? Type1252 { get; set; } + public global::Letta.PipelinesUpdatePipelineResponsePipelineConfigVariant1? Type1252 { get; set; } /// /// /// - public global::Letta.PipelinesUpdatePipelineProducerConfigResponse? Type1253 { get; set; } + public global::Letta.PipelinesUpdatePipelineResponsePipelineConfigVariant1Type? Type1253 { get; set; } /// /// /// - public global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipeline? Type1254 { get; set; } + public global::Letta.PipelinesUpdatePipelineResponsePipelineConfigVariant1Data? Type1254 { get; set; } /// /// /// - public global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineIntegrationType? Type1255 { get; set; } + public global::System.Collections.Generic.IList? Type1255 { get; set; } /// /// /// - public global::Letta.Config9? Type1256 { get; set; } + public global::Letta.PipelinesUpdatePipelineResponsePipelineConfigVariant1DataChannel? Type1256 { get; set; } /// /// /// - public global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigVariant1? Type1257 { get; set; } + public global::Letta.PipelinesUpdatePipelineResponsePipelineConfigVariant2? Type1257 { get; set; } /// /// /// - public global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigVariant1Type? Type1258 { get; set; } + public global::Letta.PipelinesUpdatePipelineResponsePipelineConfigVariant2Type? Type1258 { get; set; } /// /// /// - public global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigVariant1Data? Type1259 { get; set; } + public global::Letta.PipelinesUpdatePipelineResponsePipelineConfigDiscriminator? Type1259 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1260 { get; set; } + public global::Letta.PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorType? Type1260 { get; set; } /// /// /// - public global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigVariant1DataChannel? Type1261 { get; set; } + public global::Letta.PipelinesUpdatePipelineResponse2? Type1261 { get; set; } /// /// /// - public global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigVariant2? Type1262 { get; set; } + public global::Letta.PipelinesUpdatePipelineResponseErrorCode? Type1262 { get; set; } /// /// /// - public global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigVariant2Type? Type1263 { get; set; } + public global::Letta.PipelinesDeletePipelineResponse? Type1263 { get; set; } /// /// /// - public global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminator? Type1264 { get; set; } + public global::Letta.PipelinesDeletePipelineResponse2? Type1264 { get; set; } /// /// /// - public global::Letta.PipelinesUpdatePipelineProducerConfigResponse2? Type1265 { get; set; } + public global::Letta.PipelinesDeletePipelineResponseErrorCode? Type1265 { get; set; } /// /// /// - public global::Letta.PipelinesUpdatePipelineProducerConfigResponseErrorCode? Type1266 { get; set; } + public global::Letta.PipelinesUpdatePipelineProducerConfigResponse? Type1266 { get; set; } /// /// /// - public global::Letta.PipelinesUpdatePipelineProducerConfigResponse3? Type1267 { get; set; } + public global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipeline? Type1267 { get; set; } /// /// /// - public global::Letta.PipelinesUpdatePipelineProducerConfigResponseErrorCode2? Type1268 { get; set; } + public global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineIntegrationType? Type1268 { get; set; } /// /// /// - public global::Letta.PipelinesPreviewPipelineResponse? Type1269 { get; set; } + public global::Letta.Config9? Type1269 { get; set; } /// /// /// - public global::Letta.PipelinesPreviewPipelineResponse2? Type1270 { get; set; } + public global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigVariant1? Type1270 { get; set; } /// /// /// - public global::Letta.PipelinesPreviewPipelineResponseErrorCode? Type1271 { get; set; } + public global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigVariant1Type? Type1271 { get; set; } /// /// /// - public global::Letta.PipelinesSyncPipelineResponse? Type1272 { get; set; } + public global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigVariant1Data? Type1272 { get; set; } /// /// /// - public global::Letta.PipelinesSyncPipelineResponse2? Type1273 { get; set; } + public global::System.Collections.Generic.IList? Type1273 { get; set; } /// /// /// - public global::Letta.PipelinesSyncPipelineResponseErrorCode? Type1274 { get; set; } + public global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigVariant1DataChannel? Type1274 { get; set; } /// /// /// - public global::Letta.PipelinesSyncPipelineResponse3? Type1275 { get; set; } + public global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigVariant2? Type1275 { get; set; } /// /// /// - public global::Letta.PipelinesSyncPipelineResponseErrorCode2? Type1276 { get; set; } + public global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigVariant2Type? Type1276 { get; set; } /// /// /// - public global::Letta.PipelinesListPipelineSyncHistoryResponse? Type1277 { get; set; } + public global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminator? Type1277 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1278 { get; set; } + public global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorType? Type1278 { get; set; } /// /// /// - public global::Letta.PipelinesListPipelineSyncHistoryResponseRun? Type1279 { get; set; } + public global::Letta.PipelinesUpdatePipelineProducerConfigResponse2? Type1279 { get; set; } /// /// /// - public global::Letta.PipelinesListPipelineSyncHistoryResponseRunStatus? Type1280 { get; set; } + public global::Letta.PipelinesUpdatePipelineProducerConfigResponseErrorCode? Type1280 { get; set; } /// /// /// - public global::Letta.PipelinesListPipelineSyncHistoryResponseRunError? Type1281 { get; set; } + public global::Letta.PipelinesUpdatePipelineProducerConfigResponse3? Type1281 { get; set; } /// /// /// - public global::Letta.PipelinesListPipelineSyncHistoryResponse2? Type1282 { get; set; } + public global::Letta.PipelinesUpdatePipelineProducerConfigResponseErrorCode2? Type1282 { get; set; } /// /// /// - public global::Letta.PipelinesListPipelineSyncHistoryResponseErrorCode? Type1283 { get; set; } + public global::Letta.PipelinesPreviewPipelineResponse? Type1283 { get; set; } /// /// /// - public global::Letta.EnvironmentsRegisterResponse? Type1284 { get; set; } + public global::Letta.PipelinesPreviewPipelineResponse2? Type1284 { get; set; } /// /// /// - public global::Letta.EnvironmentsRegisterResponse2? Type1285 { get; set; } + public global::Letta.PipelinesPreviewPipelineResponseErrorCode? Type1285 { get; set; } /// /// /// - public global::Letta.EnvironmentsGetConnectionResponse? Type1286 { get; set; } + public global::Letta.PipelinesSyncPipelineResponse? Type1286 { get; set; } /// /// /// - public global::Letta.EnvironmentsGetConnectionResponseCurrentMode? Type1287 { get; set; } + public global::Letta.PipelinesSyncPipelineResponse2? Type1287 { get; set; } /// /// /// - public global::Letta.EnvironmentsGetConnectionResponseMetadata? Type1288 { get; set; } + public global::Letta.PipelinesSyncPipelineResponseErrorCode? Type1288 { get; set; } /// /// /// - public global::Letta.EnvironmentsGetConnectionResponse2? Type1289 { get; set; } + public global::Letta.PipelinesSyncPipelineResponse3? Type1289 { get; set; } /// /// /// - public global::Letta.EnvironmentsListConnectionsResponse? Type1290 { get; set; } + public global::Letta.PipelinesSyncPipelineResponseErrorCode2? Type1290 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1291 { get; set; } + public global::Letta.PipelinesListPipelineSyncHistoryResponse? Type1291 { get; set; } /// /// /// - public global::Letta.EnvironmentsListConnectionsResponseConnection? Type1292 { get; set; } + public global::System.Collections.Generic.IList? Type1292 { get; set; } /// /// /// - public global::Letta.EnvironmentsListConnectionsResponseConnectionCurrentMode? Type1293 { get; set; } + public global::Letta.PipelinesListPipelineSyncHistoryResponseRun? Type1293 { get; set; } /// /// /// - public global::Letta.EnvironmentsListConnectionsResponseConnectionMetadata? Type1294 { get; set; } + public global::Letta.PipelinesListPipelineSyncHistoryResponseRunStatus? Type1294 { get; set; } /// /// /// - public global::Letta.EnvironmentsSendMessageResponse? Type1295 { get; set; } + public global::Letta.PipelinesListPipelineSyncHistoryResponseRunError? Type1295 { get; set; } /// /// /// - public global::Letta.EnvironmentsSendMessageResponse2? Type1296 { get; set; } + public global::Letta.PipelinesListPipelineSyncHistoryResponse2? Type1296 { get; set; } /// /// /// - public global::Letta.EnvironmentsSendMessageResponse3? Type1297 { get; set; } + public global::Letta.PipelinesListPipelineSyncHistoryResponseErrorCode? Type1297 { get; set; } /// /// /// - public global::Letta.EnvironmentsSendMessageResponse4? Type1298 { get; set; } + public global::Letta.EnvironmentsRegisterResponse? Type1298 { get; set; } /// /// /// - public global::Letta.EnvironmentsDeleteEnvironmentResponse? Type1299 { get; set; } + public global::Letta.EnvironmentsRegisterResponse2? Type1299 { get; set; } /// /// /// - public global::Letta.EnvironmentsDeleteEnvironmentResponse2? Type1300 { get; set; } + public global::Letta.EnvironmentsGetConnectionResponse? Type1300 { get; set; } /// /// /// - public global::Letta.EnvironmentsDeleteEnvironmentResponse3? Type1301 { get; set; } + public global::Letta.EnvironmentsGetConnectionResponseCurrentMode? Type1301 { get; set; } /// /// /// - public global::Letta.SandboxesCreateSandboxResponse? Type1302 { get; set; } + public global::Letta.EnvironmentsGetConnectionResponseMetadata? Type1302 { get; set; } /// /// /// - public global::Letta.SandboxesCreateSandboxResponse2? Type1303 { get; set; } + public global::Letta.EnvironmentsGetConnectionResponse2? Type1303 { get; set; } /// /// /// - public global::Letta.SandboxesCreateSandboxResponse3? Type1304 { get; set; } + public global::Letta.EnvironmentsListConnectionsResponse? Type1304 { get; set; } /// /// /// - public global::Letta.SandboxesListSandboxesResponse? Type1305 { get; set; } + public global::System.Collections.Generic.IList? Type1305 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1306 { get; set; } + public global::Letta.EnvironmentsListConnectionsResponseConnection? Type1306 { get; set; } /// /// /// - public global::Letta.SandboxesListSandboxesResponseSandboxe? Type1307 { get; set; } + public global::Letta.EnvironmentsListConnectionsResponseConnectionCurrentMode? Type1307 { get; set; } /// /// /// - public global::Letta.SandboxesListSandboxesResponseSandboxeCurrentMode? Type1308 { get; set; } + public global::Letta.EnvironmentsListConnectionsResponseConnectionMetadata? Type1308 { get; set; } /// /// /// - public global::Letta.SandboxesListSandboxesResponseSandboxeMetadata? Type1309 { get; set; } + public global::Letta.EnvironmentsSendMessageResponse? Type1309 { get; set; } /// /// /// - public global::Letta.SandboxesTerminateSandboxResponse? Type1310 { get; set; } + public global::Letta.EnvironmentsSendMessageResponse2? Type1310 { get; set; } /// /// /// - public global::Letta.SandboxesTerminateSandboxResponse2? Type1311 { get; set; } + public global::Letta.EnvironmentsSendMessageResponse3? Type1311 { get; set; } /// /// /// - public global::Letta.SandboxesTerminateSandboxResponse3? Type1312 { get; set; } + public global::Letta.EnvironmentsSendMessageResponse4? Type1312 { get; set; } /// /// /// - public global::Letta.DeviceStorageGetDeviceStorageKeyResponse? Type1313 { get; set; } + public global::Letta.EnvironmentsDeleteEnvironmentResponse? Type1313 { get; set; } + /// + /// + /// + public global::Letta.EnvironmentsDeleteEnvironmentResponse2? Type1314 { get; set; } + /// + /// + /// + public global::Letta.EnvironmentsDeleteEnvironmentResponse3? Type1315 { get; set; } + /// + /// + /// + public global::Letta.SandboxesCreateSandboxResponse? Type1316 { get; set; } + /// + /// + /// + public global::Letta.SandboxesCreateSandboxResponse2? Type1317 { get; set; } + /// + /// + /// + public global::Letta.SandboxesCreateSandboxResponse3? Type1318 { get; set; } + /// + /// + /// + public global::Letta.SandboxesListSandboxesResponse? Type1319 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1320 { get; set; } + /// + /// + /// + public global::Letta.SandboxesListSandboxesResponseSandboxe? Type1321 { get; set; } + /// + /// + /// + public global::Letta.SandboxesListSandboxesResponseSandboxeCurrentMode? Type1322 { get; set; } + /// + /// + /// + public global::Letta.SandboxesListSandboxesResponseSandboxeMetadata? Type1323 { get; set; } + /// + /// + /// + public global::Letta.SandboxesTerminateSandboxResponse? Type1324 { get; set; } + /// + /// + /// + public global::Letta.SandboxesTerminateSandboxResponse2? Type1325 { get; set; } + /// + /// + /// + public global::Letta.SandboxesTerminateSandboxResponse3? Type1326 { get; set; } + /// + /// + /// + public global::Letta.DeviceStorageGetDeviceStorageKeyResponse? Type1327 { get; set; } /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminator.g.cs b/src/libs/Letta/Generated/Letta.Models.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminator.g.cs index 82379df5..2221b344 100644 --- a/src/libs/Letta/Generated/Letta.Models.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminator.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class ClientSideAccessTokensCreateClientSideAccessTokenReq /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorTypeJsonConverter))] + public global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class ClientSideAccessTokensCreateClientSideAccessTokenReq [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminator( - string? type) + global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/Letta/Generated/Letta.Models.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorType.g.cs b/src/libs/Letta/Generated/Letta.Models.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorType.g.cs new file mode 100644 index 00000000..4bd0d361 --- /dev/null +++ b/src/libs/Letta/Generated/Letta.Models.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Letta +{ + /// + /// + /// + public enum ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorType + { + /// + /// + /// + Agent, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorType value) + { + return value switch + { + ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorType.Agent => "agent", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorType? ToEnum(string value) + { + return value switch + { + "agent" => ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorType.Agent, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Letta/Generated/Letta.Models.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminator.g.cs b/src/libs/Letta/Generated/Letta.Models.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminator.g.cs index 701cec99..81948809 100644 --- a/src/libs/Letta/Generated/Letta.Models.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminator.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class ClientSideAccessTokensCreateClientSideAccessTokenRes /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Letta.JsonConverters.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorTypeJsonConverter))] + public global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class ClientSideAccessTokensCreateClientSideAccessTokenRes [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminator( - string? type) + global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/Letta/Generated/Letta.Models.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorType.g.cs b/src/libs/Letta/Generated/Letta.Models.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorType.g.cs new file mode 100644 index 00000000..f1c10cfc --- /dev/null +++ b/src/libs/Letta/Generated/Letta.Models.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Letta +{ + /// + /// + /// + public enum ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorType + { + /// + /// + /// + Agent, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorType value) + { + return value switch + { + ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorType.Agent => "agent", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorType? ToEnum(string value) + { + return value switch + { + "agent" => ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorType.Agent, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Letta/Generated/Letta.Models.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminator.g.cs b/src/libs/Letta/Generated/Letta.Models.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminator.g.cs index 35222faa..ac8de8d5 100644 --- a/src/libs/Letta/Generated/Letta.Models.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminator.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class ClientSideAccessTokensListClientSideAccessTokensResp /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Letta.JsonConverters.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorTypeJsonConverter))] + public global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class ClientSideAccessTokensListClientSideAccessTokensResp [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminator( - string? type) + global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/Letta/Generated/Letta.Models.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorType.g.cs b/src/libs/Letta/Generated/Letta.Models.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorType.g.cs new file mode 100644 index 00000000..b2eea26d --- /dev/null +++ b/src/libs/Letta/Generated/Letta.Models.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Letta +{ + /// + /// + /// + public enum ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorType + { + /// + /// + /// + Agent, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorType value) + { + return value switch + { + ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorType.Agent => "agent", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorType? ToEnum(string value) + { + return value switch + { + "agent" => ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorType.Agent, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Letta/Generated/Letta.Models.Config5.g.cs b/src/libs/Letta/Generated/Letta.Models.Config5.g.cs index 7576c890..2cccb572 100644 --- a/src/libs/Letta/Generated/Letta.Models.Config5.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.Config5.g.cs @@ -12,6 +12,11 @@ namespace Letta /// /// /// + public global::Letta.PipelinesCreatePipelineResponsePipelineConfigDiscriminatorType? Type { get; } + + /// + /// + /// #if NET6_0_OR_GREATER public global::Letta.PipelinesCreatePipelineResponsePipelineConfigVariant1? SlackChannelReader { get; init; } #else @@ -108,10 +113,13 @@ public Config5(global::Letta.PipelinesCreatePipelineResponsePipelineConfigVarian /// /// public Config5( + global::Letta.PipelinesCreatePipelineResponsePipelineConfigDiscriminatorType? type, global::Letta.PipelinesCreatePipelineResponsePipelineConfigVariant1? slackChannelReader, global::Letta.PipelinesCreatePipelineResponsePipelineConfigVariant2? customWebhook ) { + Type = type; + SlackChannelReader = slackChannelReader; CustomWebhook = customWebhook; } diff --git a/src/libs/Letta/Generated/Letta.Models.Config6.g.cs b/src/libs/Letta/Generated/Letta.Models.Config6.g.cs index e56962aa..528a4ff4 100644 --- a/src/libs/Letta/Generated/Letta.Models.Config6.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.Config6.g.cs @@ -12,6 +12,11 @@ namespace Letta /// /// /// + public global::Letta.PipelinesListPipelinesResponsePipelineConfigDiscriminatorType? Type { get; } + + /// + /// + /// #if NET6_0_OR_GREATER public global::Letta.PipelinesListPipelinesResponsePipelineConfigVariant1? SlackChannelReader { get; init; } #else @@ -108,10 +113,13 @@ public Config6(global::Letta.PipelinesListPipelinesResponsePipelineConfigVariant /// /// public Config6( + global::Letta.PipelinesListPipelinesResponsePipelineConfigDiscriminatorType? type, global::Letta.PipelinesListPipelinesResponsePipelineConfigVariant1? slackChannelReader, global::Letta.PipelinesListPipelinesResponsePipelineConfigVariant2? customWebhook ) { + Type = type; + SlackChannelReader = slackChannelReader; CustomWebhook = customWebhook; } diff --git a/src/libs/Letta/Generated/Letta.Models.Config7.g.cs b/src/libs/Letta/Generated/Letta.Models.Config7.g.cs index 08609d7a..30a325c1 100644 --- a/src/libs/Letta/Generated/Letta.Models.Config7.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.Config7.g.cs @@ -12,6 +12,11 @@ namespace Letta /// /// /// + public global::Letta.PipelinesGetPipelineResponsePipelineConfigDiscriminatorType? Type { get; } + + /// + /// + /// #if NET6_0_OR_GREATER public global::Letta.PipelinesGetPipelineResponsePipelineConfigVariant1? SlackChannelReader { get; init; } #else @@ -108,10 +113,13 @@ public Config7(global::Letta.PipelinesGetPipelineResponsePipelineConfigVariant2? /// /// public Config7( + global::Letta.PipelinesGetPipelineResponsePipelineConfigDiscriminatorType? type, global::Letta.PipelinesGetPipelineResponsePipelineConfigVariant1? slackChannelReader, global::Letta.PipelinesGetPipelineResponsePipelineConfigVariant2? customWebhook ) { + Type = type; + SlackChannelReader = slackChannelReader; CustomWebhook = customWebhook; } diff --git a/src/libs/Letta/Generated/Letta.Models.Config8.g.cs b/src/libs/Letta/Generated/Letta.Models.Config8.g.cs index b5c68fd7..6493936b 100644 --- a/src/libs/Letta/Generated/Letta.Models.Config8.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.Config8.g.cs @@ -12,6 +12,11 @@ namespace Letta /// /// /// + public global::Letta.PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorType? Type { get; } + + /// + /// + /// #if NET6_0_OR_GREATER public global::Letta.PipelinesUpdatePipelineResponsePipelineConfigVariant1? SlackChannelReader { get; init; } #else @@ -108,10 +113,13 @@ public Config8(global::Letta.PipelinesUpdatePipelineResponsePipelineConfigVarian /// /// public Config8( + global::Letta.PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorType? type, global::Letta.PipelinesUpdatePipelineResponsePipelineConfigVariant1? slackChannelReader, global::Letta.PipelinesUpdatePipelineResponsePipelineConfigVariant2? customWebhook ) { + Type = type; + SlackChannelReader = slackChannelReader; CustomWebhook = customWebhook; } diff --git a/src/libs/Letta/Generated/Letta.Models.Config9.g.cs b/src/libs/Letta/Generated/Letta.Models.Config9.g.cs index 24486a08..d17768af 100644 --- a/src/libs/Letta/Generated/Letta.Models.Config9.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.Config9.g.cs @@ -12,6 +12,11 @@ namespace Letta /// /// /// + public global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorType? Type { get; } + + /// + /// + /// #if NET6_0_OR_GREATER public global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigVariant1? SlackChannelReader { get; init; } #else @@ -108,10 +113,13 @@ public Config9(global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipeli /// /// public Config9( + global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorType? type, global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigVariant1? slackChannelReader, global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigVariant2? customWebhook ) { + Type = type; + SlackChannelReader = slackChannelReader; CustomWebhook = customWebhook; } diff --git a/src/libs/Letta/Generated/Letta.Models.DataItem.g.cs b/src/libs/Letta/Generated/Letta.Models.DataItem.g.cs index 0572d3af..1090edf3 100644 --- a/src/libs/Letta/Generated/Letta.Models.DataItem.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.DataItem.g.cs @@ -12,6 +12,11 @@ namespace Letta /// /// /// + public global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorType? Type { get; } + + /// + /// + /// #if NET6_0_OR_GREATER public global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemVariant1? Agent { get; init; } #else @@ -56,6 +61,19 @@ public DataItem(global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenR Agent = value; } + /// + /// + /// + public DataItem( + global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorType? type, + global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemVariant1? agent + ) + { + Type = type; + + Agent = agent; + } + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.DataItem2.g.cs b/src/libs/Letta/Generated/Letta.Models.DataItem2.g.cs index b38f481c..d2987619 100644 --- a/src/libs/Letta/Generated/Letta.Models.DataItem2.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.DataItem2.g.cs @@ -12,6 +12,11 @@ namespace Letta /// /// /// + public global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorType? Type { get; } + + /// + /// + /// #if NET6_0_OR_GREATER public global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemVariant1? Agent { get; init; } #else @@ -56,6 +61,19 @@ public DataItem2(global::Letta.ClientSideAccessTokensListClientSideAccessTokensR Agent = value; } + /// + /// + /// + public DataItem2( + global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemDiscriminatorType? type, + global::Letta.ClientSideAccessTokensListClientSideAccessTokensResponseTokenPolicyDataItemVariant1? agent + ) + { + Type = type; + + Agent = agent; + } + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.EventsItem.g.cs b/src/libs/Letta/Generated/Letta.Models.EventsItem.g.cs index 55e240e0..81c512f3 100644 --- a/src/libs/Letta/Generated/Letta.Models.EventsItem.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.EventsItem.g.cs @@ -12,6 +12,11 @@ namespace Letta /// /// /// + public global::Letta.MetadataSendTelemetryRequestEventDiscriminatorType? Type { get; } + + /// + /// + /// #if NET6_0_OR_GREATER public global::Letta.MetadataSendTelemetryRequestEventVariant1? SessionStart { get; init; } #else @@ -252,6 +257,7 @@ public EventsItem(global::Letta.MetadataSendTelemetryRequestEventVariant5? value /// /// public EventsItem( + global::Letta.MetadataSendTelemetryRequestEventDiscriminatorType? type, global::Letta.MetadataSendTelemetryRequestEventVariant1? sessionStart, global::Letta.MetadataSendTelemetryRequestEventVariant2? sessionEnd, global::Letta.MetadataSendTelemetryRequestEventVariant3? toolUsage, @@ -259,6 +265,8 @@ public EventsItem( global::Letta.MetadataSendTelemetryRequestEventVariant5? userInput ) { + Type = type; + SessionStart = sessionStart; SessionEnd = sessionEnd; ToolUsage = toolUsage; diff --git a/src/libs/Letta/Generated/Letta.Models.MetadataSendTelemetryRequestEventDiscriminator.g.cs b/src/libs/Letta/Generated/Letta.Models.MetadataSendTelemetryRequestEventDiscriminator.g.cs index 2a6e55cb..3218344b 100644 --- a/src/libs/Letta/Generated/Letta.Models.MetadataSendTelemetryRequestEventDiscriminator.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.MetadataSendTelemetryRequestEventDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class MetadataSendTelemetryRequestEventDiscriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Letta.JsonConverters.MetadataSendTelemetryRequestEventDiscriminatorTypeJsonConverter))] + public global::Letta.MetadataSendTelemetryRequestEventDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class MetadataSendTelemetryRequestEventDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public MetadataSendTelemetryRequestEventDiscriminator( - string? type) + global::Letta.MetadataSendTelemetryRequestEventDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/Letta/Generated/Letta.Models.MetadataSendTelemetryRequestEventDiscriminatorType.g.cs b/src/libs/Letta/Generated/Letta.Models.MetadataSendTelemetryRequestEventDiscriminatorType.g.cs new file mode 100644 index 00000000..7a31d779 --- /dev/null +++ b/src/libs/Letta/Generated/Letta.Models.MetadataSendTelemetryRequestEventDiscriminatorType.g.cs @@ -0,0 +1,69 @@ + +#nullable enable + +namespace Letta +{ + /// + /// + /// + public enum MetadataSendTelemetryRequestEventDiscriminatorType + { + /// + /// + /// + Error, + /// + /// + /// + SessionEnd, + /// + /// + /// + SessionStart, + /// + /// + /// + ToolUsage, + /// + /// + /// + UserInput, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class MetadataSendTelemetryRequestEventDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this MetadataSendTelemetryRequestEventDiscriminatorType value) + { + return value switch + { + MetadataSendTelemetryRequestEventDiscriminatorType.Error => "error", + MetadataSendTelemetryRequestEventDiscriminatorType.SessionEnd => "session_end", + MetadataSendTelemetryRequestEventDiscriminatorType.SessionStart => "session_start", + MetadataSendTelemetryRequestEventDiscriminatorType.ToolUsage => "tool_usage", + MetadataSendTelemetryRequestEventDiscriminatorType.UserInput => "user_input", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static MetadataSendTelemetryRequestEventDiscriminatorType? ToEnum(string value) + { + return value switch + { + "error" => MetadataSendTelemetryRequestEventDiscriminatorType.Error, + "session_end" => MetadataSendTelemetryRequestEventDiscriminatorType.SessionEnd, + "session_start" => MetadataSendTelemetryRequestEventDiscriminatorType.SessionStart, + "tool_usage" => MetadataSendTelemetryRequestEventDiscriminatorType.ToolUsage, + "user_input" => MetadataSendTelemetryRequestEventDiscriminatorType.UserInput, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Letta/Generated/Letta.Models.PipelinesCreatePipelineRequestProducerConfigDiscriminator.g.cs b/src/libs/Letta/Generated/Letta.Models.PipelinesCreatePipelineRequestProducerConfigDiscriminator.g.cs index c386100d..bf2e7f7d 100644 --- a/src/libs/Letta/Generated/Letta.Models.PipelinesCreatePipelineRequestProducerConfigDiscriminator.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.PipelinesCreatePipelineRequestProducerConfigDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class PipelinesCreatePipelineRequestProducerConfigDiscrimi /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Letta.JsonConverters.PipelinesCreatePipelineRequestProducerConfigDiscriminatorTypeJsonConverter))] + public global::Letta.PipelinesCreatePipelineRequestProducerConfigDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class PipelinesCreatePipelineRequestProducerConfigDiscrimi [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public PipelinesCreatePipelineRequestProducerConfigDiscriminator( - string? type) + global::Letta.PipelinesCreatePipelineRequestProducerConfigDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/Letta/Generated/Letta.Models.PipelinesCreatePipelineRequestProducerConfigDiscriminatorType.g.cs b/src/libs/Letta/Generated/Letta.Models.PipelinesCreatePipelineRequestProducerConfigDiscriminatorType.g.cs new file mode 100644 index 00000000..fa13bd8a --- /dev/null +++ b/src/libs/Letta/Generated/Letta.Models.PipelinesCreatePipelineRequestProducerConfigDiscriminatorType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Letta +{ + /// + /// + /// + public enum PipelinesCreatePipelineRequestProducerConfigDiscriminatorType + { + /// + /// + /// + CustomWebhook, + /// + /// + /// + SlackChannelReader, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class PipelinesCreatePipelineRequestProducerConfigDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this PipelinesCreatePipelineRequestProducerConfigDiscriminatorType value) + { + return value switch + { + PipelinesCreatePipelineRequestProducerConfigDiscriminatorType.CustomWebhook => "custom_webhook", + PipelinesCreatePipelineRequestProducerConfigDiscriminatorType.SlackChannelReader => "slack_channel_reader", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static PipelinesCreatePipelineRequestProducerConfigDiscriminatorType? ToEnum(string value) + { + return value switch + { + "custom_webhook" => PipelinesCreatePipelineRequestProducerConfigDiscriminatorType.CustomWebhook, + "slack_channel_reader" => PipelinesCreatePipelineRequestProducerConfigDiscriminatorType.SlackChannelReader, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Letta/Generated/Letta.Models.PipelinesCreatePipelineResponsePipelineConfigDiscriminator.g.cs b/src/libs/Letta/Generated/Letta.Models.PipelinesCreatePipelineResponsePipelineConfigDiscriminator.g.cs index 4bdf1097..4c399c5d 100644 --- a/src/libs/Letta/Generated/Letta.Models.PipelinesCreatePipelineResponsePipelineConfigDiscriminator.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.PipelinesCreatePipelineResponsePipelineConfigDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class PipelinesCreatePipelineResponsePipelineConfigDiscrim /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Letta.JsonConverters.PipelinesCreatePipelineResponsePipelineConfigDiscriminatorTypeJsonConverter))] + public global::Letta.PipelinesCreatePipelineResponsePipelineConfigDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class PipelinesCreatePipelineResponsePipelineConfigDiscrim [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public PipelinesCreatePipelineResponsePipelineConfigDiscriminator( - string? type) + global::Letta.PipelinesCreatePipelineResponsePipelineConfigDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/Letta/Generated/Letta.Models.PipelinesCreatePipelineResponsePipelineConfigDiscriminatorType.g.cs b/src/libs/Letta/Generated/Letta.Models.PipelinesCreatePipelineResponsePipelineConfigDiscriminatorType.g.cs new file mode 100644 index 00000000..66949ac4 --- /dev/null +++ b/src/libs/Letta/Generated/Letta.Models.PipelinesCreatePipelineResponsePipelineConfigDiscriminatorType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Letta +{ + /// + /// + /// + public enum PipelinesCreatePipelineResponsePipelineConfigDiscriminatorType + { + /// + /// + /// + CustomWebhook, + /// + /// + /// + SlackChannelReader, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class PipelinesCreatePipelineResponsePipelineConfigDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this PipelinesCreatePipelineResponsePipelineConfigDiscriminatorType value) + { + return value switch + { + PipelinesCreatePipelineResponsePipelineConfigDiscriminatorType.CustomWebhook => "custom_webhook", + PipelinesCreatePipelineResponsePipelineConfigDiscriminatorType.SlackChannelReader => "slack_channel_reader", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static PipelinesCreatePipelineResponsePipelineConfigDiscriminatorType? ToEnum(string value) + { + return value switch + { + "custom_webhook" => PipelinesCreatePipelineResponsePipelineConfigDiscriminatorType.CustomWebhook, + "slack_channel_reader" => PipelinesCreatePipelineResponsePipelineConfigDiscriminatorType.SlackChannelReader, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Letta/Generated/Letta.Models.PipelinesGetPipelineResponsePipelineConfigDiscriminator.g.cs b/src/libs/Letta/Generated/Letta.Models.PipelinesGetPipelineResponsePipelineConfigDiscriminator.g.cs index a6721d3c..7a00cbf0 100644 --- a/src/libs/Letta/Generated/Letta.Models.PipelinesGetPipelineResponsePipelineConfigDiscriminator.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.PipelinesGetPipelineResponsePipelineConfigDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class PipelinesGetPipelineResponsePipelineConfigDiscrimina /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Letta.JsonConverters.PipelinesGetPipelineResponsePipelineConfigDiscriminatorTypeJsonConverter))] + public global::Letta.PipelinesGetPipelineResponsePipelineConfigDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class PipelinesGetPipelineResponsePipelineConfigDiscrimina [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public PipelinesGetPipelineResponsePipelineConfigDiscriminator( - string? type) + global::Letta.PipelinesGetPipelineResponsePipelineConfigDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/Letta/Generated/Letta.Models.PipelinesGetPipelineResponsePipelineConfigDiscriminatorType.g.cs b/src/libs/Letta/Generated/Letta.Models.PipelinesGetPipelineResponsePipelineConfigDiscriminatorType.g.cs new file mode 100644 index 00000000..b6147b19 --- /dev/null +++ b/src/libs/Letta/Generated/Letta.Models.PipelinesGetPipelineResponsePipelineConfigDiscriminatorType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Letta +{ + /// + /// + /// + public enum PipelinesGetPipelineResponsePipelineConfigDiscriminatorType + { + /// + /// + /// + CustomWebhook, + /// + /// + /// + SlackChannelReader, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class PipelinesGetPipelineResponsePipelineConfigDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this PipelinesGetPipelineResponsePipelineConfigDiscriminatorType value) + { + return value switch + { + PipelinesGetPipelineResponsePipelineConfigDiscriminatorType.CustomWebhook => "custom_webhook", + PipelinesGetPipelineResponsePipelineConfigDiscriminatorType.SlackChannelReader => "slack_channel_reader", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static PipelinesGetPipelineResponsePipelineConfigDiscriminatorType? ToEnum(string value) + { + return value switch + { + "custom_webhook" => PipelinesGetPipelineResponsePipelineConfigDiscriminatorType.CustomWebhook, + "slack_channel_reader" => PipelinesGetPipelineResponsePipelineConfigDiscriminatorType.SlackChannelReader, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Letta/Generated/Letta.Models.PipelinesListPipelinesResponsePipelineConfigDiscriminator.g.cs b/src/libs/Letta/Generated/Letta.Models.PipelinesListPipelinesResponsePipelineConfigDiscriminator.g.cs index 8bd628e8..412914e2 100644 --- a/src/libs/Letta/Generated/Letta.Models.PipelinesListPipelinesResponsePipelineConfigDiscriminator.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.PipelinesListPipelinesResponsePipelineConfigDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class PipelinesListPipelinesResponsePipelineConfigDiscrimi /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Letta.JsonConverters.PipelinesListPipelinesResponsePipelineConfigDiscriminatorTypeJsonConverter))] + public global::Letta.PipelinesListPipelinesResponsePipelineConfigDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class PipelinesListPipelinesResponsePipelineConfigDiscrimi [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public PipelinesListPipelinesResponsePipelineConfigDiscriminator( - string? type) + global::Letta.PipelinesListPipelinesResponsePipelineConfigDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/Letta/Generated/Letta.Models.PipelinesListPipelinesResponsePipelineConfigDiscriminatorType.g.cs b/src/libs/Letta/Generated/Letta.Models.PipelinesListPipelinesResponsePipelineConfigDiscriminatorType.g.cs new file mode 100644 index 00000000..a11790bf --- /dev/null +++ b/src/libs/Letta/Generated/Letta.Models.PipelinesListPipelinesResponsePipelineConfigDiscriminatorType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Letta +{ + /// + /// + /// + public enum PipelinesListPipelinesResponsePipelineConfigDiscriminatorType + { + /// + /// + /// + CustomWebhook, + /// + /// + /// + SlackChannelReader, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class PipelinesListPipelinesResponsePipelineConfigDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this PipelinesListPipelinesResponsePipelineConfigDiscriminatorType value) + { + return value switch + { + PipelinesListPipelinesResponsePipelineConfigDiscriminatorType.CustomWebhook => "custom_webhook", + PipelinesListPipelinesResponsePipelineConfigDiscriminatorType.SlackChannelReader => "slack_channel_reader", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static PipelinesListPipelinesResponsePipelineConfigDiscriminatorType? ToEnum(string value) + { + return value switch + { + "custom_webhook" => PipelinesListPipelinesResponsePipelineConfigDiscriminatorType.CustomWebhook, + "slack_channel_reader" => PipelinesListPipelinesResponsePipelineConfigDiscriminatorType.SlackChannelReader, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Letta/Generated/Letta.Models.PipelinesPreviewPipelineRequestProducerConfigDiscriminator.g.cs b/src/libs/Letta/Generated/Letta.Models.PipelinesPreviewPipelineRequestProducerConfigDiscriminator.g.cs index 3dca8ad1..0997260d 100644 --- a/src/libs/Letta/Generated/Letta.Models.PipelinesPreviewPipelineRequestProducerConfigDiscriminator.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.PipelinesPreviewPipelineRequestProducerConfigDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class PipelinesPreviewPipelineRequestProducerConfigDiscrim /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Letta.JsonConverters.PipelinesPreviewPipelineRequestProducerConfigDiscriminatorTypeJsonConverter))] + public global::Letta.PipelinesPreviewPipelineRequestProducerConfigDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class PipelinesPreviewPipelineRequestProducerConfigDiscrim [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public PipelinesPreviewPipelineRequestProducerConfigDiscriminator( - string? type) + global::Letta.PipelinesPreviewPipelineRequestProducerConfigDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/Letta/Generated/Letta.Models.PipelinesPreviewPipelineRequestProducerConfigDiscriminatorType.g.cs b/src/libs/Letta/Generated/Letta.Models.PipelinesPreviewPipelineRequestProducerConfigDiscriminatorType.g.cs new file mode 100644 index 00000000..867b6b5c --- /dev/null +++ b/src/libs/Letta/Generated/Letta.Models.PipelinesPreviewPipelineRequestProducerConfigDiscriminatorType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Letta +{ + /// + /// + /// + public enum PipelinesPreviewPipelineRequestProducerConfigDiscriminatorType + { + /// + /// + /// + CustomWebhook, + /// + /// + /// + SlackChannelReader, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class PipelinesPreviewPipelineRequestProducerConfigDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this PipelinesPreviewPipelineRequestProducerConfigDiscriminatorType value) + { + return value switch + { + PipelinesPreviewPipelineRequestProducerConfigDiscriminatorType.CustomWebhook => "custom_webhook", + PipelinesPreviewPipelineRequestProducerConfigDiscriminatorType.SlackChannelReader => "slack_channel_reader", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static PipelinesPreviewPipelineRequestProducerConfigDiscriminatorType? ToEnum(string value) + { + return value switch + { + "custom_webhook" => PipelinesPreviewPipelineRequestProducerConfigDiscriminatorType.CustomWebhook, + "slack_channel_reader" => PipelinesPreviewPipelineRequestProducerConfigDiscriminatorType.SlackChannelReader, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Letta/Generated/Letta.Models.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminator.g.cs b/src/libs/Letta/Generated/Letta.Models.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminator.g.cs index 59bc425a..2f9cccab 100644 --- a/src/libs/Letta/Generated/Letta.Models.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminator.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class PipelinesUpdatePipelineProducerConfigRequestProducer /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorTypeJsonConverter))] + public global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class PipelinesUpdatePipelineProducerConfigRequestProducer [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminator( - string? type) + global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/Letta/Generated/Letta.Models.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorType.g.cs b/src/libs/Letta/Generated/Letta.Models.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorType.g.cs new file mode 100644 index 00000000..cdc25ad0 --- /dev/null +++ b/src/libs/Letta/Generated/Letta.Models.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Letta +{ + /// + /// + /// + public enum PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorType + { + /// + /// + /// + CustomWebhook, + /// + /// + /// + SlackChannelReader, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorType value) + { + return value switch + { + PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorType.CustomWebhook => "custom_webhook", + PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorType.SlackChannelReader => "slack_channel_reader", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorType? ToEnum(string value) + { + return value switch + { + "custom_webhook" => PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorType.CustomWebhook, + "slack_channel_reader" => PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorType.SlackChannelReader, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Letta/Generated/Letta.Models.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminator.g.cs b/src/libs/Letta/Generated/Letta.Models.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminator.g.cs index d64b1a47..772746d4 100644 --- a/src/libs/Letta/Generated/Letta.Models.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminator.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class PipelinesUpdatePipelineProducerConfigResponsePipelin /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorTypeJsonConverter))] + public global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class PipelinesUpdatePipelineProducerConfigResponsePipelin [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminator( - string? type) + global::Letta.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/Letta/Generated/Letta.Models.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorType.g.cs b/src/libs/Letta/Generated/Letta.Models.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorType.g.cs new file mode 100644 index 00000000..64d6f74e --- /dev/null +++ b/src/libs/Letta/Generated/Letta.Models.PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Letta +{ + /// + /// + /// + public enum PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorType + { + /// + /// + /// + CustomWebhook, + /// + /// + /// + SlackChannelReader, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorType value) + { + return value switch + { + PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorType.CustomWebhook => "custom_webhook", + PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorType.SlackChannelReader => "slack_channel_reader", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorType? ToEnum(string value) + { + return value switch + { + "custom_webhook" => PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorType.CustomWebhook, + "slack_channel_reader" => PipelinesUpdatePipelineProducerConfigResponsePipelineConfigDiscriminatorType.SlackChannelReader, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Letta/Generated/Letta.Models.PipelinesUpdatePipelineResponsePipelineConfigDiscriminator.g.cs b/src/libs/Letta/Generated/Letta.Models.PipelinesUpdatePipelineResponsePipelineConfigDiscriminator.g.cs index 5a15de0f..7c559bbe 100644 --- a/src/libs/Letta/Generated/Letta.Models.PipelinesUpdatePipelineResponsePipelineConfigDiscriminator.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.PipelinesUpdatePipelineResponsePipelineConfigDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class PipelinesUpdatePipelineResponsePipelineConfigDiscrim /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Letta.JsonConverters.PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorTypeJsonConverter))] + public global::Letta.PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class PipelinesUpdatePipelineResponsePipelineConfigDiscrim [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public PipelinesUpdatePipelineResponsePipelineConfigDiscriminator( - string? type) + global::Letta.PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/Letta/Generated/Letta.Models.PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorType.g.cs b/src/libs/Letta/Generated/Letta.Models.PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorType.g.cs new file mode 100644 index 00000000..ae0d27e0 --- /dev/null +++ b/src/libs/Letta/Generated/Letta.Models.PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Letta +{ + /// + /// + /// + public enum PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorType + { + /// + /// + /// + CustomWebhook, + /// + /// + /// + SlackChannelReader, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorType value) + { + return value switch + { + PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorType.CustomWebhook => "custom_webhook", + PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorType.SlackChannelReader => "slack_channel_reader", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorType? ToEnum(string value) + { + return value switch + { + "custom_webhook" => PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorType.CustomWebhook, + "slack_channel_reader" => PipelinesUpdatePipelineResponsePipelineConfigDiscriminatorType.SlackChannelReader, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Letta/Generated/Letta.Models.PolicyItem.g.cs b/src/libs/Letta/Generated/Letta.Models.PolicyItem.g.cs index f26efcf4..cfc7225e 100644 --- a/src/libs/Letta/Generated/Letta.Models.PolicyItem.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.PolicyItem.g.cs @@ -12,6 +12,11 @@ namespace Letta /// /// /// + public global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorType? Type { get; } + + /// + /// + /// #if NET6_0_OR_GREATER public global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemVariant1? Agent { get; init; } #else @@ -56,6 +61,19 @@ public PolicyItem(global::Letta.ClientSideAccessTokensCreateClientSideAccessToke Agent = value; } + /// + /// + /// + public PolicyItem( + global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorType? type, + global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemVariant1? agent + ) + { + Type = type; + + Agent = agent; + } + /// /// /// diff --git a/src/libs/Letta/Generated/Letta.Models.ProducerConfig.g.cs b/src/libs/Letta/Generated/Letta.Models.ProducerConfig.g.cs index 14decf1c..a4fba072 100644 --- a/src/libs/Letta/Generated/Letta.Models.ProducerConfig.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ProducerConfig.g.cs @@ -12,6 +12,11 @@ namespace Letta /// /// /// + public global::Letta.PipelinesCreatePipelineRequestProducerConfigDiscriminatorType? Type { get; } + + /// + /// + /// #if NET6_0_OR_GREATER public global::Letta.PipelinesCreatePipelineRequestProducerConfigVariant1? SlackChannelReader { get; init; } #else @@ -108,10 +113,13 @@ public ProducerConfig(global::Letta.PipelinesCreatePipelineRequestProducerConfig /// /// public ProducerConfig( + global::Letta.PipelinesCreatePipelineRequestProducerConfigDiscriminatorType? type, global::Letta.PipelinesCreatePipelineRequestProducerConfigVariant1? slackChannelReader, global::Letta.PipelinesCreatePipelineRequestProducerConfigVariant2? customWebhook ) { + Type = type; + SlackChannelReader = slackChannelReader; CustomWebhook = customWebhook; } diff --git a/src/libs/Letta/Generated/Letta.Models.ProducerConfig2.g.cs b/src/libs/Letta/Generated/Letta.Models.ProducerConfig2.g.cs index 5bb17c39..4016cada 100644 --- a/src/libs/Letta/Generated/Letta.Models.ProducerConfig2.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ProducerConfig2.g.cs @@ -12,6 +12,11 @@ namespace Letta /// /// /// + public global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorType? Type { get; } + + /// + /// + /// #if NET6_0_OR_GREATER public global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant1? SlackChannelReader { get; init; } #else @@ -108,10 +113,13 @@ public ProducerConfig2(global::Letta.PipelinesUpdatePipelineProducerConfigReques /// /// public ProducerConfig2( + global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigDiscriminatorType? type, global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant1? slackChannelReader, global::Letta.PipelinesUpdatePipelineProducerConfigRequestProducerConfigVariant2? customWebhook ) { + Type = type; + SlackChannelReader = slackChannelReader; CustomWebhook = customWebhook; } diff --git a/src/libs/Letta/Generated/Letta.Models.ProducerConfig3.g.cs b/src/libs/Letta/Generated/Letta.Models.ProducerConfig3.g.cs index 29f82ea1..4cb6134d 100644 --- a/src/libs/Letta/Generated/Letta.Models.ProducerConfig3.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.ProducerConfig3.g.cs @@ -12,6 +12,11 @@ namespace Letta /// /// /// + public global::Letta.PipelinesPreviewPipelineRequestProducerConfigDiscriminatorType? Type { get; } + + /// + /// + /// #if NET6_0_OR_GREATER public global::Letta.PipelinesPreviewPipelineRequestProducerConfigVariant1? SlackChannelReader { get; init; } #else @@ -108,10 +113,13 @@ public ProducerConfig3(global::Letta.PipelinesPreviewPipelineRequestProducerConf /// /// public ProducerConfig3( + global::Letta.PipelinesPreviewPipelineRequestProducerConfigDiscriminatorType? type, global::Letta.PipelinesPreviewPipelineRequestProducerConfigVariant1? slackChannelReader, global::Letta.PipelinesPreviewPipelineRequestProducerConfigVariant2? customWebhook ) { + Type = type; + SlackChannelReader = slackChannelReader; CustomWebhook = customWebhook; } diff --git a/src/libs/Letta/Generated/Letta.Models.TemplatesCreateTemplateNoProjectRequest.g.cs b/src/libs/Letta/Generated/Letta.Models.TemplatesCreateTemplateNoProjectRequest.g.cs index 5e755b25..9514659a 100644 --- a/src/libs/Letta/Generated/Letta.Models.TemplatesCreateTemplateNoProjectRequest.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.TemplatesCreateTemplateNoProjectRequest.g.cs @@ -9,6 +9,11 @@ namespace Letta /// public readonly partial struct TemplatesCreateTemplateNoProjectRequest : global::System.IEquatable { + /// + /// + /// + public global::Letta.TemplatesCreateTemplateNoProjectRequestDiscriminatorType? Type { get; } + /// /// Create a template from an existing agent /// @@ -108,10 +113,13 @@ public TemplatesCreateTemplateNoProjectRequest(global::Letta.TemplatesCreateTemp /// /// public TemplatesCreateTemplateNoProjectRequest( + global::Letta.TemplatesCreateTemplateNoProjectRequestDiscriminatorType? type, global::Letta.TemplatesCreateTemplateNoProjectRequestVariant1? agent, global::Letta.TemplatesCreateTemplateNoProjectRequestVariant2? agentFile ) { + Type = type; + Agent = agent; AgentFile = agentFile; } diff --git a/src/libs/Letta/Generated/Letta.Models.TemplatesCreateTemplateNoProjectRequestDiscriminator.g.cs b/src/libs/Letta/Generated/Letta.Models.TemplatesCreateTemplateNoProjectRequestDiscriminator.g.cs index 72ef1f5c..90efafec 100644 --- a/src/libs/Letta/Generated/Letta.Models.TemplatesCreateTemplateNoProjectRequestDiscriminator.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.TemplatesCreateTemplateNoProjectRequestDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class TemplatesCreateTemplateNoProjectRequestDiscriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Letta.JsonConverters.TemplatesCreateTemplateNoProjectRequestDiscriminatorTypeJsonConverter))] + public global::Letta.TemplatesCreateTemplateNoProjectRequestDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class TemplatesCreateTemplateNoProjectRequestDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public TemplatesCreateTemplateNoProjectRequestDiscriminator( - string? type) + global::Letta.TemplatesCreateTemplateNoProjectRequestDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/Letta/Generated/Letta.Models.TemplatesCreateTemplateNoProjectRequestDiscriminatorType.g.cs b/src/libs/Letta/Generated/Letta.Models.TemplatesCreateTemplateNoProjectRequestDiscriminatorType.g.cs new file mode 100644 index 00000000..e1a7df41 --- /dev/null +++ b/src/libs/Letta/Generated/Letta.Models.TemplatesCreateTemplateNoProjectRequestDiscriminatorType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Letta +{ + /// + /// + /// + public enum TemplatesCreateTemplateNoProjectRequestDiscriminatorType + { + /// + /// + /// + Agent, + /// + /// + /// + AgentFile, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class TemplatesCreateTemplateNoProjectRequestDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this TemplatesCreateTemplateNoProjectRequestDiscriminatorType value) + { + return value switch + { + TemplatesCreateTemplateNoProjectRequestDiscriminatorType.Agent => "agent", + TemplatesCreateTemplateNoProjectRequestDiscriminatorType.AgentFile => "agent_file", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static TemplatesCreateTemplateNoProjectRequestDiscriminatorType? ToEnum(string value) + { + return value switch + { + "agent" => TemplatesCreateTemplateNoProjectRequestDiscriminatorType.Agent, + "agent_file" => TemplatesCreateTemplateNoProjectRequestDiscriminatorType.AgentFile, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Letta/Generated/Letta.Models.TemplatesCreateTemplateRequest.g.cs b/src/libs/Letta/Generated/Letta.Models.TemplatesCreateTemplateRequest.g.cs index 88007962..e293bed2 100644 --- a/src/libs/Letta/Generated/Letta.Models.TemplatesCreateTemplateRequest.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.TemplatesCreateTemplateRequest.g.cs @@ -9,6 +9,11 @@ namespace Letta /// public readonly partial struct TemplatesCreateTemplateRequest : global::System.IEquatable { + /// + /// + /// + public global::Letta.TemplatesCreateTemplateRequestDiscriminatorType? Type { get; } + /// /// Create a template from an existing agent /// @@ -108,10 +113,13 @@ public TemplatesCreateTemplateRequest(global::Letta.TemplatesCreateTemplateReque /// /// public TemplatesCreateTemplateRequest( + global::Letta.TemplatesCreateTemplateRequestDiscriminatorType? type, global::Letta.TemplatesCreateTemplateRequestVariant1? agent, global::Letta.TemplatesCreateTemplateRequestVariant2? agentFile ) { + Type = type; + Agent = agent; AgentFile = agentFile; } diff --git a/src/libs/Letta/Generated/Letta.Models.TemplatesCreateTemplateRequestDiscriminator.g.cs b/src/libs/Letta/Generated/Letta.Models.TemplatesCreateTemplateRequestDiscriminator.g.cs index 1d7f34d9..da29ca63 100644 --- a/src/libs/Letta/Generated/Letta.Models.TemplatesCreateTemplateRequestDiscriminator.g.cs +++ b/src/libs/Letta/Generated/Letta.Models.TemplatesCreateTemplateRequestDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class TemplatesCreateTemplateRequestDiscriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Letta.JsonConverters.TemplatesCreateTemplateRequestDiscriminatorTypeJsonConverter))] + public global::Letta.TemplatesCreateTemplateRequestDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class TemplatesCreateTemplateRequestDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public TemplatesCreateTemplateRequestDiscriminator( - string? type) + global::Letta.TemplatesCreateTemplateRequestDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/Letta/Generated/Letta.Models.TemplatesCreateTemplateRequestDiscriminatorType.g.cs b/src/libs/Letta/Generated/Letta.Models.TemplatesCreateTemplateRequestDiscriminatorType.g.cs new file mode 100644 index 00000000..64fa71ea --- /dev/null +++ b/src/libs/Letta/Generated/Letta.Models.TemplatesCreateTemplateRequestDiscriminatorType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Letta +{ + /// + /// + /// + public enum TemplatesCreateTemplateRequestDiscriminatorType + { + /// + /// + /// + Agent, + /// + /// + /// + AgentFile, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class TemplatesCreateTemplateRequestDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this TemplatesCreateTemplateRequestDiscriminatorType value) + { + return value switch + { + TemplatesCreateTemplateRequestDiscriminatorType.Agent => "agent", + TemplatesCreateTemplateRequestDiscriminatorType.AgentFile => "agent_file", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static TemplatesCreateTemplateRequestDiscriminatorType? ToEnum(string value) + { + return value switch + { + "agent" => TemplatesCreateTemplateRequestDiscriminatorType.Agent, + "agent_file" => TemplatesCreateTemplateRequestDiscriminatorType.AgentFile, + _ => null, + }; + } + } +} \ No newline at end of file