Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/libs/Letta/Generated/Letta.JsonConverters.AnyOf2.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ public class AnyOfJsonConverter<T1, T2> : global::System.Text.Json.Serialization
catch (global::System.InvalidOperationException)
{
}
}

if (value1 == null && value2 == null)
{
try
{

Expand Down
6 changes: 6 additions & 0 deletions src/libs/Letta/Generated/Letta.JsonConverters.AnyOf3.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,10 @@ public class AnyOfJsonConverter<T1, T2, T3> : global::System.Text.Json.Serializa
catch (global::System.InvalidOperationException)
{
}
}

if (value1 == null && value2 == null && value3 == null)
{
try
{

Expand All @@ -151,7 +154,10 @@ public class AnyOfJsonConverter<T1, T2, T3> : global::System.Text.Json.Serializa
catch (global::System.InvalidOperationException)
{
}
}

if (value1 == null && value2 == null && value3 == null)
{
try
{

Expand Down
9 changes: 9 additions & 0 deletions src/libs/Letta/Generated/Letta.JsonConverters.AnyOf4.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,10 @@ public class AnyOfJsonConverter<T1, T2, T3, T4> : global::System.Text.Json.Seria
catch (global::System.InvalidOperationException)
{
}
}

if (value1 == null && value2 == null && value3 == null && value4 == null)
{
try
{

Expand All @@ -181,7 +184,10 @@ public class AnyOfJsonConverter<T1, T2, T3, T4> : global::System.Text.Json.Seria
catch (global::System.InvalidOperationException)
{
}
}

if (value1 == null && value2 == null && value3 == null && value4 == null)
{
try
{

Expand All @@ -195,7 +201,10 @@ public class AnyOfJsonConverter<T1, T2, T3, T4> : global::System.Text.Json.Seria
catch (global::System.InvalidOperationException)
{
}
}

if (value1 == null && value2 == null && value3 == null && value4 == null)
{
try
{

Expand Down
12 changes: 12 additions & 0 deletions src/libs/Letta/Generated/Letta.JsonConverters.AnyOf5.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,10 @@ public class AnyOfJsonConverter<T1, T2, T3, T4, T5> : global::System.Text.Json.S
catch (global::System.InvalidOperationException)
{
}
}

if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null)
{
try
{

Expand All @@ -211,7 +214,10 @@ public class AnyOfJsonConverter<T1, T2, T3, T4, T5> : global::System.Text.Json.S
catch (global::System.InvalidOperationException)
{
}
}

if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null)
{
try
{

Expand All @@ -225,7 +231,10 @@ public class AnyOfJsonConverter<T1, T2, T3, T4, T5> : global::System.Text.Json.S
catch (global::System.InvalidOperationException)
{
}
}

if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null)
{
try
{

Expand All @@ -239,7 +248,10 @@ public class AnyOfJsonConverter<T1, T2, T3, T4, T5> : global::System.Text.Json.S
catch (global::System.InvalidOperationException)
{
}
}

if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null)
{
try
{

Expand Down
15 changes: 15 additions & 0 deletions src/libs/Letta/Generated/Letta.JsonConverters.AnyOf6.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,10 @@ public class AnyOfJsonConverter<T1, T2, T3, T4, T5, T6> : global::System.Text.Js
catch (global::System.InvalidOperationException)
{
}
}

if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null)
{
try
{

Expand All @@ -241,7 +244,10 @@ public class AnyOfJsonConverter<T1, T2, T3, T4, T5, T6> : global::System.Text.Js
catch (global::System.InvalidOperationException)
{
}
}

if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null)
{
try
{

Expand All @@ -255,7 +261,10 @@ public class AnyOfJsonConverter<T1, T2, T3, T4, T5, T6> : global::System.Text.Js
catch (global::System.InvalidOperationException)
{
}
}

if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null)
{
try
{

Expand All @@ -269,7 +278,10 @@ public class AnyOfJsonConverter<T1, T2, T3, T4, T5, T6> : global::System.Text.Js
catch (global::System.InvalidOperationException)
{
}
}

if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null)
{
try
{

Expand All @@ -283,7 +295,10 @@ public class AnyOfJsonConverter<T1, T2, T3, T4, T5, T6> : global::System.Text.Js
catch (global::System.InvalidOperationException)
{
}
}

if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null)
{
try
{

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#nullable enable

namespace Letta.JsonConverters
{
/// <inheritdoc />
public sealed class ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorType>
{
/// <inheritdoc />
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;
}

/// <inheritdoc />
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));
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
#nullable enable

namespace Letta.JsonConverters
{
/// <inheritdoc />
public sealed class ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemDiscriminatorType?>
{
/// <inheritdoc />
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;
}

/// <inheritdoc />
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));
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#nullable enable

namespace Letta.JsonConverters
{
/// <inheritdoc />
public sealed class ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorType>
{
/// <inheritdoc />
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;
}

/// <inheritdoc />
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));
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
#nullable enable

namespace Letta.JsonConverters
{
/// <inheritdoc />
public sealed class ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemDiscriminatorType?>
{
/// <inheritdoc />
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;
}

/// <inheritdoc />
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));
}
}
}
}
Loading
Loading