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 ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); + messageVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (@base == null && messageVariant2 == 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(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); + messageVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::RetellAI.Message( + @base, + + messageVariant2 + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.Message 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.IsMessageVariant2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageVariant2!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.MessageRole.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.MessageBaseRole.g.cs similarity index 69% rename from src/libs/RetellAI/Generated/RetellAI.JsonConverters.MessageRole.g.cs rename to src/libs/RetellAI/Generated/RetellAI.JsonConverters.MessageBaseRole.g.cs index abaca0e..0905d33 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.MessageRole.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.MessageBaseRole.g.cs @@ -3,10 +3,10 @@ namespace RetellAI.JsonConverters { /// - public sealed class MessageRoleJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class MessageBaseRoleJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::RetellAI.MessageRole Read( + public override global::RetellAI.MessageBaseRole Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class MessageRoleJsonConverter : global::System.Text.Json.Serializ var stringValue = reader.GetString(); if (stringValue != null) { - return global::RetellAI.MessageRoleExtensions.ToEnum(stringValue) ?? default; + return global::RetellAI.MessageBaseRoleExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class MessageRoleJsonConverter : global::System.Text.Json.Serializ case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::RetellAI.MessageRole)numValue; + return (global::RetellAI.MessageBaseRole)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::RetellAI.MessageRole); + return default(global::RetellAI.MessageBaseRole); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class MessageRoleJsonConverter : global::System.Text.Json.Serializ /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::RetellAI.MessageRole value, + global::RetellAI.MessageBaseRole value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::RetellAI.MessageRoleExtensions.ToValueString(value)); + writer.WriteStringValue(global::RetellAI.MessageBaseRoleExtensions.ToValueString(value)); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.MessageRoleNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.MessageBaseRoleNullable.g.cs similarity index 74% rename from src/libs/RetellAI/Generated/RetellAI.JsonConverters.MessageRoleNullable.g.cs rename to src/libs/RetellAI/Generated/RetellAI.JsonConverters.MessageBaseRoleNullable.g.cs index c47bdd8..073bcb9 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.MessageRoleNullable.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.MessageBaseRoleNullable.g.cs @@ -3,10 +3,10 @@ namespace RetellAI.JsonConverters { /// - public sealed class MessageRoleNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class MessageBaseRoleNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::RetellAI.MessageRole? Read( + public override global::RetellAI.MessageBaseRole? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class MessageRoleNullableJsonConverter : global::System.Text.Json. var stringValue = reader.GetString(); if (stringValue != null) { - return global::RetellAI.MessageRoleExtensions.ToEnum(stringValue); + return global::RetellAI.MessageBaseRoleExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class MessageRoleNullableJsonConverter : global::System.Text.Json. case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::RetellAI.MessageRole)numValue; + return (global::RetellAI.MessageBaseRole)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::RetellAI.MessageRole?); + return default(global::RetellAI.MessageBaseRole?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class MessageRoleNullableJsonConverter : global::System.Text.Json. /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::RetellAI.MessageRole? value, + global::RetellAI.MessageBaseRole? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::RetellAI.MessageRoleExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::RetellAI.MessageBaseRoleExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.MessageOrToolCall.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.MessageOrToolCall.g.cs index fd064b1..99abf92 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.MessageOrToolCall.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.MessageOrToolCall.g.cs @@ -15,6 +15,7 @@ public class MessageOrToolCallJsonConverter : global::System.Text.Json.Serializa 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(); @@ -23,44 +24,64 @@ public class MessageOrToolCallJsonConverter : global::System.Text.Json.Serializa 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 __ti = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.Message), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __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 __ti = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ToolCallInvocationMessage), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __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 __ti = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ToolCallResultMessage), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __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++; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeTransitionMessage), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __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 __ti = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.StateTransitionMessage), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score4++; + } + } + } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -80,6 +101,7 @@ public class MessageOrToolCallJsonConverter : global::System.Text.Json.Serializa { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.Message), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.Message).Name}"); message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -91,10 +113,12 @@ public class MessageOrToolCallJsonConverter : global::System.Text.Json.Serializa { } } + else if (__bestIndex == 1) { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ToolCallInvocationMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ToolCallInvocationMessage).Name}"); invocation = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -106,10 +130,12 @@ public class MessageOrToolCallJsonConverter : global::System.Text.Json.Serializa { } } + else if (__bestIndex == 2) { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ToolCallResultMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ToolCallResultMessage).Name}"); result = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -121,10 +147,12 @@ public class MessageOrToolCallJsonConverter : global::System.Text.Json.Serializa { } } + else if (__bestIndex == 3) { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeTransitionMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeTransitionMessage).Name}"); nodeTransition = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -136,10 +164,12 @@ public class MessageOrToolCallJsonConverter : global::System.Text.Json.Serializa { } } + else if (__bestIndex == 4) { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.StateTransitionMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.StateTransitionMessage).Name}"); stateTransition = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -157,6 +187,7 @@ public class MessageOrToolCallJsonConverter : global::System.Text.Json.Serializa { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.Message), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.Message).Name}"); message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -170,6 +201,7 @@ public class MessageOrToolCallJsonConverter : global::System.Text.Json.Serializa try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ToolCallInvocationMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ToolCallInvocationMessage).Name}"); invocation = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -183,6 +215,7 @@ public class MessageOrToolCallJsonConverter : global::System.Text.Json.Serializa try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ToolCallResultMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ToolCallResultMessage).Name}"); result = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -196,6 +229,7 @@ public class MessageOrToolCallJsonConverter : global::System.Text.Json.Serializa try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeTransitionMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeTransitionMessage).Name}"); nodeTransition = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -209,6 +243,7 @@ public class MessageOrToolCallJsonConverter : global::System.Text.Json.Serializa try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.StateTransitionMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.StateTransitionMessage).Name}"); stateTransition = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -247,33 +282,33 @@ public override void Write( if (value.IsMessage) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.Message), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.Message), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.Message).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message!.Value, typeInfo); } else if (value.IsInvocation) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ToolCallInvocationMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ToolCallInvocationMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ToolCallInvocationMessage).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Invocation!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Invocation!.Value, typeInfo); } else if (value.IsResult) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ToolCallResultMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ToolCallResultMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ToolCallResultMessage).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Result!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Result!.Value, typeInfo); } else if (value.IsNodeTransition) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeTransitionMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeTransitionMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeTransitionMessage).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.NodeTransition!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.NodeTransition!.Value, typeInfo); } else if (value.IsStateTransition) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.StateTransitionMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.StateTransitionMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.StateTransitionMessage).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.StateTransition!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.StateTransition!.Value, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.NodeTransitionMessage.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.NodeTransitionMessage.g.cs new file mode 100644 index 0000000..c3a3882 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.NodeTransitionMessage.g.cs @@ -0,0 +1,142 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace RetellAI.JsonConverters +{ + /// + public class NodeTransitionMessageJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.NodeTransitionMessage 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("created_timestamp")) __score0++; + if (__jsonProps.Contains("former_node_id")) __score0++; + if (__jsonProps.Contains("former_node_name")) __score0++; + if (__jsonProps.Contains("message_id")) __score0++; + if (__jsonProps.Contains("new_node_id")) __score0++; + if (__jsonProps.Contains("new_node_name")) __score0++; + if (__jsonProps.Contains("role")) __score0++; + if (__jsonProps.Contains("transition_type")) __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.NodeTransitionMessageBase? @base = default; + object? nodeTransitionMessageVariant2 = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + 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}"); + @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 ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); + nodeTransitionMessageVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (@base == null && nodeTransitionMessageVariant2 == null) + { + 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}"); + @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(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); + nodeTransitionMessageVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::RetellAI.NodeTransitionMessage( + @base, + + nodeTransitionMessageVariant2 + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.NodeTransitionMessage 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.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.Base!, typeInfo); + } + else if (value.IsNodeTransitionMessageVariant2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.NodeTransitionMessageVariant2!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.NodeTransitionMessageRole.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.NodeTransitionMessageBaseRole.g.cs similarity index 78% rename from src/libs/RetellAI/Generated/RetellAI.JsonConverters.NodeTransitionMessageRole.g.cs rename to src/libs/RetellAI/Generated/RetellAI.JsonConverters.NodeTransitionMessageBaseRole.g.cs index f197066..81b60c4 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.NodeTransitionMessageRole.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.NodeTransitionMessageBaseRole.g.cs @@ -3,10 +3,10 @@ namespace RetellAI.JsonConverters { /// - public sealed class NodeTransitionMessageRoleJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class NodeTransitionMessageBaseRoleJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::RetellAI.NodeTransitionMessageRole Read( + public override global::RetellAI.NodeTransitionMessageBaseRole Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class NodeTransitionMessageRoleJsonConverter : global::System.Text var stringValue = reader.GetString(); if (stringValue != null) { - return global::RetellAI.NodeTransitionMessageRoleExtensions.ToEnum(stringValue) ?? default; + return global::RetellAI.NodeTransitionMessageBaseRoleExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class NodeTransitionMessageRoleJsonConverter : global::System.Text case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::RetellAI.NodeTransitionMessageRole)numValue; + return (global::RetellAI.NodeTransitionMessageBaseRole)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::RetellAI.NodeTransitionMessageRole); + return default(global::RetellAI.NodeTransitionMessageBaseRole); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class NodeTransitionMessageRoleJsonConverter : global::System.Text /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::RetellAI.NodeTransitionMessageRole value, + global::RetellAI.NodeTransitionMessageBaseRole value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::RetellAI.NodeTransitionMessageRoleExtensions.ToValueString(value)); + writer.WriteStringValue(global::RetellAI.NodeTransitionMessageBaseRoleExtensions.ToValueString(value)); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.NodeTransitionMessageRoleNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.NodeTransitionMessageBaseRoleNullable.g.cs similarity index 79% rename from src/libs/RetellAI/Generated/RetellAI.JsonConverters.NodeTransitionMessageRoleNullable.g.cs rename to src/libs/RetellAI/Generated/RetellAI.JsonConverters.NodeTransitionMessageBaseRoleNullable.g.cs index 783d872..9909648 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.NodeTransitionMessageRoleNullable.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.NodeTransitionMessageBaseRoleNullable.g.cs @@ -3,10 +3,10 @@ namespace RetellAI.JsonConverters { /// - public sealed class NodeTransitionMessageRoleNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class NodeTransitionMessageBaseRoleNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::RetellAI.NodeTransitionMessageRole? Read( + public override global::RetellAI.NodeTransitionMessageBaseRole? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class NodeTransitionMessageRoleNullableJsonConverter : global::Sys var stringValue = reader.GetString(); if (stringValue != null) { - return global::RetellAI.NodeTransitionMessageRoleExtensions.ToEnum(stringValue); + return global::RetellAI.NodeTransitionMessageBaseRoleExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class NodeTransitionMessageRoleNullableJsonConverter : global::Sys case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::RetellAI.NodeTransitionMessageRole)numValue; + return (global::RetellAI.NodeTransitionMessageBaseRole)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::RetellAI.NodeTransitionMessageRole?); + return default(global::RetellAI.NodeTransitionMessageBaseRole?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class NodeTransitionMessageRoleNullableJsonConverter : global::Sys /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::RetellAI.NodeTransitionMessageRole? value, + global::RetellAI.NodeTransitionMessageBaseRole? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::RetellAI.NodeTransitionMessageRoleExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::RetellAI.NodeTransitionMessageBaseRoleExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.NodeTransitionMessageBaseTransitionType.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.NodeTransitionMessageBaseTransitionType.g.cs new file mode 100644 index 0000000..e7a6615 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.NodeTransitionMessageBaseTransitionType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class NodeTransitionMessageBaseTransitionTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.NodeTransitionMessageBaseTransitionType 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.NodeTransitionMessageBaseTransitionTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.NodeTransitionMessageBaseTransitionType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.NodeTransitionMessageBaseTransitionType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.NodeTransitionMessageBaseTransitionType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.NodeTransitionMessageBaseTransitionTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.NodeTransitionMessageBaseTransitionTypeNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.NodeTransitionMessageBaseTransitionTypeNullable.g.cs new file mode 100644 index 0000000..fb450eb --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.NodeTransitionMessageBaseTransitionTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class NodeTransitionMessageBaseTransitionTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.NodeTransitionMessageBaseTransitionType? 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.NodeTransitionMessageBaseTransitionTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.NodeTransitionMessageBaseTransitionType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.NodeTransitionMessageBaseTransitionType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.NodeTransitionMessageBaseTransitionType? 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.NodeTransitionMessageBaseTransitionTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.NodeTransitionUtteranceTransitionType.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.NodeTransitionUtteranceTransitionType.g.cs new file mode 100644 index 0000000..b36b0a8 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.NodeTransitionUtteranceTransitionType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class NodeTransitionUtteranceTransitionTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.NodeTransitionUtteranceTransitionType 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.NodeTransitionUtteranceTransitionTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.NodeTransitionUtteranceTransitionType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.NodeTransitionUtteranceTransitionType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.NodeTransitionUtteranceTransitionType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.NodeTransitionUtteranceTransitionTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.NodeTransitionUtteranceTransitionTypeNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.NodeTransitionUtteranceTransitionTypeNullable.g.cs new file mode 100644 index 0000000..9889ab9 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.NodeTransitionUtteranceTransitionTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class NodeTransitionUtteranceTransitionTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.NodeTransitionUtteranceTransitionType? 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.NodeTransitionUtteranceTransitionTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.NodeTransitionUtteranceTransitionType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.NodeTransitionUtteranceTransitionType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.NodeTransitionUtteranceTransitionType? 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.NodeTransitionUtteranceTransitionTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SmsContent.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SmsContent.g.cs index 24cc08d..8e353a0 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SmsContent.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SmsContent.g.cs @@ -33,13 +33,18 @@ public class SmsContentJsonConverter : global::System.Text.Json.Serialization.Js var __score1 = 0; if (__jsonProps.Contains("prompt")) __score1++; if (__jsonProps.Contains("type")) __score1++; + var __score2 = 0; + if (__jsonProps.Contains("template")) __score2++; + if (__jsonProps.Contains("type")) __score2++; 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; } global::RetellAI.SmsContentPredefined? predefined = default; global::RetellAI.SmsContentInferred? inferred = default; + global::RetellAI.SmsContentTemplate? template = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -72,9 +77,24 @@ public class SmsContentJsonConverter : global::System.Text.Json.Serialization.Js { } } + else if (__bestIndex == 2) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.SmsContentTemplate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.SmsContentTemplate).Name}"); + template = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } } - if (predefined == null && inferred == null) + if (predefined == null && inferred == null && template == null) { try { @@ -101,12 +121,27 @@ public class SmsContentJsonConverter : global::System.Text.Json.Serialization.Js catch (global::System.InvalidOperationException) { } + + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.SmsContentTemplate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.SmsContentTemplate).Name}"); + template = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } } var __value = new global::RetellAI.SmsContent( predefined, - inferred + inferred, + + template ); return __value; @@ -133,6 +168,12 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.SmsContentInferred).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.Inferred!, typeInfo); } + else if (value.IsTemplate) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.SmsContentTemplate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.SmsContentTemplate).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Template!, typeInfo); + } } } } \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SmsContentTemplateTemplate.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SmsContentTemplateTemplate.g.cs new file mode 100644 index 0000000..121b4fd --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SmsContentTemplateTemplate.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class SmsContentTemplateTemplateJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.SmsContentTemplateTemplate 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.SmsContentTemplateTemplateExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.SmsContentTemplateTemplate)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.SmsContentTemplateTemplate); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.SmsContentTemplateTemplate value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.SmsContentTemplateTemplateExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SmsContentTemplateTemplateNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SmsContentTemplateTemplateNullable.g.cs new file mode 100644 index 0000000..393e71b --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SmsContentTemplateTemplateNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class SmsContentTemplateTemplateNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.SmsContentTemplateTemplate? 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.SmsContentTemplateTemplateExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.SmsContentTemplateTemplate)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.SmsContentTemplateTemplate?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.SmsContentTemplateTemplate? 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.SmsContentTemplateTemplateExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SmsContentTemplateType.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SmsContentTemplateType.g.cs new file mode 100644 index 0000000..e86ccf4 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SmsContentTemplateType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class SmsContentTemplateTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.SmsContentTemplateType 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.SmsContentTemplateTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.SmsContentTemplateType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.SmsContentTemplateType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.SmsContentTemplateType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.SmsContentTemplateTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SmsContentTemplateTypeNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SmsContentTemplateTypeNullable.g.cs new file mode 100644 index 0000000..4d71281 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SmsContentTemplateTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class SmsContentTemplateTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.SmsContentTemplateType? 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.SmsContentTemplateTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.SmsContentTemplateType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.SmsContentTemplateType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.SmsContentTemplateType? 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.SmsContentTemplateTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SmsInstructionTemplateTemplate.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SmsInstructionTemplateTemplate.g.cs new file mode 100644 index 0000000..c812d8e --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SmsInstructionTemplateTemplate.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class SmsInstructionTemplateTemplateJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.SmsInstructionTemplateTemplate 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.SmsInstructionTemplateTemplateExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.SmsInstructionTemplateTemplate)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.SmsInstructionTemplateTemplate); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.SmsInstructionTemplateTemplate value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.SmsInstructionTemplateTemplateExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SmsInstructionTemplateTemplateNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SmsInstructionTemplateTemplateNullable.g.cs new file mode 100644 index 0000000..5fce58b --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SmsInstructionTemplateTemplateNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class SmsInstructionTemplateTemplateNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.SmsInstructionTemplateTemplate? 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.SmsInstructionTemplateTemplateExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.SmsInstructionTemplateTemplate)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.SmsInstructionTemplateTemplate?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.SmsInstructionTemplateTemplate? 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.SmsInstructionTemplateTemplateExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SmsInstructionTemplateType.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SmsInstructionTemplateType.g.cs new file mode 100644 index 0000000..bea50fc --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SmsInstructionTemplateType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class SmsInstructionTemplateTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.SmsInstructionTemplateType 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.SmsInstructionTemplateTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.SmsInstructionTemplateType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.SmsInstructionTemplateType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.SmsInstructionTemplateType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.SmsInstructionTemplateTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SmsInstructionTemplateTypeNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SmsInstructionTemplateTypeNullable.g.cs new file mode 100644 index 0000000..15ee46a --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SmsInstructionTemplateTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class SmsInstructionTemplateTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.SmsInstructionTemplateType? 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.SmsInstructionTemplateTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.SmsInstructionTemplateType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.SmsInstructionTemplateType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.SmsInstructionTemplateType? 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.SmsInstructionTemplateTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.StateTransitionMessage.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.StateTransitionMessage.g.cs new file mode 100644 index 0000000..638092f --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.StateTransitionMessage.g.cs @@ -0,0 +1,139 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace RetellAI.JsonConverters +{ + /// + public class StateTransitionMessageJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.StateTransitionMessage 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("created_timestamp")) __score0++; + if (__jsonProps.Contains("former_state_name")) __score0++; + if (__jsonProps.Contains("message_id")) __score0++; + if (__jsonProps.Contains("new_state_name")) __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.StateTransitionMessageBase? @base = default; + object? stateTransitionMessageVariant2 = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + 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}"); + @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 ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); + stateTransitionMessageVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (@base == null && stateTransitionMessageVariant2 == null) + { + 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}"); + @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(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); + stateTransitionMessageVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::RetellAI.StateTransitionMessage( + @base, + + stateTransitionMessageVariant2 + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.StateTransitionMessage 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.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.Base!, typeInfo); + } + else if (value.IsStateTransitionMessageVariant2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.StateTransitionMessageVariant2!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.StateTransitionMessageRole.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.StateTransitionMessageBaseRole.g.cs similarity index 77% rename from src/libs/RetellAI/Generated/RetellAI.JsonConverters.StateTransitionMessageRole.g.cs rename to src/libs/RetellAI/Generated/RetellAI.JsonConverters.StateTransitionMessageBaseRole.g.cs index c78cb43..51120fe 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.StateTransitionMessageRole.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.StateTransitionMessageBaseRole.g.cs @@ -3,10 +3,10 @@ namespace RetellAI.JsonConverters { /// - public sealed class StateTransitionMessageRoleJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class StateTransitionMessageBaseRoleJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::RetellAI.StateTransitionMessageRole Read( + public override global::RetellAI.StateTransitionMessageBaseRole Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class StateTransitionMessageRoleJsonConverter : global::System.Tex var stringValue = reader.GetString(); if (stringValue != null) { - return global::RetellAI.StateTransitionMessageRoleExtensions.ToEnum(stringValue) ?? default; + return global::RetellAI.StateTransitionMessageBaseRoleExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class StateTransitionMessageRoleJsonConverter : global::System.Tex case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::RetellAI.StateTransitionMessageRole)numValue; + return (global::RetellAI.StateTransitionMessageBaseRole)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::RetellAI.StateTransitionMessageRole); + return default(global::RetellAI.StateTransitionMessageBaseRole); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class StateTransitionMessageRoleJsonConverter : global::System.Tex /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::RetellAI.StateTransitionMessageRole value, + global::RetellAI.StateTransitionMessageBaseRole value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::RetellAI.StateTransitionMessageRoleExtensions.ToValueString(value)); + writer.WriteStringValue(global::RetellAI.StateTransitionMessageBaseRoleExtensions.ToValueString(value)); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.StateTransitionMessageRoleNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.StateTransitionMessageBaseRoleNullable.g.cs similarity index 78% rename from src/libs/RetellAI/Generated/RetellAI.JsonConverters.StateTransitionMessageRoleNullable.g.cs rename to src/libs/RetellAI/Generated/RetellAI.JsonConverters.StateTransitionMessageBaseRoleNullable.g.cs index ef395a5..8816254 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.StateTransitionMessageRoleNullable.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.StateTransitionMessageBaseRoleNullable.g.cs @@ -3,10 +3,10 @@ namespace RetellAI.JsonConverters { /// - public sealed class StateTransitionMessageRoleNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class StateTransitionMessageBaseRoleNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::RetellAI.StateTransitionMessageRole? Read( + public override global::RetellAI.StateTransitionMessageBaseRole? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class StateTransitionMessageRoleNullableJsonConverter : global::Sy var stringValue = reader.GetString(); if (stringValue != null) { - return global::RetellAI.StateTransitionMessageRoleExtensions.ToEnum(stringValue); + return global::RetellAI.StateTransitionMessageBaseRoleExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class StateTransitionMessageRoleNullableJsonConverter : global::Sy case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::RetellAI.StateTransitionMessageRole)numValue; + return (global::RetellAI.StateTransitionMessageBaseRole)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::RetellAI.StateTransitionMessageRole?); + return default(global::RetellAI.StateTransitionMessageBaseRole?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class StateTransitionMessageRoleNullableJsonConverter : global::Sy /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::RetellAI.StateTransitionMessageRole? value, + global::RetellAI.StateTransitionMessageBaseRole? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::RetellAI.StateTransitionMessageRoleExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::RetellAI.StateTransitionMessageBaseRoleExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.Tool.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.Tool.g.cs index 4634e26..8d0e76a 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.Tool.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.Tool.g.cs @@ -95,6 +95,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv var __score7 = 0; if (__jsonProps.Contains("args_at_root")) __score7++; if (__jsonProps.Contains("description")) __score7++; + if (__jsonProps.Contains("enable_typing_sound")) __score7++; if (__jsonProps.Contains("execution_message_description")) __score7++; if (__jsonProps.Contains("execution_message_type")) __score7++; if (__jsonProps.Contains("headers")) __score7++; @@ -114,6 +115,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv var __score8 = 0; if (__jsonProps.Contains("code")) __score8++; if (__jsonProps.Contains("description")) __score8++; + if (__jsonProps.Contains("enable_typing_sound")) __score8++; if (__jsonProps.Contains("execution_message_description")) __score8++; if (__jsonProps.Contains("execution_message_type")) __score8++; if (__jsonProps.Contains("name")) __score8++; @@ -143,6 +145,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv if (__jsonProps.Contains("type")) __score11++; var __score12 = 0; if (__jsonProps.Contains("description")) __score12++; + if (__jsonProps.Contains("enable_typing_sound")) __score12++; if (__jsonProps.Contains("execution_message_description")) __score12++; if (__jsonProps.Contains("execution_message_type")) __score12++; if (__jsonProps.Contains("input_schema")) __score12++; diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ToolCallInvocationMessage.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ToolCallInvocationMessage.g.cs new file mode 100644 index 0000000..cd94b06 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ToolCallInvocationMessage.g.cs @@ -0,0 +1,141 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace RetellAI.JsonConverters +{ + /// + public class ToolCallInvocationMessageJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ToolCallInvocationMessage 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("arguments")) __score0++; + if (__jsonProps.Contains("created_timestamp")) __score0++; + if (__jsonProps.Contains("message_id")) __score0++; + if (__jsonProps.Contains("name")) __score0++; + if (__jsonProps.Contains("role")) __score0++; + if (__jsonProps.Contains("thought_signature")) __score0++; + if (__jsonProps.Contains("tool_call_id")) __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.ToolCallInvocationMessageBase? @base = default; + object? toolCallInvocationMessageVariant2 = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + 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}"); + @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 ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); + toolCallInvocationMessageVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (@base == null && toolCallInvocationMessageVariant2 == null) + { + 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}"); + @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(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); + toolCallInvocationMessageVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::RetellAI.ToolCallInvocationMessage( + @base, + + toolCallInvocationMessageVariant2 + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ToolCallInvocationMessage 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.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.Base!, typeInfo); + } + else if (value.IsToolCallInvocationMessageVariant2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolCallInvocationMessageVariant2!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ToolCallInvocationMessageRole.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ToolCallInvocationMessageBaseRole.g.cs similarity index 79% rename from src/libs/RetellAI/Generated/RetellAI.JsonConverters.ToolCallInvocationMessageRole.g.cs rename to src/libs/RetellAI/Generated/RetellAI.JsonConverters.ToolCallInvocationMessageBaseRole.g.cs index 2f4d645..340b73d 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ToolCallInvocationMessageRole.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ToolCallInvocationMessageBaseRole.g.cs @@ -3,10 +3,10 @@ namespace RetellAI.JsonConverters { /// - public sealed class ToolCallInvocationMessageRoleJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ToolCallInvocationMessageBaseRoleJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::RetellAI.ToolCallInvocationMessageRole Read( + public override global::RetellAI.ToolCallInvocationMessageBaseRole Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ToolCallInvocationMessageRoleJsonConverter : global::System. var stringValue = reader.GetString(); if (stringValue != null) { - return global::RetellAI.ToolCallInvocationMessageRoleExtensions.ToEnum(stringValue) ?? default; + return global::RetellAI.ToolCallInvocationMessageBaseRoleExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class ToolCallInvocationMessageRoleJsonConverter : global::System. case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::RetellAI.ToolCallInvocationMessageRole)numValue; + return (global::RetellAI.ToolCallInvocationMessageBaseRole)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::RetellAI.ToolCallInvocationMessageRole); + return default(global::RetellAI.ToolCallInvocationMessageBaseRole); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class ToolCallInvocationMessageRoleJsonConverter : global::System. /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::RetellAI.ToolCallInvocationMessageRole value, + global::RetellAI.ToolCallInvocationMessageBaseRole value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::RetellAI.ToolCallInvocationMessageRoleExtensions.ToValueString(value)); + writer.WriteStringValue(global::RetellAI.ToolCallInvocationMessageBaseRoleExtensions.ToValueString(value)); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ToolCallInvocationMessageRoleNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ToolCallInvocationMessageBaseRoleNullable.g.cs similarity index 80% rename from src/libs/RetellAI/Generated/RetellAI.JsonConverters.ToolCallInvocationMessageRoleNullable.g.cs rename to src/libs/RetellAI/Generated/RetellAI.JsonConverters.ToolCallInvocationMessageBaseRoleNullable.g.cs index fa0b143..6863ce3 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ToolCallInvocationMessageRoleNullable.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ToolCallInvocationMessageBaseRoleNullable.g.cs @@ -3,10 +3,10 @@ namespace RetellAI.JsonConverters { /// - public sealed class ToolCallInvocationMessageRoleNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ToolCallInvocationMessageBaseRoleNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::RetellAI.ToolCallInvocationMessageRole? Read( + public override global::RetellAI.ToolCallInvocationMessageBaseRole? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ToolCallInvocationMessageRoleNullableJsonConverter : global: var stringValue = reader.GetString(); if (stringValue != null) { - return global::RetellAI.ToolCallInvocationMessageRoleExtensions.ToEnum(stringValue); + return global::RetellAI.ToolCallInvocationMessageBaseRoleExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class ToolCallInvocationMessageRoleNullableJsonConverter : global: case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::RetellAI.ToolCallInvocationMessageRole)numValue; + return (global::RetellAI.ToolCallInvocationMessageBaseRole)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::RetellAI.ToolCallInvocationMessageRole?); + return default(global::RetellAI.ToolCallInvocationMessageBaseRole?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class ToolCallInvocationMessageRoleNullableJsonConverter : global: /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::RetellAI.ToolCallInvocationMessageRole? value, + global::RetellAI.ToolCallInvocationMessageBaseRole? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::RetellAI.ToolCallInvocationMessageRoleExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::RetellAI.ToolCallInvocationMessageBaseRoleExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ToolCallResultMessage.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ToolCallResultMessage.g.cs new file mode 100644 index 0000000..6caf1c9 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ToolCallResultMessage.g.cs @@ -0,0 +1,140 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace RetellAI.JsonConverters +{ + /// + public class ToolCallResultMessageJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ToolCallResultMessage 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++; + if (__jsonProps.Contains("successful")) __score0++; + if (__jsonProps.Contains("tool_call_id")) __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.ToolCallResultMessageBase? @base = default; + object? toolCallResultMessageVariant2 = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + 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}"); + @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 ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); + toolCallResultMessageVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (@base == null && toolCallResultMessageVariant2 == null) + { + 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}"); + @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(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); + toolCallResultMessageVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::RetellAI.ToolCallResultMessage( + @base, + + toolCallResultMessageVariant2 + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ToolCallResultMessage 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.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.Base!, typeInfo); + } + else if (value.IsToolCallResultMessageVariant2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolCallResultMessageVariant2!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ToolCallResultMessageRole.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ToolCallResultMessageBaseRole.g.cs similarity index 78% rename from src/libs/RetellAI/Generated/RetellAI.JsonConverters.ToolCallResultMessageRole.g.cs rename to src/libs/RetellAI/Generated/RetellAI.JsonConverters.ToolCallResultMessageBaseRole.g.cs index 2ed52ec..3a242f0 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ToolCallResultMessageRole.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ToolCallResultMessageBaseRole.g.cs @@ -3,10 +3,10 @@ namespace RetellAI.JsonConverters { /// - public sealed class ToolCallResultMessageRoleJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ToolCallResultMessageBaseRoleJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::RetellAI.ToolCallResultMessageRole Read( + public override global::RetellAI.ToolCallResultMessageBaseRole Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ToolCallResultMessageRoleJsonConverter : global::System.Text var stringValue = reader.GetString(); if (stringValue != null) { - return global::RetellAI.ToolCallResultMessageRoleExtensions.ToEnum(stringValue) ?? default; + return global::RetellAI.ToolCallResultMessageBaseRoleExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class ToolCallResultMessageRoleJsonConverter : global::System.Text case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::RetellAI.ToolCallResultMessageRole)numValue; + return (global::RetellAI.ToolCallResultMessageBaseRole)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::RetellAI.ToolCallResultMessageRole); + return default(global::RetellAI.ToolCallResultMessageBaseRole); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class ToolCallResultMessageRoleJsonConverter : global::System.Text /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::RetellAI.ToolCallResultMessageRole value, + global::RetellAI.ToolCallResultMessageBaseRole value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::RetellAI.ToolCallResultMessageRoleExtensions.ToValueString(value)); + writer.WriteStringValue(global::RetellAI.ToolCallResultMessageBaseRoleExtensions.ToValueString(value)); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ToolCallResultMessageRoleNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ToolCallResultMessageBaseRoleNullable.g.cs similarity index 79% rename from src/libs/RetellAI/Generated/RetellAI.JsonConverters.ToolCallResultMessageRoleNullable.g.cs rename to src/libs/RetellAI/Generated/RetellAI.JsonConverters.ToolCallResultMessageBaseRoleNullable.g.cs index 89de782..a765066 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ToolCallResultMessageRoleNullable.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ToolCallResultMessageBaseRoleNullable.g.cs @@ -3,10 +3,10 @@ namespace RetellAI.JsonConverters { /// - public sealed class ToolCallResultMessageRoleNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ToolCallResultMessageBaseRoleNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::RetellAI.ToolCallResultMessageRole? Read( + public override global::RetellAI.ToolCallResultMessageBaseRole? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ToolCallResultMessageRoleNullableJsonConverter : global::Sys var stringValue = reader.GetString(); if (stringValue != null) { - return global::RetellAI.ToolCallResultMessageRoleExtensions.ToEnum(stringValue); + return global::RetellAI.ToolCallResultMessageBaseRoleExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class ToolCallResultMessageRoleNullableJsonConverter : global::Sys case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::RetellAI.ToolCallResultMessageRole)numValue; + return (global::RetellAI.ToolCallResultMessageBaseRole)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::RetellAI.ToolCallResultMessageRole?); + return default(global::RetellAI.ToolCallResultMessageBaseRole?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class ToolCallResultMessageRoleNullableJsonConverter : global::Sys /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::RetellAI.ToolCallResultMessageRole? value, + global::RetellAI.ToolCallResultMessageBaseRole? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::RetellAI.ToolCallResultMessageRoleExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::RetellAI.ToolCallResultMessageBaseRoleExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UtteranceOrToolCall.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UtteranceOrToolCall.g.cs index 343fc38..44a3ce9 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UtteranceOrToolCall.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UtteranceOrToolCall.g.cs @@ -48,6 +48,7 @@ public class UtteranceOrToolCallJsonConverter : global::System.Text.Json.Seriali 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("digit")) __score4++; if (__jsonProps.Contains("role")) __score4++; diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.V3CallResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.V3CallResponse.g.cs new file mode 100644 index 0000000..b0d4842 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.V3CallResponse.g.cs @@ -0,0 +1,159 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace RetellAI.JsonConverters +{ + /// + public class V3CallResponseJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.V3CallResponse 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; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.V2CallResponse), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score0++; + } + } + } + var __score1 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(object), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score1++; + } + } + } + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + + global::RetellAI.V2CallResponse? v2 = default; + object? v3CallResponseVariant2 = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.V2CallResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.V2CallResponse).Name}"); + v2 = 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 ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); + v3CallResponseVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (v2 == null && v3CallResponseVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.V2CallResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.V2CallResponse).Name}"); + v2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); + v3CallResponseVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::RetellAI.V3CallResponse( + v2, + + v3CallResponseVariant2 + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.V3CallResponse 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.IsV2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.V2CallResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.V2CallResponse).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.V2!.Value, typeInfo); + } + else if (value.IsV3CallResponseVariant2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.V3CallResponseVariant2!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.V3ChatResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.V3ChatResponse.g.cs new file mode 100644 index 0000000..c978862 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.V3ChatResponse.g.cs @@ -0,0 +1,162 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace RetellAI.JsonConverters +{ + /// + public class V3ChatResponseJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.V3ChatResponse 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); + 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("agent_id")) __score0++; + if (__jsonProps.Contains("chat_analysis")) __score0++; + if (__jsonProps.Contains("chat_analysis.chat_successful")) __score0++; + if (__jsonProps.Contains("chat_analysis.chat_summary")) __score0++; + if (__jsonProps.Contains("chat_analysis.custom_analysis_data")) __score0++; + if (__jsonProps.Contains("chat_analysis.user_sentiment")) __score0++; + if (__jsonProps.Contains("chat_cost")) __score0++; + if (__jsonProps.Contains("chat_cost.combined_cost")) __score0++; + if (__jsonProps.Contains("chat_cost.product_costs")) __score0++; + if (__jsonProps.Contains("chat_id")) __score0++; + if (__jsonProps.Contains("chat_status")) __score0++; + if (__jsonProps.Contains("chat_type")) __score0++; + if (__jsonProps.Contains("collected_dynamic_variables")) __score0++; + if (__jsonProps.Contains("custom_attributes")) __score0++; + if (__jsonProps.Contains("end_timestamp")) __score0++; + if (__jsonProps.Contains("message_with_tool_calls")) __score0++; + if (__jsonProps.Contains("metadata")) __score0++; + if (__jsonProps.Contains("retell_llm_dynamic_variables")) __score0++; + if (__jsonProps.Contains("start_timestamp")) __score0++; + if (__jsonProps.Contains("transcript")) __score0++; + if (__jsonProps.Contains("version")) __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.ChatResponse? chatResponse = default; + object? v3ChatResponseVariant2 = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ChatResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ChatResponse).Name}"); + chatResponse = 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 ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); + v3ChatResponseVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (chatResponse == null && v3ChatResponseVariant2 == null) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ChatResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ChatResponse).Name}"); + chatResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); + v3ChatResponseVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::RetellAI.V3ChatResponse( + chatResponse, + + v3ChatResponseVariant2 + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.V3ChatResponse 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.IsChatResponse) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ChatResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ChatResponse).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChatResponse!, typeInfo); + } + else if (value.IsV3ChatResponseVariant2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.V3ChatResponseVariant2!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonSerializerContext.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonSerializerContext.g.cs index df0ae0f..1de290d 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonSerializerContext.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonSerializerContext.g.cs @@ -445,9 +445,9 @@ namespace RetellAI typeof(global::RetellAI.JsonConverters.MCPToolExecutionMessageTypeNullableJsonConverter), - typeof(global::RetellAI.JsonConverters.MessageRoleJsonConverter), + typeof(global::RetellAI.JsonConverters.MessageBaseRoleJsonConverter), - typeof(global::RetellAI.JsonConverters.MessageRoleNullableJsonConverter), + typeof(global::RetellAI.JsonConverters.MessageBaseRoleNullableJsonConverter), typeof(global::RetellAI.JsonConverters.ModelChoiceCascadingTypeJsonConverter), @@ -465,14 +465,30 @@ namespace RetellAI typeof(global::RetellAI.JsonConverters.NodeInstructionStaticTextTypeNullableJsonConverter), - typeof(global::RetellAI.JsonConverters.NodeTransitionMessageRoleJsonConverter), + typeof(global::RetellAI.JsonConverters.SmsInstructionTemplateTypeJsonConverter), - typeof(global::RetellAI.JsonConverters.NodeTransitionMessageRoleNullableJsonConverter), + typeof(global::RetellAI.JsonConverters.SmsInstructionTemplateTypeNullableJsonConverter), + + typeof(global::RetellAI.JsonConverters.SmsInstructionTemplateTemplateJsonConverter), + + typeof(global::RetellAI.JsonConverters.SmsInstructionTemplateTemplateNullableJsonConverter), + + typeof(global::RetellAI.JsonConverters.NodeTransitionMessageBaseRoleJsonConverter), + + typeof(global::RetellAI.JsonConverters.NodeTransitionMessageBaseRoleNullableJsonConverter), + + typeof(global::RetellAI.JsonConverters.NodeTransitionMessageBaseTransitionTypeJsonConverter), + + typeof(global::RetellAI.JsonConverters.NodeTransitionMessageBaseTransitionTypeNullableJsonConverter), typeof(global::RetellAI.JsonConverters.NodeTransitionUtteranceRoleJsonConverter), typeof(global::RetellAI.JsonConverters.NodeTransitionUtteranceRoleNullableJsonConverter), + typeof(global::RetellAI.JsonConverters.NodeTransitionUtteranceTransitionTypeJsonConverter), + + typeof(global::RetellAI.JsonConverters.NodeTransitionUtteranceTransitionTypeNullableJsonConverter), + typeof(global::RetellAI.JsonConverters.NullableLLMModelJsonConverter), typeof(global::RetellAI.JsonConverters.NullableLLMModelNullableJsonConverter), @@ -629,6 +645,14 @@ namespace RetellAI typeof(global::RetellAI.JsonConverters.SmsContentPredefinedTypeNullableJsonConverter), + typeof(global::RetellAI.JsonConverters.SmsContentTemplateTypeJsonConverter), + + typeof(global::RetellAI.JsonConverters.SmsContentTemplateTypeNullableJsonConverter), + + typeof(global::RetellAI.JsonConverters.SmsContentTemplateTemplateJsonConverter), + + typeof(global::RetellAI.JsonConverters.SmsContentTemplateTemplateNullableJsonConverter), + typeof(global::RetellAI.JsonConverters.SmsFailedEdgeVariant2TransitionConditionTypeJsonConverter), typeof(global::RetellAI.JsonConverters.SmsFailedEdgeVariant2TransitionConditionTypeNullableJsonConverter), @@ -649,9 +673,9 @@ namespace RetellAI typeof(global::RetellAI.JsonConverters.SmsSuccessEdgeVariant2TransitionConditionPromptNullableJsonConverter), - typeof(global::RetellAI.JsonConverters.StateTransitionMessageRoleJsonConverter), + typeof(global::RetellAI.JsonConverters.StateTransitionMessageBaseRoleJsonConverter), - typeof(global::RetellAI.JsonConverters.StateTransitionMessageRoleNullableJsonConverter), + typeof(global::RetellAI.JsonConverters.StateTransitionMessageBaseRoleNullableJsonConverter), typeof(global::RetellAI.JsonConverters.StringAnalysisDataTypeJsonConverter), @@ -677,17 +701,17 @@ namespace RetellAI typeof(global::RetellAI.JsonConverters.ToolMockInputMatchRuleVariant2TypeNullableJsonConverter), - typeof(global::RetellAI.JsonConverters.ToolCallInvocationMessageRoleJsonConverter), + typeof(global::RetellAI.JsonConverters.ToolCallInvocationMessageBaseRoleJsonConverter), - typeof(global::RetellAI.JsonConverters.ToolCallInvocationMessageRoleNullableJsonConverter), + typeof(global::RetellAI.JsonConverters.ToolCallInvocationMessageBaseRoleNullableJsonConverter), typeof(global::RetellAI.JsonConverters.ToolCallInvocationUtteranceRoleJsonConverter), typeof(global::RetellAI.JsonConverters.ToolCallInvocationUtteranceRoleNullableJsonConverter), - typeof(global::RetellAI.JsonConverters.ToolCallResultMessageRoleJsonConverter), + typeof(global::RetellAI.JsonConverters.ToolCallResultMessageBaseRoleJsonConverter), - typeof(global::RetellAI.JsonConverters.ToolCallResultMessageRoleNullableJsonConverter), + typeof(global::RetellAI.JsonConverters.ToolCallResultMessageBaseRoleNullableJsonConverter), typeof(global::RetellAI.JsonConverters.ToolCallResultUtteranceRoleJsonConverter), @@ -833,6 +857,10 @@ namespace RetellAI typeof(global::RetellAI.JsonConverters.SearchCommunityVoiceRequestVoiceProviderNullableJsonConverter), + typeof(global::RetellAI.JsonConverters.ListChatsV3RequestSortOrderJsonConverter), + + typeof(global::RetellAI.JsonConverters.ListChatsV3RequestSortOrderNullableJsonConverter), + typeof(global::RetellAI.JsonConverters.UpdateChatMetadataRequestDataStorageSettingJsonConverter), typeof(global::RetellAI.JsonConverters.UpdateChatMetadataRequestDataStorageSettingNullableJsonConverter), @@ -857,6 +885,10 @@ namespace RetellAI typeof(global::RetellAI.JsonConverters.ListCallsRequestSortOrderNullableJsonConverter), + typeof(global::RetellAI.JsonConverters.ListCallsV3RequestSortOrderJsonConverter), + + typeof(global::RetellAI.JsonConverters.ListCallsV3RequestSortOrderNullableJsonConverter), + typeof(global::RetellAI.JsonConverters.RegisterPhoneCallRequestDirectionJsonConverter), typeof(global::RetellAI.JsonConverters.RegisterPhoneCallRequestDirectionNullableJsonConverter), @@ -1797,6 +1829,22 @@ namespace RetellAI typeof(global::RetellAI.JsonConverters.ListChatResponseStatus2NullableJsonConverter), + typeof(global::RetellAI.JsonConverters.ListChatsV3ResponseStatusJsonConverter), + + typeof(global::RetellAI.JsonConverters.ListChatsV3ResponseStatusNullableJsonConverter), + + typeof(global::RetellAI.JsonConverters.ListChatsV3ResponseStatus2JsonConverter), + + typeof(global::RetellAI.JsonConverters.ListChatsV3ResponseStatus2NullableJsonConverter), + + typeof(global::RetellAI.JsonConverters.ListChatsV3ResponseStatus3JsonConverter), + + typeof(global::RetellAI.JsonConverters.ListChatsV3ResponseStatus3NullableJsonConverter), + + typeof(global::RetellAI.JsonConverters.ListChatsV3ResponseStatus4JsonConverter), + + typeof(global::RetellAI.JsonConverters.ListChatsV3ResponseStatus4NullableJsonConverter), + typeof(global::RetellAI.JsonConverters.ListConversationFlowComponentsV2ResponseStatusJsonConverter), typeof(global::RetellAI.JsonConverters.ListConversationFlowComponentsV2ResponseStatusNullableJsonConverter), @@ -2141,6 +2189,22 @@ namespace RetellAI typeof(global::RetellAI.JsonConverters.ListCallsResponseStatus3NullableJsonConverter), + typeof(global::RetellAI.JsonConverters.ListCallsV3ResponseStatusJsonConverter), + + typeof(global::RetellAI.JsonConverters.ListCallsV3ResponseStatusNullableJsonConverter), + + typeof(global::RetellAI.JsonConverters.ListCallsV3ResponseStatus2JsonConverter), + + typeof(global::RetellAI.JsonConverters.ListCallsV3ResponseStatus2NullableJsonConverter), + + typeof(global::RetellAI.JsonConverters.ListCallsV3ResponseStatus3JsonConverter), + + typeof(global::RetellAI.JsonConverters.ListCallsV3ResponseStatus3NullableJsonConverter), + + typeof(global::RetellAI.JsonConverters.ListCallsV3ResponseStatus4JsonConverter), + + typeof(global::RetellAI.JsonConverters.ListCallsV3ResponseStatus4NullableJsonConverter), + typeof(global::RetellAI.JsonConverters.ListExportRequestsV2ResponseItemChannelJsonConverter), typeof(global::RetellAI.JsonConverters.ListExportRequestsV2ResponseItemChannelNullableJsonConverter), @@ -2223,6 +2287,8 @@ namespace RetellAI typeof(global::RetellAI.JsonConverters.ChatAgentResponseJsonConverter), + typeof(global::RetellAI.JsonConverters.V3ChatResponseJsonConverter), + typeof(global::RetellAI.JsonConverters.ComponentNodeJsonConverter), typeof(global::RetellAI.JsonConverters.ConversationFlowComponentResponseJsonConverter), @@ -2263,6 +2329,10 @@ namespace RetellAI typeof(global::RetellAI.JsonConverters.MessageOrToolCallJsonConverter), + typeof(global::RetellAI.JsonConverters.ChatMessageInputJsonConverter), + + typeof(global::RetellAI.JsonConverters.MessageJsonConverter), + typeof(global::RetellAI.JsonConverters.ModelChoiceJsonConverter), typeof(global::RetellAI.JsonConverters.NodeBaseJsonConverter), @@ -2271,6 +2341,8 @@ namespace RetellAI typeof(global::RetellAI.JsonConverters.NodeToolJsonConverter), + typeof(global::RetellAI.JsonConverters.NodeTransitionMessageJsonConverter), + typeof(global::RetellAI.JsonConverters.OrganizationResponseJsonConverter), typeof(global::RetellAI.JsonConverters.PressDigitNodeJsonConverter), @@ -2299,10 +2371,16 @@ namespace RetellAI typeof(global::RetellAI.JsonConverters.SmsSuccessEdgeJsonConverter), + typeof(global::RetellAI.JsonConverters.StateTransitionMessageJsonConverter), + typeof(global::RetellAI.JsonConverters.TestCaseDefinitionJsonConverter), typeof(global::RetellAI.JsonConverters.ToolMockInputMatchRuleJsonConverter), + typeof(global::RetellAI.JsonConverters.ToolCallInvocationMessageJsonConverter), + + typeof(global::RetellAI.JsonConverters.ToolCallResultMessageJsonConverter), + typeof(global::RetellAI.JsonConverters.ToolJsonConverter), typeof(global::RetellAI.JsonConverters.TransferCallNodeJsonConverter), @@ -2319,6 +2397,8 @@ namespace RetellAI typeof(global::RetellAI.JsonConverters.V2CallResponseJsonConverter), + typeof(global::RetellAI.JsonConverters.V3CallResponseJsonConverter), + typeof(global::RetellAI.JsonConverters.V2PhoneCallResponseJsonConverter), typeof(global::RetellAI.JsonConverters.V2WebCallResponseJsonConverter), @@ -2393,6 +2473,8 @@ namespace RetellAI typeof(global::RetellAI.JsonConverters.OneOfJsonConverter), + typeof(global::RetellAI.JsonConverters.OneOfJsonConverter), + typeof(global::RetellAI.JsonConverters.OneOfJsonConverter), typeof(global::RetellAI.JsonConverters.OneOfJsonConverter), @@ -2415,10 +2497,14 @@ namespace RetellAI typeof(global::RetellAI.JsonConverters.AllOfJsonConverter), + typeof(global::RetellAI.JsonConverters.AllOfJsonConverter), + typeof(global::RetellAI.JsonConverters.AllOfJsonConverter), typeof(global::RetellAI.JsonConverters.AllOfJsonConverter), + typeof(global::RetellAI.JsonConverters.AllOfJsonConverter), + typeof(global::RetellAI.JsonConverters.AllOfJsonConverter), typeof(global::RetellAI.JsonConverters.UnixTimestampJsonConverter), @@ -2599,6 +2685,7 @@ namespace RetellAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ChatResponseChatCost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ProductCost))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.V3ChatResponse), TypeInfoPropertyName = "V3ChatResponse2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CheckAvailabilityCalTool))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CheckAvailabilityCalToolType), TypeInfoPropertyName = "CheckAvailabilityCalToolType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CohortAgent))] @@ -2805,12 +2892,18 @@ namespace RetellAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.MCPTool))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.MCPToolType), TypeInfoPropertyName = "MCPToolType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.MCPToolExecutionMessageType), TypeInfoPropertyName = "MCPToolExecutionMessageType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.Message))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ToolCallInvocationMessage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ToolCallResultMessage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.NodeTransitionMessage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.StateTransitionMessage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.MessageRole), TypeInfoPropertyName = "MessageRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.Message), TypeInfoPropertyName = "Message2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ToolCallInvocationMessage), TypeInfoPropertyName = "ToolCallInvocationMessage2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ToolCallResultMessage), TypeInfoPropertyName = "ToolCallResultMessage2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.NodeTransitionMessage), TypeInfoPropertyName = "NodeTransitionMessage2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.StateTransitionMessage), TypeInfoPropertyName = "StateTransitionMessage2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ChatMessageInput), TypeInfoPropertyName = "ChatMessageInput2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.MessageBase))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ToolCallInvocationMessageBase))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ToolCallResultMessageBase))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.NodeTransitionMessageBase))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.StateTransitionMessageBase))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.MessageBaseRole), TypeInfoPropertyName = "MessageBaseRole2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.OneOf), TypeInfoPropertyName = "OneOfPerformanceMetricCriteriaCustomMetricCriteria2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.PerformanceMetricCriteria))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.OneOf), TypeInfoPropertyName = "OneOfDoubleBooleanString2")] @@ -2827,13 +2920,18 @@ namespace RetellAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.NodeInstructionPromptType), TypeInfoPropertyName = "NodeInstructionPromptType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.NodeInstructionStaticText))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.NodeInstructionStaticTextType), TypeInfoPropertyName = "NodeInstructionStaticTextType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.SmsInstructionTemplate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.SmsInstructionTemplateType), TypeInfoPropertyName = "SmsInstructionTemplateType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.SmsInstructionTemplateTemplate), TypeInfoPropertyName = "SmsInstructionTemplateTemplate2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.OneOf), TypeInfoPropertyName = "OneOfCustomToolCheckAvailabilityCalToolBookAppointmentCalTool2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.NodeToolVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.NodeTransitionAnalysisDetail))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.NodeTransitionMessageRole), TypeInfoPropertyName = "NodeTransitionMessageRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.NodeTransitionMessageBaseRole), TypeInfoPropertyName = "NodeTransitionMessageBaseRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.NodeTransitionMessageBaseTransitionType), TypeInfoPropertyName = "NodeTransitionMessageBaseTransitionType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.NodeTransitionUtterance))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.NodeTransitionUtteranceRole), TypeInfoPropertyName = "NodeTransitionUtteranceRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.NodeTransitionUtteranceTransitionType), TypeInfoPropertyName = "NodeTransitionUtteranceTransitionType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.NumberAnalysisDataType), TypeInfoPropertyName = "NumberAnalysisDataType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.PresetAnalysisData))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.PresetAnalysisDataType), TypeInfoPropertyName = "PresetAnalysisDataType2")] @@ -2926,6 +3024,9 @@ namespace RetellAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.SmsContentInferredType), TypeInfoPropertyName = "SmsContentInferredType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.SmsContentPredefined))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.SmsContentPredefinedType), TypeInfoPropertyName = "SmsContentPredefinedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.SmsContentTemplate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.SmsContentTemplateType), TypeInfoPropertyName = "SmsContentTemplateType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.SmsContentTemplateTemplate), TypeInfoPropertyName = "SmsContentTemplateTemplate2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.SmsFailedEdge), TypeInfoPropertyName = "SmsFailedEdge2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.SmsFailedEdgeVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.SmsFailedEdgeVariant2TransitionCondition))] @@ -2933,13 +3034,14 @@ namespace RetellAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.SmsFailedEdgeVariant2TransitionConditionPrompt), TypeInfoPropertyName = "SmsFailedEdgeVariant2TransitionConditionPrompt2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.SmsNodeVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.SmsNodeVariant2Type), TypeInfoPropertyName = "SmsNodeVariant2Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.OneOf), TypeInfoPropertyName = "OneOfNodeInstructionSmsInstructionTemplate2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.SmsSuccessEdge), TypeInfoPropertyName = "SmsSuccessEdge2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.SmsSuccessEdgeVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.SmsSuccessEdgeVariant2TransitionCondition))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.SmsSuccessEdgeVariant2TransitionConditionType), TypeInfoPropertyName = "SmsSuccessEdgeVariant2TransitionConditionType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.SmsSuccessEdgeVariant2TransitionConditionPrompt), TypeInfoPropertyName = "SmsSuccessEdgeVariant2TransitionConditionPrompt2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.StateEdge))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.StateTransitionMessageRole), TypeInfoPropertyName = "StateTransitionMessageRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.StateTransitionMessageBaseRole), TypeInfoPropertyName = "StateTransitionMessageBaseRole2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.StringAnalysisDataType), TypeInfoPropertyName = "StringAnalysisDataType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.TestCaseBatchJob))] @@ -2959,10 +3061,10 @@ namespace RetellAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ToolMockInputMatchRuleVariant2Type), TypeInfoPropertyName = "ToolMockInputMatchRuleVariant2Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UtteranceToolCallAccuracy))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ToolCallInvocationMessageRole), TypeInfoPropertyName = "ToolCallInvocationMessageRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ToolCallInvocationMessageBaseRole), TypeInfoPropertyName = "ToolCallInvocationMessageBaseRole2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ToolCallInvocationUtterance))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ToolCallInvocationUtteranceRole), TypeInfoPropertyName = "ToolCallInvocationUtteranceRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ToolCallResultMessageRole), TypeInfoPropertyName = "ToolCallResultMessageRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ToolCallResultMessageBaseRole), TypeInfoPropertyName = "ToolCallResultMessageBaseRole2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ToolCallResultUtterance))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ToolCallResultUtteranceRole), TypeInfoPropertyName = "ToolCallResultUtteranceRole2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ToolParameterType), TypeInfoPropertyName = "ToolParameterType2")] @@ -3019,6 +3121,7 @@ namespace RetellAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.V2CallResponse), TypeInfoPropertyName = "V2CallResponse2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.V2WebCallResponse), TypeInfoPropertyName = "V2WebCallResponse2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.V2PhoneCallResponse), TypeInfoPropertyName = "V2PhoneCallResponse2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.V3CallResponse), TypeInfoPropertyName = "V3CallResponse2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.V2PhoneCallResponseVariant1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.V2PhoneCallResponseVariant1CallType), TypeInfoPropertyName = "V2PhoneCallResponseVariant1CallType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.V2PhoneCallResponseVariant1Direction), TypeInfoPropertyName = "V2PhoneCallResponseVariant1Direction2")] @@ -3060,6 +3163,8 @@ namespace RetellAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.SearchCommunityVoiceRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.SearchCommunityVoiceRequestVoiceProvider), TypeInfoPropertyName = "SearchCommunityVoiceRequestVoiceProvider2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ImportPhoneNumberRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListChatsV3Request))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListChatsV3RequestSortOrder), TypeInfoPropertyName = "ListChatsV3RequestSortOrder2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateChatMetadataRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateChatMetadataRequestDataStorageSetting), TypeInfoPropertyName = "UpdateChatMetadataRequestDataStorageSetting2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdatePhoneNumberRequest))] @@ -3082,6 +3187,8 @@ namespace RetellAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListCallsRequestFilterCriteriaE2eLatencyP50))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListCallsRequestSortOrder), TypeInfoPropertyName = "ListCallsRequestSortOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListCallsV3Request))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListCallsV3RequestSortOrder), TypeInfoPropertyName = "ListCallsV3RequestSortOrder2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.RegisterPhoneCallRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.RegisterPhoneCallRequestDirection), TypeInfoPropertyName = "RegisterPhoneCallRequestDirection2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateCallMetadataRequest))] @@ -3562,6 +3669,17 @@ namespace RetellAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListChatResponseStatus), TypeInfoPropertyName = "ListChatResponseStatus2_3")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListChatResponse2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListChatResponseStatus2), TypeInfoPropertyName = "ListChatResponseStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AllOf), TypeInfoPropertyName = "AllOfPaginatedResponseBaseListChatsV3Response22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListChatsV3Response2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListChatsV3Response3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListChatsV3ResponseStatus), TypeInfoPropertyName = "ListChatsV3ResponseStatus2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListChatsV3Response4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListChatsV3ResponseStatus2), TypeInfoPropertyName = "ListChatsV3ResponseStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListChatsV3Response5))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListChatsV3ResponseStatus3), TypeInfoPropertyName = "ListChatsV3ResponseStatus32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListChatsV3Response6))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListChatsV3ResponseStatus4), TypeInfoPropertyName = "ListChatsV3ResponseStatus42")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AllOf), TypeInfoPropertyName = "AllOfPaginatedResponseBaseListConversationFlowComponentsV2Response22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListConversationFlowComponentsV2Response2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -3745,6 +3863,17 @@ namespace RetellAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListCallsResponseStatus2), TypeInfoPropertyName = "ListCallsResponseStatus22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListCallsResponse3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListCallsResponseStatus3), TypeInfoPropertyName = "ListCallsResponseStatus32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AllOf), TypeInfoPropertyName = "AllOfPaginatedResponseBaseListCallsV3Response22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListCallsV3Response2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListCallsV3Response3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListCallsV3ResponseStatus), TypeInfoPropertyName = "ListCallsV3ResponseStatus2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListCallsV3Response4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListCallsV3ResponseStatus2), TypeInfoPropertyName = "ListCallsV3ResponseStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListCallsV3Response5))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListCallsV3ResponseStatus3), TypeInfoPropertyName = "ListCallsV3ResponseStatus32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListCallsV3Response6))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListCallsV3ResponseStatus4), TypeInfoPropertyName = "ListCallsV3ResponseStatus42")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AllOf), TypeInfoPropertyName = "AllOfPaginatedResponseBaseListExportRequestsV2Response22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListExportRequestsV2Response2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -3864,6 +3993,7 @@ namespace RetellAI [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))] @@ -3871,6 +4001,7 @@ namespace RetellAI [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))] public sealed partial class SourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext { diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonSerializerContextTypes.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonSerializerContextTypes.g.cs index 867a87b..87cec17 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonSerializerContextTypes.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonSerializerContextTypes.g.cs @@ -728,4723 +728,4895 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::RetellAI.CheckAvailabilityCalTool? Type175 { get; set; } + public global::RetellAI.V3ChatResponse? Type175 { get; set; } /// /// /// - public global::RetellAI.CheckAvailabilityCalToolType? Type176 { get; set; } + public global::RetellAI.CheckAvailabilityCalTool? Type176 { get; set; } /// /// /// - public global::RetellAI.CohortAgent? Type177 { get; set; } + public global::RetellAI.CheckAvailabilityCalToolType? Type177 { get; set; } /// /// /// - public global::RetellAI.CohortAggregatedResult? Type178 { get; set; } + public global::RetellAI.CohortAgent? Type178 { get; set; } /// /// /// - public global::RetellAI.CohortAggregatedResultGroupBy? Type179 { get; set; } + public global::RetellAI.CohortAggregatedResult? Type179 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type180 { get; set; } + public global::RetellAI.CohortAggregatedResultGroupBy? Type180 { get; set; } /// /// /// - public global::RetellAI.CohortAggregatedResultTopQuestion? Type181 { get; set; } + public global::System.Collections.Generic.IList? Type181 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type182 { get; set; } + public global::RetellAI.CohortAggregatedResultTopQuestion? Type182 { get; set; } /// /// /// - public global::RetellAI.CohortAggregatedResultTopRecommendation? Type183 { get; set; } + public global::System.Collections.Generic.IList? Type183 { get; set; } /// /// /// - public global::RetellAI.CohortFilter? Type184 { get; set; } + public global::RetellAI.CohortAggregatedResultTopRecommendation? Type184 { get; set; } /// /// /// - public global::RetellAI.OneOf?, global::RetellAI.RangeFilter>? Type185 { get; set; } + public global::RetellAI.CohortFilter? Type185 { get; set; } /// /// /// - public global::RetellAI.AllOf? Type186 { get; set; } + public global::RetellAI.OneOf?, global::RetellAI.RangeFilter>? Type186 { get; set; } /// /// /// - public global::RetellAI.NumberFilter? Type187 { get; set; } + public global::RetellAI.AllOf? Type187 { get; set; } /// /// /// - public global::RetellAI.CohortFilterStartTimestampVariant1? Type188 { get; set; } + public global::RetellAI.NumberFilter? Type188 { get; set; } /// /// /// - public global::RetellAI.CohortFilterStartTimestampVariant1Op? Type189 { get; set; } + public global::RetellAI.CohortFilterStartTimestampVariant1? Type189 { get; set; } /// /// /// - public global::RetellAI.RangeFilter? Type190 { get; set; } + public global::RetellAI.CohortFilterStartTimestampVariant1Op? Type190 { get; set; } /// /// /// - public global::RetellAI.AllOf? Type191 { get; set; } + public global::RetellAI.RangeFilter? Type191 { get; set; } /// /// /// - public global::RetellAI.CohortFilterDisconnectionReason? Type192 { get; set; } + public global::RetellAI.AllOf? Type192 { get; set; } /// /// /// - public global::RetellAI.OneOf? Type193 { get; set; } + public global::RetellAI.CohortFilterDisconnectionReason? Type193 { get; set; } /// /// /// - public global::RetellAI.DateRange? Type194 { get; set; } + public global::RetellAI.OneOf? Type194 { get; set; } /// /// /// - public global::RetellAI.CohortFilterCallDurationFilter? Type195 { get; set; } + public global::RetellAI.DateRange? Type195 { get; set; } /// /// /// - public global::RetellAI.CohortFilterCallDurationFilterOp? Type196 { get; set; } + public global::RetellAI.CohortFilterCallDurationFilter? Type196 { get; set; } /// /// /// - public global::RetellAI.Cohort? Type197 { get; set; } + public global::RetellAI.CohortFilterCallDurationFilterOp? Type197 { get; set; } /// /// /// - public global::RetellAI.ScoringCriteria? Type198 { get; set; } + public global::RetellAI.Cohort? Type198 { get; set; } /// /// /// - public global::RetellAI.CohortSuccessfulCriteria? Type199 { get; set; } + public global::RetellAI.ScoringCriteria? Type199 { get; set; } /// /// /// - public global::RetellAI.CohortSuccessfulCriteriaType? Type200 { get; set; } + public global::RetellAI.CohortSuccessfulCriteria? Type200 { get; set; } /// /// /// - public global::RetellAI.CohortSuccessfulCriteriaOp? Type201 { get; set; } + public global::RetellAI.CohortSuccessfulCriteriaType? Type201 { get; set; } /// /// /// - public global::RetellAI.ComponentNode? Type202 { get; set; } + public global::RetellAI.CohortSuccessfulCriteriaOp? Type202 { get; set; } /// /// /// - public global::RetellAI.NodeBaseCommon? Type203 { get; set; } + public global::RetellAI.ComponentNode? Type203 { get; set; } /// /// /// - public global::RetellAI.ComponentNodeVariant2? Type204 { get; set; } + public global::RetellAI.NodeBaseCommon? Type204 { get; set; } /// /// /// - public global::RetellAI.ComponentNodeVariant2Type? Type205 { get; set; } + public global::RetellAI.ComponentNodeVariant2? Type205 { get; set; } /// /// /// - public global::RetellAI.ComponentNodeVariant2ComponentType? Type206 { get; set; } + public global::RetellAI.ComponentNodeVariant2Type? Type206 { get; set; } /// /// /// - public global::RetellAI.ConversationFlowComponentResponse? Type207 { get; set; } + public global::RetellAI.ComponentNodeVariant2ComponentType? Type207 { get; set; } /// /// /// - public global::RetellAI.CreateConversationFlowComponentRequest? Type208 { get; set; } + public global::RetellAI.ConversationFlowComponentResponse? Type208 { get; set; } /// /// /// - public global::RetellAI.ConversationFlowComponentResponseVariant2? Type209 { get; set; } + public global::RetellAI.CreateConversationFlowComponentRequest? Type209 { get; set; } /// /// /// - public global::RetellAI.Asset? Type210 { get; set; } + public global::RetellAI.ConversationFlowComponentResponseVariant2? Type210 { get; set; } /// /// /// - public global::RetellAI.Note? Type211 { get; set; } + public global::RetellAI.Asset? Type211 { get; set; } /// /// /// - public global::RetellAI.NoteDisplayPosition? Type212 { get; set; } + public global::RetellAI.Note? Type212 { get; set; } /// /// /// - public global::RetellAI.NoteSize? Type213 { get; set; } + public global::RetellAI.NoteDisplayPosition? Type213 { get; set; } /// /// /// - public global::RetellAI.ConversationFlowComponent? Type214 { get; set; } + public global::RetellAI.NoteSize? Type214 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type215 { get; set; } + public global::RetellAI.ConversationFlowComponent? Type215 { get; set; } /// /// /// - public global::RetellAI.NodeTool? Type216 { get; set; } + public global::System.Collections.Generic.IList? Type216 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type217 { get; set; } + public global::RetellAI.NodeTool? Type217 { get; set; } /// /// /// - public global::RetellAI.Mcp? Type218 { get; set; } + public global::System.Collections.Generic.IList? Type218 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type219 { get; set; } + public global::RetellAI.Mcp? Type219 { get; set; } /// /// /// - public global::RetellAI.ConversationFlowNode? Type220 { get; set; } + public global::System.Collections.Generic.IList? Type220 { get; set; } /// /// /// - public global::RetellAI.ConversationFlowComponentBeginTagDisplayPosition? Type221 { get; set; } + public global::RetellAI.ConversationFlowNode? Type221 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type222 { get; set; } + public global::RetellAI.ConversationFlowComponentBeginTagDisplayPosition? Type222 { get; set; } /// /// /// - public global::RetellAI.ConversationNode? Type223 { get; set; } + public global::System.Collections.Generic.IList? Type223 { get; set; } /// /// /// - public global::RetellAI.SubagentNode? Type224 { get; set; } + public global::RetellAI.ConversationNode? Type224 { get; set; } /// /// /// - public global::RetellAI.EndNode? Type225 { get; set; } + public global::RetellAI.SubagentNode? Type225 { get; set; } /// /// /// - public global::RetellAI.FunctionNode? Type226 { get; set; } + public global::RetellAI.EndNode? Type226 { get; set; } /// /// /// - public global::RetellAI.CodeNode? Type227 { get; set; } + public global::RetellAI.FunctionNode? Type227 { get; set; } /// /// /// - public global::RetellAI.TransferCallNode? Type228 { get; set; } + public global::RetellAI.CodeNode? Type228 { get; set; } /// /// /// - public global::RetellAI.PressDigitNode? Type229 { get; set; } + public global::RetellAI.TransferCallNode? Type229 { get; set; } /// /// /// - public global::RetellAI.SmsNode? Type230 { get; set; } + public global::RetellAI.PressDigitNode? Type230 { get; set; } /// /// /// - public global::RetellAI.ExtractDynamicVariablesNode? Type231 { get; set; } + public global::RetellAI.SmsNode? Type231 { get; set; } /// /// /// - public global::RetellAI.MCPNode? Type232 { get; set; } + public global::RetellAI.ExtractDynamicVariablesNode? Type232 { get; set; } /// /// /// - public global::RetellAI.AgentOverrideConfig? Type233 { get; set; } + public global::RetellAI.MCPNode? Type233 { get; set; } /// /// /// - public global::RetellAI.KBConfig? Type234 { get; set; } + public global::RetellAI.AgentOverrideConfig? Type234 { get; set; } /// /// /// - public global::RetellAI.ConversationFlowOverrideStartSpeaker? Type235 { get; set; } + public global::RetellAI.KBConfig? Type235 { get; set; } /// /// /// - public global::RetellAI.ConversationFlowResponse? Type236 { get; set; } + public global::RetellAI.ConversationFlowOverrideStartSpeaker? Type236 { get; set; } /// /// /// - public global::RetellAI.ConversationFlow? Type237 { get; set; } + public global::RetellAI.ConversationFlowResponse? Type237 { get; set; } /// /// /// - public global::RetellAI.ConversationFlowResponseVariant2? Type238 { get; set; } + public global::RetellAI.ConversationFlow? Type238 { get; set; } /// /// /// - public global::RetellAI.ConversationFlowVariant2? Type239 { get; set; } + public global::RetellAI.ConversationFlowResponseVariant2? Type239 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type240 { get; set; } + public global::RetellAI.ConversationFlowVariant2? Type240 { get; set; } /// /// /// - public global::RetellAI.ConversationFlowVariant2BeginTagDisplayPosition? Type241 { get; set; } + public global::System.Collections.Generic.IList? Type241 { get; set; } /// /// /// - public global::RetellAI.ConversationNodeVariant3? Type242 { get; set; } + public global::RetellAI.ConversationFlowVariant2BeginTagDisplayPosition? Type242 { get; set; } /// /// /// - public global::RetellAI.ConversationNodeVariant3Type? Type243 { get; set; } + public global::RetellAI.ConversationNodeVariant3? Type243 { get; set; } /// /// /// - public global::RetellAI.SkipResponseEdge? Type244 { get; set; } + public global::RetellAI.ConversationNodeVariant3Type? Type244 { get; set; } /// /// /// - public global::RetellAI.AlwaysEdge? Type245 { get; set; } + public global::RetellAI.SkipResponseEdge? Type245 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type246 { get; set; } + public global::RetellAI.AlwaysEdge? Type246 { get; set; } /// /// /// - public global::RetellAI.NodeFinetuneConversationExample? Type247 { get; set; } + public global::System.Collections.Generic.IList? Type247 { get; set; } /// /// /// - public global::RetellAI.SubagentNodeVariant3? Type248 { get; set; } + public global::RetellAI.NodeFinetuneConversationExample? Type248 { get; set; } /// /// /// - public global::RetellAI.SubagentNodeVariant3Type? Type249 { get; set; } + public global::RetellAI.SubagentNodeVariant3? Type249 { get; set; } /// /// /// - public global::RetellAI.NodeInstructionPrompt? Type250 { get; set; } + public global::RetellAI.SubagentNodeVariant3Type? Type250 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type251 { get; set; } + public global::RetellAI.NodeInstructionPrompt? Type251 { get; set; } /// /// /// - public global::RetellAI.Tool? Type252 { get; set; } + public global::System.Collections.Generic.IList? Type252 { get; set; } /// /// /// - public global::RetellAI.CpsConfig? Type253 { get; set; } + public global::RetellAI.Tool? Type253 { get; set; } /// /// /// - public global::RetellAI.CreateConversationFlowRequest? Type254 { get; set; } + public global::RetellAI.CpsConfig? Type254 { get; set; } /// /// /// - public global::RetellAI.CreateOrganizationRequest? Type255 { get; set; } + public global::RetellAI.CreateConversationFlowRequest? Type255 { get; set; } /// /// /// - public global::RetellAI.CreateOrganizationRequestNew? Type256 { get; set; } + public global::RetellAI.CreateOrganizationRequest? Type256 { get; set; } /// /// /// - public global::RetellAI.CreateOrganizationRequestOld? Type257 { get; set; } + public global::RetellAI.CreateOrganizationRequestNew? Type257 { get; set; } /// /// /// - public global::RetellAI.CustomMetricCriteria? Type258 { get; set; } + public global::RetellAI.CreateOrganizationRequestOld? Type258 { get; set; } /// /// /// - public global::RetellAI.CustomTool? Type259 { get; set; } + public global::RetellAI.CustomMetricCriteria? Type259 { get; set; } /// /// /// - public global::RetellAI.CustomToolType? Type260 { get; set; } + public global::RetellAI.CustomTool? Type260 { get; set; } /// /// /// - public global::RetellAI.CustomToolMethod? Type261 { get; set; } + public global::RetellAI.CustomToolType? Type261 { get; set; } /// /// /// - public global::RetellAI.ToolParameter? Type262 { get; set; } + public global::RetellAI.CustomToolMethod? Type262 { get; set; } /// /// /// - public global::RetellAI.CustomToolExecutionMessageType? Type263 { get; set; } + public global::RetellAI.ToolParameter? Type263 { get; set; } /// /// /// - public global::RetellAI.CodeTool? Type264 { get; set; } + public global::RetellAI.CustomToolExecutionMessageType? Type264 { get; set; } /// /// /// - public global::RetellAI.CodeToolType? Type265 { get; set; } + public global::RetellAI.CodeTool? Type265 { get; set; } /// /// /// - public global::RetellAI.CodeToolExecutionMessageType? Type266 { get; set; } + public global::RetellAI.CodeToolType? Type266 { get; set; } /// /// /// - public global::RetellAI.DTMFUtterance? Type267 { get; set; } + public global::RetellAI.CodeToolExecutionMessageType? Type267 { get; set; } /// /// /// - public global::RetellAI.DTMFUtteranceRole? Type268 { get; set; } + public global::RetellAI.DTMFUtterance? Type268 { get; set; } /// /// /// - public global::RetellAI.StringFilterType? Type269 { get; set; } + public global::RetellAI.DTMFUtteranceRole? Type269 { get; set; } /// /// /// - public global::RetellAI.StringFilterOp? Type270 { get; set; } + public global::RetellAI.StringFilterType? Type270 { get; set; } /// /// /// - public global::RetellAI.NumberFilterType? Type271 { get; set; } + public global::RetellAI.StringFilterOp? Type271 { get; set; } /// /// /// - public global::RetellAI.NumberFilterOp? Type272 { get; set; } + public global::RetellAI.NumberFilterType? Type272 { get; set; } /// /// /// - public global::RetellAI.BooleanFilter? Type273 { get; set; } + public global::RetellAI.NumberFilterOp? Type273 { get; set; } /// /// /// - public global::RetellAI.BooleanFilterType? Type274 { get; set; } + public global::RetellAI.BooleanFilter? Type274 { get; set; } /// /// /// - public global::RetellAI.BooleanFilterOp? Type275 { get; set; } + public global::RetellAI.BooleanFilterType? Type275 { get; set; } /// /// /// - public global::RetellAI.RangeFilterType? Type276 { get; set; } + public global::RetellAI.BooleanFilterOp? Type276 { get; set; } /// /// /// - public global::RetellAI.RangeFilterOp? Type277 { get; set; } + public global::RetellAI.RangeFilterType? Type277 { get; set; } /// /// /// - public global::RetellAI.EnumFilterType? Type278 { get; set; } + public global::RetellAI.RangeFilterOp? Type278 { get; set; } /// /// /// - public global::RetellAI.EnumFilterOp? Type279 { get; set; } + public global::RetellAI.EnumFilterType? Type279 { get; set; } /// /// /// - public global::RetellAI.PresentFilter? Type280 { get; set; } + public global::RetellAI.EnumFilterOp? Type280 { get; set; } /// /// /// - public global::RetellAI.PresentFilterType? Type281 { get; set; } + public global::RetellAI.PresentFilter? Type281 { get; set; } /// /// /// - public global::RetellAI.PresentFilterOp? Type282 { get; set; } + public global::RetellAI.PresentFilterType? Type282 { get; set; } /// /// /// - public global::RetellAI.ValueFilter? Type283 { get; set; } + public global::RetellAI.PresentFilterOp? Type283 { get; set; } /// /// /// - public global::RetellAI.CustomFieldFilterVariant2? Type284 { get; set; } + public global::RetellAI.ValueFilter? Type284 { get; set; } /// /// /// - public global::RetellAI.ToolCallFilter? Type285 { get; set; } + public global::RetellAI.CustomFieldFilterVariant2? Type285 { get; set; } /// /// /// - public global::RetellAI.CallFilter? Type286 { get; set; } + public global::RetellAI.ToolCallFilter? Type286 { get; set; } /// /// /// - public global::RetellAI.AllOf? Type287 { get; set; } + public global::RetellAI.CallFilter? Type287 { get; set; } /// /// /// - public global::RetellAI.CallFilterCallStatus? Type288 { get; set; } + public global::RetellAI.AllOf? Type288 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type289 { get; set; } + public global::RetellAI.CallFilterCallStatus? Type289 { get; set; } /// /// /// - public global::RetellAI.CallFilterCallStatusValueItem? Type290 { get; set; } + public global::System.Collections.Generic.IList? Type290 { get; set; } /// /// /// - public global::RetellAI.AllOf? Type291 { get; set; } + public global::RetellAI.CallFilterCallStatusValueItem? Type291 { get; set; } /// /// /// - public global::RetellAI.CallFilterDisconnectionReason? Type292 { get; set; } + public global::RetellAI.AllOf? Type292 { get; set; } /// /// /// - public global::RetellAI.AllOf? Type293 { get; set; } + public global::RetellAI.CallFilterDisconnectionReason? Type293 { get; set; } /// /// /// - public global::RetellAI.CallFilterCallType? Type294 { get; set; } + public global::RetellAI.AllOf? Type294 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type295 { get; set; } + public global::RetellAI.CallFilterCallType? Type295 { get; set; } /// /// /// - public global::RetellAI.CallFilterCallTypeValueItem? Type296 { get; set; } + public global::System.Collections.Generic.IList? Type296 { get; set; } /// /// /// - public global::RetellAI.AllOf? Type297 { get; set; } + public global::RetellAI.CallFilterCallTypeValueItem? Type297 { get; set; } /// /// /// - public global::RetellAI.CallFilterDirection? Type298 { get; set; } + public global::RetellAI.AllOf? Type298 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type299 { get; set; } + public global::RetellAI.CallFilterDirection? Type299 { get; set; } /// /// /// - public global::RetellAI.CallFilterDirectionValueItem? Type300 { get; set; } + public global::System.Collections.Generic.IList? Type300 { get; set; } /// /// /// - public global::RetellAI.AllOf? Type301 { get; set; } + public global::RetellAI.CallFilterDirectionValueItem? Type301 { get; set; } /// /// /// - public global::RetellAI.CallFilterUserSentiment? Type302 { get; set; } + public global::RetellAI.AllOf? Type302 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type303 { get; set; } + public global::RetellAI.CallFilterUserSentiment? Type303 { get; set; } /// /// /// - public global::RetellAI.CallFilterUserSentimentValueItem? Type304 { get; set; } + public global::System.Collections.Generic.IList? Type304 { get; set; } /// /// /// - public global::RetellAI.AllOf? Type305 { get; set; } + public global::RetellAI.CallFilterUserSentimentValueItem? Type305 { get; set; } /// /// /// - public global::RetellAI.CallFilterDataStorageSetting? Type306 { get; set; } + public global::RetellAI.AllOf? Type306 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type307 { get; set; } + public global::RetellAI.CallFilterDataStorageSetting? Type307 { get; set; } /// /// /// - public global::RetellAI.CallFilterDataStorageSettingValueItem? Type308 { get; set; } + public global::System.Collections.Generic.IList? Type308 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type309 { get; set; } + public global::RetellAI.CallFilterDataStorageSettingValueItem? Type309 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type310 { get; set; } + public global::System.Collections.Generic.IList? Type310 { get; set; } /// /// /// - public global::RetellAI.AllOf? Type311 { get; set; } + public global::System.Collections.Generic.IList>? Type311 { get; set; } /// /// /// - public global::RetellAI.CallFilterDynamicVariable? Type312 { get; set; } + public global::RetellAI.AllOf? Type312 { get; set; } /// /// /// - public global::RetellAI.Duration? Type313 { get; set; } + public global::RetellAI.CallFilterDynamicVariable? Type313 { get; set; } /// /// /// - public global::RetellAI.ElseEdgeVariant2? Type314 { get; set; } + public global::RetellAI.Duration? Type314 { get; set; } /// /// /// - public global::RetellAI.ElseEdgeVariant2TransitionCondition? Type315 { get; set; } + public global::RetellAI.ElseEdgeVariant2? Type315 { get; set; } /// /// /// - public global::RetellAI.ElseEdgeVariant2TransitionConditionType? Type316 { get; set; } + public global::RetellAI.ElseEdgeVariant2TransitionCondition? Type316 { get; set; } /// /// /// - public global::RetellAI.ElseEdgeVariant2TransitionConditionPrompt? Type317 { get; set; } + public global::RetellAI.ElseEdgeVariant2TransitionConditionType? Type317 { get; set; } /// /// /// - public global::RetellAI.EndCallTool? Type318 { get; set; } + public global::RetellAI.ElseEdgeVariant2TransitionConditionPrompt? Type318 { get; set; } /// /// /// - public global::RetellAI.EndCallToolType? Type319 { get; set; } + public global::RetellAI.EndCallTool? Type319 { get; set; } /// /// /// - public global::RetellAI.EndCallToolExecutionMessageType? Type320 { get; set; } + public global::RetellAI.EndCallToolType? Type320 { get; set; } /// /// /// - public global::RetellAI.EndNodeVariant2? Type321 { get; set; } + public global::RetellAI.EndCallToolExecutionMessageType? Type321 { get; set; } /// /// /// - public global::RetellAI.EndNodeVariant2Type? Type322 { get; set; } + public global::RetellAI.EndNodeVariant2? Type322 { get; set; } /// /// /// - public global::RetellAI.EnumAnalysisDataType? Type323 { get; set; } + public global::RetellAI.EndNodeVariant2Type? Type323 { get; set; } /// /// /// - public global::RetellAI.EquationCondition? Type324 { get; set; } + public global::RetellAI.EnumAnalysisDataType? Type324 { get; set; } /// /// /// - public global::RetellAI.EquationConditionType? Type325 { get; set; } + public global::RetellAI.EquationCondition? Type325 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type326 { get; set; } + public global::RetellAI.EquationConditionType? Type326 { get; set; } /// /// /// - public global::RetellAI.Equation? Type327 { get; set; } + public global::System.Collections.Generic.IList? Type327 { get; set; } /// /// /// - public global::RetellAI.EquationConditionOperator? Type328 { get; set; } + public global::RetellAI.Equation? Type328 { get; set; } /// /// /// - public global::RetellAI.EquationOperator? Type329 { get; set; } + public global::RetellAI.EquationConditionOperator? Type329 { get; set; } /// /// /// - public global::RetellAI.ExtractDynamicVariableTool? Type330 { get; set; } + public global::RetellAI.EquationOperator? Type330 { get; set; } /// /// /// - public global::RetellAI.ExtractDynamicVariableToolType? Type331 { get; set; } + public global::RetellAI.ExtractDynamicVariableTool? Type331 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type332 { get; set; } + public global::RetellAI.ExtractDynamicVariableToolType? Type332 { get; set; } /// /// /// - public global::RetellAI.ExtractDynamicVariablesNodeVariant2? Type333 { get; set; } + public global::System.Collections.Generic.IList? Type333 { get; set; } /// /// /// - public global::RetellAI.ExtractDynamicVariablesNodeVariant2Type? Type334 { get; set; } + public global::RetellAI.ExtractDynamicVariablesNodeVariant2? Type334 { get; set; } /// /// /// - public global::RetellAI.FinetuneExampleUtterance? Type335 { get; set; } + public global::RetellAI.ExtractDynamicVariablesNodeVariant2Type? Type335 { get; set; } /// /// /// - public global::RetellAI.FinetuneExampleUtteranceVariant1? Type336 { get; set; } + public global::RetellAI.FinetuneExampleUtterance? Type336 { get; set; } /// /// /// - public global::RetellAI.FinetuneExampleUtteranceVariant1Role? Type337 { get; set; } + public global::RetellAI.FinetuneExampleUtteranceVariant1? Type337 { get; set; } /// /// /// - public global::RetellAI.FinetuneExampleUtteranceVariant2? Type338 { get; set; } + public global::RetellAI.FinetuneExampleUtteranceVariant1Role? Type338 { get; set; } /// /// /// - public global::RetellAI.FinetuneExampleUtteranceVariant2Role? Type339 { get; set; } + public global::RetellAI.FinetuneExampleUtteranceVariant2? Type339 { get; set; } /// /// /// - public global::RetellAI.FinetuneExampleUtteranceVariant3? Type340 { get; set; } + public global::RetellAI.FinetuneExampleUtteranceVariant2Role? Type340 { get; set; } /// /// /// - public global::RetellAI.FinetuneExampleUtteranceVariant3Role? Type341 { get; set; } + public global::RetellAI.FinetuneExampleUtteranceVariant3? Type341 { get; set; } /// /// /// - public global::RetellAI.FunctionNodeVariant2? Type342 { get; set; } + public global::RetellAI.FinetuneExampleUtteranceVariant3Role? Type342 { get; set; } /// /// /// - public global::RetellAI.FunctionNodeVariant2Type? Type343 { get; set; } + public global::RetellAI.FunctionNodeVariant2? Type343 { get; set; } /// /// /// - public global::RetellAI.FunctionNodeVariant2ToolType? Type344 { get; set; } + public global::RetellAI.FunctionNodeVariant2Type? Type344 { get; set; } /// /// /// - public global::RetellAI.CodeNodeVariant2? Type345 { get; set; } + public global::RetellAI.FunctionNodeVariant2ToolType? Type345 { get; set; } /// /// /// - public global::RetellAI.CodeNodeVariant2Type? Type346 { get; set; } + public global::RetellAI.CodeNodeVariant2? Type346 { get; set; } /// /// /// - public global::RetellAI.GlobalNodeFinetuneTransitionExample? Type347 { get; set; } + public global::RetellAI.CodeNodeVariant2Type? Type347 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type348 { get; set; } + public global::RetellAI.GlobalNodeFinetuneTransitionExample? Type348 { get; set; } /// /// /// - public global::RetellAI.GlobalNodeSetting? Type349 { get; set; } + public global::System.Collections.Generic.IList? Type349 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type350 { get; set; } + public global::RetellAI.GlobalNodeSetting? Type350 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type351 { get; set; } + public global::System.Collections.Generic.IList? Type351 { get; set; } /// /// /// - public global::RetellAI.UtteranceHallucination? Type352 { get; set; } + public global::System.Collections.Generic.IList? Type352 { get; set; } /// /// /// - public global::RetellAI.Hallucination? Type353 { get; set; } + public global::RetellAI.UtteranceHallucination? Type353 { get; set; } /// /// /// - public global::RetellAI.HallucinationType? Type354 { get; set; } + public global::RetellAI.Hallucination? Type354 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type355 { get; set; } + public global::RetellAI.HallucinationType? Type355 { get; set; } /// /// /// - public global::RetellAI.KnowledgeBaseAddSourcesRequest? Type356 { get; set; } + public global::System.Collections.Generic.IList? Type356 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type357 { get; set; } + public global::RetellAI.KnowledgeBaseAddSourcesRequest? Type357 { get; set; } /// /// /// - public global::RetellAI.KnowledgeBaseAddSourcesRequestKnowledgeBaseText? Type358 { get; set; } + public global::System.Collections.Generic.IList? Type358 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type359 { get; set; } + public global::RetellAI.KnowledgeBaseAddSourcesRequestKnowledgeBaseText? Type359 { get; set; } /// /// /// - public byte[]? Type360 { get; set; } + public global::System.Collections.Generic.IList? Type360 { get; set; } /// /// /// - public global::RetellAI.KnowledgeBaseRequest? Type361 { get; set; } + public byte[]? Type361 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type362 { get; set; } + public global::RetellAI.KnowledgeBaseRequest? Type362 { get; set; } /// /// /// - public global::RetellAI.KnowledgeBaseRequestKnowledgeBaseText? Type363 { get; set; } + public global::System.Collections.Generic.IList? Type363 { get; set; } /// /// /// - public global::RetellAI.KnowledgeBaseResponse? Type364 { get; set; } + public global::RetellAI.KnowledgeBaseRequestKnowledgeBaseText? Type364 { get; set; } /// /// /// - public global::RetellAI.KnowledgeBaseResponseStatus? Type365 { get; set; } + public global::RetellAI.KnowledgeBaseResponse? Type365 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type366 { get; set; } + public global::RetellAI.KnowledgeBaseResponseStatus? Type366 { get; set; } /// /// /// - public global::RetellAI.OneOf? Type367 { get; set; } + public global::System.Collections.Generic.IList>? Type367 { get; set; } /// /// /// - public global::RetellAI.KnowledgeBaseSourceDocument? Type368 { get; set; } + public global::RetellAI.OneOf? Type368 { get; set; } /// /// /// - public global::RetellAI.KnowledgeBaseSourceText? Type369 { get; set; } + public global::RetellAI.KnowledgeBaseSourceDocument? Type369 { get; set; } /// /// /// - public global::RetellAI.KnowledgeBaseSourceUrl? Type370 { get; set; } + public global::RetellAI.KnowledgeBaseSourceText? Type370 { get; set; } /// /// /// - public global::RetellAI.KnowledgeBaseSourceDocumentType? Type371 { get; set; } + public global::RetellAI.KnowledgeBaseSourceUrl? Type371 { get; set; } /// /// /// - public global::RetellAI.KnowledgeBaseSourceTextType? Type372 { get; set; } + public global::RetellAI.KnowledgeBaseSourceDocumentType? Type372 { get; set; } /// /// /// - public global::RetellAI.KnowledgeBaseSourceUrlType? Type373 { get; set; } + public global::RetellAI.KnowledgeBaseSourceTextType? Type373 { get; set; } /// /// /// - public global::RetellAI.LLMModel? Type374 { get; set; } + public global::RetellAI.KnowledgeBaseSourceUrlType? Type374 { get; set; } /// /// /// - public global::RetellAI.MCPNodeVariant2? Type375 { get; set; } + public global::RetellAI.LLMModel? Type375 { get; set; } /// /// /// - public global::RetellAI.MCPNodeVariant2Type? Type376 { get; set; } + public global::RetellAI.MCPNodeVariant2? Type376 { get; set; } /// /// /// - public global::RetellAI.MCPToolDefinition? Type377 { get; set; } + public global::RetellAI.MCPNodeVariant2Type? Type377 { get; set; } /// /// /// - public global::RetellAI.MCPTool? Type378 { get; set; } + public global::RetellAI.MCPToolDefinition? Type378 { get; set; } /// /// /// - public global::RetellAI.MCPToolType? Type379 { get; set; } + public global::RetellAI.MCPTool? Type379 { get; set; } /// /// /// - public global::RetellAI.MCPToolExecutionMessageType? Type380 { get; set; } + public global::RetellAI.MCPToolType? Type380 { get; set; } /// /// /// - public global::RetellAI.Message? Type381 { get; set; } + public global::RetellAI.MCPToolExecutionMessageType? Type381 { get; set; } /// /// /// - public global::RetellAI.ToolCallInvocationMessage? Type382 { get; set; } + public global::RetellAI.Message? Type382 { get; set; } /// /// /// - public global::RetellAI.ToolCallResultMessage? Type383 { get; set; } + public global::RetellAI.ToolCallInvocationMessage? Type383 { get; set; } /// /// /// - public global::RetellAI.NodeTransitionMessage? Type384 { get; set; } + public global::RetellAI.ToolCallResultMessage? Type384 { get; set; } /// /// /// - public global::RetellAI.StateTransitionMessage? Type385 { get; set; } + public global::RetellAI.NodeTransitionMessage? Type385 { get; set; } /// /// /// - public global::RetellAI.MessageRole? Type386 { get; set; } + public global::RetellAI.StateTransitionMessage? Type386 { get; set; } /// /// /// - public global::RetellAI.OneOf? Type387 { get; set; } + public global::RetellAI.ChatMessageInput? Type387 { get; set; } /// /// /// - public global::RetellAI.PerformanceMetricCriteria? Type388 { get; set; } + public global::RetellAI.MessageBase? Type388 { get; set; } /// /// /// - public global::RetellAI.OneOf? Type389 { get; set; } + public global::RetellAI.ToolCallInvocationMessageBase? Type389 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type390 { get; set; } + public global::RetellAI.ToolCallResultMessageBase? Type390 { get; set; } /// /// /// - public global::RetellAI.UtteranceMistranscribedImportantEntities? Type391 { get; set; } + public global::RetellAI.NodeTransitionMessageBase? Type391 { get; set; } /// /// /// - public global::RetellAI.ModelChoiceCascading? Type392 { get; set; } + public global::RetellAI.StateTransitionMessageBase? Type392 { get; set; } /// /// /// - public global::RetellAI.ModelChoiceCascadingType? Type393 { get; set; } + public global::RetellAI.MessageBaseRole? Type393 { get; set; } /// /// /// - public global::RetellAI.ModelChoice? Type394 { get; set; } + public global::RetellAI.OneOf? Type394 { get; set; } /// /// /// - public global::RetellAI.NaturalnessIssue? Type395 { get; set; } + public global::RetellAI.PerformanceMetricCriteria? Type395 { get; set; } /// /// /// - public global::RetellAI.NodeBaseVariant2? Type396 { get; set; } + public global::RetellAI.OneOf? Type396 { get; set; } /// /// /// - public global::RetellAI.NodeBaseCommonDisplayPosition? Type397 { get; set; } + public global::System.Collections.Generic.IList? Type397 { get; set; } /// /// /// - public global::RetellAI.OneOf? Type398 { get; set; } + public global::RetellAI.UtteranceMistranscribedImportantEntities? Type398 { get; set; } /// /// /// - public global::RetellAI.PromptCondition? Type399 { get; set; } + public global::RetellAI.ModelChoiceCascading? Type399 { get; set; } /// /// /// - public global::RetellAI.NodeInstructionPromptType? Type400 { get; set; } + public global::RetellAI.ModelChoiceCascadingType? Type400 { get; set; } /// /// /// - public global::RetellAI.NodeInstructionStaticText? Type401 { get; set; } + public global::RetellAI.ModelChoice? Type401 { get; set; } /// /// /// - public global::RetellAI.NodeInstructionStaticTextType? Type402 { get; set; } + public global::RetellAI.NaturalnessIssue? Type402 { get; set; } /// /// /// - public global::RetellAI.OneOf? Type403 { get; set; } + public global::RetellAI.NodeBaseVariant2? Type403 { get; set; } /// /// /// - public global::RetellAI.NodeToolVariant2? Type404 { get; set; } + public global::RetellAI.NodeBaseCommonDisplayPosition? Type404 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type405 { get; set; } + public global::RetellAI.OneOf? Type405 { get; set; } /// /// /// - public global::RetellAI.NodeTransitionAnalysisDetail? Type406 { get; set; } + public global::RetellAI.PromptCondition? Type406 { get; set; } /// /// /// - public global::RetellAI.NodeTransitionMessageRole? Type407 { get; set; } + public global::RetellAI.NodeInstructionPromptType? Type407 { get; set; } /// /// /// - public global::RetellAI.NodeTransitionUtterance? Type408 { get; set; } + public global::RetellAI.NodeInstructionStaticText? Type408 { get; set; } /// /// /// - public global::RetellAI.NodeTransitionUtteranceRole? Type409 { get; set; } + public global::RetellAI.NodeInstructionStaticTextType? Type409 { get; set; } /// /// /// - public global::RetellAI.NumberAnalysisDataType? Type410 { get; set; } + public global::RetellAI.SmsInstructionTemplate? Type410 { get; set; } /// /// /// - public global::RetellAI.PresetAnalysisData? Type411 { get; set; } + public global::RetellAI.SmsInstructionTemplateType? Type411 { get; set; } /// /// /// - public global::RetellAI.PresetAnalysisDataType? Type412 { get; set; } + public global::RetellAI.SmsInstructionTemplateTemplate? Type412 { get; set; } /// /// /// - public global::RetellAI.PresetAnalysisDataName? Type413 { get; set; } + public global::RetellAI.OneOf? Type413 { get; set; } /// /// /// - public global::RetellAI.CallPresetAnalysisDataType? Type414 { get; set; } + public global::RetellAI.NodeToolVariant2? Type414 { get; set; } /// /// /// - public global::RetellAI.CallPresetAnalysisDataName? Type415 { get; set; } + public global::System.Collections.Generic.IList? Type415 { get; set; } /// /// /// - public global::RetellAI.ChatPresetAnalysisDataType? Type416 { get; set; } + public global::RetellAI.NodeTransitionAnalysisDetail? Type416 { get; set; } /// /// /// - public global::RetellAI.ChatPresetAnalysisDataName? Type417 { get; set; } + public global::RetellAI.NodeTransitionMessageBaseRole? Type417 { get; set; } /// /// /// - public global::RetellAI.Organization? Type418 { get; set; } + public global::RetellAI.NodeTransitionMessageBaseTransitionType? Type418 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type419 { get; set; } + public global::RetellAI.NodeTransitionUtterance? Type419 { get; set; } /// /// /// - public global::RetellAI.OrganizationWebhookUrl? Type420 { get; set; } + public global::RetellAI.NodeTransitionUtteranceRole? Type420 { get; set; } /// /// /// - public global::System.DateTimeOffset? Type421 { get; set; } + public global::RetellAI.NodeTransitionUtteranceTransitionType? Type421 { get; set; } /// /// /// - public global::RetellAI.OrganizationCpsConfig? Type422 { get; set; } + public global::RetellAI.NumberAnalysisDataType? Type422 { get; set; } /// /// /// - public global::RetellAI.OrganizationResponse? Type423 { get; set; } + public global::RetellAI.PresetAnalysisData? Type423 { get; set; } /// /// /// - public global::RetellAI.OrganizationResponseVariant2? Type424 { get; set; } + public global::RetellAI.PresetAnalysisDataType? Type424 { get; set; } /// /// /// - public global::RetellAI.PIIConfigMode? Type425 { get; set; } + public global::RetellAI.PresetAnalysisDataName? Type425 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type426 { get; set; } + public global::RetellAI.CallPresetAnalysisDataType? Type426 { get; set; } /// /// /// - public global::RetellAI.PIIConfigCategorie? Type427 { get; set; } + public global::RetellAI.CallPresetAnalysisDataName? Type427 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type428 { get; set; } + public global::RetellAI.ChatPresetAnalysisDataType? Type428 { get; set; } /// /// /// - public global::RetellAI.GuardrailConfigOutputTopic? Type429 { get; set; } + public global::RetellAI.ChatPresetAnalysisDataName? Type429 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type430 { get; set; } + public global::RetellAI.Organization? Type430 { get; set; } /// /// /// - public global::RetellAI.GuardrailConfigInputTopic? Type431 { get; set; } + public global::System.Collections.Generic.IList? Type431 { get; set; } /// /// /// - public global::RetellAI.PerformanceMetricCriteriaOp? Type432 { get; set; } + public global::RetellAI.OrganizationWebhookUrl? Type432 { get; set; } /// /// /// - public global::RetellAI.PhoneNumberResponse? Type433 { get; set; } + public global::System.DateTimeOffset? Type433 { get; set; } /// /// /// - public global::RetellAI.PhoneNumberResponsePhoneNumberType? Type434 { get; set; } + public global::RetellAI.OrganizationCpsConfig? Type434 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type435 { get; set; } + public global::RetellAI.OrganizationResponse? Type435 { get; set; } /// /// /// - public global::RetellAI.PhoneNumberResponseSipOutboundTrunkConfig? Type436 { get; set; } + public global::RetellAI.OrganizationResponseVariant2? Type436 { get; set; } /// /// /// - public global::RetellAI.PressDigitNodeVariant2? Type437 { get; set; } + public global::RetellAI.PIIConfigMode? Type437 { get; set; } /// /// /// - public global::RetellAI.PressDigitNodeVariant2Type? Type438 { get; set; } + public global::System.Collections.Generic.IList? Type438 { get; set; } /// /// /// - public global::RetellAI.PressDigitTool? Type439 { get; set; } + public global::RetellAI.PIIConfigCategorie? Type439 { get; set; } /// /// /// - public global::RetellAI.PressDigitToolType? Type440 { get; set; } + public global::System.Collections.Generic.IList? Type440 { get; set; } /// /// /// - public global::RetellAI.PromptConditionType? Type441 { get; set; } + public global::RetellAI.GuardrailConfigOutputTopic? Type441 { get; set; } /// /// /// - public global::RetellAI.QaViewFilter? Type442 { get; set; } + public global::System.Collections.Generic.IList? Type442 { get; set; } /// /// /// - public global::RetellAI.AllOf? Type443 { get; set; } + public global::RetellAI.GuardrailConfigInputTopic? Type443 { get; set; } /// /// /// - public global::RetellAI.QaViewFilterDisconnectionReason? Type444 { get; set; } + public global::RetellAI.PerformanceMetricCriteriaOp? Type444 { get; set; } /// /// /// - public global::RetellAI.OneOf? Type445 { get; set; } + public global::RetellAI.PhoneNumberResponse? Type445 { get; set; } /// /// /// - public global::RetellAI.QaViewFilterScoreRange? Type446 { get; set; } + public global::RetellAI.PhoneNumberResponsePhoneNumberType? Type446 { get; set; } /// /// /// - public global::RetellAI.QaViewFilterScoreRangeType? Type447 { get; set; } + public global::System.Collections.Generic.IList? Type447 { get; set; } /// /// /// - public global::RetellAI.QaViewFilterScoreRangeOp? Type448 { get; set; } + public global::RetellAI.PhoneNumberResponseSipOutboundTrunkConfig? Type448 { get; set; } /// /// /// - public global::RetellAI.RAGAccuracy? Type449 { get; set; } + public global::RetellAI.PressDigitNodeVariant2? Type449 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type450 { get; set; } + public global::RetellAI.PressDigitNodeVariant2Type? Type450 { get; set; } /// /// /// - public global::RetellAI.ResponseEngineConversationFlow? Type451 { get; set; } + public global::RetellAI.PressDigitTool? Type451 { get; set; } /// /// /// - public global::RetellAI.ResponseEngineConversationFlowType? Type452 { get; set; } + public global::RetellAI.PressDigitToolType? Type452 { get; set; } /// /// /// - public global::RetellAI.ResponseEngineCustomLm? Type453 { get; set; } + public global::RetellAI.PromptConditionType? Type453 { get; set; } /// /// /// - public global::RetellAI.ResponseEngineCustomLmType? Type454 { get; set; } + public global::RetellAI.QaViewFilter? Type454 { get; set; } /// /// /// - public global::RetellAI.ResponseEngineRetellLm? Type455 { get; set; } + public global::RetellAI.AllOf? Type455 { get; set; } /// /// /// - public global::RetellAI.ResponseEngineRetellLmType? Type456 { get; set; } + public global::RetellAI.QaViewFilterDisconnectionReason? Type456 { get; set; } /// /// /// - public global::RetellAI.RetellResponseEngine? Type457 { get; set; } + public global::RetellAI.OneOf? Type457 { get; set; } /// /// /// - public global::RetellAI.RetellLLMResponse? Type458 { get; set; } + public global::RetellAI.QaViewFilterScoreRange? Type458 { get; set; } /// /// /// - public global::RetellAI.RetellLLMResponseVariant1? Type459 { get; set; } + public global::RetellAI.QaViewFilterScoreRangeType? Type459 { get; set; } /// /// /// - public global::RetellAI.RetellLlmRequest? Type460 { get; set; } + public global::RetellAI.QaViewFilterScoreRangeOp? Type460 { get; set; } /// /// /// - public global::RetellAI.RetellLLMResponseVariant3? Type461 { get; set; } + public global::RetellAI.RAGAccuracy? Type461 { get; set; } /// /// /// - public global::RetellAI.RetellLlmOverrideS2sModel? Type462 { get; set; } + public global::System.Collections.Generic.IList? Type462 { get; set; } /// /// /// - public global::RetellAI.RetellLlmOverrideStartSpeaker? Type463 { get; set; } + public global::RetellAI.ResponseEngineConversationFlow? Type463 { get; set; } /// /// /// - public global::RetellAI.RetellLlmRequestVariant2? Type464 { get; set; } + public global::RetellAI.ResponseEngineConversationFlowType? Type464 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type465 { get; set; } + public global::RetellAI.ResponseEngineCustomLm? Type465 { get; set; } /// /// /// - public global::RetellAI.State? Type466 { get; set; } + public global::RetellAI.ResponseEngineCustomLmType? Type466 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type467 { get; set; } + public global::RetellAI.ResponseEngineRetellLm? Type467 { get; set; } /// /// /// - public global::RetellAI.ScoringCriteriaCustomCondition? Type468 { get; set; } + public global::RetellAI.ResponseEngineRetellLmType? Type468 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type469 { get; set; } + public global::RetellAI.RetellResponseEngine? Type469 { get; set; } /// /// /// - public global::RetellAI.SendSMSTool? Type470 { get; set; } + public global::RetellAI.RetellLLMResponse? Type470 { get; set; } /// /// /// - public global::RetellAI.SendSMSToolType? Type471 { get; set; } + public global::RetellAI.RetellLLMResponseVariant1? Type471 { get; set; } /// /// /// - public global::RetellAI.SendSMSToolExecutionMessageType? Type472 { get; set; } + public global::RetellAI.RetellLlmRequest? Type472 { get; set; } /// /// /// - public global::RetellAI.SmsContent? Type473 { get; set; } + public global::RetellAI.RetellLLMResponseVariant3? Type473 { get; set; } /// /// /// - public global::RetellAI.SmsSender? Type474 { get; set; } + public global::RetellAI.RetellLlmOverrideS2sModel? Type474 { get; set; } /// /// /// - public global::RetellAI.SmsSenderVariant1? Type475 { get; set; } + public global::RetellAI.RetellLlmOverrideStartSpeaker? Type475 { get; set; } /// /// /// - public global::RetellAI.SmsSenderVariant1Type? Type476 { get; set; } + public global::RetellAI.RetellLlmRequestVariant2? Type476 { get; set; } /// /// /// - public global::RetellAI.SmsSenderVariant2? Type477 { get; set; } + public global::System.Collections.Generic.IList? Type477 { get; set; } /// /// /// - public global::RetellAI.SmsSenderVariant2Type? Type478 { get; set; } + public global::RetellAI.State? Type478 { get; set; } /// /// /// - public global::RetellAI.SmsDestination? Type479 { get; set; } + public global::System.Collections.Generic.IList? Type479 { get; set; } /// /// /// - public global::RetellAI.SmsDestinationVariant1? Type480 { get; set; } + public global::RetellAI.ScoringCriteriaCustomCondition? Type480 { get; set; } /// /// /// - public global::RetellAI.SmsDestinationVariant1Type? Type481 { get; set; } + public global::System.Collections.Generic.IList? Type481 { get; set; } /// /// /// - public global::RetellAI.SmsDestinationVariant2? Type482 { get; set; } + public global::RetellAI.SendSMSTool? Type482 { get; set; } /// /// /// - public global::RetellAI.SmsDestinationVariant2Type? Type483 { get; set; } + public global::RetellAI.SendSMSToolType? Type483 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type484 { get; set; } + public global::RetellAI.SendSMSToolExecutionMessageType? Type484 { get; set; } /// /// /// - public global::RetellAI.OneOf? Type485 { get; set; } + public global::RetellAI.SmsContent? Type485 { get; set; } /// /// /// - public global::RetellAI.SentimentAnalysisDetailVariant1? Type486 { get; set; } + public global::RetellAI.SmsSender? Type486 { get; set; } /// /// /// - public global::RetellAI.SentimentAnalysisDetailVariant1Sentiment? Type487 { get; set; } + public global::RetellAI.SmsSenderVariant1? Type487 { get; set; } /// /// /// - public global::RetellAI.SentimentAnalysisDetailVariant2? Type488 { get; set; } + public global::RetellAI.SmsSenderVariant1Type? Type488 { get; set; } /// /// /// - public global::RetellAI.SentimentAnalysisDetailVariant2Sentiment? Type489 { get; set; } + public global::RetellAI.SmsSenderVariant2? Type489 { get; set; } /// /// /// - public global::RetellAI.SkipResponseEdgeVariant2? Type490 { get; set; } + public global::RetellAI.SmsSenderVariant2Type? Type490 { get; set; } /// /// /// - public global::RetellAI.SkipResponseEdgeVariant2TransitionCondition? Type491 { get; set; } + public global::RetellAI.SmsDestination? Type491 { get; set; } /// /// /// - public global::RetellAI.SkipResponseEdgeVariant2TransitionConditionType? Type492 { get; set; } + public global::RetellAI.SmsDestinationVariant1? Type492 { get; set; } /// /// /// - public global::RetellAI.SkipResponseEdgeVariant2TransitionConditionPrompt? Type493 { get; set; } + public global::RetellAI.SmsDestinationVariant1Type? Type493 { get; set; } /// /// /// - public global::RetellAI.AlwaysEdgeVariant2? Type494 { get; set; } + public global::RetellAI.SmsDestinationVariant2? Type494 { get; set; } /// /// /// - public global::RetellAI.AlwaysEdgeVariant2TransitionCondition? Type495 { get; set; } + public global::RetellAI.SmsDestinationVariant2Type? Type495 { get; set; } /// /// /// - public global::RetellAI.AlwaysEdgeVariant2TransitionConditionType? Type496 { get; set; } + public global::System.Collections.Generic.IList>? Type496 { get; set; } /// /// /// - public global::RetellAI.AlwaysEdgeVariant2TransitionConditionPrompt? Type497 { get; set; } + public global::RetellAI.OneOf? Type497 { get; set; } /// /// /// - public global::RetellAI.SmsContentInferred? Type498 { get; set; } + public global::RetellAI.SentimentAnalysisDetailVariant1? Type498 { get; set; } /// /// /// - public global::RetellAI.SmsContentInferredType? Type499 { get; set; } + public global::RetellAI.SentimentAnalysisDetailVariant1Sentiment? Type499 { get; set; } /// /// /// - public global::RetellAI.SmsContentPredefined? Type500 { get; set; } + public global::RetellAI.SentimentAnalysisDetailVariant2? Type500 { get; set; } /// /// /// - public global::RetellAI.SmsContentPredefinedType? Type501 { get; set; } + public global::RetellAI.SentimentAnalysisDetailVariant2Sentiment? Type501 { get; set; } /// /// /// - public global::RetellAI.SmsFailedEdge? Type502 { get; set; } + public global::RetellAI.SkipResponseEdgeVariant2? Type502 { get; set; } /// /// /// - public global::RetellAI.SmsFailedEdgeVariant2? Type503 { get; set; } + public global::RetellAI.SkipResponseEdgeVariant2TransitionCondition? Type503 { get; set; } /// /// /// - public global::RetellAI.SmsFailedEdgeVariant2TransitionCondition? Type504 { get; set; } + public global::RetellAI.SkipResponseEdgeVariant2TransitionConditionType? Type504 { get; set; } /// /// /// - public global::RetellAI.SmsFailedEdgeVariant2TransitionConditionType? Type505 { get; set; } + public global::RetellAI.SkipResponseEdgeVariant2TransitionConditionPrompt? Type505 { get; set; } /// /// /// - public global::RetellAI.SmsFailedEdgeVariant2TransitionConditionPrompt? Type506 { get; set; } + public global::RetellAI.AlwaysEdgeVariant2? Type506 { get; set; } /// /// /// - public global::RetellAI.SmsNodeVariant2? Type507 { get; set; } + public global::RetellAI.AlwaysEdgeVariant2TransitionCondition? Type507 { get; set; } /// /// /// - public global::RetellAI.SmsNodeVariant2Type? Type508 { get; set; } + public global::RetellAI.AlwaysEdgeVariant2TransitionConditionType? Type508 { get; set; } /// /// /// - public global::RetellAI.SmsSuccessEdge? Type509 { get; set; } + public global::RetellAI.AlwaysEdgeVariant2TransitionConditionPrompt? Type509 { get; set; } /// /// /// - public global::RetellAI.SmsSuccessEdgeVariant2? Type510 { get; set; } + public global::RetellAI.SmsContentInferred? Type510 { get; set; } /// /// /// - public global::RetellAI.SmsSuccessEdgeVariant2TransitionCondition? Type511 { get; set; } + public global::RetellAI.SmsContentInferredType? Type511 { get; set; } /// /// /// - public global::RetellAI.SmsSuccessEdgeVariant2TransitionConditionType? Type512 { get; set; } + public global::RetellAI.SmsContentPredefined? Type512 { get; set; } /// /// /// - public global::RetellAI.SmsSuccessEdgeVariant2TransitionConditionPrompt? Type513 { get; set; } + public global::RetellAI.SmsContentPredefinedType? Type513 { get; set; } /// /// /// - public global::RetellAI.StateEdge? Type514 { get; set; } + public global::RetellAI.SmsContentTemplate? Type514 { get; set; } /// /// /// - public global::RetellAI.StateTransitionMessageRole? Type515 { get; set; } + public global::RetellAI.SmsContentTemplateType? Type515 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type516 { get; set; } + public global::RetellAI.SmsContentTemplateTemplate? Type516 { get; set; } /// /// /// - public global::RetellAI.StringAnalysisDataType? Type517 { get; set; } + public global::RetellAI.SmsFailedEdge? Type517 { get; set; } /// /// /// - public global::RetellAI.TestCaseBatchJob? Type518 { get; set; } + public global::RetellAI.SmsFailedEdgeVariant2? Type518 { get; set; } /// /// /// - public global::RetellAI.TestCaseBatchJobStatus? Type519 { get; set; } + public global::RetellAI.SmsFailedEdgeVariant2TransitionCondition? Type519 { get; set; } /// /// /// - public global::RetellAI.TestCaseDefinitionInput? Type520 { get; set; } + public global::RetellAI.SmsFailedEdgeVariant2TransitionConditionType? Type520 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type521 { get; set; } + public global::RetellAI.SmsFailedEdgeVariant2TransitionConditionPrompt? Type521 { get; set; } /// /// /// - public global::RetellAI.ToolMock? Type522 { get; set; } + public global::RetellAI.SmsNodeVariant2? Type522 { get; set; } /// /// /// - public global::RetellAI.TestCaseDefinition? Type523 { get; set; } + public global::RetellAI.SmsNodeVariant2Type? Type523 { get; set; } /// /// /// - public global::RetellAI.TestCaseDefinitionVariant2? Type524 { get; set; } + public global::RetellAI.OneOf? Type524 { get; set; } /// /// /// - public global::RetellAI.TestCaseDefinitionVariant2Type? Type525 { get; set; } + public global::RetellAI.SmsSuccessEdge? Type525 { get; set; } /// /// /// - public global::RetellAI.TestCaseJob? Type526 { get; set; } + public global::RetellAI.SmsSuccessEdgeVariant2? Type526 { get; set; } /// /// /// - public global::RetellAI.TestCaseJobStatus? Type527 { get; set; } + public global::RetellAI.SmsSuccessEdgeVariant2TransitionCondition? Type527 { get; set; } /// /// /// - public global::RetellAI.ToolMockInputMatchRule? Type528 { get; set; } + public global::RetellAI.SmsSuccessEdgeVariant2TransitionConditionType? Type528 { get; set; } /// /// /// - public global::RetellAI.ToolMockInputMatchRuleVariant1? Type529 { get; set; } + public global::RetellAI.SmsSuccessEdgeVariant2TransitionConditionPrompt? Type529 { get; set; } /// /// /// - public global::RetellAI.ToolMockInputMatchRuleVariant1Type? Type530 { get; set; } + public global::RetellAI.StateEdge? Type530 { get; set; } /// /// /// - public global::RetellAI.ToolMockInputMatchRuleVariant2? Type531 { get; set; } + public global::RetellAI.StateTransitionMessageBaseRole? Type531 { get; set; } /// /// /// - public global::RetellAI.ToolMockInputMatchRuleVariant2Type? Type532 { get; set; } + public global::System.Collections.Generic.IList? Type532 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type533 { get; set; } + public global::RetellAI.StringAnalysisDataType? Type533 { get; set; } /// /// /// - public global::RetellAI.UtteranceToolCallAccuracy? Type534 { get; set; } + public global::RetellAI.TestCaseBatchJob? Type534 { get; set; } /// /// /// - public global::RetellAI.ToolCallInvocationMessageRole? Type535 { get; set; } + public global::RetellAI.TestCaseBatchJobStatus? Type535 { get; set; } /// /// /// - public global::RetellAI.ToolCallInvocationUtterance? Type536 { get; set; } + public global::RetellAI.TestCaseDefinitionInput? Type536 { get; set; } /// /// /// - public global::RetellAI.ToolCallInvocationUtteranceRole? Type537 { get; set; } + public global::System.Collections.Generic.IList? Type537 { get; set; } /// /// /// - public global::RetellAI.ToolCallResultMessageRole? Type538 { get; set; } + public global::RetellAI.ToolMock? Type538 { get; set; } /// /// /// - public global::RetellAI.ToolCallResultUtterance? Type539 { get; set; } + public global::RetellAI.TestCaseDefinition? Type539 { get; set; } /// /// /// - public global::RetellAI.ToolCallResultUtteranceRole? Type540 { get; set; } + public global::RetellAI.TestCaseDefinitionVariant2? Type540 { get; set; } /// /// /// - public global::RetellAI.ToolParameterType? Type541 { get; set; } + public global::RetellAI.TestCaseDefinitionVariant2Type? Type541 { get; set; } /// /// /// - public global::RetellAI.TransferCallTool? Type542 { get; set; } + public global::RetellAI.TestCaseJob? Type542 { get; set; } /// /// /// - public global::RetellAI.TransferCallNodeVariant2? Type543 { get; set; } + public global::RetellAI.TestCaseJobStatus? Type543 { get; set; } /// /// /// - public global::RetellAI.TransferCallNodeVariant2Type? Type544 { get; set; } + public global::RetellAI.ToolMockInputMatchRule? Type544 { get; set; } /// /// /// - public global::RetellAI.TransferDestination? Type545 { get; set; } + public global::RetellAI.ToolMockInputMatchRuleVariant1? Type545 { get; set; } /// /// /// - public global::RetellAI.TransferOption? Type546 { get; set; } + public global::RetellAI.ToolMockInputMatchRuleVariant1Type? Type546 { get; set; } /// /// /// - public global::RetellAI.TransferCallToolType? Type547 { get; set; } + public global::RetellAI.ToolMockInputMatchRuleVariant2? Type547 { get; set; } /// /// /// - public global::RetellAI.TransferCallToolExecutionMessageType? Type548 { get; set; } + public global::RetellAI.ToolMockInputMatchRuleVariant2Type? Type548 { get; set; } /// /// /// - public global::RetellAI.TransferDestinationInferred? Type549 { get; set; } + public global::System.Collections.Generic.IList? Type549 { get; set; } /// /// /// - public global::RetellAI.TransferDestinationInferredType? Type550 { get; set; } + public global::RetellAI.UtteranceToolCallAccuracy? Type550 { get; set; } /// /// /// - public global::RetellAI.TransferDestinationPredefined? Type551 { get; set; } + public global::RetellAI.ToolCallInvocationMessageBaseRole? Type551 { get; set; } /// /// /// - public global::RetellAI.TransferDestinationPredefinedType? Type552 { get; set; } + public global::RetellAI.ToolCallInvocationUtterance? Type552 { get; set; } /// /// /// - public global::RetellAI.TransferFailedEdgeVariant2? Type553 { get; set; } + public global::RetellAI.ToolCallInvocationUtteranceRole? Type553 { get; set; } /// /// /// - public global::RetellAI.TransferFailedEdgeVariant2TransitionCondition? Type554 { get; set; } + public global::RetellAI.ToolCallResultMessageBaseRole? Type554 { get; set; } /// /// /// - public global::RetellAI.TransferFailedEdgeVariant2TransitionConditionType? Type555 { get; set; } + public global::RetellAI.ToolCallResultUtterance? Type555 { get; set; } /// /// /// - public global::RetellAI.TransferFailedEdgeVariant2TransitionConditionPrompt? Type556 { get; set; } + public global::RetellAI.ToolCallResultUtteranceRole? Type556 { get; set; } /// /// /// - public global::RetellAI.TransferOptionAgenticWarmTransfer? Type557 { get; set; } + public global::RetellAI.ToolParameterType? Type557 { get; set; } /// /// /// - public global::RetellAI.TransferOptionAgenticWarmTransferType? Type558 { get; set; } + public global::RetellAI.TransferCallTool? Type558 { get; set; } /// /// /// - public global::RetellAI.TransferOptionAgenticWarmTransferOnHoldMusic? Type559 { get; set; } + public global::RetellAI.TransferCallNodeVariant2? Type559 { get; set; } /// /// /// - public global::RetellAI.OneOf? Type560 { get; set; } + public global::RetellAI.TransferCallNodeVariant2Type? Type560 { get; set; } /// /// /// - public global::RetellAI.WarmTransferPrompt? Type561 { get; set; } + public global::RetellAI.TransferDestination? Type561 { get; set; } /// /// /// - public global::RetellAI.WarmTransferStaticMessage? Type562 { get; set; } + public global::RetellAI.TransferOption? Type562 { get; set; } /// /// /// - public global::RetellAI.TransferOptionAgenticWarmTransferAgenticTransferConfig? Type563 { get; set; } + public global::RetellAI.TransferCallToolType? Type563 { get; set; } /// /// /// - public global::RetellAI.TransferOptionAgenticWarmTransferAgenticTransferConfigTransferAgent? Type564 { get; set; } + public global::RetellAI.TransferCallToolExecutionMessageType? Type564 { get; set; } /// /// /// - public global::RetellAI.TransferOptionAgenticWarmTransferAgenticTransferConfigActionOnTimeout? Type565 { get; set; } + public global::RetellAI.TransferDestinationInferred? Type565 { get; set; } /// /// /// - public global::RetellAI.TransferOptionColdTransfer? Type566 { get; set; } + public global::RetellAI.TransferDestinationInferredType? Type566 { get; set; } /// /// /// - public global::RetellAI.TransferOptionColdTransferType? Type567 { get; set; } + public global::RetellAI.TransferDestinationPredefined? Type567 { get; set; } /// /// /// - public global::RetellAI.TransferOptionColdTransferColdTransferMode? Type568 { get; set; } + public global::RetellAI.TransferDestinationPredefinedType? Type568 { get; set; } /// /// /// - public global::RetellAI.TransferOptionWarmTransfer? Type569 { get; set; } + public global::RetellAI.TransferFailedEdgeVariant2? Type569 { get; set; } /// /// /// - public global::RetellAI.TransferOptionWarmTransferType? Type570 { get; set; } + public global::RetellAI.TransferFailedEdgeVariant2TransitionCondition? Type570 { get; set; } /// /// /// - public global::RetellAI.TransferOptionWarmTransferOnHoldMusic? Type571 { get; set; } + public global::RetellAI.TransferFailedEdgeVariant2TransitionConditionType? Type571 { get; set; } /// /// /// - public global::RetellAI.UpdateOrganizationRequest? Type572 { get; set; } + public global::RetellAI.TransferFailedEdgeVariant2TransitionConditionPrompt? Type572 { get; set; } /// /// /// - public global::RetellAI.UpdateOrganizationRequestVariant2? Type573 { get; set; } + public global::RetellAI.TransferOptionAgenticWarmTransfer? Type573 { get; set; } /// /// /// - public global::RetellAI.UserFormRequest? Type574 { get; set; } + public global::RetellAI.TransferOptionAgenticWarmTransferType? Type574 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type575 { get; set; } + public global::RetellAI.TransferOptionAgenticWarmTransferOnHoldMusic? Type575 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type576 { get; set; } + public global::RetellAI.OneOf? Type576 { get; set; } /// /// /// - public global::RetellAI.UtteranceMistranscribedImportantEntitiesDetail? Type577 { get; set; } + public global::RetellAI.WarmTransferPrompt? Type577 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type578 { get; set; } + public global::RetellAI.WarmTransferStaticMessage? Type578 { get; set; } /// /// /// - public global::RetellAI.UtteranceOrToolCall? Type579 { get; set; } + public global::RetellAI.TransferOptionAgenticWarmTransferAgenticTransferConfig? Type579 { get; set; } /// /// /// - public global::RetellAI.Utterance? Type580 { get; set; } + public global::RetellAI.TransferOptionAgenticWarmTransferAgenticTransferConfigTransferAgent? Type580 { get; set; } /// /// /// - public global::RetellAI.UtteranceRole? Type581 { get; set; } + public global::RetellAI.TransferOptionAgenticWarmTransferAgenticTransferConfigActionOnTimeout? Type581 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type582 { get; set; } + public global::RetellAI.TransferOptionColdTransfer? Type582 { get; set; } /// /// /// - public global::RetellAI.UtteranceWord? Type583 { get; set; } + public global::RetellAI.TransferOptionColdTransferType? Type583 { get; set; } /// /// /// - public global::RetellAI.V2CallBase? Type584 { get; set; } + public global::RetellAI.TransferOptionColdTransferColdTransferMode? Type584 { get; set; } /// /// /// - public global::RetellAI.V2CallBaseCallStatus? Type585 { get; set; } + public global::RetellAI.TransferOptionWarmTransfer? Type585 { get; set; } /// /// /// - public global::RetellAI.V2CallBaseDataStorageSetting? Type586 { get; set; } + public global::RetellAI.TransferOptionWarmTransferType? Type586 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type587 { get; set; } + public global::RetellAI.TransferOptionWarmTransferOnHoldMusic? Type587 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type588 { get; set; } + public global::RetellAI.UpdateOrganizationRequest? Type588 { get; set; } /// /// /// - public global::RetellAI.V2CallBaseLatency? Type589 { get; set; } + public global::RetellAI.UpdateOrganizationRequestVariant2? Type589 { get; set; } /// /// /// - public global::RetellAI.V2CallBaseCallCost? Type590 { get; set; } + public global::RetellAI.UserFormRequest? Type590 { get; set; } /// /// /// - public global::RetellAI.V2CallBaseLlmTokenUsage? Type591 { get; set; } + public global::System.Collections.Generic.IList? Type591 { get; set; } /// /// /// - public global::RetellAI.V2CallResponse? Type592 { get; set; } + public global::System.Collections.Generic.IList? Type592 { get; set; } /// /// /// - public global::RetellAI.V2WebCallResponse? Type593 { get; set; } + public global::RetellAI.UtteranceMistranscribedImportantEntitiesDetail? Type593 { get; set; } /// /// /// - public global::RetellAI.V2PhoneCallResponse? Type594 { get; set; } + public global::System.Collections.Generic.IList? Type594 { get; set; } /// /// /// - public global::RetellAI.V2PhoneCallResponseVariant1? Type595 { get; set; } + public global::RetellAI.UtteranceOrToolCall? Type595 { get; set; } /// /// /// - public global::RetellAI.V2PhoneCallResponseVariant1CallType? Type596 { get; set; } + public global::RetellAI.Utterance? Type596 { get; set; } /// /// /// - public global::RetellAI.V2PhoneCallResponseVariant1Direction? Type597 { get; set; } + public global::RetellAI.UtteranceRole? Type597 { get; set; } /// /// /// - public global::RetellAI.V2PhoneCallResponseVariant1TelephonyIdentifier? Type598 { get; set; } + public global::System.Collections.Generic.IList? Type598 { get; set; } /// /// /// - public global::RetellAI.V2WebCallResponseVariant1? Type599 { get; set; } + public global::RetellAI.UtteranceWord? Type599 { get; set; } /// /// /// - public global::RetellAI.V2WebCallResponseVariant1CallType? Type600 { get; set; } + public global::RetellAI.V2CallBase? Type600 { get; set; } /// /// /// - public global::RetellAI.VoiceResponse? Type601 { get; set; } + public global::RetellAI.V2CallBaseCallStatus? Type601 { get; set; } /// /// /// - public global::RetellAI.VoiceResponseProvider? Type602 { get; set; } + public global::RetellAI.V2CallBaseDataStorageSetting? Type602 { get; set; } /// /// /// - public global::RetellAI.VoiceResponseGender? Type603 { get; set; } + public global::System.Collections.Generic.IList? Type603 { get; set; } /// /// /// - public global::RetellAI.VoicemailActionBridgeTransfer? Type604 { get; set; } + public global::System.Collections.Generic.IList? Type604 { get; set; } /// /// /// - public global::RetellAI.VoicemailActionBridgeTransferType? Type605 { get; set; } + public global::RetellAI.V2CallBaseLatency? Type605 { get; set; } /// /// /// - public global::RetellAI.VoicemailActionHangup? Type606 { get; set; } + public global::RetellAI.V2CallBaseCallCost? Type606 { get; set; } /// /// /// - public global::RetellAI.VoicemailActionHangupType? Type607 { get; set; } + public global::RetellAI.V2CallBaseLlmTokenUsage? Type607 { get; set; } /// /// /// - public global::RetellAI.VoicemailActionPrompt? Type608 { get; set; } + public global::RetellAI.V2CallResponse? Type608 { get; set; } /// /// /// - public global::RetellAI.VoicemailActionPromptType? Type609 { get; set; } + public global::RetellAI.V2WebCallResponse? Type609 { get; set; } /// /// /// - public global::RetellAI.VoicemailActionStaticText? Type610 { get; set; } + public global::RetellAI.V2PhoneCallResponse? Type610 { get; set; } /// /// /// - public global::RetellAI.VoicemailActionStaticTextType? Type611 { get; set; } + public global::RetellAI.V3CallResponse? Type611 { get; set; } /// /// /// - public global::RetellAI.IvrActionHangup? Type612 { get; set; } + public global::RetellAI.V2PhoneCallResponseVariant1? Type612 { get; set; } /// /// /// - public global::RetellAI.IvrActionHangupType? Type613 { get; set; } + public global::RetellAI.V2PhoneCallResponseVariant1CallType? Type613 { get; set; } /// /// /// - public global::RetellAI.IvrAction? Type614 { get; set; } + public global::RetellAI.V2PhoneCallResponseVariant1Direction? Type614 { get; set; } /// /// /// - public global::RetellAI.WarmTransferPromptType? Type615 { get; set; } + public global::RetellAI.V2PhoneCallResponseVariant1TelephonyIdentifier? Type615 { get; set; } /// /// /// - public global::RetellAI.WarmTransferStaticMessageType? Type616 { get; set; } + public global::RetellAI.V2WebCallResponseVariant1? Type616 { get; set; } /// /// /// - public global::RetellAI.AllOf? Type617 { get; set; } + public global::RetellAI.V2WebCallResponseVariant1CallType? Type617 { get; set; } /// /// /// - public global::RetellAI.CreateBatchCallRequest? Type618 { get; set; } + public global::RetellAI.VoiceResponse? Type618 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type619 { get; set; } + public global::RetellAI.VoiceResponseProvider? Type619 { get; set; } /// /// /// - public global::RetellAI.CreateBatchTestRequest? Type620 { get; set; } + public global::RetellAI.VoiceResponseGender? Type620 { get; set; } /// /// /// - public global::RetellAI.AllOf? Type621 { get; set; } + public global::RetellAI.VoicemailActionBridgeTransfer? Type621 { get; set; } /// /// /// - public global::RetellAI.AllOf? Type622 { get; set; } + public global::RetellAI.VoicemailActionBridgeTransferType? Type622 { get; set; } /// /// /// - public global::RetellAI.CreateChatCompletionRequest? Type623 { get; set; } + public global::RetellAI.VoicemailActionHangup? Type623 { get; set; } /// /// /// - public global::RetellAI.CreateChatRequest? Type624 { get; set; } + public global::RetellAI.VoicemailActionHangupType? Type624 { get; set; } /// /// /// - public global::RetellAI.CreatePhoneNumberRequest? Type625 { get; set; } + public global::RetellAI.VoicemailActionPrompt? Type625 { get; set; } /// /// /// - public global::RetellAI.CreatePhoneNumberRequestNumberProvider? Type626 { get; set; } + public global::RetellAI.VoicemailActionPromptType? Type626 { get; set; } /// /// /// - public global::RetellAI.CreatePhoneNumberRequestCountryCode? Type627 { get; set; } + public global::RetellAI.VoicemailActionStaticText? Type627 { get; set; } /// /// /// - public global::RetellAI.CreateSmsChatRequest? Type628 { get; set; } + public global::RetellAI.VoicemailActionStaticTextType? Type628 { get; set; } /// /// /// - public global::RetellAI.CloneVoiceRequest? Type629 { get; set; } + public global::RetellAI.IvrActionHangup? Type629 { get; set; } /// /// /// - public global::RetellAI.CloneVoiceRequestVoiceProvider? Type630 { get; set; } + public global::RetellAI.IvrActionHangupType? Type630 { get; set; } /// /// /// - public global::RetellAI.AddCommunityVoiceRequest? Type631 { get; set; } + public global::RetellAI.IvrAction? Type631 { get; set; } /// /// /// - public global::RetellAI.AddCommunityVoiceRequestVoiceProvider? Type632 { get; set; } + public global::RetellAI.WarmTransferPromptType? Type632 { get; set; } /// /// /// - public global::RetellAI.SearchCommunityVoiceRequest? Type633 { get; set; } + public global::RetellAI.WarmTransferStaticMessageType? Type633 { get; set; } /// /// /// - public global::RetellAI.SearchCommunityVoiceRequestVoiceProvider? Type634 { get; set; } + public global::RetellAI.AllOf? Type634 { get; set; } /// /// /// - public global::RetellAI.ImportPhoneNumberRequest? Type635 { get; set; } + public global::RetellAI.CreateBatchCallRequest? Type635 { get; set; } /// /// /// - public global::RetellAI.UpdateChatMetadataRequest? Type636 { get; set; } + public global::System.Collections.Generic.IList? Type636 { get; set; } /// /// /// - public global::RetellAI.UpdateChatMetadataRequestDataStorageSetting? Type637 { get; set; } + public global::RetellAI.CreateBatchTestRequest? Type637 { get; set; } /// /// /// - public global::RetellAI.UpdatePhoneNumberRequest? Type638 { get; set; } + public global::RetellAI.AllOf? Type638 { get; set; } /// /// /// - public global::RetellAI.CreatePhoneCallRequest? Type639 { get; set; } + public global::RetellAI.AllOf? Type639 { get; set; } /// /// /// - public global::RetellAI.CreateWebCallRequest? Type640 { get; set; } + public global::RetellAI.CreateChatCompletionRequest? Type640 { get; set; } /// /// /// - public global::RetellAI.ListCallsRequest? Type641 { get; set; } + public global::RetellAI.CreateChatRequest? Type641 { get; set; } /// /// /// - public global::RetellAI.ListCallsRequestFilterCriteria? Type642 { get; set; } + public global::RetellAI.CreatePhoneNumberRequest? Type642 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type643 { get; set; } + public global::RetellAI.CreatePhoneNumberRequestNumberProvider? Type643 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type644 { get; set; } + public global::RetellAI.CreatePhoneNumberRequestCountryCode? Type644 { get; set; } /// /// /// - public global::RetellAI.ListCallsRequestFilterCriteriaCallStatu? Type645 { get; set; } + public global::RetellAI.CreateSmsChatRequest? Type645 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type646 { get; set; } + public global::RetellAI.CloneVoiceRequest? Type646 { get; set; } /// /// /// - public global::RetellAI.ListCallsRequestFilterCriteriaCallTypeItem? Type647 { get; set; } + public global::RetellAI.CloneVoiceRequestVoiceProvider? Type647 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type648 { get; set; } + public global::RetellAI.AddCommunityVoiceRequest? Type648 { get; set; } /// /// /// - public global::RetellAI.ListCallsRequestFilterCriteriaDirectionItem? Type649 { get; set; } + public global::RetellAI.AddCommunityVoiceRequestVoiceProvider? Type649 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type650 { get; set; } + public global::RetellAI.SearchCommunityVoiceRequest? Type650 { get; set; } /// /// /// - public global::RetellAI.ListCallsRequestFilterCriteriaUserSentimentItem? Type651 { get; set; } + public global::RetellAI.SearchCommunityVoiceRequestVoiceProvider? Type651 { get; set; } /// /// /// - public global::RetellAI.ListCallsRequestFilterCriteriaStartTimestamp? Type652 { get; set; } + public global::RetellAI.ImportPhoneNumberRequest? Type652 { get; set; } /// /// /// - public global::RetellAI.ListCallsRequestFilterCriteriaEndTimestamp? Type653 { get; set; } + public global::RetellAI.ListChatsV3Request? Type653 { get; set; } /// /// /// - public global::RetellAI.ListCallsRequestFilterCriteriaDurationMs? Type654 { get; set; } + public global::RetellAI.ListChatsV3RequestSortOrder? Type654 { get; set; } /// /// /// - public global::RetellAI.ListCallsRequestFilterCriteriaE2eLatencyP50? Type655 { get; set; } + public global::RetellAI.UpdateChatMetadataRequest? Type655 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary>? Type656 { get; set; } + public global::RetellAI.UpdateChatMetadataRequestDataStorageSetting? Type656 { get; set; } /// /// /// - public global::RetellAI.ListCallsRequestSortOrder? Type657 { get; set; } + public global::RetellAI.UpdatePhoneNumberRequest? Type657 { get; set; } /// /// /// - public global::RetellAI.RegisterPhoneCallRequest? Type658 { get; set; } + public global::RetellAI.CreatePhoneCallRequest? Type658 { get; set; } /// /// /// - public global::RetellAI.RegisterPhoneCallRequestDirection? Type659 { get; set; } + public global::RetellAI.CreateWebCallRequest? Type659 { get; set; } /// /// /// - public global::RetellAI.UpdateCallMetadataRequest? Type660 { get; set; } + public global::RetellAI.ListCallsRequest? Type660 { get; set; } /// /// /// - public global::RetellAI.UpdateCallMetadataRequestDataStorageSetting? Type661 { get; set; } + public global::RetellAI.ListCallsRequestFilterCriteria? Type661 { get; set; } /// /// /// - public global::RetellAI.ListTestCaseDefinitionsType? Type662 { get; set; } + public global::System.Collections.Generic.IList? Type662 { get; set; } /// /// /// - public global::RetellAI.ListTestCaseDefinitionsV2Type? Type663 { get; set; } + public global::System.Collections.Generic.IList? Type663 { get; set; } /// /// /// - public global::RetellAI.ListBatchTestsType? Type664 { get; set; } + public global::RetellAI.ListCallsRequestFilterCriteriaCallStatu? Type664 { get; set; } /// /// /// - public global::RetellAI.ListBatchTestsV2Type? Type665 { get; set; } + public global::System.Collections.Generic.IList? Type665 { get; set; } /// /// /// - public global::RetellAI.ListChatSortOrder? Type666 { get; set; } + public global::RetellAI.ListCallsRequestFilterCriteriaCallTypeItem? Type666 { get; set; } /// /// /// - public global::RetellAI.ListConversationFlowComponentsV2SortOrder? Type667 { get; set; } + public global::System.Collections.Generic.IList? Type667 { get; set; } /// /// /// - public global::RetellAI.ListPhoneNumbersV2SortOrder? Type668 { get; set; } + public global::RetellAI.ListCallsRequestFilterCriteriaDirectionItem? Type668 { get; set; } /// /// /// - public global::RetellAI.ListExportRequestsV2SortOrder? Type669 { get; set; } + public global::System.Collections.Generic.IList? Type669 { get; set; } /// /// /// - public global::RetellAI.AddKnowledgeBaseSourcesResponse? Type670 { get; set; } + public global::RetellAI.ListCallsRequestFilterCriteriaUserSentimentItem? Type670 { get; set; } /// /// /// - public global::RetellAI.AddKnowledgeBaseSourcesResponseStatus? Type671 { get; set; } + public global::RetellAI.ListCallsRequestFilterCriteriaStartTimestamp? Type671 { get; set; } /// /// /// - public global::RetellAI.AddKnowledgeBaseSourcesResponse2? Type672 { get; set; } + public global::RetellAI.ListCallsRequestFilterCriteriaEndTimestamp? Type672 { get; set; } /// /// /// - public global::RetellAI.AddKnowledgeBaseSourcesResponseStatus2? Type673 { get; set; } + public global::RetellAI.ListCallsRequestFilterCriteriaDurationMs? Type673 { get; set; } /// /// /// - public global::RetellAI.AddKnowledgeBaseSourcesResponse3? Type674 { get; set; } + public global::RetellAI.ListCallsRequestFilterCriteriaE2eLatencyP50? Type674 { get; set; } /// /// /// - public global::RetellAI.AddKnowledgeBaseSourcesResponseStatus3? Type675 { get; set; } + public global::System.Collections.Generic.Dictionary>? Type675 { get; set; } /// /// /// - public global::RetellAI.AddKnowledgeBaseSourcesResponse4? Type676 { get; set; } + public global::RetellAI.ListCallsRequestSortOrder? Type676 { get; set; } /// /// /// - public global::RetellAI.AddKnowledgeBaseSourcesResponseStatus4? Type677 { get; set; } + public global::RetellAI.ListCallsV3Request? Type677 { get; set; } /// /// /// - public global::RetellAI.AddKnowledgeBaseSourcesResponse5? Type678 { get; set; } + public global::RetellAI.ListCallsV3RequestSortOrder? Type678 { get; set; } /// /// /// - public global::RetellAI.AddKnowledgeBaseSourcesResponseStatus5? Type679 { get; set; } + public global::RetellAI.RegisterPhoneCallRequest? Type679 { get; set; } /// /// /// - public global::RetellAI.CreateAgentResponse? Type680 { get; set; } + public global::RetellAI.RegisterPhoneCallRequestDirection? Type680 { get; set; } /// /// /// - public global::RetellAI.CreateAgentResponseStatus? Type681 { get; set; } + public global::RetellAI.UpdateCallMetadataRequest? Type681 { get; set; } /// /// /// - public global::RetellAI.CreateAgentResponse2? Type682 { get; set; } + public global::RetellAI.UpdateCallMetadataRequestDataStorageSetting? Type682 { get; set; } /// /// /// - public global::RetellAI.CreateAgentResponseStatus2? Type683 { get; set; } + public global::RetellAI.ListTestCaseDefinitionsType? Type683 { get; set; } /// /// /// - public global::RetellAI.CreateAgentResponse3? Type684 { get; set; } + public global::RetellAI.ListTestCaseDefinitionsV2Type? Type684 { get; set; } /// /// /// - public global::RetellAI.CreateAgentResponseStatus3? Type685 { get; set; } + public global::RetellAI.ListBatchTestsType? Type685 { get; set; } /// /// /// - public global::RetellAI.CreateAgentResponse4? Type686 { get; set; } + public global::RetellAI.ListBatchTestsV2Type? Type686 { get; set; } /// /// /// - public global::RetellAI.CreateAgentResponseStatus4? Type687 { get; set; } + public global::RetellAI.ListChatSortOrder? Type687 { get; set; } /// /// /// - public global::RetellAI.CreateBatchCallResponse? Type688 { get; set; } + public global::RetellAI.ListConversationFlowComponentsV2SortOrder? Type688 { get; set; } /// /// /// - public global::RetellAI.CreateBatchCallResponseStatus? Type689 { get; set; } + public global::RetellAI.ListPhoneNumbersV2SortOrder? Type689 { get; set; } /// /// /// - public global::RetellAI.CreateBatchCallResponse2? Type690 { get; set; } + public global::RetellAI.ListExportRequestsV2SortOrder? Type690 { get; set; } /// /// /// - public global::RetellAI.CreateBatchCallResponseStatus2? Type691 { get; set; } + public global::RetellAI.AddKnowledgeBaseSourcesResponse? Type691 { get; set; } /// /// /// - public global::RetellAI.CreateBatchCallResponse3? Type692 { get; set; } + public global::RetellAI.AddKnowledgeBaseSourcesResponseStatus? Type692 { get; set; } /// /// /// - public global::RetellAI.CreateBatchCallResponseStatus3? Type693 { get; set; } + public global::RetellAI.AddKnowledgeBaseSourcesResponse2? Type693 { get; set; } /// /// /// - public global::RetellAI.CreateBatchCallResponse4? Type694 { get; set; } + public global::RetellAI.AddKnowledgeBaseSourcesResponseStatus2? Type694 { get; set; } /// /// /// - public global::RetellAI.CreateBatchCallResponseStatus4? Type695 { get; set; } + public global::RetellAI.AddKnowledgeBaseSourcesResponse3? Type695 { get; set; } /// /// /// - public global::RetellAI.CreateBatchTestResponse? Type696 { get; set; } + public global::RetellAI.AddKnowledgeBaseSourcesResponseStatus3? Type696 { get; set; } /// /// /// - public global::RetellAI.CreateBatchTestResponseStatus? Type697 { get; set; } + public global::RetellAI.AddKnowledgeBaseSourcesResponse4? Type697 { get; set; } /// /// /// - public global::RetellAI.CreateBatchTestResponse2? Type698 { get; set; } + public global::RetellAI.AddKnowledgeBaseSourcesResponseStatus4? Type698 { get; set; } /// /// /// - public global::RetellAI.CreateBatchTestResponseStatus2? Type699 { get; set; } + public global::RetellAI.AddKnowledgeBaseSourcesResponse5? Type699 { get; set; } /// /// /// - public global::RetellAI.CreateBatchTestResponse3? Type700 { get; set; } + public global::RetellAI.AddKnowledgeBaseSourcesResponseStatus5? Type700 { get; set; } /// /// /// - public global::RetellAI.CreateBatchTestResponseStatus3? Type701 { get; set; } + public global::RetellAI.CreateAgentResponse? Type701 { get; set; } /// /// /// - public global::RetellAI.CreateBatchTestResponse4? Type702 { get; set; } + public global::RetellAI.CreateAgentResponseStatus? Type702 { get; set; } /// /// /// - public global::RetellAI.CreateBatchTestResponseStatus4? Type703 { get; set; } + public global::RetellAI.CreateAgentResponse2? Type703 { get; set; } /// /// /// - public global::RetellAI.CreateBatchTestResponse5? Type704 { get; set; } + public global::RetellAI.CreateAgentResponseStatus2? Type704 { get; set; } /// /// /// - public global::RetellAI.CreateBatchTestResponseStatus5? Type705 { get; set; } + public global::RetellAI.CreateAgentResponse3? Type705 { get; set; } /// /// /// - public global::RetellAI.CreateTestCaseDefinitionResponse? Type706 { get; set; } + public global::RetellAI.CreateAgentResponseStatus3? Type706 { get; set; } /// /// /// - public global::RetellAI.CreateTestCaseDefinitionResponseStatus? Type707 { get; set; } + public global::RetellAI.CreateAgentResponse4? Type707 { get; set; } /// /// /// - public global::RetellAI.CreateTestCaseDefinitionResponse2? Type708 { get; set; } + public global::RetellAI.CreateAgentResponseStatus4? Type708 { get; set; } /// /// /// - public global::RetellAI.CreateTestCaseDefinitionResponseStatus2? Type709 { get; set; } + public global::RetellAI.CreateBatchCallResponse? Type709 { get; set; } /// /// /// - public global::RetellAI.CreateTestCaseDefinitionResponse3? Type710 { get; set; } + public global::RetellAI.CreateBatchCallResponseStatus? Type710 { get; set; } /// /// /// - public global::RetellAI.CreateTestCaseDefinitionResponseStatus3? Type711 { get; set; } + public global::RetellAI.CreateBatchCallResponse2? Type711 { get; set; } /// /// /// - public global::RetellAI.CreateTestCaseDefinitionResponse4? Type712 { get; set; } + public global::RetellAI.CreateBatchCallResponseStatus2? Type712 { get; set; } /// /// /// - public global::RetellAI.CreateTestCaseDefinitionResponseStatus4? Type713 { get; set; } + public global::RetellAI.CreateBatchCallResponse3? Type713 { get; set; } /// /// /// - public global::RetellAI.CreateTestCaseDefinitionResponse5? Type714 { get; set; } + public global::RetellAI.CreateBatchCallResponseStatus3? Type714 { get; set; } /// /// /// - public global::RetellAI.CreateTestCaseDefinitionResponseStatus5? Type715 { get; set; } + public global::RetellAI.CreateBatchCallResponse4? Type715 { get; set; } /// /// /// - public global::RetellAI.DeleteTestCaseDefinitionResponse? Type716 { get; set; } + public global::RetellAI.CreateBatchCallResponseStatus4? Type716 { get; set; } /// /// /// - public global::RetellAI.DeleteTestCaseDefinitionResponseStatus? Type717 { get; set; } + public global::RetellAI.CreateBatchTestResponse? Type717 { get; set; } /// /// /// - public global::RetellAI.DeleteTestCaseDefinitionResponse2? Type718 { get; set; } + public global::RetellAI.CreateBatchTestResponseStatus? Type718 { get; set; } /// /// /// - public global::RetellAI.DeleteTestCaseDefinitionResponseStatus2? Type719 { get; set; } + public global::RetellAI.CreateBatchTestResponse2? Type719 { get; set; } /// /// /// - public global::RetellAI.DeleteTestCaseDefinitionResponse3? Type720 { get; set; } + public global::RetellAI.CreateBatchTestResponseStatus2? Type720 { get; set; } /// /// /// - public global::RetellAI.DeleteTestCaseDefinitionResponseStatus3? Type721 { get; set; } + public global::RetellAI.CreateBatchTestResponse3? Type721 { get; set; } /// /// /// - public global::RetellAI.DeleteTestCaseDefinitionResponse4? Type722 { get; set; } + public global::RetellAI.CreateBatchTestResponseStatus3? Type722 { get; set; } /// /// /// - public global::RetellAI.DeleteTestCaseDefinitionResponseStatus4? Type723 { get; set; } + public global::RetellAI.CreateBatchTestResponse4? Type723 { get; set; } /// /// /// - public global::RetellAI.DeleteTestCaseDefinitionResponse5? Type724 { get; set; } + public global::RetellAI.CreateBatchTestResponseStatus4? Type724 { get; set; } /// /// /// - public global::RetellAI.DeleteTestCaseDefinitionResponseStatus5? Type725 { get; set; } + public global::RetellAI.CreateBatchTestResponse5? Type725 { get; set; } /// /// /// - public global::RetellAI.GetTestCaseDefinitionResponse? Type726 { get; set; } + public global::RetellAI.CreateBatchTestResponseStatus5? Type726 { get; set; } /// /// /// - public global::RetellAI.GetTestCaseDefinitionResponseStatus? Type727 { get; set; } + public global::RetellAI.CreateTestCaseDefinitionResponse? Type727 { get; set; } /// /// /// - public global::RetellAI.GetTestCaseDefinitionResponse2? Type728 { get; set; } + public global::RetellAI.CreateTestCaseDefinitionResponseStatus? Type728 { get; set; } /// /// /// - public global::RetellAI.GetTestCaseDefinitionResponseStatus2? Type729 { get; set; } + public global::RetellAI.CreateTestCaseDefinitionResponse2? Type729 { get; set; } /// /// /// - public global::RetellAI.GetTestCaseDefinitionResponse3? Type730 { get; set; } + public global::RetellAI.CreateTestCaseDefinitionResponseStatus2? Type730 { get; set; } /// /// /// - public global::RetellAI.GetTestCaseDefinitionResponseStatus3? Type731 { get; set; } + public global::RetellAI.CreateTestCaseDefinitionResponse3? Type731 { get; set; } /// /// /// - public global::RetellAI.GetTestCaseDefinitionResponse4? Type732 { get; set; } + public global::RetellAI.CreateTestCaseDefinitionResponseStatus3? Type732 { get; set; } /// /// /// - public global::RetellAI.GetTestCaseDefinitionResponseStatus4? Type733 { get; set; } + public global::RetellAI.CreateTestCaseDefinitionResponse4? Type733 { get; set; } /// /// /// - public global::RetellAI.GetTestCaseDefinitionResponse5? Type734 { get; set; } + public global::RetellAI.CreateTestCaseDefinitionResponseStatus4? Type734 { get; set; } /// /// /// - public global::RetellAI.GetTestCaseDefinitionResponseStatus5? Type735 { get; set; } + public global::RetellAI.CreateTestCaseDefinitionResponse5? Type735 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type736 { get; set; } + public global::RetellAI.CreateTestCaseDefinitionResponseStatus5? Type736 { get; set; } /// /// /// - public global::RetellAI.ListTestCaseDefinitionsResponse? Type737 { get; set; } + public global::RetellAI.DeleteTestCaseDefinitionResponse? Type737 { get; set; } /// /// /// - public global::RetellAI.ListTestCaseDefinitionsResponseStatus? Type738 { get; set; } + public global::RetellAI.DeleteTestCaseDefinitionResponseStatus? Type738 { get; set; } /// /// /// - public global::RetellAI.ListTestCaseDefinitionsResponse2? Type739 { get; set; } + public global::RetellAI.DeleteTestCaseDefinitionResponse2? Type739 { get; set; } /// /// /// - public global::RetellAI.ListTestCaseDefinitionsResponseStatus2? Type740 { get; set; } + public global::RetellAI.DeleteTestCaseDefinitionResponseStatus2? Type740 { get; set; } /// /// /// - public global::RetellAI.ListTestCaseDefinitionsResponse3? Type741 { get; set; } + public global::RetellAI.DeleteTestCaseDefinitionResponse3? Type741 { get; set; } /// /// /// - public global::RetellAI.ListTestCaseDefinitionsResponseStatus3? Type742 { get; set; } + public global::RetellAI.DeleteTestCaseDefinitionResponseStatus3? Type742 { get; set; } /// /// /// - public global::RetellAI.ListTestCaseDefinitionsResponse4? Type743 { get; set; } + public global::RetellAI.DeleteTestCaseDefinitionResponse4? Type743 { get; set; } /// /// /// - public global::RetellAI.ListTestCaseDefinitionsResponseStatus4? Type744 { get; set; } + public global::RetellAI.DeleteTestCaseDefinitionResponseStatus4? Type744 { get; set; } /// /// /// - public global::RetellAI.AllOf? Type745 { get; set; } + public global::RetellAI.DeleteTestCaseDefinitionResponse5? Type745 { get; set; } /// /// /// - public global::RetellAI.ListTestCaseDefinitionsV2Response2? Type746 { get; set; } + public global::RetellAI.DeleteTestCaseDefinitionResponseStatus5? Type746 { get; set; } /// /// /// - public global::RetellAI.ListTestCaseDefinitionsV2Response3? Type747 { get; set; } + public global::RetellAI.GetTestCaseDefinitionResponse? Type747 { get; set; } /// /// /// - public global::RetellAI.ListTestCaseDefinitionsV2ResponseStatus? Type748 { get; set; } + public global::RetellAI.GetTestCaseDefinitionResponseStatus? Type748 { get; set; } /// /// /// - public global::RetellAI.ListTestCaseDefinitionsV2Response4? Type749 { get; set; } + public global::RetellAI.GetTestCaseDefinitionResponse2? Type749 { get; set; } /// /// /// - public global::RetellAI.ListTestCaseDefinitionsV2ResponseStatus2? Type750 { get; set; } + public global::RetellAI.GetTestCaseDefinitionResponseStatus2? Type750 { get; set; } /// /// /// - public global::RetellAI.ListTestCaseDefinitionsV2Response5? Type751 { get; set; } + public global::RetellAI.GetTestCaseDefinitionResponse3? Type751 { get; set; } /// /// /// - public global::RetellAI.ListTestCaseDefinitionsV2ResponseStatus3? Type752 { get; set; } + public global::RetellAI.GetTestCaseDefinitionResponseStatus3? Type752 { get; set; } /// /// /// - public global::RetellAI.ListTestCaseDefinitionsV2Response6? Type753 { get; set; } + public global::RetellAI.GetTestCaseDefinitionResponse4? Type753 { get; set; } /// /// /// - public global::RetellAI.ListTestCaseDefinitionsV2ResponseStatus4? Type754 { get; set; } + public global::RetellAI.GetTestCaseDefinitionResponseStatus4? Type754 { get; set; } /// /// /// - public global::RetellAI.UpdateTestCaseDefinitionResponse? Type755 { get; set; } + public global::RetellAI.GetTestCaseDefinitionResponse5? Type755 { get; set; } /// /// /// - public global::RetellAI.UpdateTestCaseDefinitionResponseStatus? Type756 { get; set; } + public global::RetellAI.GetTestCaseDefinitionResponseStatus5? Type756 { get; set; } /// /// /// - public global::RetellAI.UpdateTestCaseDefinitionResponse2? Type757 { get; set; } + public global::System.Collections.Generic.IList? Type757 { get; set; } /// /// /// - public global::RetellAI.UpdateTestCaseDefinitionResponseStatus2? Type758 { get; set; } + public global::RetellAI.ListTestCaseDefinitionsResponse? Type758 { get; set; } /// /// /// - public global::RetellAI.UpdateTestCaseDefinitionResponse3? Type759 { get; set; } + public global::RetellAI.ListTestCaseDefinitionsResponseStatus? Type759 { get; set; } /// /// /// - public global::RetellAI.UpdateTestCaseDefinitionResponseStatus3? Type760 { get; set; } + public global::RetellAI.ListTestCaseDefinitionsResponse2? Type760 { get; set; } /// /// /// - public global::RetellAI.UpdateTestCaseDefinitionResponse4? Type761 { get; set; } + public global::RetellAI.ListTestCaseDefinitionsResponseStatus2? Type761 { get; set; } /// /// /// - public global::RetellAI.UpdateTestCaseDefinitionResponseStatus4? Type762 { get; set; } + public global::RetellAI.ListTestCaseDefinitionsResponse3? Type762 { get; set; } /// /// /// - public global::RetellAI.UpdateTestCaseDefinitionResponse5? Type763 { get; set; } + public global::RetellAI.ListTestCaseDefinitionsResponseStatus3? Type763 { get; set; } /// /// /// - public global::RetellAI.UpdateTestCaseDefinitionResponseStatus5? Type764 { get; set; } + public global::RetellAI.ListTestCaseDefinitionsResponse4? Type764 { get; set; } /// /// /// - public global::RetellAI.GetBatchTestResponse? Type765 { get; set; } + public global::RetellAI.ListTestCaseDefinitionsResponseStatus4? Type765 { get; set; } /// /// /// - public global::RetellAI.GetBatchTestResponseStatus? Type766 { get; set; } + public global::RetellAI.AllOf? Type766 { get; set; } /// /// /// - public global::RetellAI.GetBatchTestResponse2? Type767 { get; set; } + public global::RetellAI.ListTestCaseDefinitionsV2Response2? Type767 { get; set; } /// /// /// - public global::RetellAI.GetBatchTestResponseStatus2? Type768 { get; set; } + public global::RetellAI.ListTestCaseDefinitionsV2Response3? Type768 { get; set; } /// /// /// - public global::RetellAI.GetBatchTestResponse3? Type769 { get; set; } + public global::RetellAI.ListTestCaseDefinitionsV2ResponseStatus? Type769 { get; set; } /// /// /// - public global::RetellAI.GetBatchTestResponseStatus3? Type770 { get; set; } + public global::RetellAI.ListTestCaseDefinitionsV2Response4? Type770 { get; set; } /// /// /// - public global::RetellAI.GetBatchTestResponse4? Type771 { get; set; } + public global::RetellAI.ListTestCaseDefinitionsV2ResponseStatus2? Type771 { get; set; } /// /// /// - public global::RetellAI.GetBatchTestResponseStatus4? Type772 { get; set; } + public global::RetellAI.ListTestCaseDefinitionsV2Response5? Type772 { get; set; } /// /// /// - public global::RetellAI.GetBatchTestResponse5? Type773 { get; set; } + public global::RetellAI.ListTestCaseDefinitionsV2ResponseStatus3? Type773 { get; set; } /// /// /// - public global::RetellAI.GetBatchTestResponseStatus5? Type774 { get; set; } + public global::RetellAI.ListTestCaseDefinitionsV2Response6? Type774 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type775 { get; set; } + public global::RetellAI.ListTestCaseDefinitionsV2ResponseStatus4? Type775 { get; set; } /// /// /// - public global::RetellAI.ListBatchTestsResponse? Type776 { get; set; } + public global::RetellAI.UpdateTestCaseDefinitionResponse? Type776 { get; set; } /// /// /// - public global::RetellAI.ListBatchTestsResponseStatus? Type777 { get; set; } + public global::RetellAI.UpdateTestCaseDefinitionResponseStatus? Type777 { get; set; } /// /// /// - public global::RetellAI.ListBatchTestsResponse2? Type778 { get; set; } + public global::RetellAI.UpdateTestCaseDefinitionResponse2? Type778 { get; set; } /// /// /// - public global::RetellAI.ListBatchTestsResponseStatus2? Type779 { get; set; } + public global::RetellAI.UpdateTestCaseDefinitionResponseStatus2? Type779 { get; set; } /// /// /// - public global::RetellAI.ListBatchTestsResponse3? Type780 { get; set; } + public global::RetellAI.UpdateTestCaseDefinitionResponse3? Type780 { get; set; } /// /// /// - public global::RetellAI.ListBatchTestsResponseStatus3? Type781 { get; set; } + public global::RetellAI.UpdateTestCaseDefinitionResponseStatus3? Type781 { get; set; } /// /// /// - public global::RetellAI.ListBatchTestsResponse4? Type782 { get; set; } + public global::RetellAI.UpdateTestCaseDefinitionResponse4? Type782 { get; set; } /// /// /// - public global::RetellAI.ListBatchTestsResponseStatus4? Type783 { get; set; } + public global::RetellAI.UpdateTestCaseDefinitionResponseStatus4? Type783 { get; set; } /// /// /// - public global::RetellAI.AllOf? Type784 { get; set; } + public global::RetellAI.UpdateTestCaseDefinitionResponse5? Type784 { get; set; } /// /// /// - public global::RetellAI.ListBatchTestsV2Response2? Type785 { get; set; } + public global::RetellAI.UpdateTestCaseDefinitionResponseStatus5? Type785 { get; set; } /// /// /// - public global::RetellAI.ListBatchTestsV2Response3? Type786 { get; set; } + public global::RetellAI.GetBatchTestResponse? Type786 { get; set; } /// /// /// - public global::RetellAI.ListBatchTestsV2ResponseStatus? Type787 { get; set; } + public global::RetellAI.GetBatchTestResponseStatus? Type787 { get; set; } /// /// /// - public global::RetellAI.ListBatchTestsV2Response4? Type788 { get; set; } + public global::RetellAI.GetBatchTestResponse2? Type788 { get; set; } /// /// /// - public global::RetellAI.ListBatchTestsV2ResponseStatus2? Type789 { get; set; } + public global::RetellAI.GetBatchTestResponseStatus2? Type789 { get; set; } /// /// /// - public global::RetellAI.ListBatchTestsV2Response5? Type790 { get; set; } + public global::RetellAI.GetBatchTestResponse3? Type790 { get; set; } /// /// /// - public global::RetellAI.ListBatchTestsV2ResponseStatus3? Type791 { get; set; } + public global::RetellAI.GetBatchTestResponseStatus3? Type791 { get; set; } /// /// /// - public global::RetellAI.ListBatchTestsV2Response6? Type792 { get; set; } + public global::RetellAI.GetBatchTestResponse4? Type792 { get; set; } /// /// /// - public global::RetellAI.ListBatchTestsV2ResponseStatus4? Type793 { get; set; } + public global::RetellAI.GetBatchTestResponseStatus4? Type793 { get; set; } /// /// /// - public global::RetellAI.GetTestRunResponse? Type794 { get; set; } + public global::RetellAI.GetBatchTestResponse5? Type794 { get; set; } /// /// /// - public global::RetellAI.GetTestRunResponseStatus? Type795 { get; set; } + public global::RetellAI.GetBatchTestResponseStatus5? Type795 { get; set; } /// /// /// - public global::RetellAI.GetTestRunResponse2? Type796 { get; set; } + public global::System.Collections.Generic.IList? Type796 { get; set; } /// /// /// - public global::RetellAI.GetTestRunResponseStatus2? Type797 { get; set; } + public global::RetellAI.ListBatchTestsResponse? Type797 { get; set; } /// /// /// - public global::RetellAI.GetTestRunResponse3? Type798 { get; set; } + public global::RetellAI.ListBatchTestsResponseStatus? Type798 { get; set; } /// /// /// - public global::RetellAI.GetTestRunResponseStatus3? Type799 { get; set; } + public global::RetellAI.ListBatchTestsResponse2? Type799 { get; set; } /// /// /// - public global::RetellAI.GetTestRunResponse4? Type800 { get; set; } + public global::RetellAI.ListBatchTestsResponseStatus2? Type800 { get; set; } /// /// /// - public global::RetellAI.GetTestRunResponseStatus4? Type801 { get; set; } + public global::RetellAI.ListBatchTestsResponse3? Type801 { get; set; } /// /// /// - public global::RetellAI.GetTestRunResponse5? Type802 { get; set; } + public global::RetellAI.ListBatchTestsResponseStatus3? Type802 { get; set; } /// /// /// - public global::RetellAI.GetTestRunResponseStatus5? Type803 { get; set; } + public global::RetellAI.ListBatchTestsResponse4? Type803 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type804 { get; set; } + public global::RetellAI.ListBatchTestsResponseStatus4? Type804 { get; set; } /// /// /// - public global::RetellAI.ListTestRunsResponse? Type805 { get; set; } + public global::RetellAI.AllOf? Type805 { get; set; } /// /// /// - public global::RetellAI.ListTestRunsResponseStatus? Type806 { get; set; } + public global::RetellAI.ListBatchTestsV2Response2? Type806 { get; set; } /// /// /// - public global::RetellAI.ListTestRunsResponse2? Type807 { get; set; } + public global::RetellAI.ListBatchTestsV2Response3? Type807 { get; set; } /// /// /// - public global::RetellAI.ListTestRunsResponseStatus2? Type808 { get; set; } + public global::RetellAI.ListBatchTestsV2ResponseStatus? Type808 { get; set; } /// /// /// - public global::RetellAI.ListTestRunsResponse3? Type809 { get; set; } + public global::RetellAI.ListBatchTestsV2Response4? Type809 { get; set; } /// /// /// - public global::RetellAI.ListTestRunsResponseStatus3? Type810 { get; set; } + public global::RetellAI.ListBatchTestsV2ResponseStatus2? Type810 { get; set; } /// /// /// - public global::RetellAI.ListTestRunsResponse4? Type811 { get; set; } + public global::RetellAI.ListBatchTestsV2Response5? Type811 { get; set; } /// /// /// - public global::RetellAI.ListTestRunsResponseStatus4? Type812 { get; set; } + public global::RetellAI.ListBatchTestsV2ResponseStatus3? Type812 { get; set; } /// /// /// - public global::RetellAI.ListTestRunsResponse5? Type813 { get; set; } + public global::RetellAI.ListBatchTestsV2Response6? Type813 { get; set; } /// /// /// - public global::RetellAI.ListTestRunsResponseStatus5? Type814 { get; set; } + public global::RetellAI.ListBatchTestsV2ResponseStatus4? Type814 { get; set; } /// /// /// - public global::RetellAI.AllOf? Type815 { get; set; } + public global::RetellAI.GetTestRunResponse? Type815 { get; set; } /// /// /// - public global::RetellAI.ListTestRunsV2Response2? Type816 { get; set; } + public global::RetellAI.GetTestRunResponseStatus? Type816 { get; set; } /// /// /// - public global::RetellAI.ListTestRunsV2Response3? Type817 { get; set; } + public global::RetellAI.GetTestRunResponse2? Type817 { get; set; } /// /// /// - public global::RetellAI.ListTestRunsV2ResponseStatus? Type818 { get; set; } + public global::RetellAI.GetTestRunResponseStatus2? Type818 { get; set; } /// /// /// - public global::RetellAI.ListTestRunsV2Response4? Type819 { get; set; } + public global::RetellAI.GetTestRunResponse3? Type819 { get; set; } /// /// /// - public global::RetellAI.ListTestRunsV2ResponseStatus2? Type820 { get; set; } + public global::RetellAI.GetTestRunResponseStatus3? Type820 { get; set; } /// /// /// - public global::RetellAI.ListTestRunsV2Response5? Type821 { get; set; } + public global::RetellAI.GetTestRunResponse4? Type821 { get; set; } /// /// /// - public global::RetellAI.ListTestRunsV2ResponseStatus3? Type822 { get; set; } + public global::RetellAI.GetTestRunResponseStatus4? Type822 { get; set; } /// /// /// - public global::RetellAI.ListTestRunsV2Response6? Type823 { get; set; } + public global::RetellAI.GetTestRunResponse5? Type823 { get; set; } /// /// /// - public global::RetellAI.ListTestRunsV2ResponseStatus4? Type824 { get; set; } + public global::RetellAI.GetTestRunResponseStatus5? Type824 { get; set; } /// /// /// - public global::RetellAI.ListTestRunsV2Response7? Type825 { get; set; } + public global::System.Collections.Generic.IList? Type825 { get; set; } /// /// /// - public global::RetellAI.ListTestRunsV2ResponseStatus5? Type826 { get; set; } + public global::RetellAI.ListTestRunsResponse? Type826 { get; set; } /// /// /// - public global::RetellAI.CreateChatAgentResponse? Type827 { get; set; } + public global::RetellAI.ListTestRunsResponseStatus? Type827 { get; set; } /// /// /// - public global::RetellAI.CreateChatAgentResponseStatus? Type828 { get; set; } + public global::RetellAI.ListTestRunsResponse2? Type828 { get; set; } /// /// /// - public global::RetellAI.CreateChatAgentResponse2? Type829 { get; set; } + public global::RetellAI.ListTestRunsResponseStatus2? Type829 { get; set; } /// /// /// - public global::RetellAI.CreateChatAgentResponseStatus2? Type830 { get; set; } + public global::RetellAI.ListTestRunsResponse3? Type830 { get; set; } /// /// /// - public global::RetellAI.CreateChatAgentResponse3? Type831 { get; set; } + public global::RetellAI.ListTestRunsResponseStatus3? Type831 { get; set; } /// /// /// - public global::RetellAI.CreateChatAgentResponseStatus3? Type832 { get; set; } + public global::RetellAI.ListTestRunsResponse4? Type832 { get; set; } /// /// /// - public global::RetellAI.CreateChatAgentResponse4? Type833 { get; set; } + public global::RetellAI.ListTestRunsResponseStatus4? Type833 { get; set; } /// /// /// - public global::RetellAI.CreateChatAgentResponseStatus4? Type834 { get; set; } + public global::RetellAI.ListTestRunsResponse5? Type834 { get; set; } /// /// /// - public global::RetellAI.CreateChatCompletionResponse? Type835 { get; set; } + public global::RetellAI.ListTestRunsResponseStatus5? Type835 { get; set; } /// /// /// - public global::RetellAI.CreateChatCompletionResponse2? Type836 { get; set; } + public global::RetellAI.AllOf? Type836 { get; set; } /// /// /// - public global::RetellAI.CreateChatCompletionResponseStatus? Type837 { get; set; } + public global::RetellAI.ListTestRunsV2Response2? Type837 { get; set; } /// /// /// - public global::RetellAI.CreateChatCompletionResponse3? Type838 { get; set; } + public global::RetellAI.ListTestRunsV2Response3? Type838 { get; set; } /// /// /// - public global::RetellAI.CreateChatCompletionResponseStatus2? Type839 { get; set; } + public global::RetellAI.ListTestRunsV2ResponseStatus? Type839 { get; set; } /// /// /// - public global::RetellAI.CreateChatCompletionResponse4? Type840 { get; set; } + public global::RetellAI.ListTestRunsV2Response4? Type840 { get; set; } /// /// /// - public global::RetellAI.CreateChatCompletionResponseStatus3? Type841 { get; set; } + public global::RetellAI.ListTestRunsV2ResponseStatus2? Type841 { get; set; } /// /// /// - public global::RetellAI.CreateChatCompletionResponse5? Type842 { get; set; } + public global::RetellAI.ListTestRunsV2Response5? Type842 { get; set; } /// /// /// - public global::RetellAI.CreateChatCompletionResponseStatus4? Type843 { get; set; } + public global::RetellAI.ListTestRunsV2ResponseStatus3? Type843 { get; set; } /// /// /// - public global::RetellAI.CreateChatCompletionResponse6? Type844 { get; set; } + public global::RetellAI.ListTestRunsV2Response6? Type844 { get; set; } /// /// /// - public global::RetellAI.CreateChatCompletionResponseStatus5? Type845 { get; set; } + public global::RetellAI.ListTestRunsV2ResponseStatus4? Type845 { get; set; } /// /// /// - public global::RetellAI.CreateChatCompletionResponse7? Type846 { get; set; } + public global::RetellAI.ListTestRunsV2Response7? Type846 { get; set; } /// /// /// - public global::RetellAI.CreateChatCompletionResponseStatus6? Type847 { get; set; } + public global::RetellAI.ListTestRunsV2ResponseStatus5? Type847 { get; set; } /// /// /// - public global::RetellAI.CreateChatResponse? Type848 { get; set; } + public global::RetellAI.CreateChatAgentResponse? Type848 { get; set; } /// /// /// - public global::RetellAI.CreateChatResponseStatus? Type849 { get; set; } + public global::RetellAI.CreateChatAgentResponseStatus? Type849 { get; set; } /// /// /// - public global::RetellAI.CreateChatResponse2? Type850 { get; set; } + public global::RetellAI.CreateChatAgentResponse2? Type850 { get; set; } /// /// /// - public global::RetellAI.CreateChatResponseStatus2? Type851 { get; set; } + public global::RetellAI.CreateChatAgentResponseStatus2? Type851 { get; set; } /// /// /// - public global::RetellAI.CreateChatResponse3? Type852 { get; set; } + public global::RetellAI.CreateChatAgentResponse3? Type852 { get; set; } /// /// /// - public global::RetellAI.CreateChatResponseStatus3? Type853 { get; set; } + public global::RetellAI.CreateChatAgentResponseStatus3? Type853 { get; set; } /// /// /// - public global::RetellAI.CreateChatResponse4? Type854 { get; set; } + public global::RetellAI.CreateChatAgentResponse4? Type854 { get; set; } /// /// /// - public global::RetellAI.CreateChatResponseStatus4? Type855 { get; set; } + public global::RetellAI.CreateChatAgentResponseStatus4? Type855 { get; set; } /// /// /// - public global::RetellAI.CreateChatResponse5? Type856 { get; set; } + public global::RetellAI.CreateChatCompletionResponse? Type856 { get; set; } /// /// /// - public global::RetellAI.CreateChatResponseStatus5? Type857 { get; set; } + public global::RetellAI.CreateChatCompletionResponse2? Type857 { get; set; } /// /// /// - public global::RetellAI.CreateChatResponse6? Type858 { get; set; } + public global::RetellAI.CreateChatCompletionResponseStatus? Type858 { get; set; } /// /// /// - public global::RetellAI.CreateChatResponseStatus6? Type859 { get; set; } + public global::RetellAI.CreateChatCompletionResponse3? Type859 { get; set; } /// /// /// - public global::RetellAI.CreateConversationFlowComponentResponse? Type860 { get; set; } + public global::RetellAI.CreateChatCompletionResponseStatus2? Type860 { get; set; } /// /// /// - public global::RetellAI.CreateConversationFlowComponentResponseStatus? Type861 { get; set; } + public global::RetellAI.CreateChatCompletionResponse4? Type861 { get; set; } /// /// /// - public global::RetellAI.CreateConversationFlowComponentResponse2? Type862 { get; set; } + public global::RetellAI.CreateChatCompletionResponseStatus3? Type862 { get; set; } /// /// /// - public global::RetellAI.CreateConversationFlowComponentResponseStatus2? Type863 { get; set; } + public global::RetellAI.CreateChatCompletionResponse5? Type863 { get; set; } /// /// /// - public global::RetellAI.CreateConversationFlowComponentResponse3? Type864 { get; set; } + public global::RetellAI.CreateChatCompletionResponseStatus4? Type864 { get; set; } /// /// /// - public global::RetellAI.CreateConversationFlowComponentResponseStatus3? Type865 { get; set; } + public global::RetellAI.CreateChatCompletionResponse6? Type865 { get; set; } /// /// /// - public global::RetellAI.CreateConversationFlowComponentResponse4? Type866 { get; set; } + public global::RetellAI.CreateChatCompletionResponseStatus5? Type866 { get; set; } /// /// /// - public global::RetellAI.CreateConversationFlowComponentResponseStatus4? Type867 { get; set; } + public global::RetellAI.CreateChatCompletionResponse7? Type867 { get; set; } /// /// /// - public global::RetellAI.CreateConversationFlowComponentResponse5? Type868 { get; set; } + public global::RetellAI.CreateChatCompletionResponseStatus6? Type868 { get; set; } /// /// /// - public global::RetellAI.CreateConversationFlowComponentResponseStatus5? Type869 { get; set; } + public global::RetellAI.CreateChatResponse? Type869 { get; set; } /// /// /// - public global::RetellAI.CreateConversationFlowResponse? Type870 { get; set; } + public global::RetellAI.CreateChatResponseStatus? Type870 { get; set; } /// /// /// - public global::RetellAI.CreateConversationFlowResponseStatus? Type871 { get; set; } + public global::RetellAI.CreateChatResponse2? Type871 { get; set; } /// /// /// - public global::RetellAI.CreateConversationFlowResponse2? Type872 { get; set; } + public global::RetellAI.CreateChatResponseStatus2? Type872 { get; set; } /// /// /// - public global::RetellAI.CreateConversationFlowResponseStatus2? Type873 { get; set; } + public global::RetellAI.CreateChatResponse3? Type873 { get; set; } /// /// /// - public global::RetellAI.CreateConversationFlowResponse3? Type874 { get; set; } + public global::RetellAI.CreateChatResponseStatus3? Type874 { get; set; } /// /// /// - public global::RetellAI.CreateConversationFlowResponseStatus3? Type875 { get; set; } + public global::RetellAI.CreateChatResponse4? Type875 { get; set; } /// /// /// - public global::RetellAI.CreateConversationFlowResponse4? Type876 { get; set; } + public global::RetellAI.CreateChatResponseStatus4? Type876 { get; set; } /// /// /// - public global::RetellAI.CreateConversationFlowResponseStatus4? Type877 { get; set; } + public global::RetellAI.CreateChatResponse5? Type877 { get; set; } /// /// /// - public global::RetellAI.CreateConversationFlowResponse5? Type878 { get; set; } + public global::RetellAI.CreateChatResponseStatus5? Type878 { get; set; } /// /// /// - public global::RetellAI.CreateConversationFlowResponseStatus5? Type879 { get; set; } + public global::RetellAI.CreateChatResponse6? Type879 { get; set; } /// /// /// - public global::RetellAI.CreateKnowledgeBaseResponse? Type880 { get; set; } + public global::RetellAI.CreateChatResponseStatus6? Type880 { get; set; } /// /// /// - public global::RetellAI.CreateKnowledgeBaseResponseStatus? Type881 { get; set; } + public global::RetellAI.CreateConversationFlowComponentResponse? Type881 { get; set; } /// /// /// - public global::RetellAI.CreateKnowledgeBaseResponse2? Type882 { get; set; } + public global::RetellAI.CreateConversationFlowComponentResponseStatus? Type882 { get; set; } /// /// /// - public global::RetellAI.CreateKnowledgeBaseResponseStatus2? Type883 { get; set; } + public global::RetellAI.CreateConversationFlowComponentResponse2? Type883 { get; set; } /// /// /// - public global::RetellAI.CreateKnowledgeBaseResponse3? Type884 { get; set; } + public global::RetellAI.CreateConversationFlowComponentResponseStatus2? Type884 { get; set; } /// /// /// - public global::RetellAI.CreateKnowledgeBaseResponseStatus3? Type885 { get; set; } + public global::RetellAI.CreateConversationFlowComponentResponse3? Type885 { get; set; } /// /// /// - public global::RetellAI.CreateKnowledgeBaseResponse4? Type886 { get; set; } + public global::RetellAI.CreateConversationFlowComponentResponseStatus3? Type886 { get; set; } /// /// /// - public global::RetellAI.CreateKnowledgeBaseResponseStatus4? Type887 { get; set; } + public global::RetellAI.CreateConversationFlowComponentResponse4? Type887 { get; set; } /// /// /// - public global::RetellAI.CreateKnowledgeBaseResponse5? Type888 { get; set; } + public global::RetellAI.CreateConversationFlowComponentResponseStatus4? Type888 { get; set; } /// /// /// - public global::RetellAI.CreateKnowledgeBaseResponseStatus5? Type889 { get; set; } + public global::RetellAI.CreateConversationFlowComponentResponse5? Type889 { get; set; } /// /// /// - public global::RetellAI.CreatePhoneNumberResponse? Type890 { get; set; } + public global::RetellAI.CreateConversationFlowComponentResponseStatus5? Type890 { get; set; } /// /// /// - public global::RetellAI.CreatePhoneNumberResponseStatus? Type891 { get; set; } + public global::RetellAI.CreateConversationFlowResponse? Type891 { get; set; } /// /// /// - public global::RetellAI.CreatePhoneNumberResponse2? Type892 { get; set; } + public global::RetellAI.CreateConversationFlowResponseStatus? Type892 { get; set; } /// /// /// - public global::RetellAI.CreatePhoneNumberResponseStatus2? Type893 { get; set; } + public global::RetellAI.CreateConversationFlowResponse2? Type893 { get; set; } /// /// /// - public global::RetellAI.CreatePhoneNumberResponse3? Type894 { get; set; } + public global::RetellAI.CreateConversationFlowResponseStatus2? Type894 { get; set; } /// /// /// - public global::RetellAI.CreatePhoneNumberResponseStatus3? Type895 { get; set; } + public global::RetellAI.CreateConversationFlowResponse3? Type895 { get; set; } /// /// /// - public global::RetellAI.CreateRetellLLMResponse? Type896 { get; set; } + public global::RetellAI.CreateConversationFlowResponseStatus3? Type896 { get; set; } /// /// /// - public global::RetellAI.CreateRetellLLMResponseStatus? Type897 { get; set; } + public global::RetellAI.CreateConversationFlowResponse4? Type897 { get; set; } /// /// /// - public global::RetellAI.CreateRetellLLMResponse2? Type898 { get; set; } + public global::RetellAI.CreateConversationFlowResponseStatus4? Type898 { get; set; } /// /// /// - public global::RetellAI.CreateRetellLLMResponseStatus2? Type899 { get; set; } + public global::RetellAI.CreateConversationFlowResponse5? Type899 { get; set; } /// /// /// - public global::RetellAI.CreateRetellLLMResponse3? Type900 { get; set; } + public global::RetellAI.CreateConversationFlowResponseStatus5? Type900 { get; set; } /// /// /// - public global::RetellAI.CreateRetellLLMResponseStatus3? Type901 { get; set; } + public global::RetellAI.CreateKnowledgeBaseResponse? Type901 { get; set; } /// /// /// - public global::RetellAI.CreateSmsChatResponse? Type902 { get; set; } + public global::RetellAI.CreateKnowledgeBaseResponseStatus? Type902 { get; set; } /// /// /// - public global::RetellAI.CreateSmsChatResponseStatus? Type903 { get; set; } + public global::RetellAI.CreateKnowledgeBaseResponse2? Type903 { get; set; } /// /// /// - public global::RetellAI.CreateSmsChatResponse2? Type904 { get; set; } + public global::RetellAI.CreateKnowledgeBaseResponseStatus2? Type904 { get; set; } /// /// /// - public global::RetellAI.CreateSmsChatResponseStatus2? Type905 { get; set; } + public global::RetellAI.CreateKnowledgeBaseResponse3? Type905 { get; set; } /// /// /// - public global::RetellAI.CreateSmsChatResponse3? Type906 { get; set; } + public global::RetellAI.CreateKnowledgeBaseResponseStatus3? Type906 { get; set; } /// /// /// - public global::RetellAI.CreateSmsChatResponseStatus3? Type907 { get; set; } + public global::RetellAI.CreateKnowledgeBaseResponse4? Type907 { get; set; } /// /// /// - public global::RetellAI.CreateSmsChatResponse4? Type908 { get; set; } + public global::RetellAI.CreateKnowledgeBaseResponseStatus4? Type908 { get; set; } /// /// /// - public global::RetellAI.CreateSmsChatResponseStatus4? Type909 { get; set; } + public global::RetellAI.CreateKnowledgeBaseResponse5? Type909 { get; set; } /// /// /// - public global::RetellAI.CreateSmsChatResponse5? Type910 { get; set; } + public global::RetellAI.CreateKnowledgeBaseResponseStatus5? Type910 { get; set; } /// /// /// - public global::RetellAI.CreateSmsChatResponseStatus5? Type911 { get; set; } + public global::RetellAI.CreatePhoneNumberResponse? Type911 { get; set; } /// /// /// - public global::RetellAI.CreateSmsChatResponse6? Type912 { get; set; } + public global::RetellAI.CreatePhoneNumberResponseStatus? Type912 { get; set; } /// /// /// - public global::RetellAI.CreateSmsChatResponseStatus6? Type913 { get; set; } + public global::RetellAI.CreatePhoneNumberResponse2? Type913 { get; set; } /// /// /// - public global::RetellAI.DeleteAgentResponse? Type914 { get; set; } + public global::RetellAI.CreatePhoneNumberResponseStatus2? Type914 { get; set; } /// /// /// - public global::RetellAI.DeleteAgentResponseStatus? Type915 { get; set; } + public global::RetellAI.CreatePhoneNumberResponse3? Type915 { get; set; } /// /// /// - public global::RetellAI.DeleteAgentResponse2? Type916 { get; set; } + public global::RetellAI.CreatePhoneNumberResponseStatus3? Type916 { get; set; } /// /// /// - public global::RetellAI.DeleteAgentResponseStatus2? Type917 { get; set; } + public global::RetellAI.CreateRetellLLMResponse? Type917 { get; set; } /// /// /// - public global::RetellAI.DeleteAgentResponse3? Type918 { get; set; } + public global::RetellAI.CreateRetellLLMResponseStatus? Type918 { get; set; } /// /// /// - public global::RetellAI.DeleteAgentResponseStatus3? Type919 { get; set; } + public global::RetellAI.CreateRetellLLMResponse2? Type919 { get; set; } /// /// /// - public global::RetellAI.DeleteAgentResponse4? Type920 { get; set; } + public global::RetellAI.CreateRetellLLMResponseStatus2? Type920 { get; set; } /// /// /// - public global::RetellAI.DeleteAgentResponseStatus4? Type921 { get; set; } + public global::RetellAI.CreateRetellLLMResponse3? Type921 { get; set; } /// /// /// - public global::RetellAI.DeleteChatAgentResponse? Type922 { get; set; } + public global::RetellAI.CreateRetellLLMResponseStatus3? Type922 { get; set; } /// /// /// - public global::RetellAI.DeleteChatAgentResponseStatus? Type923 { get; set; } + public global::RetellAI.CreateSmsChatResponse? Type923 { get; set; } /// /// /// - public global::RetellAI.DeleteChatAgentResponse2? Type924 { get; set; } + public global::RetellAI.CreateSmsChatResponseStatus? Type924 { get; set; } /// /// /// - public global::RetellAI.DeleteChatAgentResponseStatus2? Type925 { get; set; } + public global::RetellAI.CreateSmsChatResponse2? Type925 { get; set; } /// /// /// - public global::RetellAI.DeleteChatAgentResponse3? Type926 { get; set; } + public global::RetellAI.CreateSmsChatResponseStatus2? Type926 { get; set; } /// /// /// - public global::RetellAI.DeleteChatAgentResponseStatus3? Type927 { get; set; } + public global::RetellAI.CreateSmsChatResponse3? Type927 { get; set; } /// /// /// - public global::RetellAI.DeleteChatAgentResponse4? Type928 { get; set; } + public global::RetellAI.CreateSmsChatResponseStatus3? Type928 { get; set; } /// /// /// - public global::RetellAI.DeleteChatAgentResponseStatus4? Type929 { get; set; } + public global::RetellAI.CreateSmsChatResponse4? Type929 { get; set; } /// /// /// - public global::RetellAI.DeleteConversationFlowComponentResponse? Type930 { get; set; } + public global::RetellAI.CreateSmsChatResponseStatus4? Type930 { get; set; } /// /// /// - public global::RetellAI.DeleteConversationFlowComponentResponseStatus? Type931 { get; set; } + public global::RetellAI.CreateSmsChatResponse5? Type931 { get; set; } /// /// /// - public global::RetellAI.DeleteConversationFlowComponentResponse2? Type932 { get; set; } + public global::RetellAI.CreateSmsChatResponseStatus5? Type932 { get; set; } /// /// /// - public global::RetellAI.DeleteConversationFlowComponentResponseStatus2? Type933 { get; set; } + public global::RetellAI.CreateSmsChatResponse6? Type933 { get; set; } /// /// /// - public global::RetellAI.DeleteConversationFlowComponentResponse3? Type934 { get; set; } + public global::RetellAI.CreateSmsChatResponseStatus6? Type934 { get; set; } /// /// /// - public global::RetellAI.DeleteConversationFlowComponentResponseStatus3? Type935 { get; set; } + public global::RetellAI.DeleteAgentResponse? Type935 { get; set; } /// /// /// - public global::RetellAI.DeleteConversationFlowComponentResponse4? Type936 { get; set; } + public global::RetellAI.DeleteAgentResponseStatus? Type936 { get; set; } /// /// /// - public global::RetellAI.DeleteConversationFlowComponentResponseStatus4? Type937 { get; set; } + public global::RetellAI.DeleteAgentResponse2? Type937 { get; set; } /// /// /// - public global::RetellAI.DeleteConversationFlowResponse? Type938 { get; set; } + public global::RetellAI.DeleteAgentResponseStatus2? Type938 { get; set; } /// /// /// - public global::RetellAI.DeleteConversationFlowResponseStatus? Type939 { get; set; } + public global::RetellAI.DeleteAgentResponse3? Type939 { get; set; } /// /// /// - public global::RetellAI.DeleteConversationFlowResponse2? Type940 { get; set; } + public global::RetellAI.DeleteAgentResponseStatus3? Type940 { get; set; } /// /// /// - public global::RetellAI.DeleteConversationFlowResponseStatus2? Type941 { get; set; } + public global::RetellAI.DeleteAgentResponse4? Type941 { get; set; } /// /// /// - public global::RetellAI.DeleteConversationFlowResponse3? Type942 { get; set; } + public global::RetellAI.DeleteAgentResponseStatus4? Type942 { get; set; } /// /// /// - public global::RetellAI.DeleteConversationFlowResponseStatus3? Type943 { get; set; } + public global::RetellAI.DeleteChatAgentResponse? Type943 { get; set; } /// /// /// - public global::RetellAI.DeleteConversationFlowResponse4? Type944 { get; set; } + public global::RetellAI.DeleteChatAgentResponseStatus? Type944 { get; set; } /// /// /// - public global::RetellAI.DeleteConversationFlowResponseStatus4? Type945 { get; set; } + public global::RetellAI.DeleteChatAgentResponse2? Type945 { get; set; } /// /// /// - public global::RetellAI.DeleteConversationFlowResponse5? Type946 { get; set; } + public global::RetellAI.DeleteChatAgentResponseStatus2? Type946 { get; set; } /// /// /// - public global::RetellAI.DeleteConversationFlowResponseStatus5? Type947 { get; set; } + public global::RetellAI.DeleteChatAgentResponse3? Type947 { get; set; } /// /// /// - public global::RetellAI.DeleteKnowledgeBaseSourceResponse? Type948 { get; set; } + public global::RetellAI.DeleteChatAgentResponseStatus3? Type948 { get; set; } /// /// /// - public global::RetellAI.DeleteKnowledgeBaseSourceResponseStatus? Type949 { get; set; } + public global::RetellAI.DeleteChatAgentResponse4? Type949 { get; set; } /// /// /// - public global::RetellAI.DeleteKnowledgeBaseSourceResponse2? Type950 { get; set; } + public global::RetellAI.DeleteChatAgentResponseStatus4? Type950 { get; set; } /// /// /// - public global::RetellAI.DeleteKnowledgeBaseSourceResponseStatus2? Type951 { get; set; } + public global::RetellAI.DeleteConversationFlowComponentResponse? Type951 { get; set; } /// /// /// - public global::RetellAI.DeleteKnowledgeBaseSourceResponse3? Type952 { get; set; } + public global::RetellAI.DeleteConversationFlowComponentResponseStatus? Type952 { get; set; } /// /// /// - public global::RetellAI.DeleteKnowledgeBaseSourceResponseStatus3? Type953 { get; set; } + public global::RetellAI.DeleteConversationFlowComponentResponse2? Type953 { get; set; } /// /// /// - public global::RetellAI.DeleteKnowledgeBaseSourceResponse4? Type954 { get; set; } + public global::RetellAI.DeleteConversationFlowComponentResponseStatus2? Type954 { get; set; } /// /// /// - public global::RetellAI.DeleteKnowledgeBaseSourceResponseStatus4? Type955 { get; set; } + public global::RetellAI.DeleteConversationFlowComponentResponse3? Type955 { get; set; } /// /// /// - public global::RetellAI.DeleteKnowledgeBaseResponse? Type956 { get; set; } + public global::RetellAI.DeleteConversationFlowComponentResponseStatus3? Type956 { get; set; } /// /// /// - public global::RetellAI.DeleteKnowledgeBaseResponseStatus? Type957 { get; set; } + public global::RetellAI.DeleteConversationFlowComponentResponse4? Type957 { get; set; } /// /// /// - public global::RetellAI.DeleteKnowledgeBaseResponse2? Type958 { get; set; } + public global::RetellAI.DeleteConversationFlowComponentResponseStatus4? Type958 { get; set; } /// /// /// - public global::RetellAI.DeleteKnowledgeBaseResponseStatus2? Type959 { get; set; } + public global::RetellAI.DeleteConversationFlowResponse? Type959 { get; set; } /// /// /// - public global::RetellAI.DeleteKnowledgeBaseResponse3? Type960 { get; set; } + public global::RetellAI.DeleteConversationFlowResponseStatus? Type960 { get; set; } /// /// /// - public global::RetellAI.DeleteKnowledgeBaseResponseStatus3? Type961 { get; set; } + public global::RetellAI.DeleteConversationFlowResponse2? Type961 { get; set; } /// /// /// - public global::RetellAI.DeleteKnowledgeBaseResponse4? Type962 { get; set; } + public global::RetellAI.DeleteConversationFlowResponseStatus2? Type962 { get; set; } /// /// /// - public global::RetellAI.DeleteKnowledgeBaseResponseStatus4? Type963 { get; set; } + public global::RetellAI.DeleteConversationFlowResponse3? Type963 { get; set; } /// /// /// - public global::RetellAI.DeletePhoneNumberResponse? Type964 { get; set; } + public global::RetellAI.DeleteConversationFlowResponseStatus3? Type964 { get; set; } /// /// /// - public global::RetellAI.DeletePhoneNumberResponseStatus? Type965 { get; set; } + public global::RetellAI.DeleteConversationFlowResponse4? Type965 { get; set; } /// /// /// - public global::RetellAI.DeletePhoneNumberResponse2? Type966 { get; set; } + public global::RetellAI.DeleteConversationFlowResponseStatus4? Type966 { get; set; } /// /// /// - public global::RetellAI.DeletePhoneNumberResponseStatus2? Type967 { get; set; } + public global::RetellAI.DeleteConversationFlowResponse5? Type967 { get; set; } /// /// /// - public global::RetellAI.DeletePhoneNumberResponse3? Type968 { get; set; } + public global::RetellAI.DeleteConversationFlowResponseStatus5? Type968 { get; set; } /// /// /// - public global::RetellAI.DeletePhoneNumberResponseStatus3? Type969 { get; set; } + public global::RetellAI.DeleteKnowledgeBaseSourceResponse? Type969 { get; set; } /// /// /// - public global::RetellAI.DeleteRetellLLMResponse? Type970 { get; set; } + public global::RetellAI.DeleteKnowledgeBaseSourceResponseStatus? Type970 { get; set; } /// /// /// - public global::RetellAI.DeleteRetellLLMResponseStatus? Type971 { get; set; } + public global::RetellAI.DeleteKnowledgeBaseSourceResponse2? Type971 { get; set; } /// /// /// - public global::RetellAI.DeleteRetellLLMResponse2? Type972 { get; set; } + public global::RetellAI.DeleteKnowledgeBaseSourceResponseStatus2? Type972 { get; set; } /// /// /// - public global::RetellAI.DeleteRetellLLMResponseStatus2? Type973 { get; set; } + public global::RetellAI.DeleteKnowledgeBaseSourceResponse3? Type973 { get; set; } /// /// /// - public global::RetellAI.DeleteRetellLLMResponse3? Type974 { get; set; } + public global::RetellAI.DeleteKnowledgeBaseSourceResponseStatus3? Type974 { get; set; } /// /// /// - public global::RetellAI.DeleteRetellLLMResponseStatus3? Type975 { get; set; } + public global::RetellAI.DeleteKnowledgeBaseSourceResponse4? Type975 { get; set; } /// /// /// - public global::RetellAI.DeleteRetellLLMResponse4? Type976 { get; set; } + public global::RetellAI.DeleteKnowledgeBaseSourceResponseStatus4? Type976 { get; set; } /// /// /// - public global::RetellAI.DeleteRetellLLMResponseStatus4? Type977 { get; set; } + public global::RetellAI.DeleteKnowledgeBaseResponse? Type977 { get; set; } /// /// /// - public global::RetellAI.EndChatResponse? Type978 { get; set; } + public global::RetellAI.DeleteKnowledgeBaseResponseStatus? Type978 { get; set; } /// /// /// - public global::RetellAI.EndChatResponseStatus? Type979 { get; set; } + public global::RetellAI.DeleteKnowledgeBaseResponse2? Type979 { get; set; } /// /// /// - public global::RetellAI.EndChatResponse2? Type980 { get; set; } + public global::RetellAI.DeleteKnowledgeBaseResponseStatus2? Type980 { get; set; } /// /// /// - public global::RetellAI.EndChatResponseStatus2? Type981 { get; set; } + public global::RetellAI.DeleteKnowledgeBaseResponse3? Type981 { get; set; } /// /// /// - public global::RetellAI.EndChatResponse3? Type982 { get; set; } + public global::RetellAI.DeleteKnowledgeBaseResponseStatus3? Type982 { get; set; } /// /// /// - public global::RetellAI.EndChatResponseStatus3? Type983 { get; set; } + public global::RetellAI.DeleteKnowledgeBaseResponse4? Type983 { get; set; } /// /// /// - public global::RetellAI.EndChatResponse4? Type984 { get; set; } + public global::RetellAI.DeleteKnowledgeBaseResponseStatus4? Type984 { get; set; } /// /// /// - public global::RetellAI.EndChatResponseStatus4? Type985 { get; set; } + public global::RetellAI.DeletePhoneNumberResponse? Type985 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type986 { get; set; } + public global::RetellAI.DeletePhoneNumberResponseStatus? Type986 { get; set; } /// /// /// - public global::RetellAI.GetAgentVersionsResponse? Type987 { get; set; } + public global::RetellAI.DeletePhoneNumberResponse2? Type987 { get; set; } /// /// /// - public global::RetellAI.GetAgentVersionsResponseStatus? Type988 { get; set; } + public global::RetellAI.DeletePhoneNumberResponseStatus2? Type988 { get; set; } /// /// /// - public global::RetellAI.GetAgentVersionsResponse2? Type989 { get; set; } + public global::RetellAI.DeletePhoneNumberResponse3? Type989 { get; set; } /// /// /// - public global::RetellAI.GetAgentVersionsResponseStatus2? Type990 { get; set; } + public global::RetellAI.DeletePhoneNumberResponseStatus3? Type990 { get; set; } /// /// /// - public global::RetellAI.GetAgentVersionsResponse3? Type991 { get; set; } + public global::RetellAI.DeleteRetellLLMResponse? Type991 { get; set; } /// /// /// - public global::RetellAI.GetAgentVersionsResponseStatus3? Type992 { get; set; } + public global::RetellAI.DeleteRetellLLMResponseStatus? Type992 { get; set; } /// /// /// - public global::RetellAI.GetAgentVersionsResponse4? Type993 { get; set; } + public global::RetellAI.DeleteRetellLLMResponse2? Type993 { get; set; } /// /// /// - public global::RetellAI.GetAgentVersionsResponseStatus4? Type994 { get; set; } + public global::RetellAI.DeleteRetellLLMResponseStatus2? Type994 { get; set; } /// /// /// - public global::RetellAI.GetAgentResponse? Type995 { get; set; } + public global::RetellAI.DeleteRetellLLMResponse3? Type995 { get; set; } /// /// /// - public global::RetellAI.GetAgentResponseStatus? Type996 { get; set; } + public global::RetellAI.DeleteRetellLLMResponseStatus3? Type996 { get; set; } /// /// /// - public global::RetellAI.GetAgentResponse2? Type997 { get; set; } + public global::RetellAI.DeleteRetellLLMResponse4? Type997 { get; set; } /// /// /// - public global::RetellAI.GetAgentResponseStatus2? Type998 { get; set; } + public global::RetellAI.DeleteRetellLLMResponseStatus4? Type998 { get; set; } /// /// /// - public global::RetellAI.GetAgentResponse3? Type999 { get; set; } + public global::RetellAI.EndChatResponse? Type999 { get; set; } /// /// /// - public global::RetellAI.GetAgentResponseStatus3? Type1000 { get; set; } + public global::RetellAI.EndChatResponseStatus? Type1000 { get; set; } /// /// /// - public global::RetellAI.GetAgentResponse4? Type1001 { get; set; } + public global::RetellAI.EndChatResponse2? Type1001 { get; set; } /// /// /// - public global::RetellAI.GetAgentResponseStatus4? Type1002 { get; set; } + public global::RetellAI.EndChatResponseStatus2? Type1002 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1003 { get; set; } + public global::RetellAI.EndChatResponse3? Type1003 { get; set; } /// /// /// - public global::RetellAI.GetChatAgentVersionsResponse? Type1004 { get; set; } + public global::RetellAI.EndChatResponseStatus3? Type1004 { get; set; } /// /// /// - public global::RetellAI.GetChatAgentVersionsResponseStatus? Type1005 { get; set; } + public global::RetellAI.EndChatResponse4? Type1005 { get; set; } /// /// /// - public global::RetellAI.GetChatAgentVersionsResponse2? Type1006 { get; set; } + public global::RetellAI.EndChatResponseStatus4? Type1006 { get; set; } /// /// /// - public global::RetellAI.GetChatAgentVersionsResponseStatus2? Type1007 { get; set; } + public global::System.Collections.Generic.IList? Type1007 { get; set; } /// /// /// - public global::RetellAI.GetChatAgentVersionsResponse3? Type1008 { get; set; } + public global::RetellAI.GetAgentVersionsResponse? Type1008 { get; set; } /// /// /// - public global::RetellAI.GetChatAgentVersionsResponseStatus3? Type1009 { get; set; } + public global::RetellAI.GetAgentVersionsResponseStatus? Type1009 { get; set; } /// /// /// - public global::RetellAI.GetChatAgentResponse? Type1010 { get; set; } + public global::RetellAI.GetAgentVersionsResponse2? Type1010 { get; set; } /// /// /// - public global::RetellAI.GetChatAgentResponseStatus? Type1011 { get; set; } + public global::RetellAI.GetAgentVersionsResponseStatus2? Type1011 { get; set; } /// /// /// - public global::RetellAI.GetChatAgentResponse2? Type1012 { get; set; } + public global::RetellAI.GetAgentVersionsResponse3? Type1012 { get; set; } /// /// /// - public global::RetellAI.GetChatAgentResponseStatus2? Type1013 { get; set; } + public global::RetellAI.GetAgentVersionsResponseStatus3? Type1013 { get; set; } /// /// /// - public global::RetellAI.GetChatAgentResponse3? Type1014 { get; set; } + public global::RetellAI.GetAgentVersionsResponse4? Type1014 { get; set; } /// /// /// - public global::RetellAI.GetChatAgentResponseStatus3? Type1015 { get; set; } + public global::RetellAI.GetAgentVersionsResponseStatus4? Type1015 { get; set; } /// /// /// - public global::RetellAI.GetChatAgentResponse4? Type1016 { get; set; } + public global::RetellAI.GetAgentResponse? Type1016 { get; set; } /// /// /// - public global::RetellAI.GetChatAgentResponseStatus4? Type1017 { get; set; } + public global::RetellAI.GetAgentResponseStatus? Type1017 { get; set; } /// /// /// - public global::RetellAI.GetChatResponse? Type1018 { get; set; } + public global::RetellAI.GetAgentResponse2? Type1018 { get; set; } /// /// /// - public global::RetellAI.GetChatResponseStatus? Type1019 { get; set; } + public global::RetellAI.GetAgentResponseStatus2? Type1019 { get; set; } /// /// /// - public global::RetellAI.GetChatResponse2? Type1020 { get; set; } + public global::RetellAI.GetAgentResponse3? Type1020 { get; set; } /// /// /// - public global::RetellAI.GetChatResponseStatus2? Type1021 { get; set; } + public global::RetellAI.GetAgentResponseStatus3? Type1021 { get; set; } /// /// /// - public global::RetellAI.GetChatResponse3? Type1022 { get; set; } + public global::RetellAI.GetAgentResponse4? Type1022 { get; set; } /// /// /// - public global::RetellAI.GetChatResponseStatus3? Type1023 { get; set; } + public global::RetellAI.GetAgentResponseStatus4? Type1023 { get; set; } /// /// /// - public global::RetellAI.GetChatResponse4? Type1024 { get; set; } + public global::System.Collections.Generic.IList? Type1024 { get; set; } /// /// /// - public global::RetellAI.GetChatResponseStatus4? Type1025 { get; set; } + public global::RetellAI.GetChatAgentVersionsResponse? Type1025 { get; set; } /// /// /// - public global::RetellAI.GetConcurrencyResponse? Type1026 { get; set; } + public global::RetellAI.GetChatAgentVersionsResponseStatus? Type1026 { get; set; } /// /// /// - public global::RetellAI.GetConcurrencyResponse2? Type1027 { get; set; } + public global::RetellAI.GetChatAgentVersionsResponse2? Type1027 { get; set; } /// /// /// - public global::RetellAI.GetConcurrencyResponseStatus? Type1028 { get; set; } + public global::RetellAI.GetChatAgentVersionsResponseStatus2? Type1028 { get; set; } /// /// /// - public global::RetellAI.GetConcurrencyResponse3? Type1029 { get; set; } + public global::RetellAI.GetChatAgentVersionsResponse3? Type1029 { get; set; } /// /// /// - public global::RetellAI.GetConcurrencyResponseStatus2? Type1030 { get; set; } + public global::RetellAI.GetChatAgentVersionsResponseStatus3? Type1030 { get; set; } /// /// /// - public global::RetellAI.GetConversationFlowComponentResponse? Type1031 { get; set; } + public global::RetellAI.GetChatAgentResponse? Type1031 { get; set; } /// /// /// - public global::RetellAI.GetConversationFlowComponentResponseStatus? Type1032 { get; set; } + public global::RetellAI.GetChatAgentResponseStatus? Type1032 { get; set; } /// /// /// - public global::RetellAI.GetConversationFlowComponentResponse2? Type1033 { get; set; } + public global::RetellAI.GetChatAgentResponse2? Type1033 { get; set; } /// /// /// - public global::RetellAI.GetConversationFlowComponentResponseStatus2? Type1034 { get; set; } + public global::RetellAI.GetChatAgentResponseStatus2? Type1034 { get; set; } /// /// /// - public global::RetellAI.GetConversationFlowComponentResponse3? Type1035 { get; set; } + public global::RetellAI.GetChatAgentResponse3? Type1035 { get; set; } /// /// /// - public global::RetellAI.GetConversationFlowComponentResponseStatus3? Type1036 { get; set; } + public global::RetellAI.GetChatAgentResponseStatus3? Type1036 { get; set; } /// /// /// - public global::RetellAI.GetConversationFlowComponentResponse4? Type1037 { get; set; } + public global::RetellAI.GetChatAgentResponse4? Type1037 { get; set; } /// /// /// - public global::RetellAI.GetConversationFlowComponentResponseStatus4? Type1038 { get; set; } + public global::RetellAI.GetChatAgentResponseStatus4? Type1038 { get; set; } /// /// /// - public global::RetellAI.GetConversationFlowResponse? Type1039 { get; set; } + public global::RetellAI.GetChatResponse? Type1039 { get; set; } /// /// /// - public global::RetellAI.GetConversationFlowResponseStatus? Type1040 { get; set; } + public global::RetellAI.GetChatResponseStatus? Type1040 { get; set; } /// /// /// - public global::RetellAI.GetConversationFlowResponse2? Type1041 { get; set; } + public global::RetellAI.GetChatResponse2? Type1041 { get; set; } /// /// /// - public global::RetellAI.GetConversationFlowResponseStatus2? Type1042 { get; set; } + public global::RetellAI.GetChatResponseStatus2? Type1042 { get; set; } /// /// /// - public global::RetellAI.GetConversationFlowResponse3? Type1043 { get; set; } + public global::RetellAI.GetChatResponse3? Type1043 { get; set; } /// /// /// - public global::RetellAI.GetConversationFlowResponseStatus3? Type1044 { get; set; } + public global::RetellAI.GetChatResponseStatus3? Type1044 { get; set; } /// /// /// - public global::RetellAI.GetConversationFlowResponse4? Type1045 { get; set; } + public global::RetellAI.GetChatResponse4? Type1045 { get; set; } /// /// /// - public global::RetellAI.GetConversationFlowResponseStatus4? Type1046 { get; set; } + public global::RetellAI.GetChatResponseStatus4? Type1046 { get; set; } /// /// /// - public global::RetellAI.GetConversationFlowResponse5? Type1047 { get; set; } + public global::RetellAI.GetConcurrencyResponse? Type1047 { get; set; } /// /// /// - public global::RetellAI.GetConversationFlowResponseStatus5? Type1048 { get; set; } + public global::RetellAI.GetConcurrencyResponse2? Type1048 { get; set; } /// /// /// - public global::RetellAI.GetKnowledgeBaseResponse? Type1049 { get; set; } + public global::RetellAI.GetConcurrencyResponseStatus? Type1049 { get; set; } /// /// /// - public global::RetellAI.GetKnowledgeBaseResponseStatus? Type1050 { get; set; } + public global::RetellAI.GetConcurrencyResponse3? Type1050 { get; set; } /// /// /// - public global::RetellAI.GetKnowledgeBaseResponse2? Type1051 { get; set; } + public global::RetellAI.GetConcurrencyResponseStatus2? Type1051 { get; set; } /// /// /// - public global::RetellAI.GetKnowledgeBaseResponseStatus2? Type1052 { get; set; } + public global::RetellAI.GetConversationFlowComponentResponse? Type1052 { get; set; } /// /// /// - public global::RetellAI.GetKnowledgeBaseResponse3? Type1053 { get; set; } + public global::RetellAI.GetConversationFlowComponentResponseStatus? Type1053 { get; set; } /// /// /// - public global::RetellAI.GetKnowledgeBaseResponseStatus3? Type1054 { get; set; } + public global::RetellAI.GetConversationFlowComponentResponse2? Type1054 { get; set; } /// /// /// - public global::RetellAI.GetKnowledgeBaseResponse4? Type1055 { get; set; } + public global::RetellAI.GetConversationFlowComponentResponseStatus2? Type1055 { get; set; } /// /// /// - public global::RetellAI.GetKnowledgeBaseResponseStatus4? Type1056 { get; set; } + public global::RetellAI.GetConversationFlowComponentResponse3? Type1056 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1057 { get; set; } + public global::RetellAI.GetConversationFlowComponentResponseStatus3? Type1057 { get; set; } /// /// /// - public global::RetellAI.GetMCPToolsResponse? Type1058 { get; set; } + public global::RetellAI.GetConversationFlowComponentResponse4? Type1058 { get; set; } /// /// /// - public global::RetellAI.GetMCPToolsResponseStatus? Type1059 { get; set; } + public global::RetellAI.GetConversationFlowComponentResponseStatus4? Type1059 { get; set; } /// /// /// - public global::RetellAI.GetMCPToolsResponse2? Type1060 { get; set; } + public global::RetellAI.GetConversationFlowResponse? Type1060 { get; set; } /// /// /// - public global::RetellAI.GetMCPToolsResponseStatus2? Type1061 { get; set; } + public global::RetellAI.GetConversationFlowResponseStatus? Type1061 { get; set; } /// /// /// - public global::RetellAI.GetMCPToolsResponse3? Type1062 { get; set; } + public global::RetellAI.GetConversationFlowResponse2? Type1062 { get; set; } /// /// /// - public global::RetellAI.GetMCPToolsResponseStatus3? Type1063 { get; set; } + public global::RetellAI.GetConversationFlowResponseStatus2? Type1063 { get; set; } /// /// /// - public global::RetellAI.GetMCPToolsResponse4? Type1064 { get; set; } + public global::RetellAI.GetConversationFlowResponse3? Type1064 { get; set; } /// /// /// - public global::RetellAI.GetMCPToolsResponseStatus4? Type1065 { get; set; } + public global::RetellAI.GetConversationFlowResponseStatus3? Type1065 { get; set; } /// /// /// - public global::RetellAI.GetPhoneNumberResponse? Type1066 { get; set; } + public global::RetellAI.GetConversationFlowResponse4? Type1066 { get; set; } /// /// /// - public global::RetellAI.GetPhoneNumberResponseStatus? Type1067 { get; set; } + public global::RetellAI.GetConversationFlowResponseStatus4? Type1067 { get; set; } /// /// /// - public global::RetellAI.GetPhoneNumberResponse2? Type1068 { get; set; } + public global::RetellAI.GetConversationFlowResponse5? Type1068 { get; set; } /// /// /// - public global::RetellAI.GetPhoneNumberResponseStatus2? Type1069 { get; set; } + public global::RetellAI.GetConversationFlowResponseStatus5? Type1069 { get; set; } /// /// /// - public global::RetellAI.GetPhoneNumberResponse3? Type1070 { get; set; } + public global::RetellAI.GetKnowledgeBaseResponse? Type1070 { get; set; } /// /// /// - public global::RetellAI.GetPhoneNumberResponseStatus3? Type1071 { get; set; } + public global::RetellAI.GetKnowledgeBaseResponseStatus? Type1071 { get; set; } /// /// /// - public global::RetellAI.GetPhoneNumberResponse4? Type1072 { get; set; } + public global::RetellAI.GetKnowledgeBaseResponse2? Type1072 { get; set; } /// /// /// - public global::RetellAI.GetPhoneNumberResponseStatus4? Type1073 { get; set; } + public global::RetellAI.GetKnowledgeBaseResponseStatus2? Type1073 { get; set; } /// /// /// - public global::RetellAI.GetRetellLLMResponse? Type1074 { get; set; } + public global::RetellAI.GetKnowledgeBaseResponse3? Type1074 { get; set; } /// /// /// - public global::RetellAI.GetRetellLLMResponseStatus? Type1075 { get; set; } + public global::RetellAI.GetKnowledgeBaseResponseStatus3? Type1075 { get; set; } /// /// /// - public global::RetellAI.GetRetellLLMResponse2? Type1076 { get; set; } + public global::RetellAI.GetKnowledgeBaseResponse4? Type1076 { get; set; } /// /// /// - public global::RetellAI.GetRetellLLMResponseStatus2? Type1077 { get; set; } + public global::RetellAI.GetKnowledgeBaseResponseStatus4? Type1077 { get; set; } /// /// /// - public global::RetellAI.GetRetellLLMResponse3? Type1078 { get; set; } + public global::System.Collections.Generic.IList? Type1078 { get; set; } /// /// /// - public global::RetellAI.GetRetellLLMResponseStatus3? Type1079 { get; set; } + public global::RetellAI.GetMCPToolsResponse? Type1079 { get; set; } /// /// /// - public global::RetellAI.GetRetellLLMResponse4? Type1080 { get; set; } + public global::RetellAI.GetMCPToolsResponseStatus? Type1080 { get; set; } /// /// /// - public global::RetellAI.GetRetellLLMResponseStatus4? Type1081 { get; set; } + public global::RetellAI.GetMCPToolsResponse2? Type1081 { get; set; } /// /// /// - public global::RetellAI.GetVoiceResponse? Type1082 { get; set; } + public global::RetellAI.GetMCPToolsResponseStatus2? Type1082 { get; set; } /// /// /// - public global::RetellAI.GetVoiceResponseStatus? Type1083 { get; set; } + public global::RetellAI.GetMCPToolsResponse3? Type1083 { get; set; } /// /// /// - public global::RetellAI.GetVoiceResponse2? Type1084 { get; set; } + public global::RetellAI.GetMCPToolsResponseStatus3? Type1084 { get; set; } /// /// /// - public global::RetellAI.GetVoiceResponseStatus2? Type1085 { get; set; } + public global::RetellAI.GetMCPToolsResponse4? Type1085 { get; set; } /// /// /// - public global::RetellAI.GetVoiceResponse3? Type1086 { get; set; } + public global::RetellAI.GetMCPToolsResponseStatus4? Type1086 { get; set; } /// /// /// - public global::RetellAI.GetVoiceResponseStatus3? Type1087 { get; set; } + public global::RetellAI.GetPhoneNumberResponse? Type1087 { get; set; } /// /// /// - public global::RetellAI.GetVoiceResponse4? Type1088 { get; set; } + public global::RetellAI.GetPhoneNumberResponseStatus? Type1088 { get; set; } /// /// /// - public global::RetellAI.GetVoiceResponseStatus4? Type1089 { get; set; } + public global::RetellAI.GetPhoneNumberResponse2? Type1089 { get; set; } /// /// /// - public global::RetellAI.CloneVoiceResponse? Type1090 { get; set; } + public global::RetellAI.GetPhoneNumberResponseStatus2? Type1090 { get; set; } /// /// /// - public global::RetellAI.CloneVoiceResponseStatus? Type1091 { get; set; } + public global::RetellAI.GetPhoneNumberResponse3? Type1091 { get; set; } /// /// /// - public global::RetellAI.CloneVoiceResponse2? Type1092 { get; set; } + public global::RetellAI.GetPhoneNumberResponseStatus3? Type1092 { get; set; } /// /// /// - public global::RetellAI.CloneVoiceResponseStatus2? Type1093 { get; set; } + public global::RetellAI.GetPhoneNumberResponse4? Type1093 { get; set; } /// /// /// - public global::RetellAI.CloneVoiceResponse3? Type1094 { get; set; } + public global::RetellAI.GetPhoneNumberResponseStatus4? Type1094 { get; set; } /// /// /// - public global::RetellAI.CloneVoiceResponseStatus3? Type1095 { get; set; } + public global::RetellAI.GetRetellLLMResponse? Type1095 { get; set; } /// /// /// - public global::RetellAI.CloneVoiceResponse4? Type1096 { get; set; } + public global::RetellAI.GetRetellLLMResponseStatus? Type1096 { get; set; } /// /// /// - public global::RetellAI.CloneVoiceResponseStatus4? Type1097 { get; set; } + public global::RetellAI.GetRetellLLMResponse2? Type1097 { get; set; } /// /// /// - public global::RetellAI.CloneVoiceResponse5? Type1098 { get; set; } + public global::RetellAI.GetRetellLLMResponseStatus2? Type1098 { get; set; } /// /// /// - public global::RetellAI.CloneVoiceResponseStatus5? Type1099 { get; set; } + public global::RetellAI.GetRetellLLMResponse3? Type1099 { get; set; } /// /// /// - public global::RetellAI.AddCommunityVoiceResponse? Type1100 { get; set; } + public global::RetellAI.GetRetellLLMResponseStatus3? Type1100 { get; set; } /// /// /// - public global::RetellAI.AddCommunityVoiceResponseStatus? Type1101 { get; set; } + public global::RetellAI.GetRetellLLMResponse4? Type1101 { get; set; } /// /// /// - public global::RetellAI.AddCommunityVoiceResponse2? Type1102 { get; set; } + public global::RetellAI.GetRetellLLMResponseStatus4? Type1102 { get; set; } /// /// /// - public global::RetellAI.AddCommunityVoiceResponseStatus2? Type1103 { get; set; } + public global::RetellAI.GetVoiceResponse? Type1103 { get; set; } /// /// /// - public global::RetellAI.AddCommunityVoiceResponse3? Type1104 { get; set; } + public global::RetellAI.GetVoiceResponseStatus? Type1104 { get; set; } /// /// /// - public global::RetellAI.AddCommunityVoiceResponseStatus3? Type1105 { get; set; } + public global::RetellAI.GetVoiceResponse2? Type1105 { get; set; } /// /// /// - public global::RetellAI.AddCommunityVoiceResponse4? Type1106 { get; set; } + public global::RetellAI.GetVoiceResponseStatus2? Type1106 { get; set; } /// /// /// - public global::RetellAI.AddCommunityVoiceResponseStatus4? Type1107 { get; set; } + public global::RetellAI.GetVoiceResponse3? Type1107 { get; set; } /// /// /// - public global::RetellAI.SearchCommunityVoiceResponse? Type1108 { get; set; } + public global::RetellAI.GetVoiceResponseStatus3? Type1108 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1109 { get; set; } + public global::RetellAI.GetVoiceResponse4? Type1109 { get; set; } /// /// /// - public global::RetellAI.SearchCommunityVoiceResponseVoice? Type1110 { get; set; } + public global::RetellAI.GetVoiceResponseStatus4? Type1110 { get; set; } /// /// /// - public global::RetellAI.SearchCommunityVoiceResponse2? Type1111 { get; set; } + public global::RetellAI.CloneVoiceResponse? Type1111 { get; set; } /// /// /// - public global::RetellAI.SearchCommunityVoiceResponseStatus? Type1112 { get; set; } + public global::RetellAI.CloneVoiceResponseStatus? Type1112 { get; set; } /// /// /// - public global::RetellAI.SearchCommunityVoiceResponse3? Type1113 { get; set; } + public global::RetellAI.CloneVoiceResponse2? Type1113 { get; set; } /// /// /// - public global::RetellAI.SearchCommunityVoiceResponseStatus2? Type1114 { get; set; } + public global::RetellAI.CloneVoiceResponseStatus2? Type1114 { get; set; } /// /// /// - public global::RetellAI.SearchCommunityVoiceResponse4? Type1115 { get; set; } + public global::RetellAI.CloneVoiceResponse3? Type1115 { get; set; } /// /// /// - public global::RetellAI.SearchCommunityVoiceResponseStatus3? Type1116 { get; set; } + public global::RetellAI.CloneVoiceResponseStatus3? Type1116 { get; set; } /// /// /// - public global::RetellAI.SearchCommunityVoiceResponse5? Type1117 { get; set; } + public global::RetellAI.CloneVoiceResponse4? Type1117 { get; set; } /// /// /// - public global::RetellAI.SearchCommunityVoiceResponseStatus4? Type1118 { get; set; } + public global::RetellAI.CloneVoiceResponseStatus4? Type1118 { get; set; } /// /// /// - public global::RetellAI.ImportPhoneNumberResponse? Type1119 { get; set; } + public global::RetellAI.CloneVoiceResponse5? Type1119 { get; set; } /// /// /// - public global::RetellAI.ImportPhoneNumberResponseStatus? Type1120 { get; set; } + public global::RetellAI.CloneVoiceResponseStatus5? Type1120 { get; set; } /// /// /// - public global::RetellAI.ImportPhoneNumberResponse2? Type1121 { get; set; } + public global::RetellAI.AddCommunityVoiceResponse? Type1121 { get; set; } /// /// /// - public global::RetellAI.ImportPhoneNumberResponseStatus2? Type1122 { get; set; } + public global::RetellAI.AddCommunityVoiceResponseStatus? Type1122 { get; set; } /// /// /// - public global::RetellAI.ImportPhoneNumberResponse3? Type1123 { get; set; } + public global::RetellAI.AddCommunityVoiceResponse2? Type1123 { get; set; } /// /// /// - public global::RetellAI.ImportPhoneNumberResponseStatus3? Type1124 { get; set; } + public global::RetellAI.AddCommunityVoiceResponseStatus2? Type1124 { get; set; } /// /// /// - public global::RetellAI.ListAgentsResponse? Type1125 { get; set; } + public global::RetellAI.AddCommunityVoiceResponse3? Type1125 { get; set; } /// /// /// - public global::RetellAI.ListAgentsResponseStatus? Type1126 { get; set; } + public global::RetellAI.AddCommunityVoiceResponseStatus3? Type1126 { get; set; } /// /// /// - public global::RetellAI.ListAgentsResponse2? Type1127 { get; set; } + public global::RetellAI.AddCommunityVoiceResponse4? Type1127 { get; set; } /// /// /// - public global::RetellAI.ListAgentsResponseStatus2? Type1128 { get; set; } + public global::RetellAI.AddCommunityVoiceResponseStatus4? Type1128 { get; set; } /// /// /// - public global::RetellAI.ListChatAgentsResponse? Type1129 { get; set; } + public global::RetellAI.SearchCommunityVoiceResponse? Type1129 { get; set; } /// /// /// - public global::RetellAI.ListChatAgentsResponseStatus? Type1130 { get; set; } + public global::System.Collections.Generic.IList? Type1130 { get; set; } /// /// /// - public global::RetellAI.ListChatAgentsResponse2? Type1131 { get; set; } + public global::RetellAI.SearchCommunityVoiceResponseVoice? Type1131 { get; set; } /// /// /// - public global::RetellAI.ListChatAgentsResponseStatus2? Type1132 { get; set; } + public global::RetellAI.SearchCommunityVoiceResponse2? Type1132 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1133 { get; set; } + public global::RetellAI.SearchCommunityVoiceResponseStatus? Type1133 { get; set; } /// /// /// - public global::RetellAI.ListChatResponse? Type1134 { get; set; } + public global::RetellAI.SearchCommunityVoiceResponse3? Type1134 { get; set; } /// /// /// - public global::RetellAI.ListChatResponseStatus? Type1135 { get; set; } + public global::RetellAI.SearchCommunityVoiceResponseStatus2? Type1135 { get; set; } /// /// /// - public global::RetellAI.ListChatResponse2? Type1136 { get; set; } + public global::RetellAI.SearchCommunityVoiceResponse4? Type1136 { get; set; } /// /// /// - public global::RetellAI.ListChatResponseStatus2? Type1137 { get; set; } + public global::RetellAI.SearchCommunityVoiceResponseStatus3? Type1137 { get; set; } /// /// /// - public global::RetellAI.AllOf? Type1138 { get; set; } + public global::RetellAI.SearchCommunityVoiceResponse5? Type1138 { get; set; } /// /// /// - public global::RetellAI.ListConversationFlowComponentsV2Response2? Type1139 { get; set; } + public global::RetellAI.SearchCommunityVoiceResponseStatus4? Type1139 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1140 { get; set; } + public global::RetellAI.ImportPhoneNumberResponse? Type1140 { get; set; } /// /// /// - public global::RetellAI.ListConversationFlowComponentsV2Response3? Type1141 { get; set; } + public global::RetellAI.ImportPhoneNumberResponseStatus? Type1141 { get; set; } /// /// /// - public global::RetellAI.ListConversationFlowComponentsV2ResponseStatus? Type1142 { get; set; } + public global::RetellAI.ImportPhoneNumberResponse2? Type1142 { get; set; } /// /// /// - public global::RetellAI.ListConversationFlowComponentsV2Response4? Type1143 { get; set; } + public global::RetellAI.ImportPhoneNumberResponseStatus2? Type1143 { get; set; } /// /// /// - public global::RetellAI.ListConversationFlowComponentsV2ResponseStatus2? Type1144 { get; set; } + public global::RetellAI.ImportPhoneNumberResponse3? Type1144 { get; set; } /// /// /// - public global::RetellAI.ListConversationFlowComponentsV2Response5? Type1145 { get; set; } + public global::RetellAI.ImportPhoneNumberResponseStatus3? Type1145 { get; set; } /// /// /// - public global::RetellAI.ListConversationFlowComponentsV2ResponseStatus3? Type1146 { get; set; } + public global::RetellAI.ListAgentsResponse? Type1146 { get; set; } /// /// /// - public global::RetellAI.ListConversationFlowComponentsV2Response6? Type1147 { get; set; } + public global::RetellAI.ListAgentsResponseStatus? Type1147 { get; set; } /// /// /// - public global::RetellAI.ListConversationFlowComponentsV2ResponseStatus4? Type1148 { get; set; } + public global::RetellAI.ListAgentsResponse2? Type1148 { get; set; } /// /// /// - public global::RetellAI.ListConversationFlowComponentsResponse? Type1149 { get; set; } + public global::RetellAI.ListAgentsResponseStatus2? Type1149 { get; set; } /// /// /// - public global::RetellAI.ListConversationFlowComponentsResponseStatus? Type1150 { get; set; } + public global::RetellAI.ListChatAgentsResponse? Type1150 { get; set; } /// /// /// - public global::RetellAI.ListConversationFlowComponentsResponse2? Type1151 { get; set; } + public global::RetellAI.ListChatAgentsResponseStatus? Type1151 { get; set; } /// /// /// - public global::RetellAI.ListConversationFlowComponentsResponseStatus2? Type1152 { get; set; } + public global::RetellAI.ListChatAgentsResponse2? Type1152 { get; set; } /// /// /// - public global::RetellAI.ListConversationFlowComponentsResponse3? Type1153 { get; set; } + public global::RetellAI.ListChatAgentsResponseStatus2? Type1153 { get; set; } /// /// /// - public global::RetellAI.ListConversationFlowComponentsResponseStatus3? Type1154 { get; set; } + public global::System.Collections.Generic.IList? Type1154 { get; set; } /// /// /// - public global::RetellAI.ListConversationFlowComponentsResponse4? Type1155 { get; set; } + public global::RetellAI.ListChatResponse? Type1155 { get; set; } /// /// /// - public global::RetellAI.ListConversationFlowComponentsResponseStatus4? Type1156 { get; set; } + public global::RetellAI.ListChatResponseStatus? Type1156 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1157 { get; set; } + public global::RetellAI.ListChatResponse2? Type1157 { get; set; } /// /// /// - public global::RetellAI.ListConversationFlowsResponse? Type1158 { get; set; } + public global::RetellAI.ListChatResponseStatus2? Type1158 { get; set; } /// /// /// - public global::RetellAI.ListConversationFlowsResponseStatus? Type1159 { get; set; } + public global::RetellAI.AllOf? Type1159 { get; set; } /// /// /// - public global::RetellAI.ListConversationFlowsResponse2? Type1160 { get; set; } + public global::RetellAI.ListChatsV3Response2? Type1160 { get; set; } /// /// /// - public global::RetellAI.ListConversationFlowsResponseStatus2? Type1161 { get; set; } + public global::System.Collections.Generic.IList? Type1161 { get; set; } /// /// /// - public global::RetellAI.ListConversationFlowsResponse3? Type1162 { get; set; } + public global::RetellAI.ListChatsV3Response3? Type1162 { get; set; } /// /// /// - public global::RetellAI.ListConversationFlowsResponseStatus3? Type1163 { get; set; } + public global::RetellAI.ListChatsV3ResponseStatus? Type1163 { get; set; } /// /// /// - public global::RetellAI.ListConversationFlowsResponse4? Type1164 { get; set; } + public global::RetellAI.ListChatsV3Response4? Type1164 { get; set; } /// /// /// - public global::RetellAI.ListConversationFlowsResponseStatus4? Type1165 { get; set; } + public global::RetellAI.ListChatsV3ResponseStatus2? Type1165 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1166 { get; set; } + public global::RetellAI.ListChatsV3Response5? Type1166 { get; set; } /// /// /// - public global::RetellAI.ListKnowledgeBasesResponse? Type1167 { get; set; } + public global::RetellAI.ListChatsV3ResponseStatus3? Type1167 { get; set; } /// /// /// - public global::RetellAI.ListKnowledgeBasesResponseStatus? Type1168 { get; set; } + public global::RetellAI.ListChatsV3Response6? Type1168 { get; set; } /// /// /// - public global::RetellAI.ListKnowledgeBasesResponse2? Type1169 { get; set; } + public global::RetellAI.ListChatsV3ResponseStatus4? Type1169 { get; set; } /// /// /// - public global::RetellAI.ListKnowledgeBasesResponseStatus2? Type1170 { get; set; } + public global::RetellAI.AllOf? Type1170 { get; set; } /// /// /// - public global::RetellAI.ListKnowledgeBasesResponse3? Type1171 { get; set; } + public global::RetellAI.ListConversationFlowComponentsV2Response2? Type1171 { get; set; } /// /// /// - public global::RetellAI.ListKnowledgeBasesResponseStatus3? Type1172 { get; set; } + public global::System.Collections.Generic.IList? Type1172 { get; set; } /// /// /// - public global::RetellAI.AllOf? Type1173 { get; set; } + public global::RetellAI.ListConversationFlowComponentsV2Response3? Type1173 { get; set; } /// /// /// - public global::RetellAI.ListPhoneNumbersV2Response2? Type1174 { get; set; } + public global::RetellAI.ListConversationFlowComponentsV2ResponseStatus? Type1174 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1175 { get; set; } + public global::RetellAI.ListConversationFlowComponentsV2Response4? Type1175 { get; set; } /// /// /// - public global::RetellAI.ListPhoneNumbersV2Response3? Type1176 { get; set; } + public global::RetellAI.ListConversationFlowComponentsV2ResponseStatus2? Type1176 { get; set; } /// /// /// - public global::RetellAI.ListPhoneNumbersV2ResponseStatus? Type1177 { get; set; } + public global::RetellAI.ListConversationFlowComponentsV2Response5? Type1177 { get; set; } /// /// /// - public global::RetellAI.ListPhoneNumbersV2Response4? Type1178 { get; set; } + public global::RetellAI.ListConversationFlowComponentsV2ResponseStatus3? Type1178 { get; set; } /// /// /// - public global::RetellAI.ListPhoneNumbersV2ResponseStatus2? Type1179 { get; set; } + public global::RetellAI.ListConversationFlowComponentsV2Response6? Type1179 { get; set; } /// /// /// - public global::RetellAI.ListPhoneNumbersResponse? Type1180 { get; set; } + public global::RetellAI.ListConversationFlowComponentsV2ResponseStatus4? Type1180 { get; set; } /// /// /// - public global::RetellAI.ListPhoneNumbersResponseStatus? Type1181 { get; set; } + public global::RetellAI.ListConversationFlowComponentsResponse? Type1181 { get; set; } /// /// /// - public global::RetellAI.ListPhoneNumbersResponse2? Type1182 { get; set; } + public global::RetellAI.ListConversationFlowComponentsResponseStatus? Type1182 { get; set; } /// /// /// - public global::RetellAI.ListPhoneNumbersResponseStatus2? Type1183 { get; set; } + public global::RetellAI.ListConversationFlowComponentsResponse2? Type1183 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1184 { get; set; } + public global::RetellAI.ListConversationFlowComponentsResponseStatus2? Type1184 { get; set; } /// /// /// - public global::RetellAI.ListRetellLLMResponse? Type1185 { get; set; } + public global::RetellAI.ListConversationFlowComponentsResponse3? Type1185 { get; set; } /// /// /// - public global::RetellAI.ListRetellLLMResponseStatus? Type1186 { get; set; } + public global::RetellAI.ListConversationFlowComponentsResponseStatus3? Type1186 { get; set; } /// /// /// - public global::RetellAI.ListRetellLLMResponse2? Type1187 { get; set; } + public global::RetellAI.ListConversationFlowComponentsResponse4? Type1187 { get; set; } /// /// /// - public global::RetellAI.ListRetellLLMResponseStatus2? Type1188 { get; set; } + public global::RetellAI.ListConversationFlowComponentsResponseStatus4? Type1188 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1189 { get; set; } + public global::System.Collections.Generic.IList? Type1189 { get; set; } /// /// /// - public global::RetellAI.ListVoicesResponse? Type1190 { get; set; } + public global::RetellAI.ListConversationFlowsResponse? Type1190 { get; set; } /// /// /// - public global::RetellAI.ListVoicesResponseStatus? Type1191 { get; set; } + public global::RetellAI.ListConversationFlowsResponseStatus? Type1191 { get; set; } /// /// /// - public global::RetellAI.ListVoicesResponse2? Type1192 { get; set; } + public global::RetellAI.ListConversationFlowsResponse2? Type1192 { get; set; } /// /// /// - public global::RetellAI.ListVoicesResponseStatus2? Type1193 { get; set; } + public global::RetellAI.ListConversationFlowsResponseStatus2? Type1193 { get; set; } /// /// /// - public global::RetellAI.PublishAgentResponse? Type1194 { get; set; } + public global::RetellAI.ListConversationFlowsResponse3? Type1194 { get; set; } /// /// /// - public global::RetellAI.PublishAgentResponseStatus? Type1195 { get; set; } + public global::RetellAI.ListConversationFlowsResponseStatus3? Type1195 { get; set; } /// /// /// - public global::RetellAI.PublishAgentResponse2? Type1196 { get; set; } + public global::RetellAI.ListConversationFlowsResponse4? Type1196 { get; set; } /// /// /// - public global::RetellAI.PublishAgentResponseStatus2? Type1197 { get; set; } + public global::RetellAI.ListConversationFlowsResponseStatus4? Type1197 { get; set; } /// /// /// - public global::RetellAI.PublishAgentResponse3? Type1198 { get; set; } + public global::System.Collections.Generic.IList? Type1198 { get; set; } /// /// /// - public global::RetellAI.PublishAgentResponseStatus3? Type1199 { get; set; } + public global::RetellAI.ListKnowledgeBasesResponse? Type1199 { get; set; } /// /// /// - public global::RetellAI.PublishAgentResponse4? Type1200 { get; set; } + public global::RetellAI.ListKnowledgeBasesResponseStatus? Type1200 { get; set; } /// /// /// - public global::RetellAI.PublishAgentResponseStatus4? Type1201 { get; set; } + public global::RetellAI.ListKnowledgeBasesResponse2? Type1201 { get; set; } /// /// /// - public global::RetellAI.PublishAgentResponse5? Type1202 { get; set; } + public global::RetellAI.ListKnowledgeBasesResponseStatus2? Type1202 { get; set; } /// /// /// - public global::RetellAI.PublishAgentResponseStatus5? Type1203 { get; set; } + public global::RetellAI.ListKnowledgeBasesResponse3? Type1203 { get; set; } /// /// /// - public global::RetellAI.PublishChatAgentResponse? Type1204 { get; set; } + public global::RetellAI.ListKnowledgeBasesResponseStatus3? Type1204 { get; set; } /// /// /// - public global::RetellAI.PublishChatAgentResponseStatus? Type1205 { get; set; } + public global::RetellAI.AllOf? Type1205 { get; set; } /// /// /// - public global::RetellAI.PublishChatAgentResponse2? Type1206 { get; set; } + public global::RetellAI.ListPhoneNumbersV2Response2? Type1206 { get; set; } /// /// /// - public global::RetellAI.PublishChatAgentResponseStatus2? Type1207 { get; set; } + public global::System.Collections.Generic.IList? Type1207 { get; set; } /// /// /// - public global::RetellAI.PublishChatAgentResponse3? Type1208 { get; set; } + public global::RetellAI.ListPhoneNumbersV2Response3? Type1208 { get; set; } /// /// /// - public global::RetellAI.PublishChatAgentResponseStatus3? Type1209 { get; set; } + public global::RetellAI.ListPhoneNumbersV2ResponseStatus? Type1209 { get; set; } /// /// /// - public global::RetellAI.PublishChatAgentResponse4? Type1210 { get; set; } + public global::RetellAI.ListPhoneNumbersV2Response4? Type1210 { get; set; } /// /// /// - public global::RetellAI.PublishChatAgentResponseStatus4? Type1211 { get; set; } + public global::RetellAI.ListPhoneNumbersV2ResponseStatus2? Type1211 { get; set; } /// /// /// - public global::RetellAI.PublishChatAgentResponse5? Type1212 { get; set; } + public global::RetellAI.ListPhoneNumbersResponse? Type1212 { get; set; } /// /// /// - public global::RetellAI.PublishChatAgentResponseStatus5? Type1213 { get; set; } + public global::RetellAI.ListPhoneNumbersResponseStatus? Type1213 { get; set; } /// /// /// - public global::RetellAI.UpdateAgentResponse? Type1214 { get; set; } + public global::RetellAI.ListPhoneNumbersResponse2? Type1214 { get; set; } /// /// /// - public global::RetellAI.UpdateAgentResponseStatus? Type1215 { get; set; } + public global::RetellAI.ListPhoneNumbersResponseStatus2? Type1215 { get; set; } /// /// /// - public global::RetellAI.UpdateAgentResponse2? Type1216 { get; set; } + public global::System.Collections.Generic.IList? Type1216 { get; set; } /// /// /// - public global::RetellAI.UpdateAgentResponseStatus2? Type1217 { get; set; } + public global::RetellAI.ListRetellLLMResponse? Type1217 { get; set; } /// /// /// - public global::RetellAI.UpdateAgentResponse3? Type1218 { get; set; } + public global::RetellAI.ListRetellLLMResponseStatus? Type1218 { get; set; } /// /// /// - public global::RetellAI.UpdateAgentResponseStatus3? Type1219 { get; set; } + public global::RetellAI.ListRetellLLMResponse2? Type1219 { get; set; } /// /// /// - public global::RetellAI.UpdateAgentResponse4? Type1220 { get; set; } + public global::RetellAI.ListRetellLLMResponseStatus2? Type1220 { get; set; } /// /// /// - public global::RetellAI.UpdateAgentResponseStatus4? Type1221 { get; set; } + public global::System.Collections.Generic.IList? Type1221 { get; set; } /// /// /// - public global::RetellAI.UpdateChatAgentResponse? Type1222 { get; set; } + public global::RetellAI.ListVoicesResponse? Type1222 { get; set; } /// /// /// - public global::RetellAI.UpdateChatAgentResponseStatus? Type1223 { get; set; } + public global::RetellAI.ListVoicesResponseStatus? Type1223 { get; set; } /// /// /// - public global::RetellAI.UpdateChatAgentResponse2? Type1224 { get; set; } + public global::RetellAI.ListVoicesResponse2? Type1224 { get; set; } /// /// /// - public global::RetellAI.UpdateChatAgentResponseStatus2? Type1225 { get; set; } + public global::RetellAI.ListVoicesResponseStatus2? Type1225 { get; set; } /// /// /// - public global::RetellAI.UpdateChatAgentResponse3? Type1226 { get; set; } + public global::RetellAI.PublishAgentResponse? Type1226 { get; set; } /// /// /// - public global::RetellAI.UpdateChatAgentResponseStatus3? Type1227 { get; set; } + public global::RetellAI.PublishAgentResponseStatus? Type1227 { get; set; } /// /// /// - public global::RetellAI.UpdateChatAgentResponse4? Type1228 { get; set; } + public global::RetellAI.PublishAgentResponse2? Type1228 { get; set; } /// /// /// - public global::RetellAI.UpdateChatAgentResponseStatus4? Type1229 { get; set; } + public global::RetellAI.PublishAgentResponseStatus2? Type1229 { get; set; } /// /// /// - public global::RetellAI.UpdateChatMetadataResponse? Type1230 { get; set; } + public global::RetellAI.PublishAgentResponse3? Type1230 { get; set; } /// /// /// - public global::RetellAI.UpdateChatMetadataResponseStatus? Type1231 { get; set; } + public global::RetellAI.PublishAgentResponseStatus3? Type1231 { get; set; } /// /// /// - public global::RetellAI.UpdateChatMetadataResponse2? Type1232 { get; set; } + public global::RetellAI.PublishAgentResponse4? Type1232 { get; set; } /// /// /// - public global::RetellAI.UpdateChatMetadataResponseStatus2? Type1233 { get; set; } + public global::RetellAI.PublishAgentResponseStatus4? Type1233 { get; set; } /// /// /// - public global::RetellAI.UpdateChatMetadataResponse3? Type1234 { get; set; } + public global::RetellAI.PublishAgentResponse5? Type1234 { get; set; } /// /// /// - public global::RetellAI.UpdateChatMetadataResponseStatus3? Type1235 { get; set; } + public global::RetellAI.PublishAgentResponseStatus5? Type1235 { get; set; } /// /// /// - public global::RetellAI.UpdateChatMetadataResponse4? Type1236 { get; set; } + public global::RetellAI.PublishChatAgentResponse? Type1236 { get; set; } /// /// /// - public global::RetellAI.UpdateChatMetadataResponseStatus4? Type1237 { get; set; } + public global::RetellAI.PublishChatAgentResponseStatus? Type1237 { get; set; } /// /// /// - public global::RetellAI.UpdateConversationFlowComponentResponse? Type1238 { get; set; } + public global::RetellAI.PublishChatAgentResponse2? Type1238 { get; set; } /// /// /// - public global::RetellAI.UpdateConversationFlowComponentResponseStatus? Type1239 { get; set; } + public global::RetellAI.PublishChatAgentResponseStatus2? Type1239 { get; set; } /// /// /// - public global::RetellAI.UpdateConversationFlowComponentResponse2? Type1240 { get; set; } + public global::RetellAI.PublishChatAgentResponse3? Type1240 { get; set; } /// /// /// - public global::RetellAI.UpdateConversationFlowComponentResponseStatus2? Type1241 { get; set; } + public global::RetellAI.PublishChatAgentResponseStatus3? Type1241 { get; set; } /// /// /// - public global::RetellAI.UpdateConversationFlowComponentResponse3? Type1242 { get; set; } + public global::RetellAI.PublishChatAgentResponse4? Type1242 { get; set; } /// /// /// - public global::RetellAI.UpdateConversationFlowComponentResponseStatus3? Type1243 { get; set; } + public global::RetellAI.PublishChatAgentResponseStatus4? Type1243 { get; set; } /// /// /// - public global::RetellAI.UpdateConversationFlowComponentResponse4? Type1244 { get; set; } + public global::RetellAI.PublishChatAgentResponse5? Type1244 { get; set; } /// /// /// - public global::RetellAI.UpdateConversationFlowComponentResponseStatus4? Type1245 { get; set; } + public global::RetellAI.PublishChatAgentResponseStatus5? Type1245 { get; set; } /// /// /// - public global::RetellAI.UpdateConversationFlowComponentResponse5? Type1246 { get; set; } + public global::RetellAI.UpdateAgentResponse? Type1246 { get; set; } /// /// /// - public global::RetellAI.UpdateConversationFlowComponentResponseStatus5? Type1247 { get; set; } + public global::RetellAI.UpdateAgentResponseStatus? Type1247 { get; set; } /// /// /// - public global::RetellAI.UpdateConversationFlowResponse? Type1248 { get; set; } + public global::RetellAI.UpdateAgentResponse2? Type1248 { get; set; } /// /// /// - public global::RetellAI.UpdateConversationFlowResponseStatus? Type1249 { get; set; } + public global::RetellAI.UpdateAgentResponseStatus2? Type1249 { get; set; } /// /// /// - public global::RetellAI.UpdateConversationFlowResponse2? Type1250 { get; set; } + public global::RetellAI.UpdateAgentResponse3? Type1250 { get; set; } /// /// /// - public global::RetellAI.UpdateConversationFlowResponseStatus2? Type1251 { get; set; } + public global::RetellAI.UpdateAgentResponseStatus3? Type1251 { get; set; } /// /// /// - public global::RetellAI.UpdateConversationFlowResponse3? Type1252 { get; set; } + public global::RetellAI.UpdateAgentResponse4? Type1252 { get; set; } /// /// /// - public global::RetellAI.UpdateConversationFlowResponseStatus3? Type1253 { get; set; } + public global::RetellAI.UpdateAgentResponseStatus4? Type1253 { get; set; } /// /// /// - public global::RetellAI.UpdateConversationFlowResponse4? Type1254 { get; set; } + public global::RetellAI.UpdateChatAgentResponse? Type1254 { get; set; } /// /// /// - public global::RetellAI.UpdateConversationFlowResponseStatus4? Type1255 { get; set; } + public global::RetellAI.UpdateChatAgentResponseStatus? Type1255 { get; set; } /// /// /// - public global::RetellAI.UpdateConversationFlowResponse5? Type1256 { get; set; } + public global::RetellAI.UpdateChatAgentResponse2? Type1256 { get; set; } /// /// /// - public global::RetellAI.UpdateConversationFlowResponseStatus5? Type1257 { get; set; } + public global::RetellAI.UpdateChatAgentResponseStatus2? Type1257 { get; set; } /// /// /// - public global::RetellAI.UpdatePhoneNumberResponse? Type1258 { get; set; } + public global::RetellAI.UpdateChatAgentResponse3? Type1258 { get; set; } /// /// /// - public global::RetellAI.UpdatePhoneNumberResponseStatus? Type1259 { get; set; } + public global::RetellAI.UpdateChatAgentResponseStatus3? Type1259 { get; set; } /// /// /// - public global::RetellAI.UpdatePhoneNumberResponse2? Type1260 { get; set; } + public global::RetellAI.UpdateChatAgentResponse4? Type1260 { get; set; } /// /// /// - public global::RetellAI.UpdatePhoneNumberResponseStatus2? Type1261 { get; set; } + public global::RetellAI.UpdateChatAgentResponseStatus4? Type1261 { get; set; } /// /// /// - public global::RetellAI.UpdatePhoneNumberResponse3? Type1262 { get; set; } + public global::RetellAI.UpdateChatMetadataResponse? Type1262 { get; set; } /// /// /// - public global::RetellAI.UpdatePhoneNumberResponseStatus3? Type1263 { get; set; } + public global::RetellAI.UpdateChatMetadataResponseStatus? Type1263 { get; set; } /// /// /// - public global::RetellAI.UpdatePhoneNumberResponse4? Type1264 { get; set; } + public global::RetellAI.UpdateChatMetadataResponse2? Type1264 { get; set; } /// /// /// - public global::RetellAI.UpdatePhoneNumberResponseStatus4? Type1265 { get; set; } + public global::RetellAI.UpdateChatMetadataResponseStatus2? Type1265 { get; set; } /// /// /// - public global::RetellAI.UpdateRetellLLMResponse? Type1266 { get; set; } + public global::RetellAI.UpdateChatMetadataResponse3? Type1266 { get; set; } /// /// /// - public global::RetellAI.UpdateRetellLLMResponseStatus? Type1267 { get; set; } + public global::RetellAI.UpdateChatMetadataResponseStatus3? Type1267 { get; set; } /// /// /// - public global::RetellAI.UpdateRetellLLMResponse2? Type1268 { get; set; } + public global::RetellAI.UpdateChatMetadataResponse4? Type1268 { get; set; } /// /// /// - public global::RetellAI.UpdateRetellLLMResponseStatus2? Type1269 { get; set; } + public global::RetellAI.UpdateChatMetadataResponseStatus4? Type1269 { get; set; } /// /// /// - public global::RetellAI.UpdateRetellLLMResponse3? Type1270 { get; set; } + public global::RetellAI.UpdateConversationFlowComponentResponse? Type1270 { get; set; } /// /// /// - public global::RetellAI.UpdateRetellLLMResponseStatus3? Type1271 { get; set; } + public global::RetellAI.UpdateConversationFlowComponentResponseStatus? Type1271 { get; set; } /// /// /// - public global::RetellAI.UpdateRetellLLMResponse4? Type1272 { get; set; } + public global::RetellAI.UpdateConversationFlowComponentResponse2? Type1272 { get; set; } /// /// /// - public global::RetellAI.UpdateRetellLLMResponseStatus4? Type1273 { get; set; } + public global::RetellAI.UpdateConversationFlowComponentResponseStatus2? Type1273 { get; set; } /// /// /// - public global::RetellAI.CreatePhoneCallResponse? Type1274 { get; set; } + public global::RetellAI.UpdateConversationFlowComponentResponse3? Type1274 { get; set; } /// /// /// - public global::RetellAI.CreatePhoneCallResponseStatus? Type1275 { get; set; } + public global::RetellAI.UpdateConversationFlowComponentResponseStatus3? Type1275 { get; set; } /// /// /// - public global::RetellAI.CreatePhoneCallResponse2? Type1276 { get; set; } + public global::RetellAI.UpdateConversationFlowComponentResponse4? Type1276 { get; set; } /// /// /// - public global::RetellAI.CreatePhoneCallResponseStatus2? Type1277 { get; set; } + public global::RetellAI.UpdateConversationFlowComponentResponseStatus4? Type1277 { get; set; } /// /// /// - public global::RetellAI.CreatePhoneCallResponse3? Type1278 { get; set; } + public global::RetellAI.UpdateConversationFlowComponentResponse5? Type1278 { get; set; } /// /// /// - public global::RetellAI.CreatePhoneCallResponseStatus3? Type1279 { get; set; } + public global::RetellAI.UpdateConversationFlowComponentResponseStatus5? Type1279 { get; set; } /// /// /// - public global::RetellAI.CreatePhoneCallResponse4? Type1280 { get; set; } + public global::RetellAI.UpdateConversationFlowResponse? Type1280 { get; set; } /// /// /// - public global::RetellAI.CreatePhoneCallResponseStatus4? Type1281 { get; set; } + public global::RetellAI.UpdateConversationFlowResponseStatus? Type1281 { get; set; } /// /// /// - public global::RetellAI.CreatePhoneCallResponse5? Type1282 { get; set; } + public global::RetellAI.UpdateConversationFlowResponse2? Type1282 { get; set; } /// /// /// - public global::RetellAI.CreatePhoneCallResponseStatus5? Type1283 { get; set; } + public global::RetellAI.UpdateConversationFlowResponseStatus2? Type1283 { get; set; } /// /// /// - public global::RetellAI.CreatePhoneCallResponse6? Type1284 { get; set; } + public global::RetellAI.UpdateConversationFlowResponse3? Type1284 { get; set; } /// /// /// - public global::RetellAI.CreatePhoneCallResponseStatus6? Type1285 { get; set; } + public global::RetellAI.UpdateConversationFlowResponseStatus3? Type1285 { get; set; } /// /// /// - public global::RetellAI.CreateWebCallResponse? Type1286 { get; set; } + public global::RetellAI.UpdateConversationFlowResponse4? Type1286 { get; set; } /// /// /// - public global::RetellAI.CreateWebCallResponseStatus? Type1287 { get; set; } + public global::RetellAI.UpdateConversationFlowResponseStatus4? Type1287 { get; set; } /// /// /// - public global::RetellAI.CreateWebCallResponse2? Type1288 { get; set; } + public global::RetellAI.UpdateConversationFlowResponse5? Type1288 { get; set; } /// /// /// - public global::RetellAI.CreateWebCallResponseStatus2? Type1289 { get; set; } + public global::RetellAI.UpdateConversationFlowResponseStatus5? Type1289 { get; set; } /// /// /// - public global::RetellAI.CreateWebCallResponse3? Type1290 { get; set; } + public global::RetellAI.UpdatePhoneNumberResponse? Type1290 { get; set; } /// /// /// - public global::RetellAI.CreateWebCallResponseStatus3? Type1291 { get; set; } + public global::RetellAI.UpdatePhoneNumberResponseStatus? Type1291 { get; set; } /// /// /// - public global::RetellAI.CreateWebCallResponse4? Type1292 { get; set; } + public global::RetellAI.UpdatePhoneNumberResponse2? Type1292 { get; set; } /// /// /// - public global::RetellAI.CreateWebCallResponseStatus4? Type1293 { get; set; } + public global::RetellAI.UpdatePhoneNumberResponseStatus2? Type1293 { get; set; } /// /// /// - public global::RetellAI.CreateWebCallResponse5? Type1294 { get; set; } + public global::RetellAI.UpdatePhoneNumberResponse3? Type1294 { get; set; } /// /// /// - public global::RetellAI.CreateWebCallResponseStatus5? Type1295 { get; set; } + public global::RetellAI.UpdatePhoneNumberResponseStatus3? Type1295 { get; set; } /// /// /// - public global::RetellAI.CreateWebCallResponse6? Type1296 { get; set; } + public global::RetellAI.UpdatePhoneNumberResponse4? Type1296 { get; set; } /// /// /// - public global::RetellAI.CreateWebCallResponseStatus6? Type1297 { get; set; } + public global::RetellAI.UpdatePhoneNumberResponseStatus4? Type1297 { get; set; } /// /// /// - public global::RetellAI.DeleteCallResponse? Type1298 { get; set; } + public global::RetellAI.UpdateRetellLLMResponse? Type1298 { get; set; } /// /// /// - public global::RetellAI.DeleteCallResponseStatus? Type1299 { get; set; } + public global::RetellAI.UpdateRetellLLMResponseStatus? Type1299 { get; set; } /// /// /// - public global::RetellAI.DeleteCallResponse2? Type1300 { get; set; } + public global::RetellAI.UpdateRetellLLMResponse2? Type1300 { get; set; } /// /// /// - public global::RetellAI.DeleteCallResponseStatus2? Type1301 { get; set; } + public global::RetellAI.UpdateRetellLLMResponseStatus2? Type1301 { get; set; } /// /// /// - public global::RetellAI.DeleteCallResponse3? Type1302 { get; set; } + public global::RetellAI.UpdateRetellLLMResponse3? Type1302 { get; set; } /// /// /// - public global::RetellAI.DeleteCallResponseStatus3? Type1303 { get; set; } + public global::RetellAI.UpdateRetellLLMResponseStatus3? Type1303 { get; set; } /// /// /// - public global::RetellAI.DeleteCallResponse4? Type1304 { get; set; } + public global::RetellAI.UpdateRetellLLMResponse4? Type1304 { get; set; } /// /// /// - public global::RetellAI.DeleteCallResponseStatus4? Type1305 { get; set; } + public global::RetellAI.UpdateRetellLLMResponseStatus4? Type1305 { get; set; } /// /// /// - public global::RetellAI.GetCallResponse? Type1306 { get; set; } + public global::RetellAI.CreatePhoneCallResponse? Type1306 { get; set; } /// /// /// - public global::RetellAI.GetCallResponseStatus? Type1307 { get; set; } + public global::RetellAI.CreatePhoneCallResponseStatus? Type1307 { get; set; } /// /// /// - public global::RetellAI.GetCallResponse2? Type1308 { get; set; } + public global::RetellAI.CreatePhoneCallResponse2? Type1308 { get; set; } /// /// /// - public global::RetellAI.GetCallResponseStatus2? Type1309 { get; set; } + public global::RetellAI.CreatePhoneCallResponseStatus2? Type1309 { get; set; } /// /// /// - public global::RetellAI.GetCallResponse3? Type1310 { get; set; } + public global::RetellAI.CreatePhoneCallResponse3? Type1310 { get; set; } /// /// /// - public global::RetellAI.GetCallResponseStatus3? Type1311 { get; set; } + public global::RetellAI.CreatePhoneCallResponseStatus3? Type1311 { get; set; } /// /// /// - public global::RetellAI.GetCallResponse4? Type1312 { get; set; } + public global::RetellAI.CreatePhoneCallResponse4? Type1312 { get; set; } /// /// /// - public global::RetellAI.GetCallResponseStatus4? Type1313 { get; set; } + public global::RetellAI.CreatePhoneCallResponseStatus4? Type1313 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1314 { get; set; } + public global::RetellAI.CreatePhoneCallResponse5? Type1314 { get; set; } /// /// /// - public global::RetellAI.ListCallsResponse? Type1315 { get; set; } + public global::RetellAI.CreatePhoneCallResponseStatus5? Type1315 { get; set; } /// /// /// - public global::RetellAI.ListCallsResponseStatus? Type1316 { get; set; } + public global::RetellAI.CreatePhoneCallResponse6? Type1316 { get; set; } /// /// /// - public global::RetellAI.ListCallsResponse2? Type1317 { get; set; } + public global::RetellAI.CreatePhoneCallResponseStatus6? Type1317 { get; set; } /// /// /// - public global::RetellAI.ListCallsResponseStatus2? Type1318 { get; set; } + public global::RetellAI.CreateWebCallResponse? Type1318 { get; set; } /// /// /// - public global::RetellAI.ListCallsResponse3? Type1319 { get; set; } + public global::RetellAI.CreateWebCallResponseStatus? Type1319 { get; set; } /// /// /// - public global::RetellAI.ListCallsResponseStatus3? Type1320 { get; set; } + public global::RetellAI.CreateWebCallResponse2? Type1320 { get; set; } /// /// /// - public global::RetellAI.AllOf? Type1321 { get; set; } + public global::RetellAI.CreateWebCallResponseStatus2? Type1321 { get; set; } /// /// /// - public global::RetellAI.ListExportRequestsV2Response2? Type1322 { get; set; } + public global::RetellAI.CreateWebCallResponse3? Type1322 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1323 { get; set; } + public global::RetellAI.CreateWebCallResponseStatus3? Type1323 { get; set; } /// /// /// - public global::RetellAI.ListExportRequestsV2ResponseItem? Type1324 { get; set; } + public global::RetellAI.CreateWebCallResponse4? Type1324 { get; set; } /// /// /// - public global::RetellAI.ListExportRequestsV2ResponseItemChannel? Type1325 { get; set; } + public global::RetellAI.CreateWebCallResponseStatus4? Type1325 { get; set; } /// /// /// - public global::RetellAI.ListExportRequestsV2ResponseItemStatus? Type1326 { get; set; } + public global::RetellAI.CreateWebCallResponse5? Type1326 { get; set; } /// /// /// - public global::RetellAI.ListExportRequestsV2Response3? Type1327 { get; set; } + public global::RetellAI.CreateWebCallResponseStatus5? Type1327 { get; set; } /// /// /// - public global::RetellAI.ListExportRequestsV2ResponseStatus? Type1328 { get; set; } + public global::RetellAI.CreateWebCallResponse6? Type1328 { get; set; } /// /// /// - public global::RetellAI.ListExportRequestsV2Response4? Type1329 { get; set; } + public global::RetellAI.CreateWebCallResponseStatus6? Type1329 { get; set; } /// /// /// - public global::RetellAI.ListExportRequestsV2ResponseStatus2? Type1330 { get; set; } + public global::RetellAI.DeleteCallResponse? Type1330 { get; set; } /// /// /// - public global::RetellAI.ListExportRequestsV2Response5? Type1331 { get; set; } + public global::RetellAI.DeleteCallResponseStatus? Type1331 { get; set; } /// /// /// - public global::RetellAI.ListExportRequestsV2ResponseStatus3? Type1332 { get; set; } + public global::RetellAI.DeleteCallResponse2? Type1332 { get; set; } /// /// /// - public global::RetellAI.ListExportRequestsV2Response6? Type1333 { get; set; } + public global::RetellAI.DeleteCallResponseStatus2? Type1333 { get; set; } /// /// /// - public global::RetellAI.ListExportRequestsV2ResponseStatus4? Type1334 { get; set; } + public global::RetellAI.DeleteCallResponse3? Type1334 { get; set; } /// /// /// - public global::RetellAI.RegisterPhoneCallResponse? Type1335 { get; set; } + public global::RetellAI.DeleteCallResponseStatus3? Type1335 { get; set; } /// /// /// - public global::RetellAI.RegisterPhoneCallResponseStatus? Type1336 { get; set; } + public global::RetellAI.DeleteCallResponse4? Type1336 { get; set; } /// /// /// - public global::RetellAI.RegisterPhoneCallResponse2? Type1337 { get; set; } + public global::RetellAI.DeleteCallResponseStatus4? Type1337 { get; set; } /// /// /// - public global::RetellAI.RegisterPhoneCallResponseStatus2? Type1338 { get; set; } + public global::RetellAI.GetCallResponse? Type1338 { get; set; } /// /// /// - public global::RetellAI.RegisterPhoneCallResponse3? Type1339 { get; set; } + public global::RetellAI.GetCallResponseStatus? Type1339 { get; set; } /// /// /// - public global::RetellAI.RegisterPhoneCallResponseStatus3? Type1340 { get; set; } + public global::RetellAI.GetCallResponse2? Type1340 { get; set; } /// /// /// - public global::RetellAI.RegisterPhoneCallResponse4? Type1341 { get; set; } + public global::RetellAI.GetCallResponseStatus2? Type1341 { get; set; } /// /// /// - public global::RetellAI.RegisterPhoneCallResponseStatus4? Type1342 { get; set; } + public global::RetellAI.GetCallResponse3? Type1342 { get; set; } /// /// /// - public global::RetellAI.RegisterPhoneCallResponse5? Type1343 { get; set; } + public global::RetellAI.GetCallResponseStatus3? Type1343 { get; set; } /// /// /// - public global::RetellAI.RegisterPhoneCallResponseStatus5? Type1344 { get; set; } + public global::RetellAI.GetCallResponse4? Type1344 { get; set; } /// /// /// - public global::RetellAI.RegisterPhoneCallResponse6? Type1345 { get; set; } + public global::RetellAI.GetCallResponseStatus4? Type1345 { get; set; } /// /// /// - public global::RetellAI.RegisterPhoneCallResponseStatus6? Type1346 { get; set; } + public global::System.Collections.Generic.IList? Type1346 { get; set; } /// /// /// - public global::RetellAI.UpdateCallMetadataResponse? Type1347 { get; set; } + public global::RetellAI.ListCallsResponse? Type1347 { get; set; } /// /// /// - public global::RetellAI.UpdateCallMetadataResponseStatus? Type1348 { get; set; } + public global::RetellAI.ListCallsResponseStatus? Type1348 { get; set; } /// /// /// - public global::RetellAI.UpdateCallMetadataResponse2? Type1349 { get; set; } + public global::RetellAI.ListCallsResponse2? Type1349 { get; set; } /// /// /// - public global::RetellAI.UpdateCallMetadataResponseStatus2? Type1350 { get; set; } + public global::RetellAI.ListCallsResponseStatus2? Type1350 { get; set; } /// /// /// - public global::RetellAI.UpdateCallMetadataResponse3? Type1351 { get; set; } + public global::RetellAI.ListCallsResponse3? Type1351 { get; set; } /// /// /// - public global::RetellAI.UpdateCallMetadataResponseStatus3? Type1352 { get; set; } + public global::RetellAI.ListCallsResponseStatus3? Type1352 { get; set; } /// /// /// - public global::RetellAI.UpdateCallMetadataResponse4? Type1353 { get; set; } + public global::RetellAI.AllOf? Type1353 { get; set; } /// /// /// - public global::RetellAI.UpdateCallMetadataResponseStatus4? Type1354 { get; set; } + public global::RetellAI.ListCallsV3Response2? Type1354 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1355 { get; set; } + /// + /// + /// + public global::RetellAI.ListCallsV3Response3? Type1356 { get; set; } + /// + /// + /// + public global::RetellAI.ListCallsV3ResponseStatus? Type1357 { get; set; } + /// + /// + /// + public global::RetellAI.ListCallsV3Response4? Type1358 { get; set; } + /// + /// + /// + public global::RetellAI.ListCallsV3ResponseStatus2? Type1359 { get; set; } + /// + /// + /// + public global::RetellAI.ListCallsV3Response5? Type1360 { get; set; } + /// + /// + /// + public global::RetellAI.ListCallsV3ResponseStatus3? Type1361 { get; set; } + /// + /// + /// + public global::RetellAI.ListCallsV3Response6? Type1362 { get; set; } + /// + /// + /// + public global::RetellAI.ListCallsV3ResponseStatus4? Type1363 { get; set; } + /// + /// + /// + public global::RetellAI.AllOf? Type1364 { get; set; } + /// + /// + /// + public global::RetellAI.ListExportRequestsV2Response2? Type1365 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1366 { get; set; } + /// + /// + /// + public global::RetellAI.ListExportRequestsV2ResponseItem? Type1367 { get; set; } + /// + /// + /// + public global::RetellAI.ListExportRequestsV2ResponseItemChannel? Type1368 { get; set; } + /// + /// + /// + public global::RetellAI.ListExportRequestsV2ResponseItemStatus? Type1369 { get; set; } + /// + /// + /// + public global::RetellAI.ListExportRequestsV2Response3? Type1370 { get; set; } + /// + /// + /// + public global::RetellAI.ListExportRequestsV2ResponseStatus? Type1371 { get; set; } + /// + /// + /// + public global::RetellAI.ListExportRequestsV2Response4? Type1372 { get; set; } + /// + /// + /// + public global::RetellAI.ListExportRequestsV2ResponseStatus2? Type1373 { get; set; } + /// + /// + /// + public global::RetellAI.ListExportRequestsV2Response5? Type1374 { get; set; } + /// + /// + /// + public global::RetellAI.ListExportRequestsV2ResponseStatus3? Type1375 { get; set; } + /// + /// + /// + public global::RetellAI.ListExportRequestsV2Response6? Type1376 { get; set; } + /// + /// + /// + public global::RetellAI.ListExportRequestsV2ResponseStatus4? Type1377 { get; set; } + /// + /// + /// + public global::RetellAI.RegisterPhoneCallResponse? Type1378 { get; set; } + /// + /// + /// + public global::RetellAI.RegisterPhoneCallResponseStatus? Type1379 { get; set; } + /// + /// + /// + public global::RetellAI.RegisterPhoneCallResponse2? Type1380 { get; set; } + /// + /// + /// + public global::RetellAI.RegisterPhoneCallResponseStatus2? Type1381 { get; set; } + /// + /// + /// + public global::RetellAI.RegisterPhoneCallResponse3? Type1382 { get; set; } + /// + /// + /// + public global::RetellAI.RegisterPhoneCallResponseStatus3? Type1383 { get; set; } + /// + /// + /// + public global::RetellAI.RegisterPhoneCallResponse4? Type1384 { get; set; } + /// + /// + /// + public global::RetellAI.RegisterPhoneCallResponseStatus4? Type1385 { get; set; } + /// + /// + /// + public global::RetellAI.RegisterPhoneCallResponse5? Type1386 { get; set; } + /// + /// + /// + public global::RetellAI.RegisterPhoneCallResponseStatus5? Type1387 { get; set; } + /// + /// + /// + public global::RetellAI.RegisterPhoneCallResponse6? Type1388 { get; set; } + /// + /// + /// + public global::RetellAI.RegisterPhoneCallResponseStatus6? Type1389 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateCallMetadataResponse? Type1390 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateCallMetadataResponseStatus? Type1391 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateCallMetadataResponse2? Type1392 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateCallMetadataResponseStatus2? Type1393 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateCallMetadataResponse3? Type1394 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateCallMetadataResponseStatus3? Type1395 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateCallMetadataResponse4? Type1396 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateCallMetadataResponseStatus4? Type1397 { get; set; } /// /// @@ -5789,34 +5961,42 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType85 { get; set; } + public global::System.Collections.Generic.List? ListType85 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType86 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType87 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType86 { get; set; } + public global::System.Collections.Generic.List? ListType88 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType87 { get; set; } + public global::System.Collections.Generic.List? ListType89 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType88 { get; set; } + public global::System.Collections.Generic.List? ListType90 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType89 { get; set; } + public global::System.Collections.Generic.List? ListType91 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType90 { get; set; } + public global::System.Collections.Generic.List? ListType92 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType91 { get; set; } + public global::System.Collections.Generic.List? ListType93 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType92 { get; set; } + public global::System.Collections.Generic.List? ListType94 { get; set; } } } \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.AgentRequest.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.AgentRequest.g.cs index 1a850b2..e1990cc 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.AgentRequest.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.AgentRequest.g.cs @@ -264,14 +264,6 @@ public sealed partial class AgentRequest [global::System.Text.Json.Serialization.JsonPropertyName("pronunciation_dictionary")] public global::System.Collections.Generic.IList? PronunciationDictionary { get; set; } - /// - /// 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 - ///
- /// true - [global::System.Text.Json.Serialization.JsonPropertyName("normalize_for_speech")] - public bool? NormalizeForSpeech { get; set; } - /// /// 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 @@ -592,10 +584,6 @@ public sealed partial class AgentRequest /// /// 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 @@ -714,7 +702,6 @@ public AgentRequest( bool? optInSignedUrl, int? signedUrlExpirationMs, global::System.Collections.Generic.IList? pronunciationDictionary, - bool? normalizeForSpeech, int? endCallAfterSilenceMs, int? maxCallDurationMs, string? voicemailMessage, @@ -771,7 +758,6 @@ public AgentRequest( this.OptInSignedUrl = optInSignedUrl; this.SignedUrlExpirationMs = signedUrlExpirationMs; this.PronunciationDictionary = pronunciationDictionary; - this.NormalizeForSpeech = normalizeForSpeech; this.EndCallAfterSilenceMs = endCallAfterSilenceMs; this.MaxCallDurationMs = maxCallDurationMs; this.VoicemailMessage = voicemailMessage; diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.AgentRequestCustomSttConfig.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.AgentRequestCustomSttConfig.g.cs index 41ac13a..d6896f8 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.AgentRequestCustomSttConfig.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.AgentRequestCustomSttConfig.g.cs @@ -17,7 +17,7 @@ public sealed partial class AgentRequestCustomSttConfig public required global::RetellAI.AgentRequestCustomSttConfigProvider Provider { get; set; } /// - /// Endpointing timeout in milliseconds. Minimum is 100 for azure, 10 for deepgram. + /// Endpointing timeout in milliseconds. Minimum is 100 for Azure, 10 for Deepgram, 500 for Soniox /// [global::System.Text.Json.Serialization.JsonPropertyName("endpointing_ms")] [global::System.Text.Json.Serialization.JsonRequired] @@ -36,7 +36,7 @@ public sealed partial class AgentRequestCustomSttConfig /// The STT provider to use. /// /// - /// Endpointing timeout in milliseconds. Minimum is 100 for azure, 10 for deepgram. + /// Endpointing timeout in milliseconds. Minimum is 100 for Azure, 10 for Deepgram, 500 for Soniox /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.AgentRequestCustomSttConfigProvider.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.AgentRequestCustomSttConfigProvider.g.cs index 6282e18..49fac88 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.AgentRequestCustomSttConfigProvider.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.AgentRequestCustomSttConfigProvider.g.cs @@ -16,6 +16,10 @@ public enum AgentRequestCustomSttConfigProvider /// ///
Deepgram, + /// + /// + /// + Soniox, } /// @@ -32,6 +36,7 @@ public static string ToValueString(this AgentRequestCustomSttConfigProvider valu { AgentRequestCustomSttConfigProvider.Azure => "azure", AgentRequestCustomSttConfigProvider.Deepgram => "deepgram", + AgentRequestCustomSttConfigProvider.Soniox => "soniox", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -44,6 +49,7 @@ public static string ToValueString(this AgentRequestCustomSttConfigProvider valu { "azure" => AgentRequestCustomSttConfigProvider.Azure, "deepgram" => AgentRequestCustomSttConfigProvider.Deepgram, + "soniox" => AgentRequestCustomSttConfigProvider.Soniox, _ => null, }; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.AgentRequestVoiceModel.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.AgentRequestVoiceModel.g.cs index df55514..eb483bc 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.AgentRequestVoiceModel.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.AgentRequestVoiceModel.g.cs @@ -47,6 +47,10 @@ public enum AgentRequestVoiceModel /// /// /// + S2Pro, + /// + /// + /// Sonic3, /// /// @@ -87,6 +91,7 @@ public static string ToValueString(this AgentRequestVoiceModel value) AgentRequestVoiceModel.Gpt4oMiniTts => "gpt-4o-mini-tts", AgentRequestVoiceModel.OpenapiJsonNullSentinelValue2bf936000fe44250987aE5ddb203e464 => "openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464", AgentRequestVoiceModel.S1 => "s1", + AgentRequestVoiceModel.S2Pro => "s2-pro", AgentRequestVoiceModel.Sonic3 => "sonic-3", AgentRequestVoiceModel.Sonic3Latest => "sonic-3-latest", AgentRequestVoiceModel.Speech02Turbo => "speech-02-turbo", @@ -111,6 +116,7 @@ public static string ToValueString(this AgentRequestVoiceModel value) "gpt-4o-mini-tts" => AgentRequestVoiceModel.Gpt4oMiniTts, "openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464" => AgentRequestVoiceModel.OpenapiJsonNullSentinelValue2bf936000fe44250987aE5ddb203e464, "s1" => AgentRequestVoiceModel.S1, + "s2-pro" => AgentRequestVoiceModel.S2Pro, "sonic-3" => AgentRequestVoiceModel.Sonic3, "sonic-3-latest" => AgentRequestVoiceModel.Sonic3Latest, "speech-02-turbo" => AgentRequestVoiceModel.Speech02Turbo, diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ChatMessageInput.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ChatMessageInput.Json.g.cs new file mode 100644 index 0000000..357afc1 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ChatMessageInput.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace RetellAI +{ + public readonly partial struct ChatMessageInput + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.ChatMessageInput? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.ChatMessageInput), + jsonSerializerContext) as global::RetellAI.ChatMessageInput?; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::RetellAI.ChatMessageInput? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::RetellAI.ChatMessageInput), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.ChatMessageInput?; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ChatMessageInput.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ChatMessageInput.g.cs new file mode 100644 index 0000000..ef4b77d --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ChatMessageInput.g.cs @@ -0,0 +1,377 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace RetellAI +{ + /// + /// Same shape as chat completion messages. message_id and created_timestamp are optional — server generates them if omitted. + /// + public readonly partial struct ChatMessageInput : global::System.IEquatable + { + /// + /// + /// +#if NET6_0_OR_GREATER + public global::RetellAI.MessageBase? Base { get; init; } +#else + public global::RetellAI.MessageBase? Base { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Base))] +#endif + public bool IsBase => Base != null; + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::RetellAI.ToolCallInvocationMessageBase? ToolCallInvocationBase { get; init; } +#else + public global::RetellAI.ToolCallInvocationMessageBase? ToolCallInvocationBase { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ToolCallInvocationBase))] +#endif + public bool IsToolCallInvocationBase => ToolCallInvocationBase != null; + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::RetellAI.ToolCallResultMessageBase? ToolCallResultBase { get; init; } +#else + public global::RetellAI.ToolCallResultMessageBase? ToolCallResultBase { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ToolCallResultBase))] +#endif + public bool IsToolCallResultBase => ToolCallResultBase != null; + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::RetellAI.NodeTransitionMessageBase? NodeTransitionBase { get; init; } +#else + public global::RetellAI.NodeTransitionMessageBase? NodeTransitionBase { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(NodeTransitionBase))] +#endif + public bool IsNodeTransitionBase => NodeTransitionBase != null; + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::RetellAI.StateTransitionMessageBase? StateTransitionBase { get; init; } +#else + public global::RetellAI.StateTransitionMessageBase? StateTransitionBase { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(StateTransitionBase))] +#endif + public bool IsStateTransitionBase => StateTransitionBase != null; + /// + /// + /// + public static implicit operator ChatMessageInput(global::RetellAI.MessageBase value) => new ChatMessageInput((global::RetellAI.MessageBase?)value); + + /// + /// + /// + public static implicit operator global::RetellAI.MessageBase?(ChatMessageInput @this) => @this.Base; + + /// + /// + /// + public ChatMessageInput(global::RetellAI.MessageBase? value) + { + Base = value; + } + + /// + /// + /// + public static implicit operator ChatMessageInput(global::RetellAI.ToolCallInvocationMessageBase value) => new ChatMessageInput((global::RetellAI.ToolCallInvocationMessageBase?)value); + + /// + /// + /// + public static implicit operator global::RetellAI.ToolCallInvocationMessageBase?(ChatMessageInput @this) => @this.ToolCallInvocationBase; + + /// + /// + /// + public ChatMessageInput(global::RetellAI.ToolCallInvocationMessageBase? value) + { + ToolCallInvocationBase = value; + } + + /// + /// + /// + public static implicit operator ChatMessageInput(global::RetellAI.ToolCallResultMessageBase value) => new ChatMessageInput((global::RetellAI.ToolCallResultMessageBase?)value); + + /// + /// + /// + public static implicit operator global::RetellAI.ToolCallResultMessageBase?(ChatMessageInput @this) => @this.ToolCallResultBase; + + /// + /// + /// + public ChatMessageInput(global::RetellAI.ToolCallResultMessageBase? value) + { + ToolCallResultBase = value; + } + + /// + /// + /// + public static implicit operator ChatMessageInput(global::RetellAI.NodeTransitionMessageBase value) => new ChatMessageInput((global::RetellAI.NodeTransitionMessageBase?)value); + + /// + /// + /// + public static implicit operator global::RetellAI.NodeTransitionMessageBase?(ChatMessageInput @this) => @this.NodeTransitionBase; + + /// + /// + /// + public ChatMessageInput(global::RetellAI.NodeTransitionMessageBase? value) + { + NodeTransitionBase = value; + } + + /// + /// + /// + public static implicit operator ChatMessageInput(global::RetellAI.StateTransitionMessageBase value) => new ChatMessageInput((global::RetellAI.StateTransitionMessageBase?)value); + + /// + /// + /// + public static implicit operator global::RetellAI.StateTransitionMessageBase?(ChatMessageInput @this) => @this.StateTransitionBase; + + /// + /// + /// + public ChatMessageInput(global::RetellAI.StateTransitionMessageBase? value) + { + StateTransitionBase = value; + } + + /// + /// + /// + public ChatMessageInput( + global::RetellAI.MessageBase? @base, + global::RetellAI.ToolCallInvocationMessageBase? toolCallInvocationBase, + global::RetellAI.ToolCallResultMessageBase? toolCallResultBase, + global::RetellAI.NodeTransitionMessageBase? nodeTransitionBase, + global::RetellAI.StateTransitionMessageBase? stateTransitionBase + ) + { + Base = @base; + ToolCallInvocationBase = toolCallInvocationBase; + ToolCallResultBase = toolCallResultBase; + NodeTransitionBase = nodeTransitionBase; + StateTransitionBase = stateTransitionBase; + } + + /// + /// + /// + public object? Object => + StateTransitionBase as object ?? + NodeTransitionBase as object ?? + ToolCallResultBase as object ?? + ToolCallInvocationBase as object ?? + Base as object + ; + + /// + /// + /// + public override string? ToString() => + Base?.ToString() ?? + ToolCallInvocationBase?.ToString() ?? + ToolCallResultBase?.ToString() ?? + NodeTransitionBase?.ToString() ?? + StateTransitionBase?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsBase && !IsToolCallInvocationBase && !IsToolCallResultBase && !IsNodeTransitionBase && !IsStateTransitionBase || !IsBase && IsToolCallInvocationBase && !IsToolCallResultBase && !IsNodeTransitionBase && !IsStateTransitionBase || !IsBase && !IsToolCallInvocationBase && IsToolCallResultBase && !IsNodeTransitionBase && !IsStateTransitionBase || !IsBase && !IsToolCallInvocationBase && !IsToolCallResultBase && IsNodeTransitionBase && !IsStateTransitionBase || !IsBase && !IsToolCallInvocationBase && !IsToolCallResultBase && !IsNodeTransitionBase && IsStateTransitionBase; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? @base = null, + global::System.Func? toolCallInvocationBase = null, + global::System.Func? toolCallResultBase = null, + global::System.Func? nodeTransitionBase = null, + global::System.Func? stateTransitionBase = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsBase && @base != null) + { + return @base(Base!); + } + else if (IsToolCallInvocationBase && toolCallInvocationBase != null) + { + return toolCallInvocationBase(ToolCallInvocationBase!); + } + else if (IsToolCallResultBase && toolCallResultBase != null) + { + return toolCallResultBase(ToolCallResultBase!); + } + else if (IsNodeTransitionBase && nodeTransitionBase != null) + { + return nodeTransitionBase(NodeTransitionBase!); + } + else if (IsStateTransitionBase && stateTransitionBase != null) + { + return stateTransitionBase(StateTransitionBase!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? @base = null, + global::System.Action? toolCallInvocationBase = null, + global::System.Action? toolCallResultBase = null, + global::System.Action? nodeTransitionBase = null, + global::System.Action? stateTransitionBase = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsBase) + { + @base?.Invoke(Base!); + } + else if (IsToolCallInvocationBase) + { + toolCallInvocationBase?.Invoke(ToolCallInvocationBase!); + } + else if (IsToolCallResultBase) + { + toolCallResultBase?.Invoke(ToolCallResultBase!); + } + else if (IsNodeTransitionBase) + { + nodeTransitionBase?.Invoke(NodeTransitionBase!); + } + else if (IsStateTransitionBase) + { + stateTransitionBase?.Invoke(StateTransitionBase!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Base, + typeof(global::RetellAI.MessageBase), + ToolCallInvocationBase, + typeof(global::RetellAI.ToolCallInvocationMessageBase), + ToolCallResultBase, + typeof(global::RetellAI.ToolCallResultMessageBase), + NodeTransitionBase, + typeof(global::RetellAI.NodeTransitionMessageBase), + StateTransitionBase, + typeof(global::RetellAI.StateTransitionMessageBase), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(ChatMessageInput other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Base, other.Base) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ToolCallInvocationBase, other.ToolCallInvocationBase) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ToolCallResultBase, other.ToolCallResultBase) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(NodeTransitionBase, other.NodeTransitionBase) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(StateTransitionBase, other.StateTransitionBase) + ; + } + + /// + /// + /// + public static bool operator ==(ChatMessageInput obj1, ChatMessageInput obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(ChatMessageInput obj1, ChatMessageInput obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is ChatMessageInput o && Equals(o); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CodeNodeVariant2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CodeNodeVariant2.g.cs index 45cb222..1dc0c5b 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.CodeNodeVariant2.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CodeNodeVariant2.g.cs @@ -56,6 +56,12 @@ public sealed partial class CodeNodeVariant2 [global::System.Text.Json.Serialization.JsonRequired] public required bool WaitForResult { get; set; } + /// + /// If true, play a typing sound while code executes. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enable_typing_sound")] + public bool? EnableTypingSound { get; set; } + /// /// /// @@ -104,6 +110,9 @@ public sealed partial class CodeNodeVariant2 /// Whether to speak during code execution /// /// + /// + /// If true, play a typing sound while code executes. + /// /// /// /// @@ -118,6 +127,7 @@ public CodeNodeVariant2( global::System.Collections.Generic.Dictionary? responseVariables, bool? speakDuringExecution, global::RetellAI.NodeInstruction? instruction, + bool? enableTypingSound, global::System.Collections.Generic.IList? edges, global::RetellAI.ElseEdge? elseEdge, global::System.Collections.Generic.IList? finetuneTransitionExamples) @@ -129,6 +139,7 @@ public CodeNodeVariant2( this.SpeakDuringExecution = speakDuringExecution; this.Instruction = instruction; this.WaitForResult = waitForResult; + this.EnableTypingSound = enableTypingSound; this.Edges = edges; this.ElseEdge = elseEdge; this.FinetuneTransitionExamples = finetuneTransitionExamples; diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CodeTool.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CodeTool.g.cs index 77b5a64..86d7f74 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.CodeTool.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CodeTool.g.cs @@ -75,6 +75,12 @@ public sealed partial class CodeTool [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.CodeToolExecutionMessageTypeJsonConverter))] public global::RetellAI.CodeToolExecutionMessageType? ExecutionMessageType { get; set; } + /// + /// If true, play a typing sound on the agent audio track while this tool is executing. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enable_typing_sound")] + public bool? EnableTypingSound { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -114,6 +120,9 @@ public sealed partial class CodeTool /// /// Type of execution message. "prompt" means the agent will use execution_message_description as a prompt to generate the message. "static_text" means the agent will speak the execution_message_description directly. Defaults to "prompt". /// + /// + /// If true, play a typing sound on the agent audio track while this tool is executing. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -127,7 +136,8 @@ public CodeTool( bool? speakDuringExecution, bool? speakAfterExecution, string? executionMessageDescription, - global::RetellAI.CodeToolExecutionMessageType? executionMessageType) + global::RetellAI.CodeToolExecutionMessageType? executionMessageType, + bool? enableTypingSound) { this.Type = type; this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); @@ -139,6 +149,7 @@ public CodeTool( this.SpeakAfterExecution = speakAfterExecution; this.ExecutionMessageDescription = executionMessageDescription; this.ExecutionMessageType = executionMessageType; + this.EnableTypingSound = enableTypingSound; } /// diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CreatePhoneNumberRequest.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CreatePhoneNumberRequest.g.cs index 984664b..9858260 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.CreatePhoneNumberRequest.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CreatePhoneNumberRequest.g.cs @@ -1,6 +1,4 @@ -#pragma warning disable CS0618 // Type or member is obsolete - #nullable enable namespace RetellAI @@ -11,49 +9,13 @@ namespace RetellAI public sealed partial class CreatePhoneNumberRequest { /// - /// Unique id of agent to bind to the number. The number will automatically use the agent when receiving inbound calls. If null, this number would not accept inbound call. Deprecated. See https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
- /// Example: oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD - ///
- /// oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD - [global::System.Text.Json.Serialization.JsonPropertyName("inbound_agent_id")] - [global::System.Obsolete("This property marked as deprecated.")] - public string? InboundAgentId { get; set; } - - /// - /// Unique id of agent to bind to the number. The number will automatically use the agent when conducting outbound calls. If null, this number would not be able to initiate outbound call without agent id override. Deprecated. See https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
- /// Example: oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD - ///
- /// oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD - [global::System.Text.Json.Serialization.JsonPropertyName("outbound_agent_id")] - [global::System.Obsolete("This property marked as deprecated.")] - public string? OutboundAgentId { get; set; } - - /// - /// Version of the inbound agent to bind to the number. If not provided, will default to latest version. Deprecated. See https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
- /// Example: 1 - ///
- /// 1 - [global::System.Text.Json.Serialization.JsonPropertyName("inbound_agent_version")] - [global::System.Obsolete("This property marked as deprecated.")] - public int? InboundAgentVersion { get; set; } - - /// - /// Version of the outbound agent to bind to the number. If not provided, will default to latest version. Deprecated. See https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
- /// Example: 1 - ///
- /// 1 - [global::System.Text.Json.Serialization.JsonPropertyName("outbound_agent_version")] - [global::System.Obsolete("This property marked as deprecated.")] - public int? OutboundAgentVersion { get; set; } - - /// - /// 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. /// [global::System.Text.Json.Serialization.JsonPropertyName("inbound_agents")] public global::System.Collections.Generic.IList? InboundAgents { get; set; } /// - /// 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. /// [global::System.Text.Json.Serialization.JsonPropertyName("outbound_agents")] public global::System.Collections.Generic.IList? OutboundAgents { get; set; } @@ -156,10 +118,10 @@ public sealed partial class CreatePhoneNumberRequest /// Initializes a new instance of the class. ///
/// - /// 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.Models.CustomTool.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CustomTool.g.cs index 29a3104..f59cabc 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.CustomTool.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CustomTool.g.cs @@ -109,6 +109,12 @@ public sealed partial class CustomTool [global::System.Text.Json.Serialization.JsonPropertyName("args_at_root")] public bool? ArgsAtRoot { get; set; } + /// + /// If true, play a typing sound on the agent audio track while this tool is executing. Useful when the tool takes a noticeable amount of time to prevent silence on the call. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enable_typing_sound")] + public bool? EnableTypingSound { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -164,6 +170,9 @@ public sealed partial class CustomTool /// /// If set to true, the parameters will be passed as root level JSON object instead of nested under "args". /// + /// + /// If true, play a typing sound on the agent audio track while this tool is executing. Useful when the tool takes a noticeable amount of time to prevent silence on the call. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -182,7 +191,8 @@ public CustomTool( string? executionMessageDescription, global::RetellAI.CustomToolExecutionMessageType? executionMessageType, int? timeoutMs, - bool? argsAtRoot) + bool? argsAtRoot, + bool? enableTypingSound) { this.Type = type; this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); @@ -199,6 +209,7 @@ public CustomTool( this.ExecutionMessageType = executionMessageType; this.TimeoutMs = timeoutMs; this.ArgsAtRoot = argsAtRoot; + this.EnableTypingSound = enableTypingSound; } /// diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.DisconnectionReason4.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.DisconnectionReason4.g.cs index 8c0e830..d9c7458 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.DisconnectionReason4.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.DisconnectionReason4.g.cs @@ -83,6 +83,10 @@ public enum DisconnectionReason4 /// /// /// + ManualStopped, + /// + /// + /// MarkedAsSpam, /// /// @@ -164,6 +168,7 @@ public static string ToValueString(this DisconnectionReason4 value) DisconnectionReason4.Inactivity => "inactivity", DisconnectionReason4.InvalidDestination => "invalid_destination", DisconnectionReason4.IvrReached => "ivr_reached", + DisconnectionReason4.ManualStopped => "manual_stopped", DisconnectionReason4.MarkedAsSpam => "marked_as_spam", DisconnectionReason4.MaxDurationReached => "max_duration_reached", DisconnectionReason4.NoValidPayment => "no_valid_payment", @@ -205,6 +210,7 @@ public static string ToValueString(this DisconnectionReason4 value) "inactivity" => DisconnectionReason4.Inactivity, "invalid_destination" => DisconnectionReason4.InvalidDestination, "ivr_reached" => DisconnectionReason4.IvrReached, + "manual_stopped" => DisconnectionReason4.ManualStopped, "marked_as_spam" => DisconnectionReason4.MarkedAsSpam, "max_duration_reached" => DisconnectionReason4.MaxDurationReached, "no_valid_payment" => DisconnectionReason4.NoValidPayment, diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.FunctionNodeVariant2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.FunctionNodeVariant2.g.cs index 49f5dc3..1b0aa1f 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.FunctionNodeVariant2.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.FunctionNodeVariant2.g.cs @@ -50,6 +50,12 @@ public sealed partial class FunctionNodeVariant2 [global::System.Text.Json.Serialization.JsonRequired] public required bool WaitForResult { get; set; } + /// + /// If true, play a typing sound while this function executes. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enable_typing_sound")] + public bool? EnableTypingSound { get; set; } + /// /// /// @@ -94,6 +100,9 @@ public sealed partial class FunctionNodeVariant2 /// Whether to speak during tool execution /// /// + /// + /// If true, play a typing sound while this function executes. + /// /// /// /// @@ -107,6 +116,7 @@ public FunctionNodeVariant2( global::RetellAI.FunctionNodeVariant2Type type, bool? speakDuringExecution, global::RetellAI.NodeInstruction? instruction, + bool? enableTypingSound, global::System.Collections.Generic.IList? edges, global::RetellAI.ElseEdge? elseEdge, global::System.Collections.Generic.IList? finetuneTransitionExamples) @@ -117,6 +127,7 @@ public FunctionNodeVariant2( this.SpeakDuringExecution = speakDuringExecution; this.Instruction = instruction; this.WaitForResult = waitForResult; + this.EnableTypingSound = enableTypingSound; this.Edges = edges; this.ElseEdge = elseEdge; this.FinetuneTransitionExamples = finetuneTransitionExamples; diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ImportPhoneNumberRequest.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ImportPhoneNumberRequest.g.cs index 57025fc..ef8b435 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.ImportPhoneNumberRequest.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ImportPhoneNumberRequest.g.cs @@ -1,6 +1,4 @@ -#pragma warning disable CS0618 // Type or member is obsolete - #nullable enable namespace RetellAI @@ -53,49 +51,13 @@ public sealed partial class ImportPhoneNumberRequest public string? SipTrunkAuthPassword { get; set; } /// - /// Unique id of agent to bind to the number. The number will automatically use the agent when receiving inbound calls. If null, this number would not accept inbound call. Deprecated. See https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
- /// Example: oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD - ///
- /// oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD - [global::System.Text.Json.Serialization.JsonPropertyName("inbound_agent_id")] - [global::System.Obsolete("This property marked as deprecated.")] - public string? InboundAgentId { get; set; } - - /// - /// Unique id of agent to bind to the number. The number will automatically use the agent when conducting outbound calls. If null, this number would not be able to initiate outbound call without agent id override. Deprecated. See https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
- /// Example: oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD - ///
- /// oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD - [global::System.Text.Json.Serialization.JsonPropertyName("outbound_agent_id")] - [global::System.Obsolete("This property marked as deprecated.")] - public string? OutboundAgentId { get; set; } - - /// - /// Version of the inbound agent to bind to the number. If not provided, will default to latest version. Deprecated. See https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
- /// Example: 1 - ///
- /// 1 - [global::System.Text.Json.Serialization.JsonPropertyName("inbound_agent_version")] - [global::System.Obsolete("This property marked as deprecated.")] - public int? InboundAgentVersion { get; set; } - - /// - /// Version of the outbound agent to bind to the number. If not provided, will default to latest version. Deprecated. See https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
- /// Example: 1 - ///
- /// 1 - [global::System.Text.Json.Serialization.JsonPropertyName("outbound_agent_version")] - [global::System.Obsolete("This property marked as deprecated.")] - public int? OutboundAgentVersion { get; set; } - - /// - /// 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. /// [global::System.Text.Json.Serialization.JsonPropertyName("inbound_agents")] public global::System.Collections.Generic.IList? InboundAgents { get; set; } /// - /// 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. /// [global::System.Text.Json.Serialization.JsonPropertyName("outbound_agents")] public global::System.Collections.Generic.IList? OutboundAgents { get; set; } @@ -170,10 +132,10 @@ public sealed partial class ImportPhoneNumberRequest /// 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.Models.LLMModel.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.LLMModel.g.cs index a34821f..4de35dc 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.LLMModel.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.LLMModel.g.cs @@ -35,6 +35,10 @@ public enum LLMModel /// /// /// + Gemini31FlashLite, + /// + /// + /// Gpt41, /// /// @@ -96,6 +100,7 @@ public static string ToValueString(this LLMModel value) LLMModel.Gemini25Flash => "gemini-2.5-flash", LLMModel.Gemini25FlashLite => "gemini-2.5-flash-lite", LLMModel.Gemini30Flash => "gemini-3.0-flash", + LLMModel.Gemini31FlashLite => "gemini-3.1-flash-lite", LLMModel.Gpt41 => "gpt-4.1", LLMModel.Gpt41Mini => "gpt-4.1-mini", LLMModel.Gpt41Nano => "gpt-4.1-nano", @@ -123,6 +128,7 @@ public static string ToValueString(this LLMModel value) "gemini-2.5-flash" => LLMModel.Gemini25Flash, "gemini-2.5-flash-lite" => LLMModel.Gemini25FlashLite, "gemini-3.0-flash" => LLMModel.Gemini30Flash, + "gemini-3.1-flash-lite" => LLMModel.Gemini31FlashLite, "gpt-4.1" => LLMModel.Gpt41, "gpt-4.1-mini" => LLMModel.Gpt41Mini, "gpt-4.1-nano" => LLMModel.Gpt41Nano, diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3Request.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3Request.Json.g.cs new file mode 100644 index 0000000..b638582 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3Request.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class ListCallsV3Request + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.ListCallsV3Request? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.ListCallsV3Request), + jsonSerializerContext) as global::RetellAI.ListCallsV3Request; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::RetellAI.ListCallsV3Request? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::RetellAI.ListCallsV3Request), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.ListCallsV3Request; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3Request.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3Request.g.cs new file mode 100644 index 0000000..e5a3a03 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3Request.g.cs @@ -0,0 +1,96 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class ListCallsV3Request + { + /// + /// Filter criteria for calls. All conditions are implicitly connected with AND. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_criteria")] + public global::RetellAI.CallFilter? FilterCriteria { get; set; } + + /// + /// Sort calls by `start_timestamp` in ascending or descending order.
+ /// Default Value: descending + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("sort_order")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.ListCallsV3RequestSortOrderJsonConverter))] + public global::RetellAI.ListCallsV3RequestSortOrder? SortOrder { get; set; } + + /// + /// Maximum number of calls to return.
+ /// Default Value: 50 + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("limit")] + public int? Limit { get; set; } + + /// + /// Number of records to skip for pagination.
+ /// Default Value: 0 + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("skip")] + public int? Skip { get; set; } + + /// + /// Opaque pagination cursor from a previous response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("pagination_key")] + public string? PaginationKey { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// 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. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ListCallsV3Request( + global::RetellAI.CallFilter? filterCriteria, + global::RetellAI.ListCallsV3RequestSortOrder? sortOrder, + int? limit, + int? skip, + string? paginationKey) + { + this.FilterCriteria = filterCriteria; + this.SortOrder = sortOrder; + this.Limit = limit; + this.Skip = skip; + this.PaginationKey = paginationKey; + } + + /// + /// Initializes a new instance of the class. + /// + public ListCallsV3Request() + { + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3RequestSortOrder.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3RequestSortOrder.g.cs new file mode 100644 index 0000000..ca680fd --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3RequestSortOrder.g.cs @@ -0,0 +1,52 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// Sort calls by `start_timestamp` in ascending or descending order.
+ /// Default Value: descending + ///
+ public enum ListCallsV3RequestSortOrder + { + /// + /// + /// + Ascending, + /// + /// + /// + Descending, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ListCallsV3RequestSortOrderExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ListCallsV3RequestSortOrder value) + { + return value switch + { + ListCallsV3RequestSortOrder.Ascending => "ascending", + ListCallsV3RequestSortOrder.Descending => "descending", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ListCallsV3RequestSortOrder? ToEnum(string value) + { + return value switch + { + "ascending" => ListCallsV3RequestSortOrder.Ascending, + "descending" => ListCallsV3RequestSortOrder.Descending, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3Response2.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3Response2.Json.g.cs new file mode 100644 index 0000000..7d2439b --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3Response2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class ListCallsV3Response2 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.ListCallsV3Response2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.ListCallsV3Response2), + jsonSerializerContext) as global::RetellAI.ListCallsV3Response2; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::RetellAI.ListCallsV3Response2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::RetellAI.ListCallsV3Response2), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.ListCallsV3Response2; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3Response2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3Response2.g.cs new file mode 100644 index 0000000..629e342 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3Response2.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class ListCallsV3Response2 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("items")] + public global::System.Collections.Generic.IList? Items { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ListCallsV3Response2( + global::System.Collections.Generic.IList? items) + { + this.Items = items; + } + + /// + /// Initializes a new instance of the class. + /// + public ListCallsV3Response2() + { + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3Response3.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3Response3.Json.g.cs new file mode 100644 index 0000000..0bd62bc --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3Response3.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class ListCallsV3Response3 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.ListCallsV3Response3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.ListCallsV3Response3), + jsonSerializerContext) as global::RetellAI.ListCallsV3Response3; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::RetellAI.ListCallsV3Response3? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::RetellAI.ListCallsV3Response3), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.ListCallsV3Response3; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3Response3.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3Response3.g.cs new file mode 100644 index 0000000..2db8604 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3Response3.g.cs @@ -0,0 +1,56 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class ListCallsV3Response3 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.ListCallsV3ResponseStatusJsonConverter))] + public global::RetellAI.ListCallsV3ResponseStatus? Status { get; set; } + + /// + /// Example: Invalid request format, please check API reference. + /// + /// Invalid request format, please check API reference. + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + public string? Message { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// Example: Invalid request format, please check API reference. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ListCallsV3Response3( + global::RetellAI.ListCallsV3ResponseStatus? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public ListCallsV3Response3() + { + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3Response4.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3Response4.Json.g.cs new file mode 100644 index 0000000..6c88dec --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3Response4.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class ListCallsV3Response4 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.ListCallsV3Response4? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.ListCallsV3Response4), + jsonSerializerContext) as global::RetellAI.ListCallsV3Response4; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::RetellAI.ListCallsV3Response4? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::RetellAI.ListCallsV3Response4), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.ListCallsV3Response4; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3Response4.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3Response4.g.cs new file mode 100644 index 0000000..cd691e4 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3Response4.g.cs @@ -0,0 +1,56 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class ListCallsV3Response4 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.ListCallsV3ResponseStatus2JsonConverter))] + public global::RetellAI.ListCallsV3ResponseStatus2? Status { get; set; } + + /// + /// Example: API key is missing or invalid. + /// + /// API key is missing or invalid. + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + public string? Message { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// Example: API key is missing or invalid. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ListCallsV3Response4( + global::RetellAI.ListCallsV3ResponseStatus2? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public ListCallsV3Response4() + { + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3Response5.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3Response5.Json.g.cs new file mode 100644 index 0000000..bc6bbfa --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3Response5.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class ListCallsV3Response5 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.ListCallsV3Response5? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.ListCallsV3Response5), + jsonSerializerContext) as global::RetellAI.ListCallsV3Response5; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::RetellAI.ListCallsV3Response5? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::RetellAI.ListCallsV3Response5), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.ListCallsV3Response5; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3Response5.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3Response5.g.cs new file mode 100644 index 0000000..d2de5f1 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3Response5.g.cs @@ -0,0 +1,56 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class ListCallsV3Response5 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.ListCallsV3ResponseStatus3JsonConverter))] + public global::RetellAI.ListCallsV3ResponseStatus3? Status { get; set; } + + /// + /// Example: Account rate limited, please throttle your requests. + /// + /// Account rate limited, please throttle your requests. + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + public string? Message { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// Example: Account rate limited, please throttle your requests. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ListCallsV3Response5( + global::RetellAI.ListCallsV3ResponseStatus3? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public ListCallsV3Response5() + { + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3Response6.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3Response6.Json.g.cs new file mode 100644 index 0000000..f468ac3 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3Response6.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class ListCallsV3Response6 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.ListCallsV3Response6? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.ListCallsV3Response6), + jsonSerializerContext) as global::RetellAI.ListCallsV3Response6; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::RetellAI.ListCallsV3Response6? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::RetellAI.ListCallsV3Response6), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.ListCallsV3Response6; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3Response6.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3Response6.g.cs new file mode 100644 index 0000000..2f2c829 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3Response6.g.cs @@ -0,0 +1,56 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class ListCallsV3Response6 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.ListCallsV3ResponseStatus4JsonConverter))] + public global::RetellAI.ListCallsV3ResponseStatus4? Status { get; set; } + + /// + /// Example: An unexpected server error occurred. + /// + /// An unexpected server error occurred. + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + public string? Message { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// Example: An unexpected server error occurred. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ListCallsV3Response6( + global::RetellAI.ListCallsV3ResponseStatus4? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public ListCallsV3Response6() + { + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3ResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3ResponseStatus.g.cs new file mode 100644 index 0000000..8733538 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3ResponseStatus.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum ListCallsV3ResponseStatus + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ListCallsV3ResponseStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ListCallsV3ResponseStatus value) + { + return value switch + { + ListCallsV3ResponseStatus.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ListCallsV3ResponseStatus? ToEnum(string value) + { + return value switch + { + "error" => ListCallsV3ResponseStatus.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3ResponseStatus2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3ResponseStatus2.g.cs new file mode 100644 index 0000000..a4200f8 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3ResponseStatus2.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum ListCallsV3ResponseStatus2 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ListCallsV3ResponseStatus2Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ListCallsV3ResponseStatus2 value) + { + return value switch + { + ListCallsV3ResponseStatus2.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ListCallsV3ResponseStatus2? ToEnum(string value) + { + return value switch + { + "error" => ListCallsV3ResponseStatus2.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3ResponseStatus3.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3ResponseStatus3.g.cs new file mode 100644 index 0000000..74b5fd3 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3ResponseStatus3.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum ListCallsV3ResponseStatus3 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ListCallsV3ResponseStatus3Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ListCallsV3ResponseStatus3 value) + { + return value switch + { + ListCallsV3ResponseStatus3.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ListCallsV3ResponseStatus3? ToEnum(string value) + { + return value switch + { + "error" => ListCallsV3ResponseStatus3.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3ResponseStatus4.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3ResponseStatus4.g.cs new file mode 100644 index 0000000..376bf7b --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListCallsV3ResponseStatus4.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum ListCallsV3ResponseStatus4 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ListCallsV3ResponseStatus4Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ListCallsV3ResponseStatus4 value) + { + return value switch + { + ListCallsV3ResponseStatus4.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ListCallsV3ResponseStatus4? ToEnum(string value) + { + return value switch + { + "error" => ListCallsV3ResponseStatus4.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3Request.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3Request.Json.g.cs new file mode 100644 index 0000000..e34afdb --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3Request.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class ListChatsV3Request + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.ListChatsV3Request? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.ListChatsV3Request), + jsonSerializerContext) as global::RetellAI.ListChatsV3Request; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::RetellAI.ListChatsV3Request? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::RetellAI.ListChatsV3Request), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.ListChatsV3Request; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3Request.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3Request.g.cs new file mode 100644 index 0000000..31029a5 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3Request.g.cs @@ -0,0 +1,96 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class ListChatsV3Request + { + /// + /// Filter criteria for chats to retrieve. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_criteria")] + public object? FilterCriteria { get; set; } + + /// + /// Sort chats by `start_timestamp` in ascending or descending order.
+ /// Default Value: descending + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("sort_order")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.ListChatsV3RequestSortOrderJsonConverter))] + public global::RetellAI.ListChatsV3RequestSortOrder? SortOrder { get; set; } + + /// + /// Maximum number of chats to return.
+ /// Default Value: 50 + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("limit")] + public int? Limit { get; set; } + + /// + /// Number of records to skip for pagination.
+ /// Default Value: 0 + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("skip")] + public int? Skip { get; set; } + + /// + /// Opaque pagination cursor from a previous response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("pagination_key")] + public string? PaginationKey { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// 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. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ListChatsV3Request( + object? filterCriteria, + global::RetellAI.ListChatsV3RequestSortOrder? sortOrder, + int? limit, + int? skip, + string? paginationKey) + { + this.FilterCriteria = filterCriteria; + this.SortOrder = sortOrder; + this.Limit = limit; + this.Skip = skip; + this.PaginationKey = paginationKey; + } + + /// + /// Initializes a new instance of the class. + /// + public ListChatsV3Request() + { + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3RequestFilterCriteria.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3RequestFilterCriteria.Json.g.cs new file mode 100644 index 0000000..2fd30e9 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3RequestFilterCriteria.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class ListChatsV3RequestFilterCriteria + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.ListChatsV3RequestFilterCriteria? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.ListChatsV3RequestFilterCriteria), + jsonSerializerContext) as global::RetellAI.ListChatsV3RequestFilterCriteria; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::RetellAI.ListChatsV3RequestFilterCriteria? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::RetellAI.ListChatsV3RequestFilterCriteria), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.ListChatsV3RequestFilterCriteria; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3RequestFilterCriteria.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3RequestFilterCriteria.g.cs new file mode 100644 index 0000000..862f8e2 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3RequestFilterCriteria.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// Filter criteria for chats to retrieve. + /// + public sealed partial class ListChatsV3RequestFilterCriteria + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3RequestSortOrder.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3RequestSortOrder.g.cs new file mode 100644 index 0000000..ba09314 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3RequestSortOrder.g.cs @@ -0,0 +1,52 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// Sort chats by `start_timestamp` in ascending or descending order.
+ /// Default Value: descending + ///
+ public enum ListChatsV3RequestSortOrder + { + /// + /// + /// + Ascending, + /// + /// + /// + Descending, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ListChatsV3RequestSortOrderExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ListChatsV3RequestSortOrder value) + { + return value switch + { + ListChatsV3RequestSortOrder.Ascending => "ascending", + ListChatsV3RequestSortOrder.Descending => "descending", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ListChatsV3RequestSortOrder? ToEnum(string value) + { + return value switch + { + "ascending" => ListChatsV3RequestSortOrder.Ascending, + "descending" => ListChatsV3RequestSortOrder.Descending, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3Response2.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3Response2.Json.g.cs new file mode 100644 index 0000000..457e46e --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3Response2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class ListChatsV3Response2 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.ListChatsV3Response2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.ListChatsV3Response2), + jsonSerializerContext) as global::RetellAI.ListChatsV3Response2; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::RetellAI.ListChatsV3Response2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::RetellAI.ListChatsV3Response2), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.ListChatsV3Response2; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3Response2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3Response2.g.cs new file mode 100644 index 0000000..f91a6c9 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3Response2.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class ListChatsV3Response2 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("items")] + public global::System.Collections.Generic.IList? Items { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ListChatsV3Response2( + global::System.Collections.Generic.IList? items) + { + this.Items = items; + } + + /// + /// Initializes a new instance of the class. + /// + public ListChatsV3Response2() + { + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3Response3.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3Response3.Json.g.cs new file mode 100644 index 0000000..e820d0e --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3Response3.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class ListChatsV3Response3 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.ListChatsV3Response3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.ListChatsV3Response3), + jsonSerializerContext) as global::RetellAI.ListChatsV3Response3; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::RetellAI.ListChatsV3Response3? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::RetellAI.ListChatsV3Response3), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.ListChatsV3Response3; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3Response3.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3Response3.g.cs new file mode 100644 index 0000000..04c8588 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3Response3.g.cs @@ -0,0 +1,56 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class ListChatsV3Response3 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.ListChatsV3ResponseStatusJsonConverter))] + public global::RetellAI.ListChatsV3ResponseStatus? Status { get; set; } + + /// + /// Example: Invalid request format, please check API reference. + /// + /// Invalid request format, please check API reference. + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + public string? Message { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// Example: Invalid request format, please check API reference. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ListChatsV3Response3( + global::RetellAI.ListChatsV3ResponseStatus? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public ListChatsV3Response3() + { + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3Response4.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3Response4.Json.g.cs new file mode 100644 index 0000000..315aaf0 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3Response4.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class ListChatsV3Response4 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.ListChatsV3Response4? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.ListChatsV3Response4), + jsonSerializerContext) as global::RetellAI.ListChatsV3Response4; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::RetellAI.ListChatsV3Response4? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::RetellAI.ListChatsV3Response4), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.ListChatsV3Response4; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3Response4.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3Response4.g.cs new file mode 100644 index 0000000..f2e290d --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3Response4.g.cs @@ -0,0 +1,56 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class ListChatsV3Response4 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.ListChatsV3ResponseStatus2JsonConverter))] + public global::RetellAI.ListChatsV3ResponseStatus2? Status { get; set; } + + /// + /// Example: API key is missing or invalid. + /// + /// API key is missing or invalid. + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + public string? Message { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// Example: API key is missing or invalid. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ListChatsV3Response4( + global::RetellAI.ListChatsV3ResponseStatus2? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public ListChatsV3Response4() + { + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3Response5.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3Response5.Json.g.cs new file mode 100644 index 0000000..9fb1920 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3Response5.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class ListChatsV3Response5 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.ListChatsV3Response5? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.ListChatsV3Response5), + jsonSerializerContext) as global::RetellAI.ListChatsV3Response5; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::RetellAI.ListChatsV3Response5? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::RetellAI.ListChatsV3Response5), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.ListChatsV3Response5; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3Response5.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3Response5.g.cs new file mode 100644 index 0000000..3c37bf3 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3Response5.g.cs @@ -0,0 +1,56 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class ListChatsV3Response5 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.ListChatsV3ResponseStatus3JsonConverter))] + public global::RetellAI.ListChatsV3ResponseStatus3? Status { get; set; } + + /// + /// Example: Account rate limited, please throttle your requests. + /// + /// Account rate limited, please throttle your requests. + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + public string? Message { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// Example: Account rate limited, please throttle your requests. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ListChatsV3Response5( + global::RetellAI.ListChatsV3ResponseStatus3? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public ListChatsV3Response5() + { + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3Response6.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3Response6.Json.g.cs new file mode 100644 index 0000000..e4904b4 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3Response6.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class ListChatsV3Response6 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.ListChatsV3Response6? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.ListChatsV3Response6), + jsonSerializerContext) as global::RetellAI.ListChatsV3Response6; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::RetellAI.ListChatsV3Response6? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::RetellAI.ListChatsV3Response6), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.ListChatsV3Response6; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3Response6.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3Response6.g.cs new file mode 100644 index 0000000..17de874 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3Response6.g.cs @@ -0,0 +1,56 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class ListChatsV3Response6 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.ListChatsV3ResponseStatus4JsonConverter))] + public global::RetellAI.ListChatsV3ResponseStatus4? Status { get; set; } + + /// + /// Example: An unexpected server error occurred. + /// + /// An unexpected server error occurred. + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + public string? Message { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// Example: An unexpected server error occurred. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ListChatsV3Response6( + global::RetellAI.ListChatsV3ResponseStatus4? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public ListChatsV3Response6() + { + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3ResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3ResponseStatus.g.cs new file mode 100644 index 0000000..51f17f2 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3ResponseStatus.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum ListChatsV3ResponseStatus + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ListChatsV3ResponseStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ListChatsV3ResponseStatus value) + { + return value switch + { + ListChatsV3ResponseStatus.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ListChatsV3ResponseStatus? ToEnum(string value) + { + return value switch + { + "error" => ListChatsV3ResponseStatus.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3ResponseStatus2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3ResponseStatus2.g.cs new file mode 100644 index 0000000..d51f717 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3ResponseStatus2.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum ListChatsV3ResponseStatus2 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ListChatsV3ResponseStatus2Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ListChatsV3ResponseStatus2 value) + { + return value switch + { + ListChatsV3ResponseStatus2.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ListChatsV3ResponseStatus2? ToEnum(string value) + { + return value switch + { + "error" => ListChatsV3ResponseStatus2.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3ResponseStatus3.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3ResponseStatus3.g.cs new file mode 100644 index 0000000..bfafc68 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3ResponseStatus3.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum ListChatsV3ResponseStatus3 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ListChatsV3ResponseStatus3Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ListChatsV3ResponseStatus3 value) + { + return value switch + { + ListChatsV3ResponseStatus3.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ListChatsV3ResponseStatus3? ToEnum(string value) + { + return value switch + { + "error" => ListChatsV3ResponseStatus3.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3ResponseStatus4.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3ResponseStatus4.g.cs new file mode 100644 index 0000000..6163aaa --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListChatsV3ResponseStatus4.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum ListChatsV3ResponseStatus4 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ListChatsV3ResponseStatus4Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ListChatsV3ResponseStatus4 value) + { + return value switch + { + ListChatsV3ResponseStatus4.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ListChatsV3ResponseStatus4? ToEnum(string value) + { + return value switch + { + "error" => ListChatsV3ResponseStatus4.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.MCPNodeVariant2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.MCPNodeVariant2.g.cs index 0d1a7cc..08ad6ac 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.MCPNodeVariant2.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.MCPNodeVariant2.g.cs @@ -68,6 +68,12 @@ public sealed partial class MCPNodeVariant2 [global::System.Text.Json.Serialization.JsonRequired] public required bool WaitForResult { get; set; } + /// + /// If true, play a typing sound while MCP tool executes. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enable_typing_sound")] + public bool? EnableTypingSound { get; set; } + /// /// /// @@ -104,6 +110,9 @@ public sealed partial class MCPNodeVariant2 /// If true, will speak during execution /// /// + /// + /// If true, play a typing sound while MCP tool executes. + /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] @@ -118,6 +127,7 @@ public MCPNodeVariant2( global::System.Collections.Generic.Dictionary? responseVariables, bool? speakDuringExecution, global::RetellAI.NodeInstruction? instruction, + bool? enableTypingSound, global::System.Collections.Generic.IList? finetuneTransitionExamples) { this.Type = type; @@ -129,6 +139,7 @@ public MCPNodeVariant2( this.SpeakDuringExecution = speakDuringExecution; this.Instruction = instruction; this.WaitForResult = waitForResult; + this.EnableTypingSound = enableTypingSound; this.FinetuneTransitionExamples = finetuneTransitionExamples; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.MCPTool.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.MCPTool.g.cs index 55695dc..a6816da 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.MCPTool.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.MCPTool.g.cs @@ -72,6 +72,12 @@ public sealed partial class MCPTool [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.MCPToolExecutionMessageTypeJsonConverter))] public global::RetellAI.MCPToolExecutionMessageType? ExecutionMessageType { get; set; } + /// + /// If true, play a typing sound on the agent audio track while this MCP tool is executing. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enable_typing_sound")] + public bool? EnableTypingSound { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -109,6 +115,9 @@ public sealed partial class MCPTool /// /// Type of execution message. "prompt" means the agent will use execution_message_description as a prompt to generate the message. "static_text" means the agent will speak the execution_message_description directly. Defaults to "prompt". /// + /// + /// If true, play a typing sound on the agent audio track while this MCP tool is executing. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -122,7 +131,8 @@ public MCPTool( bool? speakDuringExecution, bool? speakAfterExecution, string? executionMessageDescription, - global::RetellAI.MCPToolExecutionMessageType? executionMessageType) + global::RetellAI.MCPToolExecutionMessageType? executionMessageType, + bool? enableTypingSound) { this.Type = type; this.McpId = mcpId; @@ -134,6 +144,7 @@ public MCPTool( this.SpeakAfterExecution = speakAfterExecution; this.ExecutionMessageDescription = executionMessageDescription; this.ExecutionMessageType = executionMessageType; + this.EnableTypingSound = enableTypingSound; } /// diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.Message.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.Message.Json.g.cs index d4cc902..aae2a64 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.Message.Json.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.Message.Json.g.cs @@ -2,7 +2,7 @@ namespace RetellAI { - public sealed partial class Message + public readonly partial struct Message { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -41,7 +41,7 @@ public string ToJson( return global::System.Text.Json.JsonSerializer.Deserialize( json, typeof(global::RetellAI.Message), - jsonSerializerContext) as global::RetellAI.Message; + jsonSerializerContext) as global::RetellAI.Message?; } /// @@ -70,7 +70,7 @@ public string ToJson( return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, typeof(global::RetellAI.Message), - jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.Message; + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.Message?; } /// diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.Message.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.Message.g.cs index 45ce2e5..4030110 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.Message.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.Message.g.cs @@ -1,3 +1,4 @@ +#pragma warning disable CS0618 // Type or member is obsolete #nullable enable @@ -6,90 +7,197 @@ namespace RetellAI /// /// /// - public sealed partial class Message + public readonly partial struct Message : global::System.IEquatable { /// - /// Unique id of the message
- /// Example: Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6 + /// ///
- /// Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6 - [global::System.Text.Json.Serialization.JsonPropertyName("message_id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string MessageId { get; set; } +#if NET6_0_OR_GREATER + public global::RetellAI.MessageBase? Base { get; init; } +#else + public global::RetellAI.MessageBase? Base { get; } +#endif /// - /// Documents whether this message is sent by agent or user.
- /// Example: agent + /// ///
- /// agent - [global::System.Text.Json.Serialization.JsonPropertyName("role")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.MessageRoleJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::RetellAI.MessageRole Role { get; set; } +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Base))] +#endif + public bool IsBase => Base != null; /// - /// Content of the message
- /// Example: hi how are you doing? + /// ///
- /// hi how are you doing? - [global::System.Text.Json.Serialization.JsonPropertyName("content")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Content { get; set; } +#if NET6_0_OR_GREATER + public object? MessageVariant2 { get; init; } +#else + public object? MessageVariant2 { get; } +#endif /// - /// Create timestamp of the message
- /// Example: 1703302428855 + /// + ///
+#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MessageVariant2))] +#endif + public bool IsMessageVariant2 => MessageVariant2 != null; + /// + /// /// - /// 1703302428855 - [global::System.Text.Json.Serialization.JsonPropertyName("created_timestamp")] - [global::System.Text.Json.Serialization.JsonRequired] - public required long CreatedTimestamp { get; set; } + public static implicit operator Message(global::RetellAI.MessageBase value) => new Message((global::RetellAI.MessageBase?)value); /// - /// Additional properties that are not explicitly defined in the schema + /// /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + public static implicit operator global::RetellAI.MessageBase?(Message @this) => @this.Base; /// - /// Initializes a new instance of the class. + /// + /// + public Message(global::RetellAI.MessageBase? value) + { + Base = value; + } + + /// + /// /// - /// - /// Unique id of the message
- /// Example: Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6 - /// - /// - /// Documents whether this message is sent by agent or user.
- /// Example: agent - /// - /// - /// Content of the message
- /// Example: hi how are you doing? - /// - /// - /// Create timestamp of the message
- /// Example: 1703302428855 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif public Message( - string messageId, - global::RetellAI.MessageRole role, - string content, - long createdTimestamp) + global::RetellAI.MessageBase? @base, + object? messageVariant2 + ) + { + Base = @base; + MessageVariant2 = messageVariant2; + } + + /// + /// + /// + public object? Object => + MessageVariant2 as object ?? + Base as object + ; + + /// + /// + /// + public override string? ToString() => + Base?.ToString() ?? + MessageVariant2?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsBase && IsMessageVariant2; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? @base = null, + global::System.Func? messageVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsBase && @base != null) + { + return @base(Base!); + } + else if (IsMessageVariant2 && messageVariant2 != null) + { + return messageVariant2(MessageVariant2!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? @base = null, + global::System.Action? messageVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsBase) + { + @base?.Invoke(Base!); + } + else if (IsMessageVariant2) + { + messageVariant2?.Invoke(MessageVariant2!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Base, + typeof(global::RetellAI.MessageBase), + MessageVariant2, + typeof(object), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(Message other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Base, other.Base) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(MessageVariant2, other.MessageVariant2) + ; + } + + /// + /// + /// + public static bool operator ==(Message obj1, Message obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(Message obj1, Message obj2) { - this.MessageId = messageId ?? throw new global::System.ArgumentNullException(nameof(messageId)); - this.Role = role; - this.Content = content ?? throw new global::System.ArgumentNullException(nameof(content)); - this.CreatedTimestamp = createdTimestamp; + return !(obj1 == obj2); } /// - /// Initializes a new instance of the class. + /// /// - public Message() + public override bool Equals(object? obj) { + return obj is Message o && Equals(o); } } -} \ No newline at end of file +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.MessageBase.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.MessageBase.Json.g.cs new file mode 100644 index 0000000..0703cd2 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.MessageBase.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class MessageBase + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.MessageBase? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.MessageBase), + jsonSerializerContext) as global::RetellAI.MessageBase; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::RetellAI.MessageBase? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::RetellAI.MessageBase), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.MessageBase; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.MessageBase.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.MessageBase.g.cs new file mode 100644 index 0000000..7beebfa --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.MessageBase.g.cs @@ -0,0 +1,93 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class MessageBase + { + /// + /// Unique id of the message
+ /// Example: Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6 + ///
+ /// Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6 + [global::System.Text.Json.Serialization.JsonPropertyName("message_id")] + public string? MessageId { get; set; } + + /// + /// Documents whether this message is sent by agent or user.
+ /// Example: agent + ///
+ /// agent + [global::System.Text.Json.Serialization.JsonPropertyName("role")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.MessageBaseRoleJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::RetellAI.MessageBaseRole Role { get; set; } + + /// + /// Content of the message
+ /// Example: hi how are you doing? + ///
+ /// hi how are you doing? + [global::System.Text.Json.Serialization.JsonPropertyName("content")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Content { get; set; } + + /// + /// Create timestamp of the message
+ /// Example: 1703302428855 + ///
+ /// 1703302428855 + [global::System.Text.Json.Serialization.JsonPropertyName("created_timestamp")] + public long? CreatedTimestamp { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Documents whether this message is sent by agent or user.
+ /// Example: agent + /// + /// + /// Content of the message
+ /// Example: hi how are you doing? + /// + /// + /// Unique id of the message
+ /// Example: Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6 + /// + /// + /// Create timestamp of the message
+ /// Example: 1703302428855 + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public MessageBase( + global::RetellAI.MessageBaseRole role, + string content, + string? messageId, + long? createdTimestamp) + { + this.MessageId = messageId; + this.Role = role; + this.Content = content ?? throw new global::System.ArgumentNullException(nameof(content)); + this.CreatedTimestamp = createdTimestamp; + } + + /// + /// Initializes a new instance of the class. + /// + public MessageBase() + { + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.MessageRole.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.MessageBaseRole.g.cs similarity index 69% rename from src/libs/RetellAI/Generated/RetellAI.Models.MessageRole.g.cs rename to src/libs/RetellAI/Generated/RetellAI.Models.MessageBaseRole.g.cs index 3ba3a40..3034ef1 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.MessageRole.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.MessageBaseRole.g.cs @@ -7,7 +7,7 @@ namespace RetellAI /// Documents whether this message is sent by agent or user.
/// Example: agent ///
- public enum MessageRole + public enum MessageBaseRole { /// /// @@ -22,29 +22,29 @@ public enum MessageRole /// /// Enum extensions to do fast conversions without the reflection. /// - public static class MessageRoleExtensions + public static class MessageBaseRoleExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this MessageRole value) + public static string ToValueString(this MessageBaseRole value) { return value switch { - MessageRole.Agent => "agent", - MessageRole.User => "user", + MessageBaseRole.Agent => "agent", + MessageBaseRole.User => "user", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static MessageRole? ToEnum(string value) + public static MessageBaseRole? ToEnum(string value) { return value switch { - "agent" => MessageRole.Agent, - "user" => MessageRole.User, + "agent" => MessageBaseRole.Agent, + "user" => MessageBaseRole.User, _ => null, }; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.MessageVariant2.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.MessageVariant2.Json.g.cs new file mode 100644 index 0000000..5209ca9 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.MessageVariant2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class MessageVariant2 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.MessageVariant2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.MessageVariant2), + jsonSerializerContext) as global::RetellAI.MessageVariant2; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::RetellAI.MessageVariant2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::RetellAI.MessageVariant2), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.MessageVariant2; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.MessageVariant2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.MessageVariant2.g.cs new file mode 100644 index 0000000..56aac86 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.MessageVariant2.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class MessageVariant2 + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.NodeTransitionMessage.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.NodeTransitionMessage.Json.g.cs index e644f79..0e3e05b 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.NodeTransitionMessage.Json.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.NodeTransitionMessage.Json.g.cs @@ -2,7 +2,7 @@ namespace RetellAI { - public sealed partial class NodeTransitionMessage + public readonly partial struct NodeTransitionMessage { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -41,7 +41,7 @@ public string ToJson( return global::System.Text.Json.JsonSerializer.Deserialize( json, typeof(global::RetellAI.NodeTransitionMessage), - jsonSerializerContext) as global::RetellAI.NodeTransitionMessage; + jsonSerializerContext) as global::RetellAI.NodeTransitionMessage?; } /// @@ -70,7 +70,7 @@ public string ToJson( return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, typeof(global::RetellAI.NodeTransitionMessage), - jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.NodeTransitionMessage; + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.NodeTransitionMessage?; } /// diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.NodeTransitionMessage.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.NodeTransitionMessage.g.cs index 2bacce2..00949b2 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.NodeTransitionMessage.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.NodeTransitionMessage.g.cs @@ -1,3 +1,4 @@ +#pragma warning disable CS0618 // Type or member is obsolete #nullable enable @@ -6,115 +7,197 @@ namespace RetellAI /// /// /// - public sealed partial class NodeTransitionMessage + public readonly partial struct NodeTransitionMessage : global::System.IEquatable { /// - /// Unique id of the message
- /// Example: Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6 + /// ///
- /// Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6 - [global::System.Text.Json.Serialization.JsonPropertyName("message_id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string MessageId { get; set; } +#if NET6_0_OR_GREATER + public global::RetellAI.NodeTransitionMessageBase? Base { get; init; } +#else + public global::RetellAI.NodeTransitionMessageBase? Base { get; } +#endif /// - /// This is a node transition. + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("role")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.NodeTransitionMessageRoleJsonConverter))] - public global::RetellAI.NodeTransitionMessageRole Role { get; set; } +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Base))] +#endif + public bool IsBase => Base != null; /// - /// Former node id + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("former_node_id")] - public string? FormerNodeId { get; set; } +#if NET6_0_OR_GREATER + public object? NodeTransitionMessageVariant2 { get; init; } +#else + public object? NodeTransitionMessageVariant2 { get; } +#endif /// - /// Former node name + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("former_node_name")] - public string? FormerNodeName { get; set; } +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(NodeTransitionMessageVariant2))] +#endif + public bool IsNodeTransitionMessageVariant2 => NodeTransitionMessageVariant2 != null; + /// + /// + /// + public static implicit operator NodeTransitionMessage(global::RetellAI.NodeTransitionMessageBase value) => new NodeTransitionMessage((global::RetellAI.NodeTransitionMessageBase?)value); /// - /// New node id + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("new_node_id")] - public string? NewNodeId { get; set; } + public static implicit operator global::RetellAI.NodeTransitionMessageBase?(NodeTransitionMessage @this) => @this.Base; /// - /// New node name + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("new_node_name")] - public string? NewNodeName { get; set; } + public NodeTransitionMessage(global::RetellAI.NodeTransitionMessageBase? value) + { + Base = value; + } /// - /// Create timestamp of the message
- /// Example: 1703302428855 + /// ///
- /// 1703302428855 - [global::System.Text.Json.Serialization.JsonPropertyName("created_timestamp")] - [global::System.Text.Json.Serialization.JsonRequired] - public required long CreatedTimestamp { get; set; } + public NodeTransitionMessage( + global::RetellAI.NodeTransitionMessageBase? @base, + object? nodeTransitionMessageVariant2 + ) + { + Base = @base; + NodeTransitionMessageVariant2 = nodeTransitionMessageVariant2; + } /// - /// Additional properties that are not explicitly defined in the schema + /// /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + public object? Object => + NodeTransitionMessageVariant2 as object ?? + Base as object + ; /// - /// Initializes a new instance of the class. + /// /// - /// - /// Unique id of the message
- /// Example: Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6 - /// - /// - /// Create timestamp of the message
- /// Example: 1703302428855 - /// - /// - /// This is a node transition. - /// - /// - /// Former node id - /// - /// - /// Former node name - /// - /// - /// New node id - /// - /// - /// New node name - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public NodeTransitionMessage( - string messageId, - long createdTimestamp, - global::RetellAI.NodeTransitionMessageRole role, - string? formerNodeId, - string? formerNodeName, - string? newNodeId, - string? newNodeName) + public override string? ToString() => + Base?.ToString() ?? + NodeTransitionMessageVariant2?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsBase && IsNodeTransitionMessageVariant2; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? @base = null, + global::System.Func? nodeTransitionMessageVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsBase && @base != null) + { + return @base(Base!); + } + else if (IsNodeTransitionMessageVariant2 && nodeTransitionMessageVariant2 != null) + { + return nodeTransitionMessageVariant2(NodeTransitionMessageVariant2!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? @base = null, + global::System.Action? nodeTransitionMessageVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsBase) + { + @base?.Invoke(Base!); + } + else if (IsNodeTransitionMessageVariant2) + { + nodeTransitionMessageVariant2?.Invoke(NodeTransitionMessageVariant2!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Base, + typeof(global::RetellAI.NodeTransitionMessageBase), + NodeTransitionMessageVariant2, + typeof(object), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(NodeTransitionMessage other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Base, other.Base) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(NodeTransitionMessageVariant2, other.NodeTransitionMessageVariant2) + ; + } + + /// + /// + /// + public static bool operator ==(NodeTransitionMessage obj1, NodeTransitionMessage obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(NodeTransitionMessage obj1, NodeTransitionMessage obj2) { - this.MessageId = messageId ?? throw new global::System.ArgumentNullException(nameof(messageId)); - this.Role = role; - this.FormerNodeId = formerNodeId; - this.FormerNodeName = formerNodeName; - this.NewNodeId = newNodeId; - this.NewNodeName = newNodeName; - this.CreatedTimestamp = createdTimestamp; + return !(obj1 == obj2); } /// - /// Initializes a new instance of the class. + /// /// - public NodeTransitionMessage() + public override bool Equals(object? obj) { + return obj is NodeTransitionMessage o && Equals(o); } } -} \ No newline at end of file +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.NodeTransitionMessageBase.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.NodeTransitionMessageBase.Json.g.cs new file mode 100644 index 0000000..b8e94c5 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.NodeTransitionMessageBase.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class NodeTransitionMessageBase + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.NodeTransitionMessageBase? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.NodeTransitionMessageBase), + jsonSerializerContext) as global::RetellAI.NodeTransitionMessageBase; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::RetellAI.NodeTransitionMessageBase? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::RetellAI.NodeTransitionMessageBase), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.NodeTransitionMessageBase; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.NodeTransitionMessageBase.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.NodeTransitionMessageBase.g.cs new file mode 100644 index 0000000..1bcf170 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.NodeTransitionMessageBase.g.cs @@ -0,0 +1,130 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class NodeTransitionMessageBase + { + /// + /// Unique id of the message
+ /// Example: Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6 + ///
+ /// Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6 + [global::System.Text.Json.Serialization.JsonPropertyName("message_id")] + public string? MessageId { get; set; } + + /// + /// This is a node transition. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("role")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.NodeTransitionMessageBaseRoleJsonConverter))] + public global::RetellAI.NodeTransitionMessageBaseRole Role { get; set; } + + /// + /// Former node id + /// + [global::System.Text.Json.Serialization.JsonPropertyName("former_node_id")] + public string? FormerNodeId { get; set; } + + /// + /// Former node name + /// + [global::System.Text.Json.Serialization.JsonPropertyName("former_node_name")] + public string? FormerNodeName { get; set; } + + /// + /// New node id + /// + [global::System.Text.Json.Serialization.JsonPropertyName("new_node_id")] + public string? NewNodeId { get; set; } + + /// + /// New node name + /// + [global::System.Text.Json.Serialization.JsonPropertyName("new_node_name")] + public string? NewNodeName { get; set; } + + /// + /// How this node was reached. "global" means a global node transition, "global_go_back" means returning from a global node, "interrupt_go_back" means going back due to user interruption, and "normal" means a regular edge transition. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("transition_type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.NodeTransitionMessageBaseTransitionTypeJsonConverter))] + public global::RetellAI.NodeTransitionMessageBaseTransitionType? TransitionType { get; set; } + + /// + /// Create timestamp of the message
+ /// Example: 1703302428855 + ///
+ /// 1703302428855 + [global::System.Text.Json.Serialization.JsonPropertyName("created_timestamp")] + public long? CreatedTimestamp { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Unique id of the message
+ /// Example: Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6 + /// + /// + /// This is a node transition. + /// + /// + /// Former node id + /// + /// + /// Former node name + /// + /// + /// New node id + /// + /// + /// New node name + /// + /// + /// How this node was reached. "global" means a global node transition, "global_go_back" means returning from a global node, "interrupt_go_back" means going back due to user interruption, and "normal" means a regular edge transition. + /// + /// + /// Create timestamp of the message
+ /// Example: 1703302428855 + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public NodeTransitionMessageBase( + string? messageId, + global::RetellAI.NodeTransitionMessageBaseRole role, + string? formerNodeId, + string? formerNodeName, + string? newNodeId, + string? newNodeName, + global::RetellAI.NodeTransitionMessageBaseTransitionType? transitionType, + long? createdTimestamp) + { + this.MessageId = messageId; + this.Role = role; + this.FormerNodeId = formerNodeId; + this.FormerNodeName = formerNodeName; + this.NewNodeId = newNodeId; + this.NewNodeName = newNodeName; + this.TransitionType = transitionType; + this.CreatedTimestamp = createdTimestamp; + } + + /// + /// Initializes a new instance of the class. + /// + public NodeTransitionMessageBase() + { + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.NodeTransitionMessageRole.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.NodeTransitionMessageBaseRole.g.cs similarity index 69% rename from src/libs/RetellAI/Generated/RetellAI.Models.NodeTransitionMessageRole.g.cs rename to src/libs/RetellAI/Generated/RetellAI.Models.NodeTransitionMessageBaseRole.g.cs index 60700d1..19941ff 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.NodeTransitionMessageRole.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.NodeTransitionMessageBaseRole.g.cs @@ -6,7 +6,7 @@ namespace RetellAI /// /// This is a node transition. /// - public enum NodeTransitionMessageRole + public enum NodeTransitionMessageBaseRole { /// /// @@ -17,27 +17,27 @@ public enum NodeTransitionMessageRole /// /// Enum extensions to do fast conversions without the reflection. /// - public static class NodeTransitionMessageRoleExtensions + public static class NodeTransitionMessageBaseRoleExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this NodeTransitionMessageRole value) + public static string ToValueString(this NodeTransitionMessageBaseRole value) { return value switch { - NodeTransitionMessageRole.NodeTransition => "node_transition", + NodeTransitionMessageBaseRole.NodeTransition => "node_transition", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static NodeTransitionMessageRole? ToEnum(string value) + public static NodeTransitionMessageBaseRole? ToEnum(string value) { return value switch { - "node_transition" => NodeTransitionMessageRole.NodeTransition, + "node_transition" => NodeTransitionMessageBaseRole.NodeTransition, _ => null, }; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.NodeTransitionMessageBaseTransitionType.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.NodeTransitionMessageBaseTransitionType.g.cs new file mode 100644 index 0000000..23fbf07 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.NodeTransitionMessageBaseTransitionType.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// How this node was reached. "global" means a global node transition, "global_go_back" means returning from a global node, "interrupt_go_back" means going back due to user interruption, and "normal" means a regular edge transition. + /// + public enum NodeTransitionMessageBaseTransitionType + { + /// + /// + /// + Global, + /// + /// + /// + GlobalGoBack, + /// + /// + /// + InterruptGoBack, + /// + /// + /// + Normal, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class NodeTransitionMessageBaseTransitionTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this NodeTransitionMessageBaseTransitionType value) + { + return value switch + { + NodeTransitionMessageBaseTransitionType.Global => "global", + NodeTransitionMessageBaseTransitionType.GlobalGoBack => "global_go_back", + NodeTransitionMessageBaseTransitionType.InterruptGoBack => "interrupt_go_back", + NodeTransitionMessageBaseTransitionType.Normal => "normal", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static NodeTransitionMessageBaseTransitionType? ToEnum(string value) + { + return value switch + { + "global" => NodeTransitionMessageBaseTransitionType.Global, + "global_go_back" => NodeTransitionMessageBaseTransitionType.GlobalGoBack, + "interrupt_go_back" => NodeTransitionMessageBaseTransitionType.InterruptGoBack, + "normal" => NodeTransitionMessageBaseTransitionType.Normal, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.NodeTransitionMessageVariant2.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.NodeTransitionMessageVariant2.Json.g.cs new file mode 100644 index 0000000..20397ed --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.NodeTransitionMessageVariant2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class NodeTransitionMessageVariant2 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.NodeTransitionMessageVariant2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.NodeTransitionMessageVariant2), + jsonSerializerContext) as global::RetellAI.NodeTransitionMessageVariant2; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::RetellAI.NodeTransitionMessageVariant2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::RetellAI.NodeTransitionMessageVariant2), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.NodeTransitionMessageVariant2; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.NodeTransitionMessageVariant2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.NodeTransitionMessageVariant2.g.cs new file mode 100644 index 0000000..aa8dee6 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.NodeTransitionMessageVariant2.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class NodeTransitionMessageVariant2 + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.NodeTransitionUtterance.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.NodeTransitionUtterance.g.cs index 4dfcf12..6b57634 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.NodeTransitionUtterance.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.NodeTransitionUtterance.g.cs @@ -43,6 +43,13 @@ public sealed partial class NodeTransitionUtterance [global::System.Text.Json.Serialization.JsonRequired] public required string NewNodeName { get; set; } + /// + /// How this node was reached. "global" means a global node transition, "global_go_back" means returning from a global node, "interrupt_go_back" means going back due to user interruption, and "normal" means a regular edge transition. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("transition_type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.NodeTransitionUtteranceTransitionTypeJsonConverter))] + public global::RetellAI.NodeTransitionUtteranceTransitionType? TransitionType { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -67,6 +74,9 @@ public sealed partial class NodeTransitionUtterance /// /// This is result of a node transition /// + /// + /// How this node was reached. "global" means a global node transition, "global_go_back" means returning from a global node, "interrupt_go_back" means going back due to user interruption, and "normal" means a regular edge transition. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -75,13 +85,15 @@ public NodeTransitionUtterance( string formerNodeName, string newNodeId, string newNodeName, - global::RetellAI.NodeTransitionUtteranceRole role) + global::RetellAI.NodeTransitionUtteranceRole role, + global::RetellAI.NodeTransitionUtteranceTransitionType? transitionType) { this.Role = role; this.FormerNodeId = formerNodeId ?? throw new global::System.ArgumentNullException(nameof(formerNodeId)); this.FormerNodeName = formerNodeName ?? throw new global::System.ArgumentNullException(nameof(formerNodeName)); this.NewNodeId = newNodeId ?? throw new global::System.ArgumentNullException(nameof(newNodeId)); this.NewNodeName = newNodeName ?? throw new global::System.ArgumentNullException(nameof(newNodeName)); + this.TransitionType = transitionType; } /// diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.NodeTransitionUtteranceTransitionType.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.NodeTransitionUtteranceTransitionType.g.cs new file mode 100644 index 0000000..24a82b8 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.NodeTransitionUtteranceTransitionType.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// How this node was reached. "global" means a global node transition, "global_go_back" means returning from a global node, "interrupt_go_back" means going back due to user interruption, and "normal" means a regular edge transition. + /// + public enum NodeTransitionUtteranceTransitionType + { + /// + /// + /// + Global, + /// + /// + /// + GlobalGoBack, + /// + /// + /// + InterruptGoBack, + /// + /// + /// + Normal, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class NodeTransitionUtteranceTransitionTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this NodeTransitionUtteranceTransitionType value) + { + return value switch + { + NodeTransitionUtteranceTransitionType.Global => "global", + NodeTransitionUtteranceTransitionType.GlobalGoBack => "global_go_back", + NodeTransitionUtteranceTransitionType.InterruptGoBack => "interrupt_go_back", + NodeTransitionUtteranceTransitionType.Normal => "normal", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static NodeTransitionUtteranceTransitionType? ToEnum(string value) + { + return value switch + { + "global" => NodeTransitionUtteranceTransitionType.Global, + "global_go_back" => NodeTransitionUtteranceTransitionType.GlobalGoBack, + "interrupt_go_back" => NodeTransitionUtteranceTransitionType.InterruptGoBack, + "normal" => NodeTransitionUtteranceTransitionType.Normal, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.NullableLLMModel.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.NullableLLMModel.g.cs index b54130a..a7c0792 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.NullableLLMModel.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.NullableLLMModel.g.cs @@ -35,6 +35,10 @@ public enum NullableLLMModel /// /// /// + Gemini31FlashLite, + /// + /// + /// Gpt41, /// /// @@ -100,6 +104,7 @@ public static string ToValueString(this NullableLLMModel value) NullableLLMModel.Gemini25Flash => "gemini-2.5-flash", NullableLLMModel.Gemini25FlashLite => "gemini-2.5-flash-lite", NullableLLMModel.Gemini30Flash => "gemini-3.0-flash", + NullableLLMModel.Gemini31FlashLite => "gemini-3.1-flash-lite", NullableLLMModel.Gpt41 => "gpt-4.1", NullableLLMModel.Gpt41Mini => "gpt-4.1-mini", NullableLLMModel.Gpt41Nano => "gpt-4.1-nano", @@ -128,6 +133,7 @@ public static string ToValueString(this NullableLLMModel value) "gemini-2.5-flash" => NullableLLMModel.Gemini25Flash, "gemini-2.5-flash-lite" => NullableLLMModel.Gemini25FlashLite, "gemini-3.0-flash" => NullableLLMModel.Gemini30Flash, + "gemini-3.1-flash-lite" => NullableLLMModel.Gemini31FlashLite, "gpt-4.1" => NullableLLMModel.Gpt41, "gpt-4.1-mini" => NullableLLMModel.Gpt41Mini, "gpt-4.1-nano" => NullableLLMModel.Gpt41Nano, diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.PhoneNumberResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.PhoneNumberResponse.g.cs index ede0d29..02d8233 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.PhoneNumberResponse.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.PhoneNumberResponse.g.cs @@ -1,6 +1,4 @@ -#pragma warning disable CS0618 // Type or member is obsolete - #nullable enable namespace RetellAI @@ -37,42 +35,6 @@ public sealed partial class PhoneNumberResponse [global::System.Text.Json.Serialization.JsonPropertyName("phone_number_pretty")] public string? PhoneNumberPretty { get; set; } - /// - /// Unique id of agent to bind to the number. The number will automatically use the agent when receiving inbound calls. If null, this number would not accept inbound call. Deprecated. See https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
- /// Example: oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD - ///
- /// oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD - [global::System.Text.Json.Serialization.JsonPropertyName("inbound_agent_id")] - [global::System.Obsolete("This property marked as deprecated.")] - public string? InboundAgentId { get; set; } - - /// - /// Unique id of agent to bind to the number. The number will automatically use the agent when conducting outbound calls. If null, this number would not be able to initiate outbound call without agent id override. Deprecated. See https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
- /// Example: oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD - ///
- /// oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD - [global::System.Text.Json.Serialization.JsonPropertyName("outbound_agent_id")] - [global::System.Obsolete("This property marked as deprecated.")] - public string? OutboundAgentId { get; set; } - - /// - /// Version of the inbound agent to bind to the number. If not provided, will default to latest version. Deprecated. See https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
- /// Example: 1 - ///
- /// 1 - [global::System.Text.Json.Serialization.JsonPropertyName("inbound_agent_version")] - [global::System.Obsolete("This property marked as deprecated.")] - public int? InboundAgentVersion { get; set; } - - /// - /// Version of the outbound agent to bind to the number. If not provided, will default to latest version. Deprecated. See https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
- /// Example: 1 - ///
- /// 1 - [global::System.Text.Json.Serialization.JsonPropertyName("outbound_agent_version")] - [global::System.Obsolete("This property marked as deprecated.")] - public int? OutboundAgentVersion { get; set; } - /// /// List of ISO 3166-1 alpha-2 country codes from which inbound calls are allowed. If not set or empty, calls from all countries are allowed.
/// Example: [US, CA, GB] @@ -98,13 +60,13 @@ public sealed partial class PhoneNumberResponse public int? AreaCode { get; set; } /// - /// 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. /// [global::System.Text.Json.Serialization.JsonPropertyName("inbound_agents")] public global::System.Collections.Generic.IList? InboundAgents { get; set; } /// - /// 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. /// [global::System.Text.Json.Serialization.JsonPropertyName("outbound_agents")] public global::System.Collections.Generic.IList? OutboundAgents { get; set; } @@ -206,10 +168,10 @@ public sealed partial class PhoneNumberResponse /// Example: 415 /// /// - /// 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. diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.QaViewFilter.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.QaViewFilter.g.cs index 17a0cc3..812d18d 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.QaViewFilter.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.QaViewFilter.g.cs @@ -23,6 +23,12 @@ public sealed partial class QaViewFilter [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.OneOfJsonConverter))] public global::RetellAI.OneOf? StartTimestamp { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("call_id")] + public global::RetellAI.StringFilter? CallId { get; set; } + /// /// /// @@ -92,6 +98,7 @@ public sealed partial class QaViewFilter /// /// Start timestamp filter (epoch ms). /// + /// /// /// /// @@ -103,6 +110,7 @@ public sealed partial class QaViewFilter public QaViewFilter( global::System.Collections.Generic.IList? agent, global::RetellAI.OneOf? startTimestamp, + global::RetellAI.StringFilter? callId, global::RetellAI.NumberFilter? score, global::RetellAI.AllOf? disconnectionReason, global::RetellAI.OneOf? passed, @@ -111,6 +119,7 @@ public QaViewFilter( { this.Agent = agent; this.StartTimestamp = startTimestamp; + this.CallId = callId; this.Score = score; this.DisconnectionReason = disconnectionReason; this.Passed = passed; diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.SmsContent.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.SmsContent.g.cs index fa06ad3..1869008 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.SmsContent.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.SmsContent.g.cs @@ -42,6 +42,23 @@ namespace RetellAI [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Inferred))] #endif public bool IsInferred => Inferred != null; + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::RetellAI.SmsContentTemplate? Template { get; init; } +#else + public global::RetellAI.SmsContentTemplate? Template { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Template))] +#endif + public bool IsTemplate => Template != null; /// /// /// @@ -78,22 +95,43 @@ public SmsContent(global::RetellAI.SmsContentInferred? value) Inferred = value; } + /// + /// + /// + public static implicit operator SmsContent(global::RetellAI.SmsContentTemplate value) => new SmsContent((global::RetellAI.SmsContentTemplate?)value); + + /// + /// + /// + public static implicit operator global::RetellAI.SmsContentTemplate?(SmsContent @this) => @this.Template; + + /// + /// + /// + public SmsContent(global::RetellAI.SmsContentTemplate? value) + { + Template = value; + } + /// /// /// public SmsContent( global::RetellAI.SmsContentPredefined? predefined, - global::RetellAI.SmsContentInferred? inferred + global::RetellAI.SmsContentInferred? inferred, + global::RetellAI.SmsContentTemplate? template ) { Predefined = predefined; Inferred = inferred; + Template = template; } /// /// /// public object? Object => + Template as object ?? Inferred as object ?? Predefined as object ; @@ -103,7 +141,8 @@ Predefined as object ///
public override string? ToString() => Predefined?.ToString() ?? - Inferred?.ToString() + Inferred?.ToString() ?? + Template?.ToString() ; /// @@ -111,7 +150,7 @@ Predefined as object /// public bool Validate() { - return IsPredefined && !IsInferred || !IsPredefined && IsInferred; + return IsPredefined && !IsInferred && !IsTemplate || !IsPredefined && IsInferred && !IsTemplate || !IsPredefined && !IsInferred && IsTemplate; } /// @@ -120,6 +159,7 @@ public bool Validate() public TResult? Match( global::System.Func? predefined = null, global::System.Func? inferred = null, + global::System.Func? template = null, bool validate = true) { if (validate) @@ -135,6 +175,10 @@ public bool Validate() { return inferred(Inferred!); } + else if (IsTemplate && template != null) + { + return template(Template!); + } return default(TResult); } @@ -145,6 +189,7 @@ public bool Validate() public void Match( global::System.Action? predefined = null, global::System.Action? inferred = null, + global::System.Action? template = null, bool validate = true) { if (validate) @@ -160,6 +205,10 @@ public void Match( { inferred?.Invoke(Inferred!); } + else if (IsTemplate) + { + template?.Invoke(Template!); + } } /// @@ -173,6 +222,8 @@ public override int GetHashCode() typeof(global::RetellAI.SmsContentPredefined), Inferred, typeof(global::RetellAI.SmsContentInferred), + Template, + typeof(global::RetellAI.SmsContentTemplate), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -190,7 +241,8 @@ public bool Equals(SmsContent other) { return global::System.Collections.Generic.EqualityComparer.Default.Equals(Predefined, other.Predefined) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Inferred, other.Inferred) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Inferred, other.Inferred) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Template, other.Template) ; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.SmsContentTemplate.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.SmsContentTemplate.Json.g.cs new file mode 100644 index 0000000..d095f7a --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.SmsContentTemplate.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class SmsContentTemplate + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.SmsContentTemplate? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.SmsContentTemplate), + jsonSerializerContext) as global::RetellAI.SmsContentTemplate; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::RetellAI.SmsContentTemplate? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::RetellAI.SmsContentTemplate), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.SmsContentTemplate; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.SmsContentTemplate.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.SmsContentTemplate.g.cs new file mode 100644 index 0000000..5bbbfb9 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.SmsContentTemplate.g.cs @@ -0,0 +1,56 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class SmsContentTemplate + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.SmsContentTemplateTypeJsonConverter))] + public global::RetellAI.SmsContentTemplateType Type { get; set; } + + /// + /// The template to use for the SMS content. "info_collection" sends a predefined message requesting information from the user. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("template")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.SmsContentTemplateTemplateJsonConverter))] + public global::RetellAI.SmsContentTemplateTemplate Template { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// The template to use for the SMS content. "info_collection" sends a predefined message requesting information from the user. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public SmsContentTemplate( + global::RetellAI.SmsContentTemplateType type, + global::RetellAI.SmsContentTemplateTemplate template) + { + this.Type = type; + this.Template = template; + } + + /// + /// Initializes a new instance of the class. + /// + public SmsContentTemplate() + { + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.SmsContentTemplateTemplate.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.SmsContentTemplateTemplate.g.cs new file mode 100644 index 0000000..f4ceab7 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.SmsContentTemplateTemplate.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// The template to use for the SMS content. "info_collection" sends a predefined message requesting information from the user. + /// + public enum SmsContentTemplateTemplate + { + /// + /// + /// + InfoCollection, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class SmsContentTemplateTemplateExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this SmsContentTemplateTemplate value) + { + return value switch + { + SmsContentTemplateTemplate.InfoCollection => "info_collection", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static SmsContentTemplateTemplate? ToEnum(string value) + { + return value switch + { + "info_collection" => SmsContentTemplateTemplate.InfoCollection, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.SmsContentTemplateType.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.SmsContentTemplateType.g.cs new file mode 100644 index 0000000..84ed9d2 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.SmsContentTemplateType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum SmsContentTemplateType + { + /// + /// + /// + Template, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class SmsContentTemplateTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this SmsContentTemplateType value) + { + return value switch + { + SmsContentTemplateType.Template => "template", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static SmsContentTemplateType? ToEnum(string value) + { + return value switch + { + "template" => SmsContentTemplateType.Template, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.SmsInstructionTemplate.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.SmsInstructionTemplate.Json.g.cs new file mode 100644 index 0000000..00ab2c3 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.SmsInstructionTemplate.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class SmsInstructionTemplate + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.SmsInstructionTemplate? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.SmsInstructionTemplate), + jsonSerializerContext) as global::RetellAI.SmsInstructionTemplate; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::RetellAI.SmsInstructionTemplate? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::RetellAI.SmsInstructionTemplate), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.SmsInstructionTemplate; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.SmsInstructionTemplate.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.SmsInstructionTemplate.g.cs new file mode 100644 index 0000000..36f72d9 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.SmsInstructionTemplate.g.cs @@ -0,0 +1,58 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class SmsInstructionTemplate + { + /// + /// Type of instruction + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.SmsInstructionTemplateTypeJsonConverter))] + public global::RetellAI.SmsInstructionTemplateType Type { get; set; } + + /// + /// The template to use for the instruction. "info_collection" sends a predefined message requesting information from the user. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("template")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.SmsInstructionTemplateTemplateJsonConverter))] + public global::RetellAI.SmsInstructionTemplateTemplate Template { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Type of instruction + /// + /// + /// The template to use for the instruction. "info_collection" sends a predefined message requesting information from the user. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public SmsInstructionTemplate( + global::RetellAI.SmsInstructionTemplateType type, + global::RetellAI.SmsInstructionTemplateTemplate template) + { + this.Type = type; + this.Template = template; + } + + /// + /// Initializes a new instance of the class. + /// + public SmsInstructionTemplate() + { + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.SmsInstructionTemplateTemplate.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.SmsInstructionTemplateTemplate.g.cs new file mode 100644 index 0000000..31a5df7 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.SmsInstructionTemplateTemplate.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// The template to use for the instruction. "info_collection" sends a predefined message requesting information from the user. + /// + public enum SmsInstructionTemplateTemplate + { + /// + /// + /// + InfoCollection, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class SmsInstructionTemplateTemplateExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this SmsInstructionTemplateTemplate value) + { + return value switch + { + SmsInstructionTemplateTemplate.InfoCollection => "info_collection", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static SmsInstructionTemplateTemplate? ToEnum(string value) + { + return value switch + { + "info_collection" => SmsInstructionTemplateTemplate.InfoCollection, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.SmsInstructionTemplateType.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.SmsInstructionTemplateType.g.cs new file mode 100644 index 0000000..8dfd11d --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.SmsInstructionTemplateType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// Type of instruction + /// + public enum SmsInstructionTemplateType + { + /// + /// + /// + Template, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class SmsInstructionTemplateTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this SmsInstructionTemplateType value) + { + return value switch + { + SmsInstructionTemplateType.Template => "template", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static SmsInstructionTemplateType? ToEnum(string value) + { + return value switch + { + "template" => SmsInstructionTemplateType.Template, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.SmsNodeVariant2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.SmsNodeVariant2.g.cs index 3299026..6e8376a 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.SmsNodeVariant2.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.SmsNodeVariant2.g.cs @@ -19,9 +19,9 @@ public sealed partial class SmsNodeVariant2 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("instruction")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.NodeInstructionJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::RetellAI.NodeInstruction Instruction { get; set; } + public required global::RetellAI.OneOf Instruction { get; set; } /// /// @@ -58,7 +58,7 @@ public sealed partial class SmsNodeVariant2 [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public SmsNodeVariant2( - global::RetellAI.NodeInstruction instruction, + global::RetellAI.OneOf instruction, global::RetellAI.SmsSuccessEdge successEdge, global::RetellAI.SmsFailedEdge failedEdge, global::RetellAI.SmsNodeVariant2Type type) diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.SmsSenderVariant2Type.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.SmsSenderVariant2Type.g.cs index 31c9c60..3ac8109 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.SmsSenderVariant2Type.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.SmsSenderVariant2Type.g.cs @@ -11,7 +11,7 @@ public enum SmsSenderVariant2Type /// /// /// - ShortCode, + RetellLongCode, } /// @@ -26,7 +26,7 @@ public static string ToValueString(this SmsSenderVariant2Type value) { return value switch { - SmsSenderVariant2Type.ShortCode => "short_code", + SmsSenderVariant2Type.RetellLongCode => "retell_long_code", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -37,7 +37,7 @@ public static string ToValueString(this SmsSenderVariant2Type value) { return value switch { - "short_code" => SmsSenderVariant2Type.ShortCode, + "retell_long_code" => SmsSenderVariant2Type.RetellLongCode, _ => null, }; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.StateTransitionMessage.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.StateTransitionMessage.Json.g.cs index 340769a..9bb1fdd 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.StateTransitionMessage.Json.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.StateTransitionMessage.Json.g.cs @@ -2,7 +2,7 @@ namespace RetellAI { - public sealed partial class StateTransitionMessage + public readonly partial struct StateTransitionMessage { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -41,7 +41,7 @@ public string ToJson( return global::System.Text.Json.JsonSerializer.Deserialize( json, typeof(global::RetellAI.StateTransitionMessage), - jsonSerializerContext) as global::RetellAI.StateTransitionMessage; + jsonSerializerContext) as global::RetellAI.StateTransitionMessage?; } /// @@ -70,7 +70,7 @@ public string ToJson( return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, typeof(global::RetellAI.StateTransitionMessage), - jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.StateTransitionMessage; + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.StateTransitionMessage?; } /// diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.StateTransitionMessage.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.StateTransitionMessage.g.cs index bd3e9f3..17f171d 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.StateTransitionMessage.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.StateTransitionMessage.g.cs @@ -1,3 +1,4 @@ +#pragma warning disable CS0618 // Type or member is obsolete #nullable enable @@ -6,93 +7,197 @@ namespace RetellAI /// /// /// - public sealed partial class StateTransitionMessage + public readonly partial struct StateTransitionMessage : global::System.IEquatable { /// - /// Unique id of the message
- /// Example: Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6 + /// ///
- /// Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6 - [global::System.Text.Json.Serialization.JsonPropertyName("message_id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string MessageId { get; set; } +#if NET6_0_OR_GREATER + public global::RetellAI.StateTransitionMessageBase? Base { get; init; } +#else + public global::RetellAI.StateTransitionMessageBase? Base { get; } +#endif /// - /// This is a state transition. + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("role")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.StateTransitionMessageRoleJsonConverter))] - public global::RetellAI.StateTransitionMessageRole Role { get; set; } +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Base))] +#endif + public bool IsBase => Base != null; /// - /// Former state name + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("former_state_name")] - public string? FormerStateName { get; set; } +#if NET6_0_OR_GREATER + public object? StateTransitionMessageVariant2 { get; init; } +#else + public object? StateTransitionMessageVariant2 { get; } +#endif /// - /// New state name + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("new_state_name")] - public string? NewStateName { get; set; } +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(StateTransitionMessageVariant2))] +#endif + public bool IsStateTransitionMessageVariant2 => StateTransitionMessageVariant2 != null; + /// + /// + /// + public static implicit operator StateTransitionMessage(global::RetellAI.StateTransitionMessageBase value) => new StateTransitionMessage((global::RetellAI.StateTransitionMessageBase?)value); /// - /// Create timestamp of the message
- /// Example: 1703302428855 + /// ///
- /// 1703302428855 - [global::System.Text.Json.Serialization.JsonPropertyName("created_timestamp")] - [global::System.Text.Json.Serialization.JsonRequired] - public required long CreatedTimestamp { get; set; } + public static implicit operator global::RetellAI.StateTransitionMessageBase?(StateTransitionMessage @this) => @this.Base; /// - /// Additional properties that are not explicitly defined in the schema + /// /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + public StateTransitionMessage(global::RetellAI.StateTransitionMessageBase? value) + { + Base = value; + } /// - /// Initializes a new instance of the class. + /// /// - /// - /// Unique id of the message
- /// Example: Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6 - /// - /// - /// Create timestamp of the message
- /// Example: 1703302428855 - /// - /// - /// This is a state transition. - /// - /// - /// Former state name - /// - /// - /// New state name - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif public StateTransitionMessage( - string messageId, - long createdTimestamp, - global::RetellAI.StateTransitionMessageRole role, - string? formerStateName, - string? newStateName) + global::RetellAI.StateTransitionMessageBase? @base, + object? stateTransitionMessageVariant2 + ) + { + Base = @base; + StateTransitionMessageVariant2 = stateTransitionMessageVariant2; + } + + /// + /// + /// + public object? Object => + StateTransitionMessageVariant2 as object ?? + Base as object + ; + + /// + /// + /// + public override string? ToString() => + Base?.ToString() ?? + StateTransitionMessageVariant2?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsBase && IsStateTransitionMessageVariant2; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? @base = null, + global::System.Func? stateTransitionMessageVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsBase && @base != null) + { + return @base(Base!); + } + else if (IsStateTransitionMessageVariant2 && stateTransitionMessageVariant2 != null) + { + return stateTransitionMessageVariant2(StateTransitionMessageVariant2!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? @base = null, + global::System.Action? stateTransitionMessageVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsBase) + { + @base?.Invoke(Base!); + } + else if (IsStateTransitionMessageVariant2) + { + stateTransitionMessageVariant2?.Invoke(StateTransitionMessageVariant2!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Base, + typeof(global::RetellAI.StateTransitionMessageBase), + StateTransitionMessageVariant2, + typeof(object), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(StateTransitionMessage other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Base, other.Base) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(StateTransitionMessageVariant2, other.StateTransitionMessageVariant2) + ; + } + + /// + /// + /// + public static bool operator ==(StateTransitionMessage obj1, StateTransitionMessage obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(StateTransitionMessage obj1, StateTransitionMessage obj2) { - this.MessageId = messageId ?? throw new global::System.ArgumentNullException(nameof(messageId)); - this.Role = role; - this.FormerStateName = formerStateName; - this.NewStateName = newStateName; - this.CreatedTimestamp = createdTimestamp; + return !(obj1 == obj2); } /// - /// Initializes a new instance of the class. + /// /// - public StateTransitionMessage() + public override bool Equals(object? obj) { + return obj is StateTransitionMessage o && Equals(o); } } -} \ No newline at end of file +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.StateTransitionMessageBase.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.StateTransitionMessageBase.Json.g.cs new file mode 100644 index 0000000..36f9a10 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.StateTransitionMessageBase.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class StateTransitionMessageBase + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.StateTransitionMessageBase? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.StateTransitionMessageBase), + jsonSerializerContext) as global::RetellAI.StateTransitionMessageBase; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::RetellAI.StateTransitionMessageBase? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::RetellAI.StateTransitionMessageBase), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.StateTransitionMessageBase; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.StateTransitionMessageBase.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.StateTransitionMessageBase.g.cs new file mode 100644 index 0000000..29473fd --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.StateTransitionMessageBase.g.cs @@ -0,0 +1,96 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class StateTransitionMessageBase + { + /// + /// Unique id of the message
+ /// Example: Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6 + ///
+ /// Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6 + [global::System.Text.Json.Serialization.JsonPropertyName("message_id")] + public string? MessageId { get; set; } + + /// + /// This is a state transition. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("role")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.StateTransitionMessageBaseRoleJsonConverter))] + public global::RetellAI.StateTransitionMessageBaseRole Role { get; set; } + + /// + /// Former state name + /// + [global::System.Text.Json.Serialization.JsonPropertyName("former_state_name")] + public string? FormerStateName { get; set; } + + /// + /// New state name + /// + [global::System.Text.Json.Serialization.JsonPropertyName("new_state_name")] + public string? NewStateName { get; set; } + + /// + /// Create timestamp of the message
+ /// Example: 1703302428855 + ///
+ /// 1703302428855 + [global::System.Text.Json.Serialization.JsonPropertyName("created_timestamp")] + public long? CreatedTimestamp { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Unique id of the message
+ /// Example: Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6 + /// + /// + /// This is a state transition. + /// + /// + /// Former state name + /// + /// + /// New state name + /// + /// + /// Create timestamp of the message
+ /// Example: 1703302428855 + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public StateTransitionMessageBase( + string? messageId, + global::RetellAI.StateTransitionMessageBaseRole role, + string? formerStateName, + string? newStateName, + long? createdTimestamp) + { + this.MessageId = messageId; + this.Role = role; + this.FormerStateName = formerStateName; + this.NewStateName = newStateName; + this.CreatedTimestamp = createdTimestamp; + } + + /// + /// Initializes a new instance of the class. + /// + public StateTransitionMessageBase() + { + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.StateTransitionMessageRole.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.StateTransitionMessageBaseRole.g.cs similarity index 69% rename from src/libs/RetellAI/Generated/RetellAI.Models.StateTransitionMessageRole.g.cs rename to src/libs/RetellAI/Generated/RetellAI.Models.StateTransitionMessageBaseRole.g.cs index c0781a7..6221d3a 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.StateTransitionMessageRole.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.StateTransitionMessageBaseRole.g.cs @@ -6,7 +6,7 @@ namespace RetellAI /// /// This is a state transition. /// - public enum StateTransitionMessageRole + public enum StateTransitionMessageBaseRole { /// /// @@ -17,27 +17,27 @@ public enum StateTransitionMessageRole /// /// Enum extensions to do fast conversions without the reflection. /// - public static class StateTransitionMessageRoleExtensions + public static class StateTransitionMessageBaseRoleExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this StateTransitionMessageRole value) + public static string ToValueString(this StateTransitionMessageBaseRole value) { return value switch { - StateTransitionMessageRole.StateTransition => "state_transition", + StateTransitionMessageBaseRole.StateTransition => "state_transition", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static StateTransitionMessageRole? ToEnum(string value) + public static StateTransitionMessageBaseRole? ToEnum(string value) { return value switch { - "state_transition" => StateTransitionMessageRole.StateTransition, + "state_transition" => StateTransitionMessageBaseRole.StateTransition, _ => null, }; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.StateTransitionMessageVariant2.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.StateTransitionMessageVariant2.Json.g.cs new file mode 100644 index 0000000..169df41 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.StateTransitionMessageVariant2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class StateTransitionMessageVariant2 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.StateTransitionMessageVariant2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.StateTransitionMessageVariant2), + jsonSerializerContext) as global::RetellAI.StateTransitionMessageVariant2; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::RetellAI.StateTransitionMessageVariant2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::RetellAI.StateTransitionMessageVariant2), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.StateTransitionMessageVariant2; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.StateTransitionMessageVariant2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.StateTransitionMessageVariant2.g.cs new file mode 100644 index 0000000..ed5f2c3 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.StateTransitionMessageVariant2.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class StateTransitionMessageVariant2 + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.TestCaseJob.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.TestCaseJob.g.cs index 99c29b5..79c14e1 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.TestCaseJob.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.TestCaseJob.g.cs @@ -39,7 +39,7 @@ public sealed partial class TestCaseJob public required global::RetellAI.TestCaseDefinition TestCaseDefinitionSnapshot { get; set; } /// - /// Snapshot of the transcript generated during test execution. Can be either ConversationFlowPlaygroundSnapshot or MultiStatePromptPlaygroundSnapshot + /// Snapshot of the transcript generated during test execution. Can be either ConversationFlowPlaygroundSnapshot or RetellLlmPlaygroundSnapshot /// [global::System.Text.Json.Serialization.JsonPropertyName("transcript_snapshot")] public object? TranscriptSnapshot { get; set; } @@ -90,7 +90,7 @@ public sealed partial class TestCaseJob /// Timestamp when the test case job was last modified (milliseconds since epoch) /// /// - /// Snapshot of the transcript generated during test execution. Can be either ConversationFlowPlaygroundSnapshot or MultiStatePromptPlaygroundSnapshot + /// Snapshot of the transcript generated during test execution. Can be either ConversationFlowPlaygroundSnapshot or RetellLlmPlaygroundSnapshot /// /// /// Explanation of the test result diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.TestCaseJobTranscriptSnapshot.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.TestCaseJobTranscriptSnapshot.g.cs index 07d1ac1..d146a5e 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.TestCaseJobTranscriptSnapshot.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.TestCaseJobTranscriptSnapshot.g.cs @@ -4,7 +4,7 @@ namespace RetellAI { /// - /// Snapshot of the transcript generated during test execution. Can be either ConversationFlowPlaygroundSnapshot or MultiStatePromptPlaygroundSnapshot + /// Snapshot of the transcript generated during test execution. Can be either ConversationFlowPlaygroundSnapshot or RetellLlmPlaygroundSnapshot /// public sealed partial class TestCaseJobTranscriptSnapshot { diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ToolCallInvocationMessage.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ToolCallInvocationMessage.Json.g.cs index 4cb3f6b..c4e169d 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.ToolCallInvocationMessage.Json.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ToolCallInvocationMessage.Json.g.cs @@ -2,7 +2,7 @@ namespace RetellAI { - public sealed partial class ToolCallInvocationMessage + public readonly partial struct ToolCallInvocationMessage { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -41,7 +41,7 @@ public string ToJson( return global::System.Text.Json.JsonSerializer.Deserialize( json, typeof(global::RetellAI.ToolCallInvocationMessage), - jsonSerializerContext) as global::RetellAI.ToolCallInvocationMessage; + jsonSerializerContext) as global::RetellAI.ToolCallInvocationMessage?; } /// @@ -70,7 +70,7 @@ public string ToJson( return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, typeof(global::RetellAI.ToolCallInvocationMessage), - jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.ToolCallInvocationMessage; + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.ToolCallInvocationMessage?; } /// diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ToolCallInvocationMessage.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ToolCallInvocationMessage.g.cs index 792cf3d..89f6794 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.ToolCallInvocationMessage.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ToolCallInvocationMessage.g.cs @@ -1,3 +1,4 @@ +#pragma warning disable CS0618 // Type or member is obsolete #nullable enable @@ -6,117 +7,197 @@ namespace RetellAI /// /// /// - public sealed partial class ToolCallInvocationMessage + public readonly partial struct ToolCallInvocationMessage : global::System.IEquatable { /// - /// Unique id of the message
- /// Example: Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6 + /// ///
- /// Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6 - [global::System.Text.Json.Serialization.JsonPropertyName("message_id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string MessageId { get; set; } +#if NET6_0_OR_GREATER + public global::RetellAI.ToolCallInvocationMessageBase? Base { get; init; } +#else + public global::RetellAI.ToolCallInvocationMessageBase? Base { get; } +#endif /// - /// This is a tool call invocation. + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("role")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.ToolCallInvocationMessageRoleJsonConverter))] - public global::RetellAI.ToolCallInvocationMessageRole Role { get; set; } +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Base))] +#endif + public bool IsBase => Base != null; /// - /// Tool call id, globally unique. + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("tool_call_id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ToolCallId { get; set; } +#if NET6_0_OR_GREATER + public object? ToolCallInvocationMessageVariant2 { get; init; } +#else + public object? ToolCallInvocationMessageVariant2 { get; } +#endif /// - /// Name of the function in this tool call. + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ToolCallInvocationMessageVariant2))] +#endif + public bool IsToolCallInvocationMessageVariant2 => ToolCallInvocationMessageVariant2 != null; + /// + /// + /// + public static implicit operator ToolCallInvocationMessage(global::RetellAI.ToolCallInvocationMessageBase value) => new ToolCallInvocationMessage((global::RetellAI.ToolCallInvocationMessageBase?)value); /// - /// Arguments for this tool call, it's a stringified JSON object. + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("arguments")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Arguments { get; set; } + public static implicit operator global::RetellAI.ToolCallInvocationMessageBase?(ToolCallInvocationMessage @this) => @this.Base; /// - /// Optional thought signature from Google Gemini thinking models. This is used internally to maintain reasoning chain in multi-turn function calling. + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("thought_signature")] - public string? ThoughtSignature { get; set; } + public ToolCallInvocationMessage(global::RetellAI.ToolCallInvocationMessageBase? value) + { + Base = value; + } /// - /// Create timestamp of the message
- /// Example: 1703302428855 + /// ///
- /// 1703302428855 - [global::System.Text.Json.Serialization.JsonPropertyName("created_timestamp")] - public long? CreatedTimestamp { get; set; } + public ToolCallInvocationMessage( + global::RetellAI.ToolCallInvocationMessageBase? @base, + object? toolCallInvocationMessageVariant2 + ) + { + Base = @base; + ToolCallInvocationMessageVariant2 = toolCallInvocationMessageVariant2; + } /// - /// Additional properties that are not explicitly defined in the schema + /// /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + public object? Object => + ToolCallInvocationMessageVariant2 as object ?? + Base as object + ; /// - /// Initializes a new instance of the class. + /// /// - /// - /// Unique id of the message
- /// Example: Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6 - /// - /// - /// Tool call id, globally unique. - /// - /// - /// Name of the function in this tool call. - /// - /// - /// Arguments for this tool call, it's a stringified JSON object. - /// - /// - /// This is a tool call invocation. - /// - /// - /// Optional thought signature from Google Gemini thinking models. This is used internally to maintain reasoning chain in multi-turn function calling. - /// - /// - /// Create timestamp of the message
- /// Example: 1703302428855 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public ToolCallInvocationMessage( - string messageId, - string toolCallId, - string name, - string arguments, - global::RetellAI.ToolCallInvocationMessageRole role, - string? thoughtSignature, - long? createdTimestamp) + public override string? ToString() => + Base?.ToString() ?? + ToolCallInvocationMessageVariant2?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsBase && IsToolCallInvocationMessageVariant2; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? @base = null, + global::System.Func? toolCallInvocationMessageVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsBase && @base != null) + { + return @base(Base!); + } + else if (IsToolCallInvocationMessageVariant2 && toolCallInvocationMessageVariant2 != null) + { + return toolCallInvocationMessageVariant2(ToolCallInvocationMessageVariant2!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? @base = null, + global::System.Action? toolCallInvocationMessageVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsBase) + { + @base?.Invoke(Base!); + } + else if (IsToolCallInvocationMessageVariant2) + { + toolCallInvocationMessageVariant2?.Invoke(ToolCallInvocationMessageVariant2!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Base, + typeof(global::RetellAI.ToolCallInvocationMessageBase), + ToolCallInvocationMessageVariant2, + typeof(object), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(ToolCallInvocationMessage other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Base, other.Base) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ToolCallInvocationMessageVariant2, other.ToolCallInvocationMessageVariant2) + ; + } + + /// + /// + /// + public static bool operator ==(ToolCallInvocationMessage obj1, ToolCallInvocationMessage obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(ToolCallInvocationMessage obj1, ToolCallInvocationMessage obj2) { - this.MessageId = messageId ?? throw new global::System.ArgumentNullException(nameof(messageId)); - this.Role = role; - this.ToolCallId = toolCallId ?? throw new global::System.ArgumentNullException(nameof(toolCallId)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Arguments = arguments ?? throw new global::System.ArgumentNullException(nameof(arguments)); - this.ThoughtSignature = thoughtSignature; - this.CreatedTimestamp = createdTimestamp; + return !(obj1 == obj2); } /// - /// Initializes a new instance of the class. + /// /// - public ToolCallInvocationMessage() + public override bool Equals(object? obj) { + return obj is ToolCallInvocationMessage o && Equals(o); } } -} \ No newline at end of file +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ToolCallInvocationMessageBase.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ToolCallInvocationMessageBase.Json.g.cs new file mode 100644 index 0000000..c283449 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ToolCallInvocationMessageBase.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class ToolCallInvocationMessageBase + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.ToolCallInvocationMessageBase? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.ToolCallInvocationMessageBase), + jsonSerializerContext) as global::RetellAI.ToolCallInvocationMessageBase; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::RetellAI.ToolCallInvocationMessageBase? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::RetellAI.ToolCallInvocationMessageBase), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.ToolCallInvocationMessageBase; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ToolCallInvocationMessageBase.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ToolCallInvocationMessageBase.g.cs new file mode 100644 index 0000000..52c7c94 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ToolCallInvocationMessageBase.g.cs @@ -0,0 +1,121 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class ToolCallInvocationMessageBase + { + /// + /// Unique id of the message
+ /// Example: Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6 + ///
+ /// Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6 + [global::System.Text.Json.Serialization.JsonPropertyName("message_id")] + public string? MessageId { get; set; } + + /// + /// This is a tool call invocation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("role")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.ToolCallInvocationMessageBaseRoleJsonConverter))] + public global::RetellAI.ToolCallInvocationMessageBaseRole Role { get; set; } + + /// + /// Tool call id, globally unique. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tool_call_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ToolCallId { get; set; } + + /// + /// Name of the function in this tool call. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// Arguments for this tool call, it's a stringified JSON object. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("arguments")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Arguments { get; set; } + + /// + /// Optional thought signature from Google Gemini thinking models. This is used internally to maintain reasoning chain in multi-turn function calling. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("thought_signature")] + public string? ThoughtSignature { get; set; } + + /// + /// Create timestamp of the message
+ /// Example: 1703302428855 + ///
+ /// 1703302428855 + [global::System.Text.Json.Serialization.JsonPropertyName("created_timestamp")] + public long? CreatedTimestamp { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Tool call id, globally unique. + /// + /// + /// Name of the function in this tool call. + /// + /// + /// Arguments for this tool call, it's a stringified JSON object. + /// + /// + /// Unique id of the message
+ /// Example: Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6 + /// + /// + /// This is a tool call invocation. + /// + /// + /// Optional thought signature from Google Gemini thinking models. This is used internally to maintain reasoning chain in multi-turn function calling. + /// + /// + /// Create timestamp of the message
+ /// Example: 1703302428855 + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ToolCallInvocationMessageBase( + string toolCallId, + string name, + string arguments, + string? messageId, + global::RetellAI.ToolCallInvocationMessageBaseRole role, + string? thoughtSignature, + long? createdTimestamp) + { + this.MessageId = messageId; + this.Role = role; + this.ToolCallId = toolCallId ?? throw new global::System.ArgumentNullException(nameof(toolCallId)); + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.Arguments = arguments ?? throw new global::System.ArgumentNullException(nameof(arguments)); + this.ThoughtSignature = thoughtSignature; + this.CreatedTimestamp = createdTimestamp; + } + + /// + /// Initializes a new instance of the class. + /// + public ToolCallInvocationMessageBase() + { + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ToolCallInvocationMessageRole.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ToolCallInvocationMessageBaseRole.g.cs similarity index 72% rename from src/libs/RetellAI/Generated/RetellAI.Models.ToolCallInvocationMessageRole.g.cs rename to src/libs/RetellAI/Generated/RetellAI.Models.ToolCallInvocationMessageBaseRole.g.cs index b21da07..96aec68 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.ToolCallInvocationMessageRole.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ToolCallInvocationMessageBaseRole.g.cs @@ -6,7 +6,7 @@ namespace RetellAI /// /// This is a tool call invocation. /// - public enum ToolCallInvocationMessageRole + public enum ToolCallInvocationMessageBaseRole { /// /// @@ -17,27 +17,27 @@ public enum ToolCallInvocationMessageRole /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ToolCallInvocationMessageRoleExtensions + public static class ToolCallInvocationMessageBaseRoleExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ToolCallInvocationMessageRole value) + public static string ToValueString(this ToolCallInvocationMessageBaseRole value) { return value switch { - ToolCallInvocationMessageRole.ToolCallInvocation => "tool_call_invocation", + ToolCallInvocationMessageBaseRole.ToolCallInvocation => "tool_call_invocation", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ToolCallInvocationMessageRole? ToEnum(string value) + public static ToolCallInvocationMessageBaseRole? ToEnum(string value) { return value switch { - "tool_call_invocation" => ToolCallInvocationMessageRole.ToolCallInvocation, + "tool_call_invocation" => ToolCallInvocationMessageBaseRole.ToolCallInvocation, _ => null, }; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ToolCallInvocationMessageVariant2.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ToolCallInvocationMessageVariant2.Json.g.cs new file mode 100644 index 0000000..5ec3725 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ToolCallInvocationMessageVariant2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class ToolCallInvocationMessageVariant2 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.ToolCallInvocationMessageVariant2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.ToolCallInvocationMessageVariant2), + jsonSerializerContext) as global::RetellAI.ToolCallInvocationMessageVariant2; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::RetellAI.ToolCallInvocationMessageVariant2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::RetellAI.ToolCallInvocationMessageVariant2), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.ToolCallInvocationMessageVariant2; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ToolCallInvocationMessageVariant2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ToolCallInvocationMessageVariant2.g.cs new file mode 100644 index 0000000..eb38f1a --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ToolCallInvocationMessageVariant2.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class ToolCallInvocationMessageVariant2 + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ToolCallResultMessage.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ToolCallResultMessage.Json.g.cs index 9cf25c4..be47b71 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.ToolCallResultMessage.Json.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ToolCallResultMessage.Json.g.cs @@ -2,7 +2,7 @@ namespace RetellAI { - public sealed partial class ToolCallResultMessage + public readonly partial struct ToolCallResultMessage { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -41,7 +41,7 @@ public string ToJson( return global::System.Text.Json.JsonSerializer.Deserialize( json, typeof(global::RetellAI.ToolCallResultMessage), - jsonSerializerContext) as global::RetellAI.ToolCallResultMessage; + jsonSerializerContext) as global::RetellAI.ToolCallResultMessage?; } /// @@ -70,7 +70,7 @@ public string ToJson( return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, typeof(global::RetellAI.ToolCallResultMessage), - jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.ToolCallResultMessage; + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.ToolCallResultMessage?; } /// diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ToolCallResultMessage.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ToolCallResultMessage.g.cs index cb6b2db..87cbd84 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.ToolCallResultMessage.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ToolCallResultMessage.g.cs @@ -1,3 +1,4 @@ +#pragma warning disable CS0618 // Type or member is obsolete #nullable enable @@ -6,106 +7,197 @@ namespace RetellAI /// /// /// - public sealed partial class ToolCallResultMessage + public readonly partial struct ToolCallResultMessage : global::System.IEquatable { /// - /// Unique id of the message
- /// Example: Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6 + /// ///
- /// Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6 - [global::System.Text.Json.Serialization.JsonPropertyName("message_id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string MessageId { get; set; } +#if NET6_0_OR_GREATER + public global::RetellAI.ToolCallResultMessageBase? Base { get; init; } +#else + public global::RetellAI.ToolCallResultMessageBase? Base { get; } +#endif /// - /// This is the result of a tool call. + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("role")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.ToolCallResultMessageRoleJsonConverter))] - public global::RetellAI.ToolCallResultMessageRole Role { get; set; } +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Base))] +#endif + public bool IsBase => Base != null; /// - /// Tool call id, globally unique. + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("tool_call_id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ToolCallId { get; set; } +#if NET6_0_OR_GREATER + public object? ToolCallResultMessageVariant2 { get; init; } +#else + public object? ToolCallResultMessageVariant2 { get; } +#endif /// - /// Result of the tool call, can be a string, a stringified json, etc. + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("content")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Content { get; set; } - +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ToolCallResultMessageVariant2))] +#endif + public bool IsToolCallResultMessageVariant2 => ToolCallResultMessageVariant2 != null; /// - /// Whether the tool call was successful. + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("successful")] - public bool? Successful { get; set; } + public static implicit operator ToolCallResultMessage(global::RetellAI.ToolCallResultMessageBase value) => new ToolCallResultMessage((global::RetellAI.ToolCallResultMessageBase?)value); /// - /// Create timestamp of the message
- /// Example: 1703302428855 + /// ///
- /// 1703302428855 - [global::System.Text.Json.Serialization.JsonPropertyName("created_timestamp")] - [global::System.Text.Json.Serialization.JsonRequired] - public required long CreatedTimestamp { get; set; } + public static implicit operator global::RetellAI.ToolCallResultMessageBase?(ToolCallResultMessage @this) => @this.Base; /// - /// Additional properties that are not explicitly defined in the schema + /// /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + public ToolCallResultMessage(global::RetellAI.ToolCallResultMessageBase? value) + { + Base = value; + } /// - /// Initializes a new instance of the class. + /// /// - /// - /// Unique id of the message
- /// Example: Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6 - /// - /// - /// Tool call id, globally unique. - /// - /// - /// Result of the tool call, can be a string, a stringified json, etc. - /// - /// - /// Create timestamp of the message
- /// Example: 1703302428855 - /// - /// - /// This is the result of a tool call. - /// - /// - /// Whether the tool call was successful. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif public ToolCallResultMessage( - string messageId, - string toolCallId, - string content, - long createdTimestamp, - global::RetellAI.ToolCallResultMessageRole role, - bool? successful) + global::RetellAI.ToolCallResultMessageBase? @base, + object? toolCallResultMessageVariant2 + ) + { + Base = @base; + ToolCallResultMessageVariant2 = toolCallResultMessageVariant2; + } + + /// + /// + /// + public object? Object => + ToolCallResultMessageVariant2 as object ?? + Base as object + ; + + /// + /// + /// + public override string? ToString() => + Base?.ToString() ?? + ToolCallResultMessageVariant2?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsBase && IsToolCallResultMessageVariant2; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? @base = null, + global::System.Func? toolCallResultMessageVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsBase && @base != null) + { + return @base(Base!); + } + else if (IsToolCallResultMessageVariant2 && toolCallResultMessageVariant2 != null) + { + return toolCallResultMessageVariant2(ToolCallResultMessageVariant2!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? @base = null, + global::System.Action? toolCallResultMessageVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsBase) + { + @base?.Invoke(Base!); + } + else if (IsToolCallResultMessageVariant2) + { + toolCallResultMessageVariant2?.Invoke(ToolCallResultMessageVariant2!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Base, + typeof(global::RetellAI.ToolCallResultMessageBase), + ToolCallResultMessageVariant2, + typeof(object), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(ToolCallResultMessage other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Base, other.Base) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ToolCallResultMessageVariant2, other.ToolCallResultMessageVariant2) + ; + } + + /// + /// + /// + public static bool operator ==(ToolCallResultMessage obj1, ToolCallResultMessage obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(ToolCallResultMessage obj1, ToolCallResultMessage obj2) { - this.MessageId = messageId ?? throw new global::System.ArgumentNullException(nameof(messageId)); - this.Role = role; - this.ToolCallId = toolCallId ?? throw new global::System.ArgumentNullException(nameof(toolCallId)); - this.Content = content ?? throw new global::System.ArgumentNullException(nameof(content)); - this.Successful = successful; - this.CreatedTimestamp = createdTimestamp; + return !(obj1 == obj2); } /// - /// Initializes a new instance of the class. + /// /// - public ToolCallResultMessage() + public override bool Equals(object? obj) { + return obj is ToolCallResultMessage o && Equals(o); } } -} \ No newline at end of file +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ToolCallResultMessageBase.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ToolCallResultMessageBase.Json.g.cs new file mode 100644 index 0000000..2cadf36 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ToolCallResultMessageBase.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class ToolCallResultMessageBase + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.ToolCallResultMessageBase? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.ToolCallResultMessageBase), + jsonSerializerContext) as global::RetellAI.ToolCallResultMessageBase; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::RetellAI.ToolCallResultMessageBase? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::RetellAI.ToolCallResultMessageBase), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.ToolCallResultMessageBase; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ToolCallResultMessageBase.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ToolCallResultMessageBase.g.cs new file mode 100644 index 0000000..7a2680d --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ToolCallResultMessageBase.g.cs @@ -0,0 +1,109 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class ToolCallResultMessageBase + { + /// + /// Unique id of the message
+ /// Example: Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6 + ///
+ /// Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6 + [global::System.Text.Json.Serialization.JsonPropertyName("message_id")] + public string? MessageId { get; set; } + + /// + /// This is the result of a tool call. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("role")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.ToolCallResultMessageBaseRoleJsonConverter))] + public global::RetellAI.ToolCallResultMessageBaseRole Role { get; set; } + + /// + /// Tool call id, globally unique. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tool_call_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ToolCallId { get; set; } + + /// + /// Result of the tool call, can be a string, a stringified json, etc. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("content")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Content { get; set; } + + /// + /// Whether the tool call was successful. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("successful")] + public bool? Successful { get; set; } + + /// + /// Create timestamp of the message
+ /// Example: 1703302428855 + ///
+ /// 1703302428855 + [global::System.Text.Json.Serialization.JsonPropertyName("created_timestamp")] + public long? CreatedTimestamp { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Tool call id, globally unique. + /// + /// + /// Result of the tool call, can be a string, a stringified json, etc. + /// + /// + /// Unique id of the message
+ /// Example: Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6 + /// + /// + /// This is the result of a tool call. + /// + /// + /// Whether the tool call was successful. + /// + /// + /// Create timestamp of the message
+ /// Example: 1703302428855 + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ToolCallResultMessageBase( + string toolCallId, + string content, + string? messageId, + global::RetellAI.ToolCallResultMessageBaseRole role, + bool? successful, + long? createdTimestamp) + { + this.MessageId = messageId; + this.Role = role; + this.ToolCallId = toolCallId ?? throw new global::System.ArgumentNullException(nameof(toolCallId)); + this.Content = content ?? throw new global::System.ArgumentNullException(nameof(content)); + this.Successful = successful; + this.CreatedTimestamp = createdTimestamp; + } + + /// + /// Initializes a new instance of the class. + /// + public ToolCallResultMessageBase() + { + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ToolCallResultMessageRole.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ToolCallResultMessageBaseRole.g.cs similarity index 69% rename from src/libs/RetellAI/Generated/RetellAI.Models.ToolCallResultMessageRole.g.cs rename to src/libs/RetellAI/Generated/RetellAI.Models.ToolCallResultMessageBaseRole.g.cs index 21647b7..c3fa5c0 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.ToolCallResultMessageRole.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ToolCallResultMessageBaseRole.g.cs @@ -6,7 +6,7 @@ namespace RetellAI /// /// This is the result of a tool call. /// - public enum ToolCallResultMessageRole + public enum ToolCallResultMessageBaseRole { /// /// @@ -17,27 +17,27 @@ public enum ToolCallResultMessageRole /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ToolCallResultMessageRoleExtensions + public static class ToolCallResultMessageBaseRoleExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ToolCallResultMessageRole value) + public static string ToValueString(this ToolCallResultMessageBaseRole value) { return value switch { - ToolCallResultMessageRole.ToolCallResult => "tool_call_result", + ToolCallResultMessageBaseRole.ToolCallResult => "tool_call_result", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ToolCallResultMessageRole? ToEnum(string value) + public static ToolCallResultMessageBaseRole? ToEnum(string value) { return value switch { - "tool_call_result" => ToolCallResultMessageRole.ToolCallResult, + "tool_call_result" => ToolCallResultMessageBaseRole.ToolCallResult, _ => null, }; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ToolCallResultMessageVariant2.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ToolCallResultMessageVariant2.Json.g.cs new file mode 100644 index 0000000..afecddd --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ToolCallResultMessageVariant2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class ToolCallResultMessageVariant2 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.ToolCallResultMessageVariant2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.ToolCallResultMessageVariant2), + jsonSerializerContext) as global::RetellAI.ToolCallResultMessageVariant2; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::RetellAI.ToolCallResultMessageVariant2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::RetellAI.ToolCallResultMessageVariant2), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.ToolCallResultMessageVariant2; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ToolCallResultMessageVariant2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ToolCallResultMessageVariant2.g.cs new file mode 100644 index 0000000..7a5477a --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ToolCallResultMessageVariant2.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class ToolCallResultMessageVariant2 + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdatePhoneNumberRequest.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdatePhoneNumberRequest.g.cs index 669679a..06958d6 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.UpdatePhoneNumberRequest.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdatePhoneNumberRequest.g.cs @@ -1,6 +1,4 @@ -#pragma warning disable CS0618 // Type or member is obsolete - #nullable enable namespace RetellAI @@ -11,48 +9,13 @@ namespace RetellAI public sealed partial class UpdatePhoneNumberRequest { /// - /// Unique id of agent to bind to the number. The number will automatically use the agent when receiving inbound calls. If set to null, this number would not accept inbound call. Deprecated. See https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
- /// Example: oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD - ///
- /// oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD - [global::System.Text.Json.Serialization.JsonPropertyName("inbound_agent_id")] - [global::System.Obsolete("This property marked as deprecated.")] - public string? InboundAgentId { get; set; } - - /// - /// Unique id of agent to bind to the number. The number will automatically use the agent when conducting outbound calls. If set to null, this number would not be able to initiate outbound call without agent id override. Deprecated. See https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
- /// Example: oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD - ///
- /// oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD - [global::System.Text.Json.Serialization.JsonPropertyName("outbound_agent_id")] - [global::System.Obsolete("This property marked as deprecated.")] - public string? OutboundAgentId { get; set; } - - /// - /// Version of the inbound agent to bind to the number. If not provided, will default to latest version. Deprecated. See https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
- /// Example: 1 - ///
- /// 1 - [global::System.Text.Json.Serialization.JsonPropertyName("inbound_agent_version")] - [global::System.Obsolete("This property marked as deprecated.")] - public int? InboundAgentVersion { get; set; } - - /// - /// Version of the outbound agent to bind to the number. If not provided, will default to latest version.
- /// Example: 1 - ///
- /// 1 - [global::System.Text.Json.Serialization.JsonPropertyName("outbound_agent_version")] - public int? OutboundAgentVersion { get; set; } - - /// - /// 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. /// [global::System.Text.Json.Serialization.JsonPropertyName("inbound_agents")] public global::System.Collections.Generic.IList? InboundAgents { get; set; } /// - /// 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. /// [global::System.Text.Json.Serialization.JsonPropertyName("outbound_agents")] public global::System.Collections.Generic.IList? OutboundAgents { get; set; } @@ -158,15 +121,11 @@ public sealed partial class UpdatePhoneNumberRequest /// /// Initializes a new instance of the class. /// - /// - /// 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. @@ -218,7 +177,6 @@ public sealed partial class UpdatePhoneNumberRequest [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public UpdatePhoneNumberRequest( - int? outboundAgentVersion, global::System.Collections.Generic.IList? inboundAgents, global::System.Collections.Generic.IList? outboundAgents, global::System.Collections.Generic.IList? inboundSmsAgents, @@ -234,7 +192,6 @@ public UpdatePhoneNumberRequest( string? transport, string? fallbackNumber) { - this.OutboundAgentVersion = outboundAgentVersion; this.InboundAgents = inboundAgents; this.OutboundAgents = outboundAgents; this.InboundSmsAgents = inboundSmsAgents; diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.V3CallResponse.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.V3CallResponse.Json.g.cs new file mode 100644 index 0000000..3ecbe01 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.V3CallResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace RetellAI +{ + public readonly partial struct V3CallResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.V3CallResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.V3CallResponse), + jsonSerializerContext) as global::RetellAI.V3CallResponse?; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::RetellAI.V3CallResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::RetellAI.V3CallResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.V3CallResponse?; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.V3CallResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.V3CallResponse.g.cs new file mode 100644 index 0000000..19b22e7 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.V3CallResponse.g.cs @@ -0,0 +1,203 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public readonly partial struct V3CallResponse : global::System.IEquatable + { + /// + /// + /// +#if NET6_0_OR_GREATER + public global::RetellAI.V2CallResponse? V2 { get; init; } +#else + public global::RetellAI.V2CallResponse? V2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(V2))] +#endif + public bool IsV2 => V2 != null; + + /// + /// V3 list calls response. Transcript fields are intentionally omitted. + /// +#if NET6_0_OR_GREATER + public object? V3CallResponseVariant2 { get; init; } +#else + public object? V3CallResponseVariant2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(V3CallResponseVariant2))] +#endif + public bool IsV3CallResponseVariant2 => V3CallResponseVariant2 != null; + /// + /// + /// + public static implicit operator V3CallResponse(global::RetellAI.V2CallResponse value) => new V3CallResponse((global::RetellAI.V2CallResponse?)value); + + /// + /// + /// + public static implicit operator global::RetellAI.V2CallResponse?(V3CallResponse @this) => @this.V2; + + /// + /// + /// + public V3CallResponse(global::RetellAI.V2CallResponse? value) + { + V2 = value; + } + + /// + /// + /// + public V3CallResponse( + global::RetellAI.V2CallResponse? v2, + object? v3CallResponseVariant2 + ) + { + V2 = v2; + V3CallResponseVariant2 = v3CallResponseVariant2; + } + + /// + /// + /// + public object? Object => + V3CallResponseVariant2 as object ?? + V2 as object + ; + + /// + /// + /// + public override string? ToString() => + V2?.ToString() ?? + V3CallResponseVariant2?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsV2 && IsV3CallResponseVariant2; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? v2 = null, + global::System.Func? v3CallResponseVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsV2 && v2 != null) + { + return v2(V2!); + } + else if (IsV3CallResponseVariant2 && v3CallResponseVariant2 != null) + { + return v3CallResponseVariant2(V3CallResponseVariant2!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? v2 = null, + global::System.Action? v3CallResponseVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsV2) + { + v2?.Invoke(V2!); + } + else if (IsV3CallResponseVariant2) + { + v3CallResponseVariant2?.Invoke(V3CallResponseVariant2!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + V2, + typeof(global::RetellAI.V2CallResponse), + V3CallResponseVariant2, + typeof(object), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(V3CallResponse other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(V2, other.V2) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(V3CallResponseVariant2, other.V3CallResponseVariant2) + ; + } + + /// + /// + /// + public static bool operator ==(V3CallResponse obj1, V3CallResponse obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(V3CallResponse obj1, V3CallResponse obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is V3CallResponse o && Equals(o); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.V3CallResponseVariant2.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.V3CallResponseVariant2.Json.g.cs new file mode 100644 index 0000000..21fc439 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.V3CallResponseVariant2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class V3CallResponseVariant2 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.V3CallResponseVariant2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.V3CallResponseVariant2), + jsonSerializerContext) as global::RetellAI.V3CallResponseVariant2; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::RetellAI.V3CallResponseVariant2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::RetellAI.V3CallResponseVariant2), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.V3CallResponseVariant2; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.V3CallResponseVariant2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.V3CallResponseVariant2.g.cs new file mode 100644 index 0000000..ac880d7 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.V3CallResponseVariant2.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// V3 list calls response. Transcript fields are intentionally omitted. + /// + public sealed partial class V3CallResponseVariant2 + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.V3ChatResponse.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.V3ChatResponse.Json.g.cs new file mode 100644 index 0000000..b18c35f --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.V3ChatResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace RetellAI +{ + public readonly partial struct V3ChatResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.V3ChatResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.V3ChatResponse), + jsonSerializerContext) as global::RetellAI.V3ChatResponse?; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::RetellAI.V3ChatResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::RetellAI.V3ChatResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.V3ChatResponse?; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.V3ChatResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.V3ChatResponse.g.cs new file mode 100644 index 0000000..da76111 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.V3ChatResponse.g.cs @@ -0,0 +1,203 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public readonly partial struct V3ChatResponse : global::System.IEquatable + { + /// + /// + /// +#if NET6_0_OR_GREATER + public global::RetellAI.ChatResponse? ChatResponse { get; init; } +#else + public global::RetellAI.ChatResponse? ChatResponse { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ChatResponse))] +#endif + public bool IsChatResponse => ChatResponse != null; + + /// + /// V3 list chats response. Transcript fields are intentionally omitted. + /// +#if NET6_0_OR_GREATER + public object? V3ChatResponseVariant2 { get; init; } +#else + public object? V3ChatResponseVariant2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(V3ChatResponseVariant2))] +#endif + public bool IsV3ChatResponseVariant2 => V3ChatResponseVariant2 != null; + /// + /// + /// + public static implicit operator V3ChatResponse(global::RetellAI.ChatResponse value) => new V3ChatResponse((global::RetellAI.ChatResponse?)value); + + /// + /// + /// + public static implicit operator global::RetellAI.ChatResponse?(V3ChatResponse @this) => @this.ChatResponse; + + /// + /// + /// + public V3ChatResponse(global::RetellAI.ChatResponse? value) + { + ChatResponse = value; + } + + /// + /// + /// + public V3ChatResponse( + global::RetellAI.ChatResponse? chatResponse, + object? v3ChatResponseVariant2 + ) + { + ChatResponse = chatResponse; + V3ChatResponseVariant2 = v3ChatResponseVariant2; + } + + /// + /// + /// + public object? Object => + V3ChatResponseVariant2 as object ?? + ChatResponse as object + ; + + /// + /// + /// + public override string? ToString() => + ChatResponse?.ToString() ?? + V3ChatResponseVariant2?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsChatResponse && IsV3ChatResponseVariant2; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? chatResponse = null, + global::System.Func? v3ChatResponseVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsChatResponse && chatResponse != null) + { + return chatResponse(ChatResponse!); + } + else if (IsV3ChatResponseVariant2 && v3ChatResponseVariant2 != null) + { + return v3ChatResponseVariant2(V3ChatResponseVariant2!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? chatResponse = null, + global::System.Action? v3ChatResponseVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsChatResponse) + { + chatResponse?.Invoke(ChatResponse!); + } + else if (IsV3ChatResponseVariant2) + { + v3ChatResponseVariant2?.Invoke(V3ChatResponseVariant2!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + ChatResponse, + typeof(global::RetellAI.ChatResponse), + V3ChatResponseVariant2, + typeof(object), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(V3ChatResponse other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(ChatResponse, other.ChatResponse) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(V3ChatResponseVariant2, other.V3ChatResponseVariant2) + ; + } + + /// + /// + /// + public static bool operator ==(V3ChatResponse obj1, V3ChatResponse obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(V3ChatResponse obj1, V3ChatResponse obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is V3ChatResponse o && Equals(o); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.V3ChatResponseVariant2.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.V3ChatResponseVariant2.Json.g.cs new file mode 100644 index 0000000..c01107a --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.V3ChatResponseVariant2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class V3ChatResponseVariant2 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.V3ChatResponseVariant2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.V3ChatResponseVariant2), + jsonSerializerContext) as global::RetellAI.V3ChatResponseVariant2; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::RetellAI.V3ChatResponseVariant2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::RetellAI.V3ChatResponseVariant2), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.V3ChatResponseVariant2; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.V3ChatResponseVariant2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.V3ChatResponseVariant2.g.cs new file mode 100644 index 0000000..b967644 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.V3ChatResponseVariant2.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// V3 list chats response. Transcript fields are intentionally omitted. + /// + public sealed partial class V3ChatResponseVariant2 + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.CreatePhoneNumber.g.cs b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.CreatePhoneNumber.g.cs index 2ca7943..eb67de5 100644 --- a/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.CreatePhoneNumber.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.CreatePhoneNumber.g.cs @@ -1,8 +1,6 @@ #nullable enable -#pragma warning disable CS0618 // Type or member is obsolete - namespace RetellAI { public partial class RetellAiClient @@ -506,10 +504,10 @@ partial void ProcessCreatePhoneNumberResponseContent( /// 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.RetellAiClient.ImportPhoneNumber.g.cs b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.ImportPhoneNumber.g.cs index 7376ed3..888fcc3 100644 --- a/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.ImportPhoneNumber.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.ImportPhoneNumber.g.cs @@ -1,8 +1,6 @@ #nullable enable -#pragma warning disable CS0618 // Type or member is obsolete - namespace RetellAI { public partial class RetellAiClient @@ -526,10 +524,10 @@ partial void ProcessImportPhoneNumberResponseContent( /// 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.RetellAiClient.ListAgents.g.cs b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.ListAgents.g.cs index 110a786..43fbb1e 100644 --- a/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.ListAgents.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.ListAgents.g.cs @@ -29,13 +29,15 @@ partial void PrepareListAgentsArguments( global::System.Net.Http.HttpClient httpClient, ref int? limit, ref string? paginationKey, - ref int? paginationKeyVersion); + ref int? paginationKeyVersion, + ref bool? isLatest); partial void PrepareListAgentsRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, int? limit, string? paginationKey, - int? paginationKeyVersion); + int? paginationKeyVersion, + bool? isLatest); partial void ProcessListAgentsResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -57,6 +59,9 @@ partial void ProcessListAgentsResponseContent( /// /// Example: 0 /// + /// + /// Example: true + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -64,6 +69,7 @@ partial void ProcessListAgentsResponseContent( int? limit = default, string? paginationKey = default, int? paginationKeyVersion = default, + bool? isLatest = default, global::RetellAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -73,7 +79,8 @@ partial void ProcessListAgentsResponseContent( httpClient: HttpClient, limit: ref limit, paginationKey: ref paginationKey, - paginationKeyVersion: ref paginationKeyVersion); + paginationKeyVersion: ref paginationKeyVersion, + isLatest: ref isLatest); var __authorizations = global::RetellAI.EndPointSecurityResolver.ResolveAuthorizations( @@ -103,7 +110,8 @@ partial void ProcessListAgentsResponseContent( __pathBuilder .AddOptionalParameter("limit", limit?.ToString()) .AddOptionalParameter("pagination_key", paginationKey) - .AddOptionalParameter("pagination_key_version", paginationKeyVersion?.ToString()) + .AddOptionalParameter("pagination_key_version", paginationKeyVersion?.ToString()) + .AddOptionalParameter("is_latest", isLatest?.ToString().ToLowerInvariant()) ; var __path = __pathBuilder.ToString(); __path = global::RetellAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( @@ -147,7 +155,8 @@ partial void ProcessListAgentsResponseContent( httpRequestMessage: __httpRequest, limit: limit, paginationKey: paginationKey, - paginationKeyVersion: paginationKeyVersion); + paginationKeyVersion: paginationKeyVersion, + isLatest: isLatest); return __httpRequest; } diff --git a/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.ListCallsV3.g.cs b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.ListCallsV3.g.cs new file mode 100644 index 0000000..5caa24c --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.ListCallsV3.g.cs @@ -0,0 +1,589 @@ + +#nullable enable + +namespace RetellAI +{ + public partial class RetellAiClient + { + + + private static readonly global::RetellAI.EndPointSecurityRequirement s_ListCallsV3SecurityRequirement0 = + new global::RetellAI.EndPointSecurityRequirement + { + Authorizations = new global::RetellAI.EndPointAuthorizationRequirement[] + { new global::RetellAI.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "ApiKey", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::RetellAI.EndPointSecurityRequirement[] s_ListCallsV3SecurityRequirements = + new global::RetellAI.EndPointSecurityRequirement[] + { s_ListCallsV3SecurityRequirement0, + }; + partial void PrepareListCallsV3Arguments( + global::System.Net.Http.HttpClient httpClient, + global::RetellAI.ListCallsV3Request request); + partial void PrepareListCallsV3Request( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::RetellAI.ListCallsV3Request request); + partial void ProcessListCallsV3Response( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessListCallsV3ResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// 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 + /// + public async global::System.Threading.Tasks.Task> ListCallsV3Async( + + global::RetellAI.ListCallsV3Request request, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareListCallsV3Arguments( + httpClient: HttpClient, + request: request); + + + var __authorizations = global::RetellAI.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListCallsV3SecurityRequirements, + operationName: "ListCallsV3Async"); + + using var __timeoutCancellationTokenSource = global::RetellAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::RetellAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::RetellAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + var __pathBuilder = new global::RetellAI.PathBuilder( + path: "/v3/list-calls", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::RetellAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::RetellAI.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareListCallsV3Request( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + request: request); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::RetellAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListCallsV3", + methodName: "ListCallsV3Async", + pathTemplate: "\"/v3/list-calls\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListCallsV3", + methodName: "ListCallsV3Async", + pathTemplate: "\"/v3/list-calls\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::RetellAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::RetellAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListCallsV3", + methodName: "ListCallsV3Async", + pathTemplate: "\"/v3/list-calls\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::RetellAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessListCallsV3Response( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListCallsV3", + methodName: "ListCallsV3Async", + pathTemplate: "\"/v3/list-calls\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListCallsV3", + methodName: "ListCallsV3Async", + pathTemplate: "\"/v3/list-calls\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Bad Request + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::RetellAI.ListCallsV3Response3? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::RetellAI.ListCallsV3Response3.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::RetellAI.ListCallsV3Response3.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + throw new global::RetellAI.ApiException( + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + statusCode: __response.StatusCode) + { + ResponseBody = __content_400, + ResponseObject = __value_400, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + // Unauthorized + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::RetellAI.ListCallsV3Response4? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::RetellAI.ListCallsV3Response4.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::RetellAI.ListCallsV3Response4.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + throw new global::RetellAI.ApiException( + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + statusCode: __response.StatusCode) + { + ResponseBody = __content_401, + ResponseObject = __value_401, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + // Too Many Requests + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::RetellAI.ListCallsV3Response5? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::RetellAI.ListCallsV3Response5.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::RetellAI.ListCallsV3Response5.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + throw new global::RetellAI.ApiException( + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + statusCode: __response.StatusCode) + { + ResponseBody = __content_429, + ResponseObject = __value_429, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + // Internal Server Error + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::RetellAI.ListCallsV3Response6? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::RetellAI.ListCallsV3Response6.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::RetellAI.ListCallsV3Response6.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + throw new global::RetellAI.ApiException( + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + statusCode: __response.StatusCode) + { + ResponseBody = __content_500, + ResponseObject = __value_500, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessListCallsV3ResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return + global::RetellAI.AllOf.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + catch (global::System.Exception __ex) + { + throw new global::RetellAI.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + return + await global::RetellAI.AllOf.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw new global::RetellAI.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// 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 + /// + public async 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) + { + var __request = new global::RetellAI.ListCallsV3Request + { + FilterCriteria = filterCriteria, + SortOrder = sortOrder, + Limit = limit, + Skip = skip, + PaginationKey = paginationKey, + }; + + return await ListCallsV3Async( + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.ListChatAgents.g.cs b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.ListChatAgents.g.cs index 184bc93..7c0cce7 100644 --- a/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.ListChatAgents.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.ListChatAgents.g.cs @@ -29,13 +29,15 @@ partial void PrepareListChatAgentsArguments( global::System.Net.Http.HttpClient httpClient, ref int? limit, ref string? paginationKey, - ref int? paginationKeyVersion); + ref int? paginationKeyVersion, + ref bool? isLatest); partial void PrepareListChatAgentsRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, int? limit, string? paginationKey, - int? paginationKeyVersion); + int? paginationKeyVersion, + bool? isLatest); partial void ProcessListChatAgentsResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -57,6 +59,9 @@ partial void ProcessListChatAgentsResponseContent( /// /// Example: 0 /// + /// + /// Example: true + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -64,6 +69,7 @@ partial void ProcessListChatAgentsResponseContent( int? limit = default, string? paginationKey = default, int? paginationKeyVersion = default, + bool? isLatest = default, global::RetellAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -73,7 +79,8 @@ partial void ProcessListChatAgentsResponseContent( httpClient: HttpClient, limit: ref limit, paginationKey: ref paginationKey, - paginationKeyVersion: ref paginationKeyVersion); + paginationKeyVersion: ref paginationKeyVersion, + isLatest: ref isLatest); var __authorizations = global::RetellAI.EndPointSecurityResolver.ResolveAuthorizations( @@ -103,7 +110,8 @@ partial void ProcessListChatAgentsResponseContent( __pathBuilder .AddOptionalParameter("limit", limit?.ToString()) .AddOptionalParameter("pagination_key", paginationKey) - .AddOptionalParameter("pagination_key_version", paginationKeyVersion?.ToString()) + .AddOptionalParameter("pagination_key_version", paginationKeyVersion?.ToString()) + .AddOptionalParameter("is_latest", isLatest?.ToString().ToLowerInvariant()) ; var __path = __pathBuilder.ToString(); __path = global::RetellAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( @@ -147,7 +155,8 @@ partial void ProcessListChatAgentsResponseContent( httpRequestMessage: __httpRequest, limit: limit, paginationKey: paginationKey, - paginationKeyVersion: paginationKeyVersion); + paginationKeyVersion: paginationKeyVersion, + isLatest: isLatest); return __httpRequest; } diff --git a/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.ListChatsV3.g.cs b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.ListChatsV3.g.cs new file mode 100644 index 0000000..0a9eb3b --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.ListChatsV3.g.cs @@ -0,0 +1,589 @@ + +#nullable enable + +namespace RetellAI +{ + public partial class RetellAiClient + { + + + private static readonly global::RetellAI.EndPointSecurityRequirement s_ListChatsV3SecurityRequirement0 = + new global::RetellAI.EndPointSecurityRequirement + { + Authorizations = new global::RetellAI.EndPointAuthorizationRequirement[] + { new global::RetellAI.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "ApiKey", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::RetellAI.EndPointSecurityRequirement[] s_ListChatsV3SecurityRequirements = + new global::RetellAI.EndPointSecurityRequirement[] + { s_ListChatsV3SecurityRequirement0, + }; + partial void PrepareListChatsV3Arguments( + global::System.Net.Http.HttpClient httpClient, + global::RetellAI.ListChatsV3Request request); + partial void PrepareListChatsV3Request( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::RetellAI.ListChatsV3Request request); + partial void ProcessListChatsV3Response( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessListChatsV3ResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// 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 + /// + public async global::System.Threading.Tasks.Task> ListChatsV3Async( + + global::RetellAI.ListChatsV3Request request, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareListChatsV3Arguments( + httpClient: HttpClient, + request: request); + + + var __authorizations = global::RetellAI.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListChatsV3SecurityRequirements, + operationName: "ListChatsV3Async"); + + using var __timeoutCancellationTokenSource = global::RetellAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::RetellAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::RetellAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + var __pathBuilder = new global::RetellAI.PathBuilder( + path: "/v3/list-chats", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::RetellAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::RetellAI.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareListChatsV3Request( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + request: request); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::RetellAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListChatsV3", + methodName: "ListChatsV3Async", + pathTemplate: "\"/v3/list-chats\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListChatsV3", + methodName: "ListChatsV3Async", + pathTemplate: "\"/v3/list-chats\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::RetellAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::RetellAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListChatsV3", + methodName: "ListChatsV3Async", + pathTemplate: "\"/v3/list-chats\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::RetellAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessListChatsV3Response( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListChatsV3", + methodName: "ListChatsV3Async", + pathTemplate: "\"/v3/list-chats\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListChatsV3", + methodName: "ListChatsV3Async", + pathTemplate: "\"/v3/list-chats\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Bad Request + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::RetellAI.ListChatsV3Response3? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::RetellAI.ListChatsV3Response3.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::RetellAI.ListChatsV3Response3.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + throw new global::RetellAI.ApiException( + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + statusCode: __response.StatusCode) + { + ResponseBody = __content_400, + ResponseObject = __value_400, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + // Unauthorized + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::RetellAI.ListChatsV3Response4? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::RetellAI.ListChatsV3Response4.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::RetellAI.ListChatsV3Response4.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + throw new global::RetellAI.ApiException( + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + statusCode: __response.StatusCode) + { + ResponseBody = __content_401, + ResponseObject = __value_401, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + // Too Many Requests + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::RetellAI.ListChatsV3Response5? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::RetellAI.ListChatsV3Response5.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::RetellAI.ListChatsV3Response5.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + throw new global::RetellAI.ApiException( + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + statusCode: __response.StatusCode) + { + ResponseBody = __content_429, + ResponseObject = __value_429, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + // Internal Server Error + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::RetellAI.ListChatsV3Response6? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::RetellAI.ListChatsV3Response6.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::RetellAI.ListChatsV3Response6.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + throw new global::RetellAI.ApiException( + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + statusCode: __response.StatusCode) + { + ResponseBody = __content_500, + ResponseObject = __value_500, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessListChatsV3ResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return + global::RetellAI.AllOf.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + catch (global::System.Exception __ex) + { + throw new global::RetellAI.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + return + await global::RetellAI.AllOf.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw new global::RetellAI.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// 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 + /// + public async 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) + { + var __request = new global::RetellAI.ListChatsV3Request + { + FilterCriteria = filterCriteria, + SortOrder = sortOrder, + Limit = limit, + Skip = skip, + PaginationKey = paginationKey, + }; + + return await ListChatsV3Async( + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.ListTestCaseDefinitions.g.cs b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.ListTestCaseDefinitions.g.cs index 7040b6b..0127866 100644 --- a/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.ListTestCaseDefinitions.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.ListTestCaseDefinitions.g.cs @@ -29,15 +29,13 @@ partial void PrepareListTestCaseDefinitionsArguments( global::System.Net.Http.HttpClient httpClient, ref global::RetellAI.ListTestCaseDefinitionsType type, ref string? llmId, - ref string? conversationFlowId, - ref int? version); + ref string? conversationFlowId); partial void PrepareListTestCaseDefinitionsRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, global::RetellAI.ListTestCaseDefinitionsType type, string? llmId, - string? conversationFlowId, - int? version); + string? conversationFlowId); partial void ProcessListTestCaseDefinitionsResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -53,7 +51,6 @@ partial void ProcessListTestCaseDefinitionsResponseContent( /// /// /// - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -61,7 +58,6 @@ partial void ProcessListTestCaseDefinitionsResponseContent( global::RetellAI.ListTestCaseDefinitionsType type, string? llmId = default, string? conversationFlowId = default, - int? version = default, global::RetellAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -71,8 +67,7 @@ partial void ProcessListTestCaseDefinitionsResponseContent( httpClient: HttpClient, type: ref type, llmId: ref llmId, - conversationFlowId: ref conversationFlowId, - version: ref version); + conversationFlowId: ref conversationFlowId); var __authorizations = global::RetellAI.EndPointSecurityResolver.ResolveAuthorizations( @@ -102,8 +97,7 @@ partial void ProcessListTestCaseDefinitionsResponseContent( __pathBuilder .AddRequiredParameter("type", type.ToValueString()) .AddOptionalParameter("llm_id", llmId) - .AddOptionalParameter("conversation_flow_id", conversationFlowId) - .AddOptionalParameter("version", version?.ToString()) + .AddOptionalParameter("conversation_flow_id", conversationFlowId) ; var __path = __pathBuilder.ToString(); __path = global::RetellAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( @@ -147,8 +141,7 @@ partial void ProcessListTestCaseDefinitionsResponseContent( httpRequestMessage: __httpRequest, type: type, llmId: llmId, - conversationFlowId: conversationFlowId, - version: version); + conversationFlowId: conversationFlowId); return __httpRequest; } diff --git a/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.ListTestCaseDefinitionsV2.g.cs b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.ListTestCaseDefinitionsV2.g.cs index 3184a4c..d187f76 100644 --- a/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.ListTestCaseDefinitionsV2.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.ListTestCaseDefinitionsV2.g.cs @@ -30,7 +30,6 @@ partial void PrepareListTestCaseDefinitionsV2Arguments( ref global::RetellAI.ListTestCaseDefinitionsV2Type type, ref string? llmId, ref string? conversationFlowId, - ref int? version, ref int? limit, ref string? paginationKey); partial void PrepareListTestCaseDefinitionsV2Request( @@ -39,7 +38,6 @@ partial void PrepareListTestCaseDefinitionsV2Request( global::RetellAI.ListTestCaseDefinitionsV2Type type, string? llmId, string? conversationFlowId, - int? version, int? limit, string? paginationKey); partial void ProcessListTestCaseDefinitionsV2Response( @@ -57,7 +55,6 @@ partial void ProcessListTestCaseDefinitionsV2ResponseContent( /// /// /// - /// /// /// Default Value: 50 /// @@ -69,7 +66,6 @@ partial void ProcessListTestCaseDefinitionsV2ResponseContent( global::RetellAI.ListTestCaseDefinitionsV2Type type, string? llmId = default, string? conversationFlowId = default, - int? version = default, int? limit = default, string? paginationKey = default, global::RetellAI.AutoSDKRequestOptions? requestOptions = default, @@ -82,7 +78,6 @@ partial void ProcessListTestCaseDefinitionsV2ResponseContent( type: ref type, llmId: ref llmId, conversationFlowId: ref conversationFlowId, - version: ref version, limit: ref limit, paginationKey: ref paginationKey); @@ -115,7 +110,6 @@ partial void ProcessListTestCaseDefinitionsV2ResponseContent( .AddRequiredParameter("type", type.ToValueString()) .AddOptionalParameter("llm_id", llmId) .AddOptionalParameter("conversation_flow_id", conversationFlowId) - .AddOptionalParameter("version", version?.ToString()) .AddOptionalParameter("limit", limit?.ToString()) .AddOptionalParameter("pagination_key", paginationKey) ; @@ -162,7 +156,6 @@ partial void ProcessListTestCaseDefinitionsV2ResponseContent( type: type, llmId: llmId, conversationFlowId: conversationFlowId, - version: version, limit: limit, paginationKey: paginationKey); diff --git a/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.UpdateAgent.g.cs b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.UpdateAgent.g.cs index 1bc1c54..61bbceb 100644 --- a/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.UpdateAgent.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.UpdateAgent.g.cs @@ -695,10 +695,6 @@ partial void ProcessUpdateAgentResponseContent( /// /// 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 @@ -819,7 +815,6 @@ partial void ProcessUpdateAgentResponseContent( 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, @@ -880,7 +875,6 @@ partial void ProcessUpdateAgentResponseContent( OptInSignedUrl = optInSignedUrl, SignedUrlExpirationMs = signedUrlExpirationMs, PronunciationDictionary = pronunciationDictionary, - NormalizeForSpeech = normalizeForSpeech, EndCallAfterSilenceMs = endCallAfterSilenceMs, MaxCallDurationMs = maxCallDurationMs, VoicemailMessage = voicemailMessage, diff --git a/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.UpdatePhoneNumber.g.cs b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.UpdatePhoneNumber.g.cs index 5344b36..d417baf 100644 --- a/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.UpdatePhoneNumber.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.UpdatePhoneNumber.g.cs @@ -1,8 +1,6 @@ #nullable enable -#pragma warning disable CS0618 // Type or member is obsolete - namespace RetellAI { public partial class RetellAiClient @@ -554,15 +552,11 @@ partial void ProcessUpdatePhoneNumberResponseContent( /// /// 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. @@ -615,7 +609,6 @@ partial void ProcessUpdatePhoneNumberResponseContent( /// public async 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, @@ -635,7 +628,6 @@ partial void ProcessUpdatePhoneNumberResponseContent( { var __request = new global::RetellAI.UpdatePhoneNumberRequest { - OutboundAgentVersion = outboundAgentVersion, InboundAgents = inboundAgents, OutboundAgents = outboundAgents, InboundSmsAgents = inboundSmsAgents, diff --git a/src/libs/RetellAI/Generated/autosdk.generated-examples.json b/src/libs/RetellAI/Generated/autosdk.generated-examples.json index c2931db..551fb1f 100644 --- a/src/libs/RetellAI/Generated/autosdk.generated-examples.json +++ b/src/libs/RetellAI/Generated/autosdk.generated-examples.json @@ -39,7 +39,7 @@ "Slug": "updatephonenumber", "Description": "Update agent bound to a purchased phone number", "Language": "http", - "Code": "### Update agent bound to a purchased phone number\n# @name updatePhoneNumber\nPATCH {{host}}/update-phone-number/{{phone_number}}\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022inbound_agent_id\u0022: \u0022oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD\u0022,\n \u0022outbound_agent_id\u0022: \u0022oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD\u0022,\n \u0022nickname\u0022: \u0022Frontdesk Number\u0022\n}\n\n## Responses\n# 200\n# Description: Successfully updated an phone number object.\n# Content-Type: application/json\n# 400\n# Description: Bad Request\n# Content-Type: application/json\n# 401\n# Description: Unauthorized\n# Content-Type: application/json\n# 422\n# Description: Unprocessable Content\n# Content-Type: application/json\n# 500\n# Description: Internal Server Error\n# Content-Type: application/json", + "Code": "### Update agent bound to a purchased phone number\n# @name updatePhoneNumber\nPATCH {{host}}/update-phone-number/{{phone_number}}\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022inbound_agents\u0022: [\n {\n \u0022agent_id\u0022: \u0022oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD\u0022,\n \u0022agent_version\u0022: 1,\n \u0022weight\u0022: 1\n }\n ],\n \u0022outbound_agents\u0022: [\n {\n \u0022agent_id\u0022: \u0022oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD\u0022,\n \u0022agent_version\u0022: 1,\n \u0022weight\u0022: 1\n }\n ],\n \u0022nickname\u0022: \u0022Frontdesk Number\u0022\n}\n\n## Responses\n# 200\n# Description: Successfully updated an phone number object.\n# Content-Type: application/json\n# 400\n# Description: Bad Request\n# Content-Type: application/json\n# 401\n# Description: Unauthorized\n# Content-Type: application/json\n# 422\n# Description: Unprocessable Content\n# Content-Type: application/json\n# 500\n# Description: Internal Server Error\n# Content-Type: application/json", "Format": "http", "OperationId": "updatePhoneNumber", "Setup": null diff --git a/src/libs/RetellAI/openapi.yaml b/src/libs/RetellAI/openapi.yaml index b1ce92a..8b6fbed 100644 --- a/src/libs/RetellAI/openapi.yaml +++ b/src/libs/RetellAI/openapi.yaml @@ -560,6 +560,7 @@ components: - speech-02-turbo - speech-2.8-turbo - s1 + - s2-pro - null description: Select the voice model used for the selected voice. Each provider has a set of available voice models. Set to null to remove voice model selection, and default ones will apply. Check out dashboard for more details of each voice model. @@ -862,12 +863,6 @@ components: description: 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. nullable: true - normalize_for_speech: - type: boolean - example: true - description: 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. end_call_after_silence_ms: type: integer example: 600000 @@ -923,7 +918,7 @@ components: post_call_analysis_model: $ref: '#/components/schemas/NullableLLMModel' example: gpt-4.1-mini - description: The model to use for post call analysis. Default to gpt-4.1-mini. + description: The model to use for post call analysis. Default to gpt-4.1. analysis_successful_prompt: type: string maxLength: 2000 @@ -971,10 +966,11 @@ components: enum: - azure - deepgram + - soniox description: The STT provider to use. endpointing_ms: type: integer - description: Endpointing timeout in milliseconds. Minimum is 100 for azure, 10 for deepgram. + description: Endpointing timeout in milliseconds. Minimum is 100 for Azure, 10 for Deepgram, 500 for Soniox required: - provider - endpointing_ms @@ -1865,7 +1861,7 @@ components: post_chat_analysis_model: $ref: '#/components/schemas/NullableLLMModel' example: gpt-4.1-mini - description: The model to use for post chat analysis. Default to gpt-4.1-mini. + description: The model to use for post chat analysis. Default to gpt-4.1. analysis_successful_prompt: type: string example: The agent finished the task and the call was complete without being cutoff. @@ -2070,6 +2066,19 @@ components: description: Post chat analysis that includes information such as sentiment, status, summary, and custom defined data to extract. Available after chat ends. Subscribe to `chat_analyzed` webhook event type to receive it once ready. $ref: '#/components/schemas/ChatAnalysis' + V3ChatResponse: + allOf: + - $ref: '#/components/schemas/ChatResponse' + - type: object + description: V3 list chats response. Transcript fields are intentionally omitted. + not: + anyOf: + - required: + - transcript + - required: + - message_with_tool_calls + - required: + - scrubbed_message_with_tool_calls CheckAvailabilityCalTool: type: object properties: @@ -2961,6 +2970,9 @@ components: args_at_root: type: boolean description: If set to true, the parameters will be passed as root level JSON object instead of nested under "args". + enable_typing_sound: + type: boolean + description: If true, play a typing sound on the agent audio track while this tool is executing. Useful when the tool takes a noticeable amount of time to prevent silence on the call. required: - type - name @@ -3012,6 +3024,9 @@ components: - static_text description: Type of execution message. "prompt" means the agent will use execution_message_description as a prompt to generate the message. "static_text" means the agent will speak the execution_message_description directly. Defaults to "prompt". + enable_typing_sound: + type: boolean + description: If true, play a typing sound on the agent audio track while this tool is executing. required: - type - name @@ -3403,6 +3418,7 @@ components: - registered_call_timeout - transfer_bridged - transfer_cancelled + - manual_stopped Duration: type: object required: @@ -3695,6 +3711,9 @@ components: wait_for_result: type: boolean description: Whether to wait for tool result + enable_typing_sound: + type: boolean + description: If true, play a typing sound while this function executes. edges: type: array items: @@ -3721,6 +3740,7 @@ components: description: Type of the node code: type: string + maxLength: 5000 description: JavaScript code to execute in the sandbox. timeout_ms: type: integer @@ -3742,6 +3762,9 @@ components: wait_for_result: type: boolean description: Whether to wait for code execution result + enable_typing_sound: + type: boolean + description: If true, play a typing sound while code executes. edges: type: array items: @@ -4066,6 +4089,7 @@ components: - gemini-2.5-flash - gemini-2.5-flash-lite - gemini-3.0-flash + - gemini-3.1-flash-lite description: Available LLM models for agents. MCPNode: allOf: @@ -4108,6 +4132,9 @@ components: wait_for_result: type: boolean description: If true, will wait for result before transitioning to next node + enable_typing_sound: + type: boolean + description: If true, play a typing sound while MCP tool executes. finetune_transition_examples: type: array items: @@ -4184,6 +4211,9 @@ components: - static_text description: Type of execution message. "prompt" means the agent will use execution_message_description as a prompt to generate the message. "static_text" means the agent will speak the execution_message_description directly. Defaults to "prompt". + enable_typing_sound: + type: boolean + description: If true, play a typing sound on the agent audio track while this MCP tool is executing. required: - type - name @@ -4224,13 +4254,19 @@ components: - $ref: '#/components/schemas/ToolCallResultMessage' - $ref: '#/components/schemas/NodeTransitionMessage' - $ref: '#/components/schemas/StateTransitionMessage' - Message: + ChatMessageInput: + description: Same shape as chat completion messages. message_id and created_timestamp are optional — server generates them if omitted. + oneOf: + - $ref: '#/components/schemas/MessageBase' + - $ref: '#/components/schemas/ToolCallInvocationMessageBase' + - $ref: '#/components/schemas/ToolCallResultMessageBase' + - $ref: '#/components/schemas/NodeTransitionMessageBase' + - $ref: '#/components/schemas/StateTransitionMessageBase' + MessageBase: type: object required: - - message_id - role - content - - created_timestamp properties: message_id: type: string @@ -4251,6 +4287,12 @@ components: type: integer description: Create timestamp of the message example: 1703302428855 + Message: + allOf: + - $ref: '#/components/schemas/MessageBase' + - required: + - message_id + - created_timestamp MetricResult: type: object required: @@ -4419,6 +4461,22 @@ components: text: type: string description: The static text for the instruction + SmsInstructionTemplate: + type: object + required: + - type + - template + properties: + type: + type: string + enum: + - template + description: Type of instruction + template: + type: string + enum: + - info_collection + description: The template to use for the instruction. "info_collection" sends a predefined message requesting information from the user. NodeInstruction: oneOf: - $ref: '#/components/schemas/NodeInstructionPrompt' @@ -4461,12 +4519,10 @@ components: type: number total_count: type: number - NodeTransitionMessage: + NodeTransitionMessageBase: type: object required: - - message_id - role - - created_timestamp properties: message_id: type: string @@ -4489,10 +4545,25 @@ components: new_node_name: type: string description: New node name + transition_type: + type: string + enum: + - global + - global_go_back + - interrupt_go_back + - normal + description: How this node was reached. "global" means a global node transition, "global_go_back" means returning from a global node, "interrupt_go_back" means going back due to user interruption, + and "normal" means a regular edge transition. created_timestamp: type: integer description: Create timestamp of the message example: 1703302428855 + NodeTransitionMessage: + allOf: + - $ref: '#/components/schemas/NodeTransitionMessageBase' + - required: + - message_id + - created_timestamp NodeTransitionUtterance: type: object required: @@ -4519,6 +4590,15 @@ components: new_node_name: type: string description: New node name + transition_type: + type: string + enum: + - global + - global_go_back + - interrupt_go_back + - normal + description: How this node was reached. "global" means a global node transition, "global_go_back" means returning from a global node, "interrupt_go_back" means going back due to user interruption, + and "normal" means a regular edge transition. NullableLLMModel: type: string enum: @@ -4539,6 +4619,7 @@ components: - gemini-2.5-flash - gemini-2.5-flash-lite - gemini-3.0-flash + - gemini-3.1-flash-lite - null nullable: true description: Available LLM models for agents. @@ -4910,32 +4991,6 @@ components: type: string example: +1 (415) 777-4444 description: Pretty printed phone number, provided for your reference. - inbound_agent_id: - type: string - example: oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD - description: Unique id of agent to bind to the number. The number will automatically use the agent when receiving inbound calls. If null, this number would not accept inbound call. Deprecated. - See https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields - deprecated: true - nullable: true - outbound_agent_id: - type: string - example: oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD - description: Unique id of agent to bind to the number. The number will automatically use the agent when conducting outbound calls. If null, this number would not be able to initiate outbound call - without agent id override. Deprecated. See https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields - deprecated: true - nullable: true - inbound_agent_version: - type: integer - example: 1 - description: Version of the inbound agent to bind to the number. If not provided, will default to latest version. Deprecated. See https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields - deprecated: true - nullable: true - outbound_agent_version: - type: integer - example: 1 - description: Version of the outbound agent to bind to the number. If not provided, will default to latest version. Deprecated. See https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields - deprecated: true - nullable: true allowed_inbound_country_list: type: array items: @@ -4964,14 +5019,14 @@ components: items: $ref: '#/components/schemas/AgentWeight' description: 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. + weights must add up to 1. nullable: true outbound_agents: type: array items: $ref: '#/components/schemas/AgentWeight' description: 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. + weights must add up to 1. nullable: true inbound_sms_agents: type: array @@ -5132,6 +5187,9 @@ components: - $ref: '#/components/schemas/NumberFilter' - $ref: '#/components/schemas/RangeFilter' description: Start timestamp filter (epoch ms). + call_id: + $ref: '#/components/schemas/StringFilter' + description: Filter by call ID. score: $ref: '#/components/schemas/NumberFilter' description: Filter by QA score. @@ -5534,7 +5592,7 @@ components: type: type: string enum: - - short_code + - retell_long_code SmsDestination: oneOf: - type: object @@ -5663,10 +5721,26 @@ components: content: type: string description: The static message to be sent in the SMS. Can contain dynamic variables. + SmsContentTemplate: + type: object + required: + - type + - template + properties: + type: + type: string + enum: + - template + template: + type: string + enum: + - info_collection + description: The template to use for the SMS content. "info_collection" sends a predefined message requesting information from the user. SmsContent: oneOf: - $ref: '#/components/schemas/SmsContentPredefined' - $ref: '#/components/schemas/SmsContentInferred' + - $ref: '#/components/schemas/SmsContentTemplate' SmsFailedEdge: allOf: - $ref: '#/components/schemas/NodeEdge' @@ -5705,7 +5779,9 @@ components: - sms description: Type of the node instruction: - $ref: '#/components/schemas/NodeInstruction' + oneOf: + - $ref: '#/components/schemas/NodeInstruction' + - $ref: '#/components/schemas/SmsInstructionTemplate' success_edge: $ref: '#/components/schemas/SmsSuccessEdge' failed_edge: @@ -5750,12 +5826,10 @@ components: description: Describes what parameters you want to extract out when the transition changes. The parameters extracted here can be referenced in prompts & function descriptions of later states via dynamic variables. The parameters the functions accepts, described as a JSON Schema object. See [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. - StateTransitionMessage: + StateTransitionMessageBase: type: object required: - - message_id - role - - created_timestamp properties: message_id: type: string @@ -5776,6 +5850,12 @@ components: type: integer description: Create timestamp of the message example: 1703302428855 + StateTransitionMessage: + allOf: + - $ref: '#/components/schemas/StateTransitionMessageBase' + - required: + - message_id + - created_timestamp State: type: object required: @@ -5985,7 +6065,7 @@ components: transcript_snapshot: type: object nullable: true - description: Snapshot of the transcript generated during test execution. Can be either ConversationFlowPlaygroundSnapshot or MultiStatePromptPlaygroundSnapshot + description: Snapshot of the transcript generated during test execution. Can be either ConversationFlowPlaygroundSnapshot or RetellLlmPlaygroundSnapshot result_explanation: type: string nullable: true @@ -6084,10 +6164,9 @@ components: type: number tool_call_total_count: type: number - ToolCallInvocationMessage: + ToolCallInvocationMessageBase: type: object required: - - message_id - role - tool_call_id - name @@ -6118,6 +6197,12 @@ components: type: integer description: Create timestamp of the message example: 1703302428855 + ToolCallInvocationMessage: + allOf: + - $ref: '#/components/schemas/ToolCallInvocationMessageBase' + - required: + - message_id + - created_timestamp ToolCallInvocationUtterance: type: object required: @@ -6143,14 +6228,12 @@ components: thought_signature: type: string description: Optional thought signature from Google Gemini thinking models. This is used internally to maintain reasoning chain in multi-turn function calling. - ToolCallResultMessage: + ToolCallResultMessageBase: type: object required: - - message_id - role - tool_call_id - content - - created_timestamp properties: message_id: type: string @@ -6174,6 +6257,12 @@ components: type: integer description: Create timestamp of the message example: 1703302428855 + ToolCallResultMessage: + allOf: + - $ref: '#/components/schemas/ToolCallResultMessageBase' + - required: + - message_id + - created_timestamp ToolCallResultUtterance: type: object required: @@ -6931,6 +7020,21 @@ components: oneOf: - $ref: '#/components/schemas/V2WebCallResponse' - $ref: '#/components/schemas/V2PhoneCallResponse' + V3CallResponse: + allOf: + - $ref: '#/components/schemas/V2CallResponse' + - type: object + description: V3 list calls response. Transcript fields are intentionally omitted. + not: + anyOf: + - required: + - transcript + - required: + - transcript_object + - required: + - transcript_with_tool_calls + - required: + - scrubbed_transcript_with_tool_calls V2PhoneCallResponse: allOf: - type: object @@ -7414,11 +7518,6 @@ paths: schema: type: string description: Conversation flow ID (required when type is conversation-flow) - - in: query - name: version - schema: - type: integer - description: Version of the response engine (defaults to latest) responses: '200': description: Test case definitions retrieved successfully @@ -7460,11 +7559,6 @@ paths: schema: type: string description: Conversation flow ID (required when type is conversation-flow) - - in: query - name: version - schema: - type: integer - description: Version of the response engine (defaults to latest) - $ref: '#/components/parameters/LimitParam' - $ref: '#/components/parameters/PaginationKeyParam' responses: @@ -7965,47 +8059,19 @@ paths: schema: type: object properties: - inbound_agent_id: - type: string - minLength: 1 - example: oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD - description: Unique id of agent to bind to the number. The number will automatically use the agent when receiving inbound calls. If null, this number would not accept inbound call. Deprecated. - See https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields - deprecated: true - nullable: true - outbound_agent_id: - type: string - minLength: 1 - example: oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD - description: Unique id of agent to bind to the number. The number will automatically use the agent when conducting outbound calls. If null, this number would not be able to initiate outbound - call without agent id override. Deprecated. See https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields - deprecated: true - nullable: true - inbound_agent_version: - type: integer - example: 1 - description: Version of the inbound agent to bind to the number. If not provided, will default to latest version. Deprecated. See https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields - deprecated: true - nullable: true - outbound_agent_version: - type: integer - example: 1 - description: Version of the outbound agent to bind to the number. If not provided, will default to latest version. Deprecated. See https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields - deprecated: true - nullable: true inbound_agents: type: array items: $ref: '#/components/schemas/AgentWeight' description: 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. + Total weights must add up to 1. nullable: true outbound_agents: type: array items: $ref: '#/components/schemas/AgentWeight' description: 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. + Total weights must add up to 1. nullable: true area_code: type: integer @@ -9019,47 +9085,19 @@ paths: type: string example: '123456' description: The password used for authentication for the SIP trunk. - inbound_agent_id: - type: string - minLength: 1 - example: oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD - description: Unique id of agent to bind to the number. The number will automatically use the agent when receiving inbound calls. If null, this number would not accept inbound call. Deprecated. - See https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields - deprecated: true - nullable: true - outbound_agent_id: - type: string - minLength: 1 - example: oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD - description: Unique id of agent to bind to the number. The number will automatically use the agent when conducting outbound calls. If null, this number would not be able to initiate outbound - call without agent id override. Deprecated. See https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields - deprecated: true - nullable: true - inbound_agent_version: - type: integer - example: 1 - description: Version of the inbound agent to bind to the number. If not provided, will default to latest version. Deprecated. See https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields - deprecated: true - nullable: true - outbound_agent_version: - type: integer - example: 1 - description: Version of the outbound agent to bind to the number. If not provided, will default to latest version. Deprecated. See https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields - deprecated: true - nullable: true inbound_agents: type: array items: $ref: '#/components/schemas/AgentWeight' description: 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. + Total weights must add up to 1. nullable: true outbound_agents: type: array items: $ref: '#/components/schemas/AgentWeight' description: 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. + Total weights must add up to 1. nullable: true nickname: type: string @@ -9137,6 +9175,13 @@ paths: allowEmptyValue: true description: Specifies the version of the agent associated with the pagination_key. When paginating, both the pagination_key and its version must be provided to ensure consistent ordering and to fetch the next page correctly. + - in: query + name: is_latest + schema: + type: boolean + example: true + required: false + description: If true, only return the latest version of each agent. responses: '200': description: Successfully retrieved all agents. @@ -9180,6 +9225,13 @@ paths: allowEmptyValue: true description: Specifies the version of the agent associated with the pagination_key. When paginating, both the pagination_key and its version must be provided to ensure consistent ordering and to fetch the next page correctly. + - in: query + name: is_latest + schema: + type: boolean + example: true + required: false + description: If true, only return the latest version of each chat agent. responses: '200': description: Successfully retrieved all chat agents. @@ -9233,6 +9285,67 @@ paths: $ref: '#/components/responses/Unauthorized' '500': $ref: '#/components/responses/InternalServerError' + /v3/list-chats: + post: + description: List chats with unified cursor pagination response and total count. + operationId: listChatsV3 + requestBody: + required: false + content: + application/json: + schema: + type: object + properties: + filter_criteria: + type: object + description: Filter criteria for chats to retrieve. + additionalProperties: true + sort_order: + type: string + enum: + - ascending + - descending + default: descending + description: Sort chats by `start_timestamp` in ascending or descending order. + limit: + type: integer + default: 50 + maximum: 1000 + description: Maximum number of chats to return. + skip: + type: integer + minimum: 0 + default: 0 + description: Number of records to skip for pagination. + pagination_key: + type: string + description: Opaque pagination cursor from a previous response. + not: + required: + - skip + - pagination_key + responses: + '200': + description: Successfully retrieved chats. + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/PaginatedResponseBase' + - type: object + properties: + items: + type: array + items: + $ref: '#/components/schemas/V3ChatResponse' + '400': + $ref: '#/components/responses/BadRequest' + '401': + $ref: '#/components/responses/Unauthorized' + '429': + $ref: '#/components/responses/TooManyRequests' + '500': + $ref: '#/components/responses/InternalServerError' /v2/list-conversation-flow-components: get: description: List shared conversation flow components with pagination @@ -9752,46 +9865,19 @@ paths: schema: type: object properties: - inbound_agent_id: - type: string - minLength: 1 - example: oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD - description: Unique id of agent to bind to the number. The number will automatically use the agent when receiving inbound calls. If set to null, this number would not accept inbound call. - Deprecated. See https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields - deprecated: true - nullable: true - outbound_agent_id: - type: string - minLength: 1 - example: oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD - description: Unique id of agent to bind to the number. The number will automatically use the agent when conducting outbound calls. If set to null, this number would not be able to initiate - outbound call without agent id override. Deprecated. See https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields - deprecated: true - nullable: true - inbound_agent_version: - type: integer - example: 1 - description: Version of the inbound agent to bind to the number. If not provided, will default to latest version. Deprecated. See https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields - deprecated: true - nullable: true - outbound_agent_version: - type: integer - example: 1 - description: Version of the outbound agent to bind to the number. If not provided, will default to latest version. - nullable: true inbound_agents: type: array items: $ref: '#/components/schemas/AgentWeight' description: 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. + Total weights must add up to 1. nullable: true outbound_agents: type: array items: $ref: '#/components/schemas/AgentWeight' description: 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. + Total weights must add up to 1. nullable: true inbound_sms_agents: type: array @@ -9865,8 +9951,14 @@ paths: Cannot be the same as this phone number, and cannot be a number that already has its own fallback configured (prevents nested forwarding). nullable: true example: - inbound_agent_id: oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD - outbound_agent_id: oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD + inbound_agents: + - agent_id: oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD + agent_version: 1 + weight: 1 + outbound_agents: + - agent_id: oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD + agent_version: 1 + weight: 1 nickname: Frontdesk Number responses: '200': @@ -10329,6 +10421,65 @@ paths: $ref: '#/components/responses/Unauthorized' '500': $ref: '#/components/responses/InternalServerError' + /v3/list-calls: + post: + description: List calls with unified cursor pagination response and total count. + operationId: listCallsV3 + requestBody: + required: false + content: + application/json: + schema: + type: object + properties: + filter_criteria: + $ref: '#/components/schemas/CallFilter' + sort_order: + type: string + enum: + - ascending + - descending + default: descending + description: Sort calls by `start_timestamp` in ascending or descending order. + limit: + type: integer + default: 50 + maximum: 1000 + description: Maximum number of calls to return. + skip: + type: integer + minimum: 0 + default: 0 + description: Number of records to skip for pagination. + pagination_key: + type: string + description: Opaque pagination cursor from a previous response. + not: + required: + - skip + - pagination_key + responses: + '200': + description: Successfully retrieved calls. + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/PaginatedResponseBase' + - type: object + properties: + items: + type: array + items: + $ref: '#/components/schemas/V3CallResponse' + '400': + $ref: '#/components/responses/BadRequest' + '401': + $ref: '#/components/responses/Unauthorized' + '429': + $ref: '#/components/responses/TooManyRequests' + '500': + $ref: '#/components/responses/InternalServerError' /v2/list-export-requests: get: description: List export requests with pagination