diff --git a/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.CreatePhoneNumber.g.cs b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.CreatePhoneNumber.g.cs
index e4a8b92..08b2c22 100644
--- a/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.CreatePhoneNumber.g.cs
+++ b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.CreatePhoneNumber.g.cs
@@ -1,7 +1,5 @@
#nullable enable
-#pragma warning disable CS0618 // Type or member is obsolete
-
namespace RetellAI
{
public partial interface IRetellAiClient
@@ -22,10 +20,10 @@ public partial interface IRetellAiClient
/// Buy a new phone number & Bind agents
///
///
- /// Inbound agents to bind to the number with weights. If set and non-empty, one agent will be picked randomly for each inbound call, with probability proportional to the weight. Total weights must add up to 1. If not set or empty, fallback to inbound_agent_id.
+ /// Inbound agents to bind to the number with weights. If set and non-empty, one agent will be picked randomly for each inbound call, with probability proportional to the weight. Total weights must add up to 1.
///
///
- /// Outbound agents to bind to the number with weights. If set and non-empty, one agent will be picked randomly for each outbound call, with probability proportional to the weight. Total weights must add up to 1. If not set or empty, fallback to outbound_agent_id.
+ /// Outbound agents to bind to the number with weights. If set and non-empty, one agent will be picked randomly for each outbound call, with probability proportional to the weight. Total weights must add up to 1.
///
///
/// Area code of the number to obtain. Format is a 3 digit integer. Currently only supports US area code.
diff --git a/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.ImportPhoneNumber.g.cs b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.ImportPhoneNumber.g.cs
index 865ec8a..05a1063 100644
--- a/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.ImportPhoneNumber.g.cs
+++ b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.ImportPhoneNumber.g.cs
@@ -1,7 +1,5 @@
#nullable enable
-#pragma warning disable CS0618 // Type or member is obsolete
-
namespace RetellAI
{
public partial interface IRetellAiClient
@@ -42,10 +40,10 @@ public partial interface IRetellAiClient
/// Example: 123456
///
///
- /// Inbound agents to bind to the number with weights. If set and non-empty, one agent will be picked randomly for each inbound call, with probability proportional to the weight. Total weights must add up to 1. If not set or empty, fallback to inbound_agent_id.
+ /// Inbound agents to bind to the number with weights. If set and non-empty, one agent will be picked randomly for each inbound call, with probability proportional to the weight. Total weights must add up to 1.
///
///
- /// Outbound agents to bind to the number with weights. If set and non-empty, one agent will be picked randomly for each outbound call, with probability proportional to the weight. Total weights must add up to 1. If not set or empty, fallback to outbound_agent_id.
+ /// Outbound agents to bind to the number with weights. If set and non-empty, one agent will be picked randomly for each outbound call, with probability proportional to the weight. Total weights must add up to 1.
///
///
/// Nickname of the number. This is for your reference only.
diff --git a/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.ListAgents.g.cs b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.ListAgents.g.cs
index cbbe533..2185d6b 100644
--- a/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.ListAgents.g.cs
+++ b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.ListAgents.g.cs
@@ -16,6 +16,9 @@ public partial interface IRetellAiClient
///
/// Example: 0
///
+ ///
+ /// Example: true
+ ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
@@ -23,6 +26,7 @@ public partial interface IRetellAiClient
int? limit = default,
string? paginationKey = default,
int? paginationKeyVersion = default,
+ bool? isLatest = default,
global::RetellAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.ListCallsV3.g.cs b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.ListCallsV3.g.cs
new file mode 100644
index 0000000..42e12dd
--- /dev/null
+++ b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.ListCallsV3.g.cs
@@ -0,0 +1,52 @@
+#nullable enable
+
+namespace RetellAI
+{
+ public partial interface IRetellAiClient
+ {
+ ///
+ /// List calls with unified cursor pagination response and total count.
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> ListCallsV3Async(
+
+ global::RetellAI.ListCallsV3Request request,
+ global::RetellAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List calls with unified cursor pagination response and total count.
+ ///
+ ///
+ /// Filter criteria for calls. All conditions are implicitly connected with AND.
+ ///
+ ///
+ /// Sort calls by `start_timestamp` in ascending or descending order.
+ /// Default Value: descending
+ ///
+ ///
+ /// Maximum number of calls to return.
+ /// Default Value: 50
+ ///
+ ///
+ /// Number of records to skip for pagination.
+ /// Default Value: 0
+ ///
+ ///
+ /// Opaque pagination cursor from a previous response.
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> ListCallsV3Async(
+ global::RetellAI.CallFilter? filterCriteria = default,
+ global::RetellAI.ListCallsV3RequestSortOrder? sortOrder = default,
+ int? limit = default,
+ int? skip = default,
+ string? paginationKey = default,
+ global::RetellAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.ListChatAgents.g.cs b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.ListChatAgents.g.cs
index 2e70931..2e56f1f 100644
--- a/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.ListChatAgents.g.cs
+++ b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.ListChatAgents.g.cs
@@ -16,6 +16,9 @@ public partial interface IRetellAiClient
///
/// Example: 0
///
+ ///
+ /// Example: true
+ ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
@@ -23,6 +26,7 @@ public partial interface IRetellAiClient
int? limit = default,
string? paginationKey = default,
int? paginationKeyVersion = default,
+ bool? isLatest = default,
global::RetellAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.ListChatsV3.g.cs b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.ListChatsV3.g.cs
new file mode 100644
index 0000000..97adc82
--- /dev/null
+++ b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.ListChatsV3.g.cs
@@ -0,0 +1,52 @@
+#nullable enable
+
+namespace RetellAI
+{
+ public partial interface IRetellAiClient
+ {
+ ///
+ /// List chats with unified cursor pagination response and total count.
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> ListChatsV3Async(
+
+ global::RetellAI.ListChatsV3Request request,
+ global::RetellAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List chats with unified cursor pagination response and total count.
+ ///
+ ///
+ /// Filter criteria for chats to retrieve.
+ ///
+ ///
+ /// Sort chats by `start_timestamp` in ascending or descending order.
+ /// Default Value: descending
+ ///
+ ///
+ /// Maximum number of chats to return.
+ /// Default Value: 50
+ ///
+ ///
+ /// Number of records to skip for pagination.
+ /// Default Value: 0
+ ///
+ ///
+ /// Opaque pagination cursor from a previous response.
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> ListChatsV3Async(
+ object? filterCriteria = default,
+ global::RetellAI.ListChatsV3RequestSortOrder? sortOrder = default,
+ int? limit = default,
+ int? skip = default,
+ string? paginationKey = default,
+ global::RetellAI.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.ListTestCaseDefinitions.g.cs b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.ListTestCaseDefinitions.g.cs
index 425510a..d8a857a 100644
--- a/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.ListTestCaseDefinitions.g.cs
+++ b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.ListTestCaseDefinitions.g.cs
@@ -10,7 +10,6 @@ public partial interface IRetellAiClient
///
///
///
- ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
@@ -18,7 +17,6 @@ public partial interface IRetellAiClient
global::RetellAI.ListTestCaseDefinitionsType type,
string? llmId = default,
string? conversationFlowId = default,
- int? version = default,
global::RetellAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.ListTestCaseDefinitionsV2.g.cs b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.ListTestCaseDefinitionsV2.g.cs
index 657a4c5..3d50763 100644
--- a/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.ListTestCaseDefinitionsV2.g.cs
+++ b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.ListTestCaseDefinitionsV2.g.cs
@@ -10,7 +10,6 @@ public partial interface IRetellAiClient
///
///
///
- ///
///
/// Default Value: 50
///
@@ -22,7 +21,6 @@ public partial interface IRetellAiClient
global::RetellAI.ListTestCaseDefinitionsV2Type type,
string? llmId = default,
string? conversationFlowId = default,
- int? version = default,
int? limit = default,
string? paginationKey = default,
global::RetellAI.AutoSDKRequestOptions? requestOptions = default,
diff --git a/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.UpdateAgent.g.cs b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.UpdateAgent.g.cs
index e9325de..b239f7a 100644
--- a/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.UpdateAgent.g.cs
+++ b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.UpdateAgent.g.cs
@@ -162,10 +162,6 @@ public partial interface IRetellAiClient
///
/// A list of words / phrases and their pronunciation to be used to guide the audio synthesize for consistent pronunciation. Check the dashboard to see what provider supports this feature. Set to null to remove pronunciation dictionary from this agent.
///
- ///
- /// If set to true, will normalize the some part of text (number, currency, date, etc) to spoken to its spoken form for more consistent speech synthesis (sometimes the voice synthesize system itself might read these wrong with the raw text). For example, it will convert "Call my number 2137112342 on Jul 5th, 2024 for the $24.12 payment" to "Call my number two one three seven one one two three four two on july fifth, twenty twenty four for the twenty four dollars twelve cents payment" before starting audio generation.
- /// Example: true
- ///
///
/// If users stay silent for a period after agent speech, end the call. The minimum value allowed is 10,000 ms (10 s). By default, this is set to 600000 (10 min).
/// Example: 600000
@@ -286,7 +282,6 @@ public partial interface IRetellAiClient
bool? optInSignedUrl = default,
int? signedUrlExpirationMs = default,
global::System.Collections.Generic.IList? pronunciationDictionary = default,
- bool? normalizeForSpeech = default,
int? endCallAfterSilenceMs = default,
int? maxCallDurationMs = default,
string? voicemailMessage = default,
diff --git a/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.UpdatePhoneNumber.g.cs b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.UpdatePhoneNumber.g.cs
index 98949f1..7b0bb11 100644
--- a/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.UpdatePhoneNumber.g.cs
+++ b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.UpdatePhoneNumber.g.cs
@@ -1,7 +1,5 @@
#nullable enable
-#pragma warning disable CS0618 // Type or member is obsolete
-
namespace RetellAI
{
public partial interface IRetellAiClient
@@ -28,15 +26,11 @@ public partial interface IRetellAiClient
///
/// Example: +14157774444
///
- ///
- /// Version of the outbound agent to bind to the number. If not provided, will default to latest version.
- /// Example: 1
- ///
///
- /// Inbound agents to bind to the number with weights. If set and non-empty, one agent will be picked randomly for each inbound call, with probability proportional to the weight. Total weights must add up to 1. If not set or empty, fallback to inbound_agent_id.
+ /// Inbound agents to bind to the number with weights. If set and non-empty, one agent will be picked randomly for each inbound call, with probability proportional to the weight. Total weights must add up to 1.
///
///
- /// Outbound agents to bind to the number with weights. If set and non-empty, one agent will be picked randomly for each outbound call, with probability proportional to the weight. Total weights must add up to 1. If not set or empty, fallback to outbound_agent_id.
+ /// Outbound agents to bind to the number with weights. If set and non-empty, one agent will be picked randomly for each outbound call, with probability proportional to the weight. Total weights must add up to 1.
///
///
/// Inbound SMS agents to bind to the number with weights. If set and non-empty, one agent will be picked randomly for each inbound SMS, with probability proportional to the weight. Total weights must add up to 1. If not set or empty, fallback to inbound_sms_agent_id.
@@ -89,7 +83,6 @@ public partial interface IRetellAiClient
///
global::System.Threading.Tasks.Task UpdatePhoneNumberAsync(
string phoneNumber,
- int? outboundAgentVersion = default,
global::System.Collections.Generic.IList? inboundAgents = default,
global::System.Collections.Generic.IList? outboundAgents = default,
global::System.Collections.Generic.IList? inboundSmsAgents = default,
diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AgentResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AgentResponse.g.cs
index 48db1ac..fcf6de3 100644
--- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AgentResponse.g.cs
+++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AgentResponse.g.cs
@@ -80,7 +80,6 @@ public class AgentResponseJsonConverter : global::System.Text.Json.Serialization
if (__jsonProps.Contains("ivr_option.action")) __score1++;
if (__jsonProps.Contains("language")) __score1++;
if (__jsonProps.Contains("max_call_duration_ms")) __score1++;
- if (__jsonProps.Contains("normalize_for_speech")) __score1++;
if (__jsonProps.Contains("opt_in_signed_url")) __score1++;
if (__jsonProps.Contains("pii_config")) __score1++;
if (__jsonProps.Contains("pii_config.categories")) __score1++;
diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ChatMessageInput.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ChatMessageInput.g.cs
new file mode 100644
index 0000000..d01488f
--- /dev/null
+++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ChatMessageInput.g.cs
@@ -0,0 +1,281 @@
+#nullable enable
+#pragma warning disable CS0618 // Type or member is obsolete
+
+namespace RetellAI.JsonConverters
+{
+ ///
+ public class ChatMessageInputJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::RetellAI.ChatMessageInput Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
+ var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+
+ 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("content")) __score0++;
+ if (__jsonProps.Contains("created_timestamp")) __score0++;
+ if (__jsonProps.Contains("message_id")) __score0++;
+ if (__jsonProps.Contains("role")) __score0++;
+ var __score1 = 0;
+ if (__jsonProps.Contains("arguments")) __score1++;
+ if (__jsonProps.Contains("created_timestamp")) __score1++;
+ if (__jsonProps.Contains("message_id")) __score1++;
+ if (__jsonProps.Contains("name")) __score1++;
+ if (__jsonProps.Contains("role")) __score1++;
+ if (__jsonProps.Contains("thought_signature")) __score1++;
+ if (__jsonProps.Contains("tool_call_id")) __score1++;
+ var __score2 = 0;
+ if (__jsonProps.Contains("content")) __score2++;
+ if (__jsonProps.Contains("created_timestamp")) __score2++;
+ if (__jsonProps.Contains("message_id")) __score2++;
+ if (__jsonProps.Contains("role")) __score2++;
+ if (__jsonProps.Contains("successful")) __score2++;
+ if (__jsonProps.Contains("tool_call_id")) __score2++;
+ var __score3 = 0;
+ if (__jsonProps.Contains("created_timestamp")) __score3++;
+ if (__jsonProps.Contains("former_node_id")) __score3++;
+ if (__jsonProps.Contains("former_node_name")) __score3++;
+ if (__jsonProps.Contains("message_id")) __score3++;
+ if (__jsonProps.Contains("new_node_id")) __score3++;
+ if (__jsonProps.Contains("new_node_name")) __score3++;
+ if (__jsonProps.Contains("role")) __score3++;
+ if (__jsonProps.Contains("transition_type")) __score3++;
+ var __score4 = 0;
+ if (__jsonProps.Contains("created_timestamp")) __score4++;
+ if (__jsonProps.Contains("former_state_name")) __score4++;
+ if (__jsonProps.Contains("message_id")) __score4++;
+ if (__jsonProps.Contains("new_state_name")) __score4++;
+ if (__jsonProps.Contains("role")) __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; }
+
+ global::RetellAI.MessageBase? @base = default;
+ global::RetellAI.ToolCallInvocationMessageBase? toolCallInvocationBase = default;
+ global::RetellAI.ToolCallResultMessageBase? toolCallResultBase = default;
+ global::RetellAI.NodeTransitionMessageBase? nodeTransitionBase = default;
+ global::RetellAI.StateTransitionMessageBase? stateTransitionBase = default;
+ if (__bestIndex >= 0)
+ {
+ if (__bestIndex == 0)
+ {
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.MessageBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.MessageBase).Name}");
+ @base = 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::RetellAI.ToolCallInvocationMessageBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ToolCallInvocationMessageBase).Name}");
+ toolCallInvocationBase = 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::RetellAI.ToolCallResultMessageBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ToolCallResultMessageBase).Name}");
+ toolCallResultBase = 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::RetellAI.NodeTransitionMessageBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeTransitionMessageBase).Name}");
+ nodeTransitionBase = 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::RetellAI.StateTransitionMessageBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.StateTransitionMessageBase).Name}");
+ stateTransitionBase = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+ }
+ }
+
+ if (@base == null && toolCallInvocationBase == null && toolCallResultBase == null && nodeTransitionBase == null && stateTransitionBase == null)
+ {
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.MessageBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.MessageBase).Name}");
+ @base = 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::RetellAI.ToolCallInvocationMessageBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ToolCallInvocationMessageBase).Name}");
+ toolCallInvocationBase = 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::RetellAI.ToolCallResultMessageBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ToolCallResultMessageBase).Name}");
+ toolCallResultBase = 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::RetellAI.NodeTransitionMessageBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeTransitionMessageBase).Name}");
+ nodeTransitionBase = 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::RetellAI.StateTransitionMessageBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.StateTransitionMessageBase).Name}");
+ stateTransitionBase = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ catch (global::System.InvalidOperationException)
+ {
+ }
+ }
+
+ var __value = new global::RetellAI.ChatMessageInput(
+ @base,
+
+ toolCallInvocationBase,
+
+ toolCallResultBase,
+
+ nodeTransitionBase,
+
+ stateTransitionBase
+ );
+
+ return __value;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::RetellAI.ChatMessageInput value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
+ var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+
+ if (value.IsBase)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.MessageBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.MessageBase).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.Base!, typeInfo);
+ }
+ else if (value.IsToolCallInvocationBase)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ToolCallInvocationMessageBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ToolCallInvocationMessageBase).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolCallInvocationBase!, typeInfo);
+ }
+ else if (value.IsToolCallResultBase)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ToolCallResultMessageBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ToolCallResultMessageBase).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolCallResultBase!, typeInfo);
+ }
+ else if (value.IsNodeTransitionBase)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeTransitionMessageBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeTransitionMessageBase).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.NodeTransitionBase!, typeInfo);
+ }
+ else if (value.IsStateTransitionBase)
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.StateTransitionMessageBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.StateTransitionMessageBase).Name}");
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.StateTransitionBase!, typeInfo);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CodeNode.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CodeNode.g.cs
index cde8537..933e4cb 100644
--- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CodeNode.g.cs
+++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CodeNode.g.cs
@@ -32,6 +32,7 @@ public class CodeNodeJsonConverter : global::System.Text.Json.Serialization.Json
if (__jsonProps.Contains("code")) __score1++;
if (__jsonProps.Contains("edges")) __score1++;
if (__jsonProps.Contains("else_edge")) __score1++;
+ if (__jsonProps.Contains("enable_typing_sound")) __score1++;
if (__jsonProps.Contains("finetune_transition_examples")) __score1++;
if (__jsonProps.Contains("instruction")) __score1++;
if (__jsonProps.Contains("response_variables")) __score1++;
diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.FunctionNode.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.FunctionNode.g.cs
index f63a0e8..9063e5d 100644
--- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.FunctionNode.g.cs
+++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.FunctionNode.g.cs
@@ -31,6 +31,7 @@ public class FunctionNodeJsonConverter : global::System.Text.Json.Serialization.
var __score1 = 0;
if (__jsonProps.Contains("edges")) __score1++;
if (__jsonProps.Contains("else_edge")) __score1++;
+ if (__jsonProps.Contains("enable_typing_sound")) __score1++;
if (__jsonProps.Contains("finetune_transition_examples")) __score1++;
if (__jsonProps.Contains("instruction")) __score1++;
if (__jsonProps.Contains("speak_during_execution")) __score1++;
diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListCallsV3RequestSortOrder.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListCallsV3RequestSortOrder.g.cs
new file mode 100644
index 0000000..ec20a69
--- /dev/null
+++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListCallsV3RequestSortOrder.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace RetellAI.JsonConverters
+{
+ ///
+ public sealed class ListCallsV3RequestSortOrderJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::RetellAI.ListCallsV3RequestSortOrder 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::RetellAI.ListCallsV3RequestSortOrderExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::RetellAI.ListCallsV3RequestSortOrder)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::RetellAI.ListCallsV3RequestSortOrder);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::RetellAI.ListCallsV3RequestSortOrder value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::RetellAI.ListCallsV3RequestSortOrderExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListCallsV3RequestSortOrderNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListCallsV3RequestSortOrderNullable.g.cs
new file mode 100644
index 0000000..890693b
--- /dev/null
+++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListCallsV3RequestSortOrderNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace RetellAI.JsonConverters
+{
+ ///
+ public sealed class ListCallsV3RequestSortOrderNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::RetellAI.ListCallsV3RequestSortOrder? 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::RetellAI.ListCallsV3RequestSortOrderExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::RetellAI.ListCallsV3RequestSortOrder)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::RetellAI.ListCallsV3RequestSortOrder?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::RetellAI.ListCallsV3RequestSortOrder? 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::RetellAI.ListCallsV3RequestSortOrderExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListCallsV3ResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListCallsV3ResponseStatus.g.cs
new file mode 100644
index 0000000..c630713
--- /dev/null
+++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListCallsV3ResponseStatus.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace RetellAI.JsonConverters
+{
+ ///
+ public sealed class ListCallsV3ResponseStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::RetellAI.ListCallsV3ResponseStatus 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::RetellAI.ListCallsV3ResponseStatusExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::RetellAI.ListCallsV3ResponseStatus)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::RetellAI.ListCallsV3ResponseStatus);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::RetellAI.ListCallsV3ResponseStatus value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::RetellAI.ListCallsV3ResponseStatusExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListCallsV3ResponseStatus2.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListCallsV3ResponseStatus2.g.cs
new file mode 100644
index 0000000..169f367
--- /dev/null
+++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListCallsV3ResponseStatus2.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace RetellAI.JsonConverters
+{
+ ///
+ public sealed class ListCallsV3ResponseStatus2JsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::RetellAI.ListCallsV3ResponseStatus2 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::RetellAI.ListCallsV3ResponseStatus2Extensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::RetellAI.ListCallsV3ResponseStatus2)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::RetellAI.ListCallsV3ResponseStatus2);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::RetellAI.ListCallsV3ResponseStatus2 value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::RetellAI.ListCallsV3ResponseStatus2Extensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListCallsV3ResponseStatus2Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListCallsV3ResponseStatus2Nullable.g.cs
new file mode 100644
index 0000000..496c3ca
--- /dev/null
+++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListCallsV3ResponseStatus2Nullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace RetellAI.JsonConverters
+{
+ ///
+ public sealed class ListCallsV3ResponseStatus2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::RetellAI.ListCallsV3ResponseStatus2? 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::RetellAI.ListCallsV3ResponseStatus2Extensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::RetellAI.ListCallsV3ResponseStatus2)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::RetellAI.ListCallsV3ResponseStatus2?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::RetellAI.ListCallsV3ResponseStatus2? 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::RetellAI.ListCallsV3ResponseStatus2Extensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListCallsV3ResponseStatus3.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListCallsV3ResponseStatus3.g.cs
new file mode 100644
index 0000000..2150111
--- /dev/null
+++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListCallsV3ResponseStatus3.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace RetellAI.JsonConverters
+{
+ ///
+ public sealed class ListCallsV3ResponseStatus3JsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::RetellAI.ListCallsV3ResponseStatus3 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::RetellAI.ListCallsV3ResponseStatus3Extensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::RetellAI.ListCallsV3ResponseStatus3)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::RetellAI.ListCallsV3ResponseStatus3);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::RetellAI.ListCallsV3ResponseStatus3 value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::RetellAI.ListCallsV3ResponseStatus3Extensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListCallsV3ResponseStatus3Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListCallsV3ResponseStatus3Nullable.g.cs
new file mode 100644
index 0000000..b9ad6c2
--- /dev/null
+++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListCallsV3ResponseStatus3Nullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace RetellAI.JsonConverters
+{
+ ///
+ public sealed class ListCallsV3ResponseStatus3NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::RetellAI.ListCallsV3ResponseStatus3? 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::RetellAI.ListCallsV3ResponseStatus3Extensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::RetellAI.ListCallsV3ResponseStatus3)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::RetellAI.ListCallsV3ResponseStatus3?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::RetellAI.ListCallsV3ResponseStatus3? 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::RetellAI.ListCallsV3ResponseStatus3Extensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListCallsV3ResponseStatus4.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListCallsV3ResponseStatus4.g.cs
new file mode 100644
index 0000000..0fe6372
--- /dev/null
+++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListCallsV3ResponseStatus4.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace RetellAI.JsonConverters
+{
+ ///
+ public sealed class ListCallsV3ResponseStatus4JsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::RetellAI.ListCallsV3ResponseStatus4 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::RetellAI.ListCallsV3ResponseStatus4Extensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::RetellAI.ListCallsV3ResponseStatus4)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::RetellAI.ListCallsV3ResponseStatus4);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::RetellAI.ListCallsV3ResponseStatus4 value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::RetellAI.ListCallsV3ResponseStatus4Extensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListCallsV3ResponseStatus4Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListCallsV3ResponseStatus4Nullable.g.cs
new file mode 100644
index 0000000..d3b2036
--- /dev/null
+++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListCallsV3ResponseStatus4Nullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace RetellAI.JsonConverters
+{
+ ///
+ public sealed class ListCallsV3ResponseStatus4NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::RetellAI.ListCallsV3ResponseStatus4? 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::RetellAI.ListCallsV3ResponseStatus4Extensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::RetellAI.ListCallsV3ResponseStatus4)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::RetellAI.ListCallsV3ResponseStatus4?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::RetellAI.ListCallsV3ResponseStatus4? 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::RetellAI.ListCallsV3ResponseStatus4Extensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListCallsV3ResponseStatusNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListCallsV3ResponseStatusNullable.g.cs
new file mode 100644
index 0000000..5179f62
--- /dev/null
+++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListCallsV3ResponseStatusNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace RetellAI.JsonConverters
+{
+ ///
+ public sealed class ListCallsV3ResponseStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::RetellAI.ListCallsV3ResponseStatus? 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::RetellAI.ListCallsV3ResponseStatusExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::RetellAI.ListCallsV3ResponseStatus)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::RetellAI.ListCallsV3ResponseStatus?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::RetellAI.ListCallsV3ResponseStatus? 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::RetellAI.ListCallsV3ResponseStatusExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListChatsV3RequestSortOrder.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListChatsV3RequestSortOrder.g.cs
new file mode 100644
index 0000000..3da1f60
--- /dev/null
+++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListChatsV3RequestSortOrder.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace RetellAI.JsonConverters
+{
+ ///
+ public sealed class ListChatsV3RequestSortOrderJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::RetellAI.ListChatsV3RequestSortOrder 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::RetellAI.ListChatsV3RequestSortOrderExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::RetellAI.ListChatsV3RequestSortOrder)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::RetellAI.ListChatsV3RequestSortOrder);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::RetellAI.ListChatsV3RequestSortOrder value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::RetellAI.ListChatsV3RequestSortOrderExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListChatsV3RequestSortOrderNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListChatsV3RequestSortOrderNullable.g.cs
new file mode 100644
index 0000000..4d9f177
--- /dev/null
+++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListChatsV3RequestSortOrderNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace RetellAI.JsonConverters
+{
+ ///
+ public sealed class ListChatsV3RequestSortOrderNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::RetellAI.ListChatsV3RequestSortOrder? 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::RetellAI.ListChatsV3RequestSortOrderExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::RetellAI.ListChatsV3RequestSortOrder)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::RetellAI.ListChatsV3RequestSortOrder?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::RetellAI.ListChatsV3RequestSortOrder? 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::RetellAI.ListChatsV3RequestSortOrderExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListChatsV3ResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListChatsV3ResponseStatus.g.cs
new file mode 100644
index 0000000..6962081
--- /dev/null
+++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListChatsV3ResponseStatus.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace RetellAI.JsonConverters
+{
+ ///
+ public sealed class ListChatsV3ResponseStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::RetellAI.ListChatsV3ResponseStatus 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::RetellAI.ListChatsV3ResponseStatusExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::RetellAI.ListChatsV3ResponseStatus)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::RetellAI.ListChatsV3ResponseStatus);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::RetellAI.ListChatsV3ResponseStatus value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::RetellAI.ListChatsV3ResponseStatusExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListChatsV3ResponseStatus2.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListChatsV3ResponseStatus2.g.cs
new file mode 100644
index 0000000..e5e6a1b
--- /dev/null
+++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListChatsV3ResponseStatus2.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace RetellAI.JsonConverters
+{
+ ///
+ public sealed class ListChatsV3ResponseStatus2JsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::RetellAI.ListChatsV3ResponseStatus2 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::RetellAI.ListChatsV3ResponseStatus2Extensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::RetellAI.ListChatsV3ResponseStatus2)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::RetellAI.ListChatsV3ResponseStatus2);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::RetellAI.ListChatsV3ResponseStatus2 value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::RetellAI.ListChatsV3ResponseStatus2Extensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListChatsV3ResponseStatus2Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListChatsV3ResponseStatus2Nullable.g.cs
new file mode 100644
index 0000000..f9931e9
--- /dev/null
+++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListChatsV3ResponseStatus2Nullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace RetellAI.JsonConverters
+{
+ ///
+ public sealed class ListChatsV3ResponseStatus2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::RetellAI.ListChatsV3ResponseStatus2? 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::RetellAI.ListChatsV3ResponseStatus2Extensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::RetellAI.ListChatsV3ResponseStatus2)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::RetellAI.ListChatsV3ResponseStatus2?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::RetellAI.ListChatsV3ResponseStatus2? 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::RetellAI.ListChatsV3ResponseStatus2Extensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListChatsV3ResponseStatus3.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListChatsV3ResponseStatus3.g.cs
new file mode 100644
index 0000000..0986eea
--- /dev/null
+++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListChatsV3ResponseStatus3.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace RetellAI.JsonConverters
+{
+ ///
+ public sealed class ListChatsV3ResponseStatus3JsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::RetellAI.ListChatsV3ResponseStatus3 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::RetellAI.ListChatsV3ResponseStatus3Extensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::RetellAI.ListChatsV3ResponseStatus3)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::RetellAI.ListChatsV3ResponseStatus3);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::RetellAI.ListChatsV3ResponseStatus3 value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::RetellAI.ListChatsV3ResponseStatus3Extensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListChatsV3ResponseStatus3Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListChatsV3ResponseStatus3Nullable.g.cs
new file mode 100644
index 0000000..2123e54
--- /dev/null
+++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListChatsV3ResponseStatus3Nullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace RetellAI.JsonConverters
+{
+ ///
+ public sealed class ListChatsV3ResponseStatus3NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::RetellAI.ListChatsV3ResponseStatus3? 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::RetellAI.ListChatsV3ResponseStatus3Extensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::RetellAI.ListChatsV3ResponseStatus3)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::RetellAI.ListChatsV3ResponseStatus3?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::RetellAI.ListChatsV3ResponseStatus3? 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::RetellAI.ListChatsV3ResponseStatus3Extensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListChatsV3ResponseStatus4.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListChatsV3ResponseStatus4.g.cs
new file mode 100644
index 0000000..9736db2
--- /dev/null
+++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListChatsV3ResponseStatus4.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace RetellAI.JsonConverters
+{
+ ///
+ public sealed class ListChatsV3ResponseStatus4JsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::RetellAI.ListChatsV3ResponseStatus4 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::RetellAI.ListChatsV3ResponseStatus4Extensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::RetellAI.ListChatsV3ResponseStatus4)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::RetellAI.ListChatsV3ResponseStatus4);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::RetellAI.ListChatsV3ResponseStatus4 value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::RetellAI.ListChatsV3ResponseStatus4Extensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListChatsV3ResponseStatus4Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListChatsV3ResponseStatus4Nullable.g.cs
new file mode 100644
index 0000000..24367be
--- /dev/null
+++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListChatsV3ResponseStatus4Nullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace RetellAI.JsonConverters
+{
+ ///
+ public sealed class ListChatsV3ResponseStatus4NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::RetellAI.ListChatsV3ResponseStatus4? 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::RetellAI.ListChatsV3ResponseStatus4Extensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::RetellAI.ListChatsV3ResponseStatus4)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::RetellAI.ListChatsV3ResponseStatus4?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::RetellAI.ListChatsV3ResponseStatus4? 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::RetellAI.ListChatsV3ResponseStatus4Extensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListChatsV3ResponseStatusNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListChatsV3ResponseStatusNullable.g.cs
new file mode 100644
index 0000000..e9022ff
--- /dev/null
+++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListChatsV3ResponseStatusNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace RetellAI.JsonConverters
+{
+ ///
+ public sealed class ListChatsV3ResponseStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::RetellAI.ListChatsV3ResponseStatus? 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::RetellAI.ListChatsV3ResponseStatusExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::RetellAI.ListChatsV3ResponseStatus)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::RetellAI.ListChatsV3ResponseStatus?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::RetellAI.ListChatsV3ResponseStatus? 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::RetellAI.ListChatsV3ResponseStatusExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.MCPNode.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.MCPNode.g.cs
index 0f07a33..69b1f87 100644
--- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.MCPNode.g.cs
+++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.MCPNode.g.cs
@@ -31,6 +31,7 @@ public class MCPNodeJsonConverter : global::System.Text.Json.Serialization.JsonC
var __score1 = 0;
if (__jsonProps.Contains("edges")) __score1++;
if (__jsonProps.Contains("else_edge")) __score1++;
+ if (__jsonProps.Contains("enable_typing_sound")) __score1++;
if (__jsonProps.Contains("finetune_transition_examples")) __score1++;
if (__jsonProps.Contains("instruction")) __score1++;
if (__jsonProps.Contains("mcp_id")) __score1++;
diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.Message.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.Message.g.cs
new file mode 100644
index 0000000..00b8c9d
--- /dev/null
+++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.Message.g.cs
@@ -0,0 +1,138 @@
+#nullable enable
+#pragma warning disable CS0618 // Type or member is obsolete
+
+namespace RetellAI.JsonConverters
+{
+ ///
+ public class MessageJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::RetellAI.Message Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
+ var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+
+ 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("content")) __score0++;
+ if (__jsonProps.Contains("created_timestamp")) __score0++;
+ if (__jsonProps.Contains("message_id")) __score0++;
+ if (__jsonProps.Contains("role")) __score0++;
+ var __score1 = 0;
+ var __bestScore = 0;
+ var __bestIndex = -1;
+ if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; }
+ if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; }
+
+ global::RetellAI.MessageBase? @base = default;
+ object? messageVariant2 = default;
+ if (__bestIndex >= 0)
+ {
+ if (__bestIndex == 0)
+ {
+ try
+ {
+ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.MessageBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
+ throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.MessageBase).Name}");
+ @base = 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(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo